:root {
  --blue: #1E5BB8;
  --blue-dark: #163E7A;
  --blue-deeper: #102A52;
  --blue-light: #3AA0E8;
  --orange: #F7A21B;
  --orange-dark: #C48412;
  --red: #D6282B;
  --cream: #FCF8F5;
  --cream-2: #F3ECE6;
  --text: #1A1C1E;
  --muted: #5A5E63;
  --line: #E6DFD8;
  --white: #ffffff;
  --teal: #0B5257;
  --teal-dark: #07393D;
  --mint: #3FD3BE;
  --mint-dark: #2BB8A4;
  --gassafe: #FFD200;
  --gassafe-ink: #1A1C1E;
  --shadow: 0 8px 24px rgba(16, 42, 82, 0.08);
  --radius: 16px;
  --header-h: 68px;
  --max: 1120px;
  --font: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(252, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
}

.nav-list a:hover { background: var(--cream-2); color: var(--blue-dark); }

.nav-list a.nav-cta {
  background: var(--orange);
  color: var(--text);
  margin-left: 6px;
  padding-inline: 14px;
}

.nav-list a.nav-cta:hover { background: var(--orange-dark); color: var(--white); }

/* Hero */
.hero {
  padding: 36px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(58, 160, 232, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(247, 162, 27, 0.12), transparent 50%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-logo { display: none; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40ch;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  width: min(340px, 100%);
  filter: drop-shadow(0 18px 30px rgba(30, 91, 184, 0.18));
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--orange);
  color: var(--text);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue-light); color: var(--blue-dark); }

.btn.is-disabled,
.btn:disabled {
  background: var(--cream-2);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
}

/* Sections */
.section { padding: 64px 0; }

.section-head {
  margin-bottom: 28px;
  max-width: 46ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.alt { background: var(--white); }
.alt-soft { background: var(--cream-2); }

/* Services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  box-shadow: var(--shadow);
}

.alt .card { background: var(--cream); }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30, 91, 184, 0.1);
  color: var(--blue);
  margin-bottom: 14px;
}

.icon-badge.warm {
  background: rgba(247, 162, 27, 0.18);
  color: var(--orange-dark);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item,
.gallery-ph {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-2);
  width: 100%;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-ph {
  cursor: default;
  background:
    linear-gradient(180deg, #f7f1eb 0%, #efe6dd 100%);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.gallery-ph svg { opacity: 0.55; color: var(--blue); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 28, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: var(--white);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80%;
}

/* Qualifications */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.qual-card {
  background: var(--white);
  border: 1px dashed #cfc6bc;
  border-radius: var(--radius);
  padding: 20px;
  min-height: 120px;
}

.qual-card .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.qual-card p {
  margin: 0;
  font-weight: 650;
  font-size: 1.05rem;
}

.placeholder-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-dark);
  background: rgba(247, 162, 27, 0.16);
  padding: 3px 8px;
  border-radius: 999px;
}

.areas-block {
  margin-top: 16px;
  background: var(--white);
  border: 1px dashed #cfc6bc;
  border-radius: var(--radius);
  padding: 22px 20px;
}

.areas-block h3 { margin: 0 0 8px; font-size: 1.1rem; }
.areas-block p { margin: 0; color: var(--muted); }

/* GasMate / tools */
.tools {
  padding: 64px 0;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
}

.tools-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.tools .eyebrow { color: var(--mint); }
.tools h2 { margin: 0 0 10px; }
.tools p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
}

.btn-mint {
  background: var(--mint);
  color: var(--teal-dark);
  border-color: var(--mint);
}
.btn-mint:hover { background: var(--white); border-color: var(--white); color: var(--teal-dark); }

.tools-mark {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: rgba(63, 211, 190, 0.12);
  border: 1px solid rgba(63, 211, 190, 0.35);
  display: grid;
  place-items: center;
  color: var(--mint);
}

/* Quote */
.quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.quote-aside p { color: var(--muted); }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.contact-actions .btn { width: 100%; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-weight: 650;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  min-height: 46px;
  width: 100%;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(58, 160, 232, 0.45);
  outline-offset: 1px;
  border-color: var(--blue-light);
  background: var(--white);
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form .btn { margin-top: 16px; width: 100%; }

/* Footer */
.site-footer {
  background: var(--blue-deeper);
  color: #e7eef6;
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img { width: 36px; height: auto; }

.site-footer h2,
.site-footer h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--white);
}

.site-footer p, .site-footer li, .site-footer a {
  color: #c9d4e2;
  font-size: 0.92rem;
}

.site-footer a:hover { color: var(--orange); }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }

.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: 0.85rem;
  color: #a9b6c6;
}

.footer-meta p { margin: 0 0 8px; color: inherit; font-size: inherit; }

.privacy {
  padding: 48px 0 56px;
}

.privacy p { color: var(--muted); max-width: 62ch; }

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a { min-height: 48px; }
  .nav-list a.nav-cta { margin-left: 0; justify-content: center; width: 100%; }

  .hero { padding: 24px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(180px, 42vw); }
  .hero-logo { display: none; }
  .hero h1 { font-size: 1.85rem; }
  .btn-row .btn { flex: 1 1 calc(50% - 10px); }
  .btn-row .btn-primary { flex-basis: 100%; }

  .card-grid,
  .qual-grid,
  .quote-grid,
  .footer-grid,
  .form-grid,
  .tools-inner {
    grid-template-columns: 1fr;
  }

  .gallery { grid-template-columns: 1fr 1fr; }


  .tools-mark { display: none; }
  .section { padding: 48px 0; }
  .tools { padding: 48px 0; }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .card-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Gas Safe text badge */
.gassafe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gassafe);
  color: var(--gassafe-ink);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.gassafe-badge:hover { filter: brightness(0.97); color: var(--gassafe-ink); }
.gassafe-badge:focus-visible { outline-color: var(--blue-dark); }
.gassafe-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gassafe-ink);
  color: var(--gassafe);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.hero .gassafe-badge { margin: 0 0 18px; }
.gassafe-check {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  opacity: 0.8;
}
.gassafe-badge-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.footer-gassafe .gassafe-badge {
  margin-top: 12px;
}
.qual-card.is-gassafe {
  border: 2px solid var(--gassafe);
  background: #fffdf3;
}
.qual-card.is-gassafe .label { color: #6a5a00; }
.qual-card.is-gassafe p { margin-bottom: 10px; }
