/* =========================================================
   SOLID PLUMBING & GAS — style.css
   Concept: industrial-modern. Copper/brass pipes,
   gas-flame blue accent, steel neutrals. Bold + friendly.
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-xl: 1.5rem; --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-wide: 1180px;

  /* Fonts */
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* LIGHT MODE */
:root, [data-theme="light"] {
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-surface-2: #fbfbfc;
  --color-surface-offset: #eceef1;
  --color-border: #dde0e6;
  --color-divider: #e6e8ec;

  --color-text: #15181d;
  --color-text-muted: #5c636e;
  --color-text-faint: #9aa1ad;
  --color-text-inverse: #ffffff;

  /* Primary = gas-flame blue */
  --color-primary: #1f6fff;
  --color-primary-hover: #155ce0;
  --color-primary-active: #1149b3;

  /* Copper/brass pipe accent */
  --color-pipe: #c2703d;
  --color-pipe-deep: #9a5226;

  /* Gas flame (CTA / call) */
  --color-flame: #ff7a1a;
  --color-flame-hover: #ed6606;
  --color-flame-soft: #ffd9b8;

  --color-dark: #14171c;

  --shadow-sm: 0 1px 2px rgba(20,23,28,.06);
  --shadow-md: 0 6px 20px rgba(20,23,28,.09);
  --shadow-lg: 0 18px 44px rgba(20,23,28,.14);
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg: #0e1014;
  --color-surface: #161a20;
  --color-surface-2: #1b2027;
  --color-surface-offset: #1f242c;
  --color-border: #2a3038;
  --color-divider: #232931;

  --color-text: #e7e9ee;
  --color-text-muted: #9aa2af;
  --color-text-faint: #6b7280;
  --color-text-inverse: #0e1014;

  --color-primary: #5b94ff;
  --color-primary-hover: #79a8ff;
  --color-primary-active: #98bcff;

  --color-pipe: #d98b56;
  --color-pipe-deep: #b86b36;

  --color-flame: #ff8c3a;
  --color-flame-hover: #ffa05c;
  --color-flame-soft: #4a3322;

  --color-dark: #05070a;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 18px 44px rgba(0,0,0,.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0e1014; --color-surface: #161a20; --color-surface-2: #1b2027;
    --color-surface-offset: #1f242c; --color-border: #2a3038; --color-divider: #232931;
    --color-text: #e7e9ee; --color-text-muted: #9aa2af; --color-text-faint: #6b7280;
    --color-primary: #5b94ff; --color-pipe: #d98b56; --color-flame: #ff8c3a;
  }
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 84px;
}
body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; font-family: var(--font-display); font-weight: 600; }
p { text-wrap: pretty; }
::selection { background: rgba(31,111,255,.22); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
a, button, input, textarea, select {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-full);
  font-weight: 600; font-size: var(--text-sm); letter-spacing: .01em; white-space: nowrap;
  border: 2px solid transparent;
}
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--block { width: 100%; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--call { background: var(--color-flame); color: #fff; box-shadow: 0 4px 14px rgba(255,122,26,.32); }
.btn--call:hover { background: var(--color-flame-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,122,26,.4); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--color-text); }
.btn--ghost:hover { background: var(--color-text); color: var(--color-bg); transform: translateY(-2px); }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.header--scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.logo { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 700; }
.logo__brand { height: 48px; width: auto; object-fit: contain; display: block; }
.logo__mark { flex-shrink: 0; }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.logo__amp { color: var(--color-text-muted); font-weight: 600; }
.nav { display: flex; gap: var(--space-6); margin-left: auto; font-size: var(--text-sm); font-weight: 500; }
.nav a { color: var(--color-text-muted); }
.nav a:hover { color: var(--color-text); }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.icon-btn:hover { color: var(--color-text); background: var(--color-surface-offset); }

@media (max-width: 860px) {
  .nav { display: none; }
  .header__call span { display: none; }
  .header__call { padding: var(--space-3); }
}

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(var(--space-16), 9vw, var(--space-32)); overflow: hidden; }
.hero__pipes { position: absolute; inset: 0; z-index: 0; opacity: .28; pointer-events: none; }
[data-theme="dark"] .hero__pipes { opacity: .22; }
.pipe-net path { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: drawPipe 2.4s ease forwards; }
.pipe-net path:nth-child(2) { animation-delay: .2s; }
.pipe-net path:nth-child(3) { animation-delay: .4s; }
.pipe-net path:nth-child(4) { animation-delay: .6s; }
@keyframes drawPipe { to { stroke-dashoffset: 0; } }
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  background: var(--color-surface); border: 1px solid var(--color-border);
  font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); box-shadow: var(--shadow-sm);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero__title { font-size: var(--text-3xl); font-weight: 700; letter-spacing: -.02em; margin-top: var(--space-6); }
.hero__title .hl { color: var(--color-flame); }
.hero__lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; margin-top: var(--space-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-10); font-size: var(--text-sm); color: var(--color-text-muted); }
.hero__trust strong { color: var(--color-text); font-family: var(--font-display); }

/* ---------- SECTIONS ---------- */
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); position: relative; }
.section--dark { background: var(--color-dark); color: #e8eaee; }
.section__head { max-width: 720px; margin-bottom: var(--space-12); }
.eyebrow { display: inline-block; font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-pipe); margin-bottom: var(--space-3); }
.eyebrow--light { color: var(--color-flame); }
.section__title { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -.015em; }

/* ---------- SERVICES ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.svc-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  position: relative; overflow: hidden;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.svc-card__icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--color-surface-offset); color: var(--color-primary); margin-bottom: var(--space-5); }
.svc-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.svc-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.svc-card__tag { display: inline-block; margin-top: var(--space-4); font-size: var(--text-xs); font-weight: 600; color: var(--color-flame); }
.svc-card--feature { grid-column: span 1; background: linear-gradient(155deg, var(--color-primary), var(--color-primary-active)); color: #fff; border: none; }
.svc-card--feature .svc-card__icon { background: rgba(255,255,255,.16); color: #fff; }
.svc-card--feature p { color: rgba(255,255,255,.85); }
.svc-card--feature .svc-card__tag { color: #ffd9b8; }

@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- WHY ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-10) var(--space-12); }
.why-item__num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-flame); font-weight: 700; }
.why-item h3 { font-size: var(--text-lg); margin: var(--space-2) 0; }
.why-item p { color: #aab1bd; font-size: var(--text-sm); }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ---------- REVIEWS ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.rev-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); }
.rev-card__stars { color: var(--color-flame); letter-spacing: 2px; margin-bottom: var(--space-4); }
.rev-card blockquote { font-size: var(--text-base); line-height: 1.55; }
.rev-card figcaption { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 600; }
@media (max-width: 900px) { .rev-grid { grid-template-columns: 1fr; } }

/* ---------- BOOKING ---------- */
.section--book { background: var(--color-surface-offset); }
.book__layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.book__pitch p { color: var(--color-text-muted); margin-top: var(--space-4); max-width: 46ch; }
.book__perks { margin-top: var(--space-6); display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text); }
.book__or { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.book__or span { font-size: var(--text-sm); color: var(--color-text-muted); }

.book__form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-md); }
.field { margin-bottom: var(--space-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: var(--color-surface-2); font-size: var(--text-sm);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31,111,255,.15); }
.field textarea { resize: vertical; }
.book__fineprint { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); text-align: center; }
.book__success { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); font-size: var(--text-sm); }
.book__success a { color: var(--color-primary); font-weight: 600; }

@media (max-width: 880px) { .book__layout { grid-template-columns: 1fr; gap: var(--space-10); } }

/* ---------- FOOTER ---------- */
.footer { background: var(--color-dark); color: #aab1bd; padding-top: var(--space-16); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-10); padding-bottom: var(--space-12); }
.footer__brand .logo__text { color: #fff; }
.footer__brand p { margin-top: var(--space-3); font-size: var(--text-sm); max-width: 36ch; }
.footer__col h4 { font-family: var(--font-body); color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-4); }
.footer__col a, .footer__col span { display: block; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); padding-block: var(--space-6); border-top: 1px solid rgba(255,255,255,.08); font-size: var(--text-xs); }
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- STICKY CALL BAR (mobile) ---------- */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: none; gap: var(--space-3); padding: var(--space-3);
  background: color-mix(in oklab, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--color-border);
}
.callbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-full); font-weight: 700; font-size: var(--text-sm); }
.callbar__call { background: var(--color-flame); color: #fff; }
.callbar__book { background: var(--color-primary); color: #fff; }
@media (max-width: 860px) { .callbar { display: flex; } body { padding-bottom: 76px; } }
