/* ==========================================================================
   Hoffman Residential Cleaning — stylesheet
   Design blend: Molly Maid (trust + guarantee + testimonials),
   The Cleaning Authority (hero dual-CTA + service cards + icon row),
   Homeaglow (transparent pricing table + sizing helper + FAQ).
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------
   Every brand colour on the page resolves from this block. The palette
   picker swaps these six values and the whole site follows — hero overlay,
   logo, buttons, cards, and the Atlas panel included.
   ------------------------------------------------------------------------ */
/* HARBOR is the chosen palette — Hoffman selected it Aug 8 2026. */
:root,
:root[data-palette="harbor"] {
  --brand:          #17456f;
  --brand-dark:     #0f2f4d;
  --brand-dark-rgb: 15, 47, 77;
  --brand-light:    #1e5a90;
  --brand-wash:     #eef3f8;
  --mint:           #a8cae8;   /* soft light accent on dark backgrounds */
  --gold:           #c9a227;
  --sand:           #f4f2ed;
  --ink:            #101a24;
}
:root[data-palette="forest"] {
  --brand: #0f6b52; --brand-dark: #0a4d3b; --brand-dark-rgb: 10, 77, 59;
  --brand-light: #14876a; --brand-wash: #eef6f2; --mint: #9fd9c4;
  --gold: #c08a34; --sand: #f6f2ea; --ink: #10211c;
}
:root[data-palette="lagoon"] {
  --brand: #0d6a72; --brand-dark: #084d54; --brand-dark-rgb: 8, 77, 84;
  --brand-light: #12868f; --brand-wash: #ecf6f7; --mint: #96d8dd;
  --gold: #cf9540; --sand: #f4f2ec; --ink: #0d2124;
}
:root[data-palette="terracotta"] {
  --brand: #a3502f; --brand-dark: #7a3a21; --brand-dark-rgb: 122, 58, 33;
  --brand-light: #c06239; --brand-wash: #fbf0ea; --mint: #f0bfa4;
  --gold: #b8862f; --sand: #f8f2ea; --ink: #2a1a13;
}
:root[data-palette="sage"] {
  --brand: #5b7a63; --brand-dark: #425a49; --brand-dark-rgb: 66, 90, 73;
  --brand-light: #73957c; --brand-wash: #eff4f0; --mint: #bcd6c2;
  --gold: #b38b4a; --sand: #f5f3ec; --ink: #1b2620;
}
:root[data-palette="plum"] {
  --brand: #6c3b63; --brand-dark: #4e2a48; --brand-dark-rgb: 78, 42, 72;
  --brand-light: #85497a; --brand-wash: #f5eef4; --mint: #d9b3d2;
  --gold: #c19a4b; --sand: #f6f1ee; --ink: #22161f;
}

:root {
  --body:         #43524d;
  --muted:        #6d7c77;
  --line:         #e2e8e5;
  --paper:        #ffffff;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 2px rgba(16,33,28,.06), 0 2px 8px rgba(16,33,28,.05);
  --shadow-md:    0 4px 12px rgba(16,33,28,.07), 0 12px 32px rgba(16,33,28,.08);
  --shadow-lg:    0 10px 24px rgba(16,33,28,.10), 0 30px 60px rgba(16,33,28,.12);

  --wrap:         1160px;
  --gutter:       clamp(20px, 5vw, 48px);
  --sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif:        "Georgia", "Iowan Old Style", "Times New Roman", serif;
}

/* --- 2. 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(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--sand { background: var(--sand); }
.section--wash { background: var(--brand-wash); }
.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;
}

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .85em;
}
.section-head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; max-width: 720px; }
.section-head p { font-size: 1.08rem; color: var(--muted); margin-bottom: 0; }

/* --- 3. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .92em 1.7em; border-radius: 999px; border: 2px solid transparent;
  font-size: 1rem; font-weight: 650; font-family: inherit; line-height: 1;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--onDark { background: #fff; color: var(--brand-dark); }
.btn--onDark:hover { background: var(--sand); }
.btn--outlineDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outlineDark:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--sm { padding: .7em 1.25em; font-size: .92rem; }
.btn--block { width: 100%; }

/* --- 4. Header ---------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
/* CSS beats the inline presentation attributes, so the mark follows the palette */
.brand__mark rect { fill: var(--brand); }
.brand__mark circle { fill: var(--mint); }
.brand__name { font-size: 1.06rem; font-weight: 750; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.brand__sub { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--body); font-weight: 550; font-size: .96rem; text-decoration: none; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 650; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--brand); text-decoration: none; }

.navToggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 11px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.navToggle span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; }
.navToggle span::before, .navToggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink);
  transition: transform .2s ease;
}
.navToggle span::before { top: -6px; } .navToggle span::after { top: 6px; }

/* --- 5. Hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--brand-dark); }
.hero__media { position: absolute; inset: 0; background: var(--brand-dark); }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: center 42%;
  filter: saturate(.8) contrast(1.04);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(var(--brand-dark-rgb),.94) 0%, rgba(var(--brand-dark-rgb),.86) 42%, rgba(var(--brand-dark-rgb),.55) 72%, rgba(var(--brand-dark-rgb),.35) 100%);
}
/* padding-block only — a `padding` shorthand here would wipe out the
   horizontal padding .wrap provides and push the hero off-screen on mobile. */
.hero__inner { position: relative; padding-block: clamp(64px, 9vw, 116px) clamp(48px, 6vw, 72px); }
.hero__copy { max-width: 620px; color: #fff; }
.hero__copy h1 { color: #fff; margin-bottom: .35em; }
.hero__copy .eyebrow { color: var(--mint); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.88); margin-bottom: 1.9em; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4em; }
.hero__note { font-size: .9rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: .5em; }

/* icon row — The Cleaning Authority pattern */
.heroIcons {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.16); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
}
.heroIcons__item { background: rgba(var(--brand-dark-rgb),.72); backdrop-filter: blur(6px); padding: 22px 18px; text-align: center; color: #fff; }
.heroIcons__item svg { width: 30px; height: 30px; margin: 0 auto 9px; stroke: var(--mint); }
.heroIcons__item strong { display: block; font-size: .95rem; font-weight: 650; }
.heroIcons__item span { font-size: .8rem; color: rgba(255,255,255,.68); }

/* --- 6. Trust bar — Molly Maid pattern ---------------------------------- */
.trustbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trustbar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 30px 0;
}
.trustbar__item { display: flex; align-items: flex-start; gap: 12px; }
.trustbar__item svg { width: 25px; height: 25px; flex: none; stroke: var(--brand); margin-top: 2px; }
.trustbar__item strong { display: block; color: var(--ink); font-size: .96rem; font-weight: 650; }
.trustbar__item span { font-size: .87rem; color: var(--muted); line-height: 1.45; }

/* --- 7. Service cards --------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Icon panel rather than stock photography — a consistent, deliberate header
   for all four cards. Drop Hoffman's own job photos in here when they exist:
   add <img> back inside .card__media and it will cover the panel. */
.card__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: flex; align-items: center; justify-content: center;
}
.card__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.22) 1px, transparent 0);
  background-size: 15px 15px; opacity: .6;
}
.card__media svg { position: relative; width: 46px; height: 46px; stroke: #fff; opacity: .95; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__price {
  display: inline-block; align-self: flex-start; background: var(--brand-wash); color: var(--brand-dark);
  font-size: .82rem; font-weight: 700; padding: .38em .8em; border-radius: 999px; margin-bottom: .85em;
}
.card__body p { font-size: .95rem; color: var(--muted); }
.card__list { list-style: none; margin: 0 0 1.3em; padding: 0; font-size: .92rem; }
.card__list li { position: relative; padding-left: 22px; margin-bottom: .45em; color: var(--body); }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 11px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.card__foot { margin-top: auto; }

/* --- 8. Estimator — Homeaglow sizing pattern ---------------------------- */
.estimator {
  display: grid; grid-template-columns: 1fr .95fr; gap: clamp(28px, 4vw, 56px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .9rem; font-weight: 650; color: var(--ink); margin-bottom: .5em; }
.field .hint { display: block; font-weight: 450; color: var(--muted); font-size: .84rem; margin-top: .2em; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: .82em 1em; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; }
textarea { resize: vertical; min-height: 112px; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: block; margin: 0; padding: .85em 1em; text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); font-size: .93rem; font-weight: 600;
  color: var(--body); transition: all .18s ease;
}
.choice input:checked + label { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-dark); }
.choice input:focus-visible + label { outline: 3px solid var(--brand-light); outline-offset: 2px; }

.estimate {
  background: var(--brand-dark); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 38px); display: flex; flex-direction: column; justify-content: center;
}
.estimate__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); font-weight: 700; }
.estimate__figure { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.05; margin: .18em 0 .1em; }
.estimate__unit { font-size: .95rem; color: rgba(255,255,255,.72); margin-bottom: 1.2em; }
.estimate__math {
  font-size: .88rem; color: rgba(255,255,255,.78); border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 1.1em; margin-bottom: 1.4em; line-height: 1.6;
}
.estimate__math strong { color: #fff; font-weight: 650; }
.estimate__disclaimer { font-size: .8rem; color: rgba(255,255,255,.6); margin: 1.1em 0 0; }

/* --- 9. Pricing tables -------------------------------------------------- */
.priceGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.priceCard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.priceCard h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .2em; }
.priceCard h3 svg { width: 22px; height: 22px; stroke: var(--brand); flex: none; }
.priceCard__meta { font-size: .87rem; color: var(--muted); margin-bottom: 1.4em; }
.rate { border-top: 1px solid var(--line); }
.rate__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: .78em 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.rate__row dt { color: var(--body); margin: 0; }
.rate__row dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
.rate__row dd small { display: block; font-weight: 450; font-size: .8rem; color: var(--muted); }
.priceCard__note { font-size: .85rem; color: var(--muted); margin: 1.3em 0 0; }
.priceCard__foot { margin-top: auto; padding-top: 1.5em; }

/* --- 10. How it works --------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 1.12rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: .35em; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* --- 11. Split / about -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(.85) contrast(1.03); }
.checklist { list-style: none; margin: 1.6em 0 2em; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: .9em; color: var(--body); }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-wash);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 9px; height: 5px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}

/* --- 12. Guarantee band ------------------------------------------------- */
.guarantee { background: var(--brand-dark); color: #fff; text-align: center; }
.guarantee h2 { color: #fff; }
.guarantee__inner { max-width: 720px; margin-inline: auto; }
.guarantee__seal {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 2px solid color-mix(in srgb, var(--mint) 55%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.guarantee__seal svg { width: 34px; height: 34px; stroke: var(--mint); }
.guarantee p { color: rgba(255,255,255,.85); font-size: 1.08rem; }

/* --- 13. Testimonials — Molly Maid carousel ----------------------------- */
.reviews { position: relative; }
.reviews__stage { overflow: hidden; }
.reviews__track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.review { flex: 0 0 100%; padding: 0 4px; }
.review__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); text-align: center; max-width: 780px; margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 18px; }
.stars svg { width: 20px; height: 20px; fill: var(--gold); }
.review__quote { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; color: var(--ink); margin-bottom: 1.2em; }
.review__who { font-weight: 650; color: var(--ink); font-size: .95rem; }
.review__meta { font-size: .86rem; color: var(--muted); }
.reviews__nav { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: all .2s ease; }
.dot[aria-selected="true"] { background: var(--brand); width: 26px; border-radius: 999px; }
.reviews__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.reviews__arrow:hover { border-color: var(--brand); color: var(--brand); }
.reviews__arrow svg { width: 17px; height: 17px; stroke: currentColor; }

/* --- 14. FAQ — Homeaglow accordion -------------------------------------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: 0; padding: 1.25em 44px 1.25em 0; text-align: left;
  font-family: inherit; font-size: 1.05rem; font-weight: 650; color: var(--ink); cursor: pointer;
  position: relative; line-height: 1.4;
}
.faq__q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s ease;
}
.faq__q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { display: none; padding: 0 44px 1.6em 0; color: var(--muted); font-size: .98rem; }
.faq__a.open { display: block; }
.faq__a p:last-child { margin-bottom: 0; }

/* --- 15. Contact / quote form ------------------------------------------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__aside .contactLine { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact__aside .contactLine svg { width: 22px; height: 22px; stroke: var(--brand); flex: none; margin-top: 3px; }
.contact__aside strong { display: block; color: var(--ink); font-size: .95rem; }
.contact__aside span, .contact__aside a { font-size: .95rem; color: var(--muted); }
.formCard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.formRow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formNote { font-size: .82rem; color: var(--muted); margin: 1.1em 0 0; }
.formStatus {
  display: none; margin-top: 1.2em; padding: 1em 1.2em; border-radius: var(--radius);
  background: var(--brand-wash); color: var(--brand-dark); font-size: .93rem; border: 1px solid color-mix(in srgb, var(--brand) 22%, #fff);
}
.formStatus.show { display: block; }

/* --- 16. Footer --------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.66); padding: clamp(48px, 6vw, 72px) 0 32px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .6em; }
.footer a { color: rgba(255,255,255,.66); }
.footer a:hover { color: #fff; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: rgba(255,255,255,.45); }
.footer__blurb { margin-top: 16px; max-width: 32ch; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,.13); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .85rem;
}

/* --- 17. Atlas assistant ------------------------------------------------ */
.atlasLauncher {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: flex; align-items: center; gap: 10px; padding: .85em 1.35em .85em 1em;
  background: var(--brand); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: .96rem; font-weight: 650; box-shadow: var(--shadow-lg);
  transition: transform .18s ease, background .2s ease;
}
.atlasLauncher:hover { transform: translateY(-2px); background: var(--brand-dark); }
.atlasLauncher svg { width: 22px; height: 22px; }
.atlasLauncher.hidden { display: none; }

.atlasPanel {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 44px)); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line);
}
.atlasPanel.open { display: flex; }
.atlasPanel__head {
  background: var(--brand-dark); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.atlasPanel__avatar {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.atlasPanel__avatar svg { width: 20px; height: 20px; stroke: var(--mint); }
.atlasPanel__title { flex: 1; line-height: 1.3; }
.atlasPanel__title strong { display: block; font-size: .98rem; font-weight: 650; }
.atlasPanel__title span { font-size: .78rem; color: rgba(255,255,255,.62); display: flex; align-items: center; gap: 6px; }
.atlasPanel__title span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.atlasPanel__close {
  width: 32px; height: 32px; border: 0; background: rgba(255,255,255,.12); color: #fff;
  border-radius: 8px; cursor: pointer; font-size: 1.1rem; line-height: 1; flex: none;
}
.atlasPanel__close:hover { background: rgba(255,255,255,.22); }

.atlasLog { flex: 1; overflow-y: auto; padding: 18px; background: var(--sand); }
.msg { margin-bottom: 14px; display: flex; }
.msg__bubble {
  max-width: 86%; padding: .8em 1em; border-radius: 16px; font-size: .93rem; line-height: 1.55;
  white-space: pre-wrap; word-wrap: break-word;
}
.msg--bot .msg__bubble { background: #fff; color: var(--body); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg--user { justify-content: flex-end; }
.msg--user .msg__bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.msg__bubble strong { color: inherit; font-weight: 700; }

.atlasChips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 14px; background: var(--sand); }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--brand-dark); border-radius: 999px;
  padding: .5em .9em; font-size: .82rem; font-family: inherit; font-weight: 600; cursor: pointer;
  transition: all .16s ease;
}
.chip:hover { border-color: var(--brand); background: var(--brand-wash); }

.atlasForm { display: flex; gap: 9px; padding: 13px; border-top: 1px solid var(--line); background: #fff; }
.atlasForm input {
  flex: 1; padding: .7em .95em; font-size: .93rem; border: 1.5px solid var(--line); border-radius: 999px;
}
.atlasForm button {
  width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--brand);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.atlasForm button:hover { background: var(--brand-dark); }
.atlasForm button svg { width: 18px; height: 18px; }
.atlasFoot { font-size: .72rem; color: var(--muted); text-align: center; padding: 0 13px 11px; background: #fff; }

.typing { display: flex; gap: 4px; padding: .5em 0; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .45;
  animation: blink 1.3s infinite;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }

/* --- 17b. Palette picker -------------------------------------------------
   DEMO TOOL. Lets Hoffman try the site in each colourway before choosing.
   To remove for launch: delete #paletteBar from index.html and the
   initPalette() block in site.js. Nothing else depends on it.
   ------------------------------------------------------------------------ */
.paletteBar {
  position: fixed; top: 92px; right: 22px; z-index: 70;
  background: rgba(255,255,255,.97); backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md);
  padding: 8px; display: flex; align-items: center; gap: 8px;
  transition: border-radius .2s ease, padding .2s ease;
}
.paletteBar.open { border-radius: var(--radius-lg); flex-direction: column; align-items: stretch; padding: 16px; width: 216px; }

.paletteBar__toggle {
  display: flex; align-items: center; gap: 9px; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: .87rem; font-weight: 650; color: var(--ink); padding: 4px 10px 4px 4px;
  white-space: nowrap;
}
.paletteBar.open .paletteBar__toggle { padding: 0 0 4px; justify-content: space-between; }
.paletteBar__toggle .dotmark {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: conic-gradient(#0f6b52, #17456f, #0d6a72, #a3502f, #5b7a63, #6c3b63, #0f6b52);
  box-shadow: inset 0 0 0 2px #fff;
}
.paletteBar__label { display: none; }
.paletteBar.open .paletteBar__label {
  display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 6px 0 2px;
}
.paletteBar__list { display: none; }
.paletteBar.open .paletteBar__list { display: grid; gap: 4px; }

.swatch {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px;
  border: 1.5px solid transparent; border-radius: 11px; background: none; cursor: pointer;
  font-family: inherit; font-size: .88rem; font-weight: 600; color: var(--body); text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.swatch:hover { background: var(--brand-wash); }
.swatch[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-wash); color: var(--ink); }
.swatch__chip {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.swatch__chip::after {
  content: ""; display: block; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--sw) 55%, var(--sw-soft) 55%);
}
.paletteBar__note { font-size: .7rem; color: var(--muted); line-height: 1.4; margin: 10px 0 0; display: none; }
.paletteBar.open .paletteBar__note { display: block; }

@media (max-width: 860px) {
  .paletteBar { top: auto; bottom: 88px; right: 12px; }
  .paletteBar.open { width: 196px; }
}

/* --- 18. Responsive ----------------------------------------------------- */
@media (max-width: 1000px) {
  .estimator, .split, .contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trustbar__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 860px) {
  .navToggle { display: flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0 16px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85em var(--gutter); border-bottom: 1px solid var(--line); }
  .header__cta .btn { display: none; }
  .heroIcons { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .priceGrid { grid-template-columns: 1fr; }
  .header__phone { display: none; }
  .formRow, .choice { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: 1fr; }
  .atlasLauncher span { display: none; }
  .atlasLauncher { padding: 1em; }
  .atlasPanel { right: 12px; left: 12px; bottom: 12px; width: auto; height: min(600px, calc(100vh - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .header, .atlasLauncher, .atlasPanel, .hero__actions, .reviews__nav { display: none !important; }
}
