/* ==========================================================================
   A & A Painting — landing page
   ========================================================================== */

/* ---------- Theme tokens ----------
   Light is the default. Dark applies when the visitor picks it with the
   theme button (data-theme="dark"), or when their system is set to dark and
   they haven't picked either. Keep the two dark blocks below identical.
   If you change --paper in either theme, update PAINT in theme.js too. */
   :root {
    color-scheme: light;
  
    /* Brand constants (same in both themes) */
    --navy: #0E4466;
    --navy-900: #082C44;
    --navy-700: #13557E;
    --orange: #F28C1B;
    --orange-600: #DB7A0C;
  
    /* Surfaces */
    --paper: #FBFAF7;
    --tint: #F3F0EA;
    --surface: #FFFFFF;
    --field: #FBFAF7;
    --line: #E4E0D8;
    --header-bg: rgba(251, 250, 247, .88);
    --callbar-bg: rgba(255, 255, 255, .96);
    --band-bg: #082C44;
    --deep: #082C44;              /* top bar + footer */
  
    /* Text */
    --ink: #14212B;
    --ink-2: #4A5863;             /* 7.0:1 on paper */
    --muted: #69747D;             /* 4.6:1 — placeholders */
    --head: #082C44;
    --brand: #0E4466;             /* brand-coloured text, links, icons */
    --accent-text: #A0550A;       /* orange for small text on light (≥4.8:1) */
  
    /* Fills */
    --brand-soft: rgba(14, 68, 102, .08);
    --brand-line: rgba(14, 68, 102, .22);
    --primary: #0E4466;
    --primary-hover: #13557E;
    --orange-soft: #FEF3E6;
    --check-bg: #0E4466;
  
    /* States */
    --invalid: #C8412B;
    --invalid-bg: #FFF6F4;
    --error: #B23A25;
    --ok: #1E7A4B;
  
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230E4466' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  
    --shadow-sm: 0 1px 2px rgba(8, 44, 68, .06), 0 2px 8px rgba(8, 44, 68, .05);
    --shadow: 0 10px 30px -10px rgba(8, 44, 68, .22);
    --shadow-lg: 0 30px 60px -20px rgba(8, 44, 68, .35);
  
    /* Theme-toggle icon + header logo backing */
    --moon: block;
    --sun: none;
    --logo-bg: transparent;
    --logo-pad: 0;
  
    /* Type & layout */
    --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
    --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  
    --radius: 14px;
    --radius-lg: 22px;
  
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 112px);
    --head-gap: clamp(36px, 5vw, 56px);
    --drip-h: calc(max(100vw, 900px) * 260 / 1440);  /* keeps the drip SVG in proportion */
  }
  
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --paper: #1A2733;
      --tint: #1F2E3B;
      --surface: #243545;
      --field: #1C2A37;
      --line: #35495C;
      --header-bg: rgba(26, 39, 51, .86);
      --callbar-bg: rgba(26, 39, 51, .95);
      --band-bg: #0E4466;
      --deep: #131E28;
      --ink: #EEF2F5;
      --ink-2: #B8C4CE;
      --muted: #95A3AF;
      --head: #F7F9FB;
      --brand: #9ACDEF;
      --accent-text: #F7A854;
      --brand-soft: rgba(154, 205, 239, .13);
      --brand-line: rgba(154, 205, 239, .32);
      --primary: #2474A8;
      --primary-hover: #2E86BF;
      --orange-soft: rgba(242, 140, 27, .16);
      --check-bg: #2474A8;
      --invalid: #E0634D;
      --invalid-bg: #45231F;
      --error: #F2917F;
      --ok: #63C995;
      --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238CC4EA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 2px 8px rgba(0, 0, 0, .18);
      --shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
      --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .55);
      --moon: none;
      --sun: block;
      --logo-bg: #fff;
      --logo-pad: 4px;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #1A2733;
    --tint: #1F2E3B;
    --surface: #243545;
    --field: #1C2A37;
    --line: #35495C;
    --header-bg: rgba(26, 39, 51, .86);
    --callbar-bg: rgba(26, 39, 51, .95);
    --band-bg: #0E4466;
    --deep: #131E28;
    --ink: #EEF2F5;
    --ink-2: #B8C4CE;
    --muted: #95A3AF;
    --head: #F7F9FB;
    --brand: #9ACDEF;
    --accent-text: #F7A854;
    --brand-soft: rgba(154, 205, 239, .13);
    --brand-line: rgba(154, 205, 239, .32);
    --primary: #2474A8;
    --primary-hover: #2E86BF;
    --orange-soft: rgba(242, 140, 27, .16);
    --check-bg: #2474A8;
    --invalid: #E0634D;
    --invalid-bg: #45231F;
    --error: #F2917F;
    --ok: #63C995;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238CC4EA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 2px 8px rgba(0, 0, 0, .18);
    --shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .55);
    --moon: none;
    --sun: block;
    --logo-bg: #fff;
    --logo-pad: 4px;
  }
  
  /* ---------- Base ---------- */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
  }
  img, svg { max-width: 100%; display: block; }
  [hidden] { display: none !important; }
  a { color: inherit; }
  h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0; color: var(--head); letter-spacing: -.02em; }
  h1, h2, h3 { text-wrap: balance; }
  h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; }
  h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
  p { margin: 0; }
  p, li { text-wrap: pretty; }
  button { font: inherit; cursor: pointer; }
  
  .wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
  .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  
  .skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
  .skip:focus { left: 8px; }
  .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  
  :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
    text-decoration: none; white-space: nowrap;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .btn--sm { padding: 9px 18px; font-size: .95rem; }
  .btn--lg { padding: 16px 28px; font-size: 1.05rem; }
  .btn--block { width: 100%; }
  /* Bright brand orange with white text (a faint shadow helps the letters stand out) */
  .btn--accent { background: var(--orange); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .18); box-shadow: 0 8px 20px -8px rgba(242, 140, 27, .7); }
  .btn--accent:hover { background: var(--orange-600); }
  .btn--primary { background: var(--primary); color: #fff; }
  .btn--primary:hover { background: var(--primary-hover); }
  .btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand-line); }
  .btn--ghost:hover { border-color: var(--brand); background: var(--surface); }
  .btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
  .btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
  .btn .ic { width: 18px; height: 18px; }
  
  /* ---------- Top bar & header ---------- */
  .topbar { background: var(--deep); color: rgba(255, 255, 255, .84); font-size: .86rem; }
  .topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
  .topbar__links { display: flex; gap: 22px; }
  .topbar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: color .15s; }
  .topbar a:hover { color: var(--orange); }
  .topbar .ic { width: 15px; height: 15px; }
  
  .header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
  }
  .header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(8, 44, 68, .35); }
  .header__inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }
  
  .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
  .header .brand { margin-right: auto; }
  .header .brand img { background: var(--logo-bg); padding: var(--logo-pad); border-radius: 10px; }
  .brand__text { display: flex; flex-direction: column; line-height: 1.05; }
  .brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--brand); letter-spacing: -.01em; text-transform: uppercase; }
  .brand__tag { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-top: 3px; }
  .brand--light .brand__name { color: #fff; }
  .brand__badge { background: #fff; border-radius: 12px; padding: 6px; display: inline-flex; }
  
  .nav { display: flex; align-items: center; gap: 30px; }
  .nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-2); position: relative; transition: color .15s; }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
  .nav a:not(.btn):hover { color: var(--brand); }
  .nav a:not(.btn):hover::after { transform: scaleX(1); }
  
  /* Theme toggle */
  .theme-toggle {
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--brand-line); background: transparent; color: var(--brand);
    transition: background-color .15s, border-color .15s, transform .25s ease;
  }
  .theme-toggle:hover { background: var(--brand-soft); border-color: var(--brand); transform: rotate(-12deg); }
  .theme-toggle .ic { grid-area: 1 / 1; width: 20px; height: 20px; }
  .theme-toggle__moon { display: var(--moon); }
  .theme-toggle__sun { display: var(--sun); }
  
  .menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; border-radius: 10px; }
  .menu-toggle span { display: block; height: 2px; background: var(--brand); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  /* ---------- Eyebrow ---------- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-text); margin-bottom: 14px;
  }
  .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
  .eyebrow .dot { display: none; }
  .eyebrow--light { color: var(--orange); }
  
  /* ---------- Hero ---------- */
  .hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
  .hero::before {
    content: ""; position: absolute; inset: auto -10% -40% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(closest-side, rgba(242, 140, 27, .14), transparent 70%);
    pointer-events: none;
  }
  .hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
  .hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
  .hero h1 .stroke { position: relative; color: var(--brand); white-space: nowrap; z-index: 0; }
  .hero h1 .stroke::after {
    content: ""; position: absolute; z-index: -1; left: -.1em; right: -.1em; bottom: -.06em; height: .26em;
    background: var(--orange); opacity: .9; border-radius: .2em .5em .3em .6em;
    transform-origin: left center; transform: scaleX(0) skewX(-8deg);
    animation: paint-stroke .9s .35s cubic-bezier(.65, .05, .2, 1) forwards;
  }
  @keyframes paint-stroke { to { transform: scaleX(1) skewX(-8deg); } }
  
  .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 36em; margin-top: 24px; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
  .hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 30px 0 0; font-size: .95rem; color: var(--ink-2); }
  .hero__points li { display: inline-flex; align-items: center; gap: 8px; }
  .hero__points .ic { width: 18px; height: 18px; color: #fff; background: var(--check-bg); border-radius: 50%; padding: 3px; stroke-width: 3; }
  
  /* Paint chip fan */
  .hero__art { position: relative; display: grid; place-items: start center; min-height: 480px; padding-top: 10px; }
  .swatches { position: relative; width: 150px; height: 340px; }
  .chip {
    position: absolute; inset: 0;
    background: var(--surface); border-radius: 14px; padding: 12px 14px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; justify-content: flex-start;
    transform-origin: 50% 100%;
    transform: rotate(0deg);
    animation: fan .9s var(--d) cubic-bezier(.3, 1.3, .5, 1) forwards;
  }
  .chip::before {
    content: ""; position: absolute; left: 10px; right: 10px; top: 58px; bottom: 10px;
    background: var(--c); border-radius: 9px;
  }
  .chip span { position: relative; max-width: 4.6em; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink); line-height: 1.15; }
  .chip em { position: relative; font-style: normal; font-size: .68rem; letter-spacing: .1em; color: var(--ink-2); }
  @keyframes fan { to { transform: rotate(var(--r)); } }
  
  .hero__badge {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); white-space: nowrap;
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border-radius: 16px; padding: 14px 20px 14px 14px;
    box-shadow: var(--shadow-lg);
    animation: fade .7s .9s backwards ease-out;
  }
  @keyframes fade { from { opacity: 0; } }
  .hero__badge .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--orange-soft); color: var(--accent-text); }
  .hero__badge strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--head); line-height: 1.1; }
  .hero__badge span { font-size: .88rem; color: var(--ink-2); }
  
  /* ---------- Trust strip ---------- */
  .strip { background: var(--surface); border-block: 1px solid var(--line); }
  .strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
  .strip__item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
  .strip__item + .strip__item { border-left: 1px solid var(--line); }
  .strip__item .ic { width: 28px; height: 28px; color: var(--orange); }
  .strip__item strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--head); line-height: 1.2; }
  .strip__item span { font-size: .9rem; color: var(--ink-2); }

  /* ---------- Sections ---------- */
  .section { padding-block: var(--section); }
  .section--tint { background: var(--tint); }
  .section__head { max-width: 760px; margin: 0 auto var(--head-gap); text-align: center; }
  .section__head .eyebrow { justify-content: center; }
  .section__head--left { text-align: left; margin: 0; }
  .section__head--left .eyebrow { justify-content: flex-start; }
  .section__sub { color: var(--ink-2); margin: 16px auto 0; font-size: 1.08rem; max-width: 60ch; }
  .section__head--left .section__sub { margin-inline: 0; }
  .section__sub a { color: var(--brand); font-weight: 700; }
  
  /* ---------- Service categories ---------- */
  .cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .cat {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px 22px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .cat > .ic { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; transition: background-color .2s, color .2s; }
  .cat h3 { font-size: 1.2rem; }
  .cat p { color: var(--ink-2); font-size: .94rem; margin-top: 8px; line-height: 1.55; }
  .cat ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
  .cat li { display: flex; align-items: center; gap: 8px; }
  .cat li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
  .cat__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--accent-text); }
  .cat__cta .ic { width: 16px; height: 16px; transition: transform .2s; }
  .cat:hover, .cat:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
  .cat:hover > .ic, .cat:focus-visible > .ic { background: var(--orange); color: #fff; }
  .cat:hover .cat__cta .ic { transform: translateX(4px); }
  
  .all-services { margin-top: 28px; border-top: 1px solid var(--line); }
  .all-services > summary {
    list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px;
    padding: 22px 0 6px; font-family: var(--font-head); font-weight: 600; color: var(--brand);
  }
  .all-services > summary::-webkit-details-marker { display: none; }
  .all-services > summary .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--brand-soft); transition: transform .25s; }
  .all-services[open] > summary .ic { transform: rotate(45deg); }
  .all-services__body { padding-top: 24px; }
  
  .opt { font-weight: 400; font-size: .8rem; color: var(--ink-2); margin-left: 4px; }
  
  /* ---------- Tabs ---------- */
  .tabs {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    margin: 0 auto 36px; padding: 6px; background: var(--tint); border-radius: 999px; width: fit-content; max-width: 100%;
  }
  .section--tint .tabs { background: var(--surface); }
  .tab {
    border: 0; background: transparent; color: var(--ink-2);
    padding: 10px 18px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background-color .15s, color .15s, box-shadow .15s;
  }
  .tab span { font-size: .75rem; font-variant-numeric: tabular-nums; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 999px; }
  .tab:hover { color: var(--brand); }
  .tab.is-active { background: var(--surface); color: var(--head); box-shadow: var(--shadow-sm); }
  .tab.is-active span { background: var(--orange); color: var(--navy-900); }
  
  /* ---------- Service cards ---------- */
  .services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
  .svc {
    position: relative; text-align: left;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: card-in .4s backwards ease-out;
  }
  .svc[hidden] { display: none; }
  .svc .ic {
    width: 46px; height: 46px; padding: 11px; border-radius: 12px;
    background: var(--brand-soft); color: var(--brand);
    margin-bottom: 18px; transition: background-color .2s, color .2s;
  }
  .svc h3 { margin-bottom: 6px; }
  .svc p { font-size: .93rem; color: var(--ink-2); line-height: 1.55; }
  .svc::after {
    content: "Get a quote →"; position: absolute; right: 18px; top: 26px;
    font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--accent-text);
    opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
  }
  .svc:hover, .svc:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
  .svc:hover .ic, .svc:focus-visible .ic { background: var(--orange); color: var(--navy-900); }
  .svc:hover::after, .svc:focus-visible::after { opacity: 1; transform: none; }
  @keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
  
  .services__cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
    margin-top: 44px; color: var(--ink-2);
  }
  
  /* ---------- Commercial band ---------- */
  .band {
    position: relative; overflow: hidden;
    background: var(--band-bg); color: rgba(255, 255, 255, .86);
    padding-block: var(--section);
  }
  .band::before {
    content: ""; position: absolute; top: -30%; right: -12%; width: 620px; height: 620px; border-radius: 50%;
    border: 90px solid rgba(255, 255, 255, .03); pointer-events: none;
  }
  .band__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
  .band h2 { color: #fff; }
  .band__lead { margin: 22px 0 34px; font-size: 1.1rem; max-width: 34em; }
  .band__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .band__list li {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px 22px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
    transition: background-color .2s, border-color .2s;
  }
  .band__list li:hover { background: rgba(255, 255, 255, .08); border-color: rgba(242, 140, 27, .4); }
  .band__list .ic { width: 42px; height: 42px; padding: 10px; border-radius: 11px; background: var(--orange); color: var(--navy-900); }
  .band__list strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; margin-bottom: 2px; }
  .band__list span { font-size: .95rem; color: rgba(255, 255, 255, .78); }
  
  /* ---------- Paint drips under the Commercial section ----------
     All paint sits in one "goo" filter group, so shapes that touch melt into
     each other: drips flare out of the lip and bulbs fuse to their necks.
     Each drip starts as a short stub (--s0), oozes down once with its own
     length, speed (--dur) and delay (--od), then hangs still. No looping,
     so there's no constant repainting and no "falling mess" on the page. */
  #drywall { position: relative; padding-top: calc(var(--section) + var(--drip-h) * .35); }
  #drywall > .wrap { position: relative; z-index: 1; }   /* text stays above the drips */
  .drips {
    position: absolute; top: -1px; left: 0; right: 0; height: var(--drip-h);
    overflow: hidden; pointer-events: none;
  }
  /* Never narrower than 900px, so the drips keep their shape on phones */
  .drips__inner { position: absolute; top: 0; bottom: 0; left: 50%; width: max(100%, 900px); transform: translateX(-50%); }
  .drips svg { width: 100%; height: 100%; overflow: visible; }
  .drips .paint { fill: var(--band-bg); }

  /* Wet highlights (blurred by the filter, so they read as soft sheen) */
  .drips .sheen { fill: none; stroke: #fff; stroke-width: 2; opacity: .08; }
  .drips .gloss { fill: #fff; opacity: .22; }
  .drips .gloss-line { fill: none; stroke: #fff; stroke-linecap: round; opacity: .13; }

  .drip__body, .drip__bulb { transform-box: fill-box; }
  .drip__body { transform-origin: 50% 0; animation: ooze-body var(--dur) var(--od) both; }
  .drip__bulb { transform-origin: 50% 25%; animation: ooze-bulb var(--dur) var(--od) both; }

  /* Slow start, gravity takes over, a small overshoot, then it settles */
  @keyframes ooze-body {
    0%   { transform: scaleY(var(--s0)); animation-timing-function: cubic-bezier(.55, 0, .75, .4); }
    78%  { transform: scaleY(1.03); animation-timing-function: cubic-bezier(.25, .6, .35, 1); }
    100% { transform: scaleY(1); }
  }
  @keyframes ooze-bulb {
    0%   { transform: translateY(var(--b0)) scale(.8); animation-timing-function: cubic-bezier(.55, 0, .75, .4); }
    78%  { transform: translateY(2px) scale(1.06, 1.12); animation-timing-function: cubic-bezier(.25, .6, .35, 1); }
    100% { transform: translateY(0) scale(1); }
  }
  .drips.is-waiting .drip__body, .drips.is-waiting .drip__bulb { animation-play-state: paused; }

  /* ---------- Drywall split ---------- */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
  .split__copy > p:not(.eyebrow) { color: var(--ink-2); margin-top: 20px; font-size: 1.08rem; }
  .ticks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
  .ticks .ic { width: 22px; height: 22px; color: var(--navy-900); background: var(--orange); border-radius: 50%; padding: 4px; stroke-width: 3; margin-top: 1px; }
  
  .split__art { margin: 0; }
  .split__photo {
    width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--tint);
  }
  .split__caption { margin-top: 14px; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
  
  /* ---------- Steps ---------- */
  .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
  .step {
    position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px 24px 30px;
    border: 1px solid var(--line);
  }
  .step__num {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums;
    color: var(--brand); background: var(--orange-soft);
    box-shadow: inset 0 0 0 2px rgba(242, 140, 27, .45);
    margin-bottom: 20px;
  }
  .step h3 { margin-bottom: 8px; font-size: 1.15rem; }
  .step p { color: var(--ink-2); font-size: .95rem; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 52px; right: -20px; width: 20px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 5px, transparent 5px 9px);
  }
  
  /* ---------- Service areas ---------- */
  .areas { margin-top: 28px; }
  .areas__label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--head); display: flex; align-items: center; gap: 8px; }
  .areas__label .ic { width: 18px; height: 18px; color: var(--accent-text); }
  .areas__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .areas__list li {
    padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500;
    background: var(--brand-soft); color: var(--brand);
  }
  
  /* ---------- Estimate ---------- */
  .estimate { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
  .estimate__info > p:not(.eyebrow) { color: var(--ink-2); margin-top: 18px; font-size: 1.08rem; }
  .contact-cards { display: grid; gap: 12px; margin-top: 30px; }
  .contact-card {
    display: flex; align-items: center; gap: 16px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    min-width: 0;
  }
  .contact-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
  .contact-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: #fff; flex: none; }
  .contact-card small { display: block; color: var(--ink-2); font-size: .82rem; }
  .contact-card strong { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--head); overflow-wrap: anywhere; }
  
  .form {
    background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px);
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    display: grid; gap: 18px;
    border-top: 5px solid var(--orange);
  }
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .form label { display: grid; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--head); }
  .form input, .form select, .form textarea {
    font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
    width: 100%; padding: 13px 14px; border-radius: 10px;
    border: 1.5px solid var(--line); background: var(--field);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
  }
  .form ::placeholder { color: var(--muted); opacity: 1; }
  .form select {
    appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: var(--select-arrow);
    background-repeat: no-repeat; background-position: right 14px center;
  }
  .form textarea { resize: vertical; min-height: 110px; }
  .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); background-color: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
  .form .is-invalid { border-color: var(--invalid); background-color: var(--invalid-bg); }
  .form__extra {
    display: grid; gap: 18px;
    padding: 20px; border-radius: 14px; background: var(--orange-soft);
    border: 1px solid rgba(242, 140, 27, .25);
    animation: extra-in .35s ease-out;
  }
  @keyframes extra-in { from { opacity: 0; transform: translateY(-6px); } }
  .form__extra select { background-color: var(--surface); }
  .form select:invalid { color: var(--muted); } /* placeholder showing */
  .form select option { color: var(--ink); background: var(--surface); }
  .form select option:disabled { color: var(--muted); }
  .form__extra select.is-invalid { background-color: var(--invalid-bg); }
  .form__note { font-size: .85rem; color: var(--ink-2); text-align: center; }
  .form__fine { font-size: .8rem; color: var(--ink-2); text-align: center; margin-top: -8px; }
  .form__fine a { color: var(--brand); font-weight: 600; }
  .footer__legal { display: inline-flex; gap: 22px; }
  .form__note.is-error { color: var(--error); font-weight: 600; }
  .form__note.is-ok { color: var(--ok); font-weight: 600; }
  .form select.is-flash { animation: flash 1.2s ease; }
  @keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 140, 27, 0); } 30% { box-shadow: 0 0 0 6px rgba(242, 140, 27, .35); border-color: var(--orange); } }
  
  /* ---------- WhatsApp: floating button + contact card ---------- */
  .contact-card__ic--wa { background: #128C7E; }
  .wa-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 55;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 8px 18px 8px 8px; border-radius: 999px; text-decoration: none;
    background: var(--surface); color: var(--head); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(14px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, box-shadow .2s;
  }
  .wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .wa-fab:hover { transform: translateY(-3px); }
  .wa-fab__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #128C7E; color: #fff; flex: none; }
  .wa-fab__icon .ic { width: 24px; height: 24px; }
  .wa-fab__text { display: grid; line-height: 1.2; }
  .wa-fab__text strong { font-family: var(--font-head); font-size: .98rem; }
  .wa-fab__text small { font-size: .78rem; color: var(--ink-2); }
  
  /* ---------- FAQ ---------- */
  .faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
  .faq__list { display: grid; gap: 12px; }
  .faq details { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
  .faq details[open] { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
  .faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--head);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--tint); color: var(--brand); transition: transform .25s, background-color .2s, color .2s; }
  .faq details[open] summary .ic { transform: rotate(45deg); background: var(--orange); color: var(--navy-900); }
  .faq details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 62ch; }
  
  /* ---------- Final CTA ---------- */
  .final {
    position: relative; overflow: hidden;
    background: var(--navy); background-image: linear-gradient(115deg, var(--navy) 0%, var(--navy-700) 100%);
    padding-block: clamp(56px, 7vw, 88px);
  }
  .final::after {   /* torn orange paint edge above the footer */
    content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 14px;
    background: var(--orange);
    clip-path: polygon(0 60%, 8% 20%, 17% 55%, 29% 10%, 41% 50%, 55% 15%, 68% 60%, 80% 25%, 91% 55%, 100% 20%, 100% 100%, 0 100%);
  }
  .final__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
  .final h2 { color: #fff; max-width: 16em; }
  .final__actions { display: flex; flex-wrap: wrap; gap: 14px; }

  /* ---------- Footer ---------- */
  .footer { background: var(--deep); color: rgba(255, 255, 255, .74); padding-top: 64px; font-size: .95rem; }
  .footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
  .footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
  .footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
  .footer a { text-decoration: none; transition: color .15s; overflow-wrap: anywhere; }
  .footer a:hover { color: var(--orange); }
  .footer__blurb { margin-top: 18px; max-width: 26em; }
  .footer__contact li, .footer__contact a { display: flex; align-items: flex-start; gap: 9px; }
  .footer__contact .ic { width: 16px; height: 16px; margin-top: 3px; }
  .footer__wa:hover { color: #25D366; } /* WhatsApp green, so the action reads at a glance */
  .footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .85rem;
  }
  /* Pages with only the bottom row don't need the top padding or divider */
  .footer > .footer__bottom:first-child { border-top: 0; }
  .footer:has(> .footer__bottom:first-child) { padding-top: 0; }
  
  /* ---------- Standalone pages (privacy, 404) ---------- */
  .prose { max-width: 70ch; }
  .prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
  .prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; margin-top: 48px; }
  .prose p { margin-top: 16px; color: var(--ink-2); }
  .prose .lead { margin-top: 24px; }
  .prose strong { color: var(--ink); }
  .prose a:not(.btn) { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
  .prose a:not(.btn):hover { color: var(--accent-text); }
  .prose__meta { font-size: .9rem; color: var(--ink-2); margin-top: 12px; }
  .prose__back { margin-top: 52px; }
  
  .notfound__inner { max-width: 62ch; }
  .notfound h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
  .notfound .stroke { position: relative; color: var(--brand); z-index: 0; }
  .notfound .stroke::after {
    content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: -.04em; height: .22em;
    background: var(--orange); opacity: .9; border-radius: .2em .5em .3em .6em;
    transform-origin: left center; transform: scaleX(0) skewX(-8deg);
    animation: paint-stroke .9s .35s cubic-bezier(.65, .05, .2, 1) forwards;
  }
  .notfound__links {
    display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0;
    margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: .95rem;
  }
  .notfound__links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
  .notfound__links a:hover { color: var(--brand); text-decoration: underline; }
  
  /* ---------- Theme switch: brush painting the screen ---------- */
  .paint-cover {
    position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9998;
    pointer-events: none; transition: opacity .5s ease;
  }
  .paint-cover.is-lifting { opacity: 0; }
  .paint-brush {
    position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
    width: var(--bw); height: calc(var(--bw) * 1.6);
    margin: calc(var(--bw) * -1.6) 0 0 calc(var(--bw) / -2);  /* bristle tip sits on the point */
    transform-origin: 50% 100%;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28));
    transition: opacity .3s ease;
    will-change: transform;
  }
  .paint-brush svg { width: 100%; height: 100%; overflow: visible; }
  .paint-brush.is-leaving { opacity: 0; }
  
  /* ---------- Mobile call bar ---------- */
  .callbar { display: none; }
  
  /* ---------- Reveal on scroll ---------- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
  
  /* ==========================================================================
     Responsive
     ========================================================================== */
  @media (max-width: 1080px) {
    .nav { gap: 22px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step:nth-child(2)::after { display: none; }
    .cats { grid-template-columns: repeat(2, 1fr); }
  }
  
  @media (max-width: 920px) {
    .header__inner { gap: 8px; }
    .menu-toggle { display: block; }
    .nav {
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; align-items: stretch; gap: 0;
      background: var(--paper); border-bottom: 1px solid var(--line);
      padding: 8px var(--gutter) 20px;
      box-shadow: 0 20px 30px -20px rgba(8, 44, 68, .3);
      transform: translateY(-8px); opacity: 0; visibility: hidden;
      transition: transform .2s, opacity .2s, visibility .2s;
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav a:not(.btn)::after { display: none; }
    .nav__cta { margin-top: 16px; }
  
    /* Privacy & 404 pages: single button, no menu — keep it visible inline */
    .nav--simple {
      position: static; flex-direction: row; padding: 0; background: none; border: 0;
      box-shadow: none; transform: none; opacity: 1; visibility: visible;
    }
  
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { min-height: 380px; }
    .strip__grid { grid-template-columns: repeat(2, 1fr); }
    .strip__item:nth-child(3) { border-left: 0; }
    .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .band__grid, .split, .estimate, .faq { grid-template-columns: 1fr; }
    .split__art { order: 2; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
  }
  
  @media (max-width: 640px) {
    body { font-size: 16px; padding-bottom: 68px; }
    body:not(:has(.callbar)) { padding-bottom: 0; }
    .topbar__note { display: none; }
    .topbar__inner { justify-content: center; }
    .topbar__links { gap: 16px; font-size: .8rem; }
    .topbar__links a:last-child { display: none; }
    .header__inner { min-height: 66px; }
    .brand img { width: 38px; height: 38px; }
    .brand__name { font-size: 1.1rem; }
    .nav--simple .btn { padding: 8px 14px; font-size: .9rem; }
    .brand__name { white-space: nowrap; }
    .hide-sm { display: none; }
    .tabs { border-radius: 18px; justify-content: flex-start; }
    .tab { padding: 8px 12px; font-size: .88rem; }
    .services { grid-template-columns: 1fr; gap: 12px; }
    .cats { grid-template-columns: 1fr; gap: 12px; }
    .hero h1 .stroke { white-space: normal; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__grid { gap: 28px; }
    .hero__art { min-height: 360px; }
    .swatches { width: 112px; height: 250px; }
    .chip { padding: 9px 10px; }
    .chip::before { top: 50px; }
    .chip span { font-size: .7rem; }
    .chip em { font-size: .6rem; }
    .svc { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
    .svc .ic { grid-row: span 2; margin-bottom: 0; }
    .svc::after { display: none; }
    .ticks { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step::after { display: none; }
    .form__row { grid-template-columns: 1fr; }
    .form__extra { padding: 16px 14px; }
    .strip__item { padding: 18px 12px; gap: 10px; }
    .strip__item .ic { width: 24px; height: 24px; }
    .final__inner { flex-direction: column; align-items: flex-start; }
    .final__actions, .final__actions .btn { width: 100%; }
    .footer__grid { grid-template-columns: 1fr; }
    .wa-fab { display: none; }
  
    .callbar {
      display: grid; grid-template-columns: 1fr auto 1.3fr; gap: 8px;
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
      padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
      background: var(--callbar-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border-top: 1px solid var(--line);
    }
    .callbar a {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 13px; border-radius: 12px; text-decoration: none;
      font-family: var(--font-head); font-weight: 600;
    }
    .callbar__call { background: var(--primary); color: #fff; }
    .callbar__wa { background: #128C7E; color: #fff; width: 52px; padding: 13px 0 !important; }
    .callbar__wa .ic { width: 22px !important; height: 22px !important; }
    .callbar__quote { background: var(--orange); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .18); }
    .callbar .ic { width: 18px; height: 18px; }
  }
  
  /* Privacy & 404 on small phones: name + button + toggle need the room */
  @media (max-width: 480px) {
    .header:has(.nav--simple) .brand img,
    .header:has(.nav--simple) .brand__tag { display: none; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .drips * { animation: none !important; }
  }