/* Forever Bath & Shower — foreverbathsd.com
   Warm, elegant, aging-in-place brand. Navy + antique gold + ivory.
   Large type + high contrast for accessibility (older audience). */

:root {
  --navy: #1f3a5c;
  --navy-2: #16304d;
  --gold: #b0503f;        /* accent repointed to clay to match the template */
  --gold-soft: #d98a6f;   /* lighter terracotta — legible on the navy sections */
  --clay: #b0503f;
  --clay-soft: #faf4f2;
  --cream: #f7f3ec;
  --cream-2: #f1ebe0;
  --ink: #2b3440;
  --muted: #5c6672;
  --line: #e7ded1;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 58, 92, 0.10);
  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--navy); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: var(--gold); margin: 0 0 .9rem; }
.center { text-align: center; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: .18s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8f3f30; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* Utility bar */
.utility { background: var(--navy-2); color: #eaf0f7; font-size: .9rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.utility a { color: #fff; font-weight: 600; }
.utility .u-badges { display: flex; gap: 18px; opacity: .92; }
.utility .u-badges span::before { content: "✓ "; color: var(--gold-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink { color: var(--ink); font-weight: 500; font-size: 1rem; }
.nav a.navlink:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--navy); white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream), #fff); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { margin-bottom: .35em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 8px; color: var(--navy); font-weight: 600; font-size: .98rem; }
.hero-chips span { display: inline-flex; align-items: center; gap: 7px; }
.hero-chips span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; display: block; }
.hero-media .badge { position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); font-size: .92rem; line-height: 1.4; }
.hero-media .badge strong { color: var(--navy); font-family: "Playfair Display", serif; display: block; font-size: 1.4rem; }

/* Section rhythm */
section { padding: 74px 0; }
.section-sm { padding: 54px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #e9eff6; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lede { color: #c3d1e0; }

/* Value band (three bullets) */
.valueband { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.valueband .v { display: flex; gap: 14px; align-items: flex-start; }
.valueband .v .ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(176,137,79,.15); color: var(--gold); display: grid; place-items: center; font-size: 1.2rem; }
.valueband .v h3 { font-family: "Inter", sans-serif; font-size: 1.08rem; margin: 2px 0 0; color: var(--navy); }
.bg-navy .valueband .v h3 { color: #fff; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 8px 26px rgba(31,58,92,.05); transition: .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--cream); color: var(--gold); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 42px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 26px rgba(31,58,92,.08); aspect-ratio: 3/4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery figure:hover img { transform: scale(1.05); }

.gallery-hint { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,28,40,.9); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .85; }
.lightbox-close:hover { opacity: 1; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; font-size: 1.05rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font-size: .8rem; display: grid; place-items: center; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; counter-reset: step; }
.step { text-align: center; }
.step .n { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: #fff; font-family: "Playfair Display", serif; font-size: 1.7rem; display: grid; place-items: center; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust .t .ic { font-size: 1.7rem; color: var(--gold-soft); }
.trust .t strong { display: block; color: #fff; margin: 6px 0 3px; font-size: 1.05rem; }
.trust .t span { color: #b9c7d8; font-size: .95rem; }

/* Quiz / lead form */
.quiz { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 40px; max-width: 760px; margin: 40px auto 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .98rem; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fdfcfa; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,137,79,.15); }
.field textarea { min-height: 110px; resize: vertical; }
.field .count { text-align: right; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quiz-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--navy-2); color: #c7d3e0; padding: 60px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #c7d3e0; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .f-brand img { height: 46px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #91a2b6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Sticky mobile call bar */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; gap: 10px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.mobile-bar .btn { flex: 1; justify-content: center; padding: 13px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .valueband, .cards, .steps, .trust { grid-template-columns: 1fr; }
  .cards, .steps { gap: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: #fff; flex-direction: column; align-items: flex-start; padding: 90px 28px; gap: 22px; transform: translateX(100%); transition: .25s; box-shadow: var(--shadow); }
  .nav.open { transform: translateX(0); }
  .nav .nav-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .menu-toggle { display: block; z-index: 70; }
  .utility .u-badges { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 70px; }
  .grid2 { grid-template-columns: 1fr; }
  .quiz { padding: 26px; }
}
@media (min-width: 901px) { .valueband.on-navy { padding: 8px 0; } }

/* ---- Shower Fit Guide (multi-step quiz modal) ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(20,28,40,.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { position: relative; background: #fff; border-radius: 22px; width: 100%; max-width: 640px; padding: 38px 40px; box-shadow: 0 30px 80px rgba(20,28,40,.4); max-height: 92vh; overflow: auto; }
.modal-close { position: absolute; top: 22px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--clay); color: var(--clay); }
.modal-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 600; color: var(--clay); margin: 0; }
.modal h2 { font-size: 1.6rem; margin: 6px 0 0; }
.q-progress { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin: 20px 0 8px; }
.q-bar { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.q-bar > span { display: block; height: 100%; background: var(--clay); border-radius: 99px; transition: width .3s ease; }
.q-question { font-family: "Playfair Display", serif; color: var(--navy); font-size: 1.35rem; font-weight: 600; margin: 24px 0 4px; }
.q-help { color: var(--muted); margin: 0 0 18px; }
.q-options { display: flex; flex-direction: column; gap: 12px; }
.q-option { text-align: left; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; font-size: 1rem; color: var(--ink); cursor: pointer; transition: .15s; }
.q-option:hover { border-color: var(--clay); }
.q-option.sel { border: 2px solid var(--clay); background: var(--clay-soft); font-weight: 500; }
.q-fields { display: flex; flex-direction: column; gap: 14px; }
.q-fields label { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 6px; }
.q-fields input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; font: inherit; font-size: 1rem; background: #fdfcfa; }
.q-fields input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(176,80,63,.14); }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.q-back { background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 24px; font-weight: 600; color: var(--ink); cursor: pointer; }
.q-back:hover { border-color: var(--navy); }
.q-next { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 13px 30px; font-weight: 600; cursor: pointer; }
.q-next:disabled { background: #b9c2cd; cursor: default; }
.q-send { background: var(--clay); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font-weight: 600; cursor: pointer; }
.q-send:hover { background: #97452f; }
.q-done { text-align: center; padding: 20px 0; }
.q-done .ic { font-size: 2.6rem; }
@media (max-width: 560px) { .modal { padding: 28px 22px; } }

/* ---- Contact form ---- */
.contact-form { max-width: 560px; margin: 30px auto 0; text-align: left; }
.contact-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); margin-bottom: 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,137,79,.15); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { width: 100%; justify-content: center; }
.contact-done { max-width: 560px; margin: 24px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--navy); font-weight: 500; }
@media (max-width: 560px) { .contact-form .grid2 { grid-template-columns: 1fr; } }

/* ---- Comfort photo slider ---- */
.slider-wrap { position: relative; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4; background: var(--navy-2); }
.slider .slides { position: absolute; inset: 0; cursor: zoom-in; }
.slider .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; box-shadow: none; opacity: 0; transition: opacity .6s ease; }
.slider .slides img.active { opacity: 1; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(31,58,92,.20); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; transition: .15s; }
.slide-nav:hover { background: var(--navy); color: #fff; }
.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }
.slide-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slide-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: .2s; }
.slide-dots button.active { width: 22px; border-radius: 5px; background: #fff; }
.slide-badge { position: absolute; bottom: -16px; right: 22px; background: #fff; border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 9px; z-index: 3; }
.slide-badge .hb { color: var(--clay); font-size: 1.15rem; }
@media (max-width: 900px) { .slide-badge { right: 16px; } }

/* ---- Template-match: outlined clay checks + circular arrow button ---- */
.checks.checks-outline li::before { background: transparent; border: 1.6px solid var(--clay); color: var(--clay); }
.btn-arrow { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.35rem; text-decoration: none; transition: .15s; }
.btn-arrow:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ---- Clay accent: keep the dark (navy) sections legible ---- */
.bg-navy .eyebrow { color: var(--gold-soft); }
.valueband .v .ic { background: rgba(217,138,111,.16); color: var(--gold-soft); }

/* ---- Legal pages (terms / privacy) ---- */
.legal-hero { background: linear-gradient(180deg, var(--cream), #fff); padding: 56px 0 24px; }
.legal-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .25em; }
.legal-updated { color: var(--muted); font-size: .95rem; margin: 0; }
.legal-body { padding: 18px 0 78px; }
.legal-body .wrap { max-width: 820px; }
.legal-body h2 { font-size: 1.42rem; margin: 2.1em 0 .5em; }
.legal-body h2:first-of-type { margin-top: 1em; }
.legal-body h3 { font-family: "Inter", sans-serif; font-size: 1.05rem; color: var(--navy); margin: 1.5em 0 .4em; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-left: 22px; margin: 0 0 1rem; }
.legal-body li { margin-bottom: .5rem; }
.legal-body a { color: var(--clay); text-decoration: underline; }
.legal-note { background: var(--clay-soft); border-left: 3px solid var(--clay); border-radius: 8px; padding: 16px 20px; margin: 22px 0; }
.legal-note p:last-child { margin-bottom: 0; }
.legal-toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 26px 0 8px; }
.legal-toc h4 { font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--navy); text-decoration: none; }
.legal-toc a:hover { color: var(--clay); text-decoration: underline; }
@media (max-width: 700px) { .legal-toc ol { columns: 1; } }
