/* =========================================================
   MEDRANO TAX — SITE STYLES
   Built on the skeleton template: Bootstrap 5 (CDN) handles
   grid + utilities; this file covers theme, typography,
   layout sections, and every drop-in component.

   Sections:
     1. Theme variables (brand colors, fonts, spacing)
     2. Base / typography
     3. Layout: header, sections, footer, mobile call bar
     4. Buttons
     5. Placeholder / empty state
     6. COMPONENTS (each one self-contained — see components.md)
   ========================================================= */

/* ---------------------------------------------------------
   1. THEME VARIABLES — change these to reskin the whole site
   Brand palette from the Medrano Tax logo:
   #FFFFFF  #34B296 (teal)  #3B4A5B (slate)  #1B1B1A (ink)
   --------------------------------------------------------- */
:root {
  /* Brand */
  --color-primary: #1B1B1A;        /* buttons, nav CTA (black pill like the reference) */
  --color-primary-dark: #000000;   /* button hover */
  --color-accent: #34B296;         /* logo teal — icons, rules, highlights, dark-bg accents */
  --color-accent-strong: #1F7A64;  /* teal that passes contrast for TEXT on light backgrounds */
  --color-accent-soft: #E3F4EF;    /* pale teal tint for chips / badges */
  --color-secondary: #3B4A5B;      /* logo slate — footer, CTA band, headings accent */

  /* Surfaces */
  --color-bg: #EDEEF1;             /* page background (soft gray, like the reference) */
  --color-bg-alt: #E3E6EA;         /* alternate section background */
  --color-surface: #FFFFFF;        /* cards, form panel */
  --color-dark: #1B1B1A;

  /* Text */
  --color-text: #1B1B1A;
  --color-text-muted: #5A6472;
  --color-text-light: #F4F6F8;     /* text on dark backgrounds */
  --color-border: #D5D9DF;

  /* Typography */
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-heading: 'Manrope', system-ui, sans-serif;

  /* Spacing & shape */
  --section-padding: 5rem 0;
  --border-radius: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(27, 27, 26, 0.06);

  /* Header height (used for sticky offset) */
  --header-h: 92px;
}

/* ---------------------------------------------------------
   2. BASE / TYPOGRAPHY
   --------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }

a { color: var(--color-accent-strong); text-decoration: none; }
a:hover { color: var(--color-primary); }

.text-muted-custom { color: var(--color-text-muted); }
.text-light-custom { color: var(--color-text-light); }

/* Small label above section headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: 0.75rem;
}

/* Section heading block (eyebrow + h2 + lead) */
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--color-text-muted); font-size: 1.125rem; margin: 1rem 0 0; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* ---------------------------------------------------------
   3. LAYOUT SECTIONS
   --------------------------------------------------------- */

/* Header / main nav — mirrors the reference: wordmark/logo left,
   plain text links, black pill CTA on the right */
#site-nav {
  background-color: var(--color-bg);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.2s ease;
}
#site-nav.is-scrolled { box-shadow: 0 2px 14px rgba(27, 27, 26, 0.08); }

#site-nav .navbar-brand { padding: 0; margin-right: 2rem; }
#site-nav .navbar-brand img { height: 64px; width: auto; display: block; }

#site-nav .nav-link {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-text);
  padding: 0.5rem 0.9rem;
}
#site-nav .nav-link:hover,
#site-nav .nav-link.active { color: var(--color-accent-strong); }
#site-nav .nav-link.active { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

#site-nav .nav-phone {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  margin: 0 1.25rem 0 0.75rem;
}
#site-nav .nav-phone i { color: var(--color-accent); margin-right: 0.4rem; }
#site-nav .nav-phone:hover { color: var(--color-accent-strong); }

/* Language switch (EN ⇄ ES) — sits after BOOK NOW on desktop,
   next to the menu button on phones so it's always one tap away */
#site-nav .lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-left: auto; margin-right: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600; font-size: 0.9rem;
  color: var(--color-text);
  white-space: nowrap;
}
#site-nav .lang-switch i { color: var(--color-accent-strong); }
#site-nav .lang-switch:hover { border-color: var(--color-accent); color: var(--color-accent-strong); }
@media (min-width: 992px) {
  #site-nav .lang-switch { margin: 0 0 0 0.75rem; }
}

#site-nav .navbar-toggler { border: 0; padding: 0.5rem; box-shadow: none; }
#site-nav .navbar-toggler:focus-visible { outline: 3px solid var(--color-accent); }

@media (max-width: 991.98px) {
  :root { --header-h: 76px; }
  #site-nav .navbar-brand img { height: 52px; }
  #site-nav .navbar-collapse {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-soft);
  }
  #site-nav .nav-phone { display: block; margin: 0.75rem 0.9rem; }
  #site-nav .btn-pill { width: 100%; margin-top: 0.5rem; }
}

/* Generic content section wrapper — use on any <section> */
.site-section { padding: var(--section-padding); }
.site-section-alt { background-color: var(--color-bg-alt); }
.site-section-white { background-color: var(--color-surface); }
.site-section-tight { padding: 3rem 0; }

/* Footer */
#site-footer {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 4rem 0 2rem;
  font-size: 0.975rem;
}
#site-footer a { color: #D6DEE6; }
#site-footer a:hover { color: #fff; }
#site-footer .footer-logo {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  display: inline-block;
  margin-bottom: 1rem;
}
#site-footer .footer-logo img { height: 70px; width: auto; display: block; }
#site-footer .footer-heading {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
#site-footer li { margin-bottom: 0.4rem; }
#site-footer i { color: var(--color-accent); width: 1.25rem; }
#site-footer .photo-credits { opacity: 0.75; margin-top: 0.35rem; }
#site-footer .photo-credits a { text-decoration: underline; text-underline-offset: 2px; }
#site-footer hr { border-color: rgba(255,255,255,0.18); opacity: 1; margin: 2.5rem 0 1.5rem; }

/* Mobile sticky call/book bar — always-visible CTAs on phones */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  box-shadow: 0 -4px 18px rgba(27,27,26,0.12);
}
.mobile-cta-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-heading);
}
.mobile-cta-bar .bar-call { background: var(--color-surface); color: var(--color-text); border: 2px solid var(--color-primary); }
.mobile-cta-bar .bar-book { background: var(--color-primary); color: #fff; }
@media (min-width: 992px) { .mobile-cta-bar { display: none; } }
@media (max-width: 991.98px) { body { padding-bottom: 76px; } }

/* ---------------------------------------------------------
   4. BUTTONS (theme-matched, on top of Bootstrap's .btn)
   --------------------------------------------------------- */
.btn-brand,
.btn-pill {
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-brand:hover,
.btn-pill:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
/* Nav pill — uppercase like the reference "BOOK NOW" */
.btn-pill { text-transform: uppercase; letter-spacing: 0.02em; padding: 0.95rem 2rem; }

/* Light pill for use on photos / dark bands */
.btn-light-pill {
  background: #fff; border: 2px solid #fff; color: var(--color-primary);
  border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 700;
  padding: 0.85rem 1.9rem;
}
.btn-light-pill:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); }

/* Outline pill — secondary action (usually "Call") */
.btn-outline-pill {
  background: transparent; border: 2px solid currentColor; color: inherit;
  border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 700;
  padding: 0.85rem 1.9rem;
}
.btn-outline-pill:hover { background: rgba(255,255,255,0.12); color: inherit; }
.btn-outline-dark-pill { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline-dark-pill:hover { background: var(--color-primary); color: #fff; }

.link-arrow { font-weight: 700; font-family: var(--font-heading); }
.link-arrow i { transition: transform 0.15s ease; margin-left: 0.35rem; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------------------------------------------------------
   5. PLACEHOLDER / EMPTY STATE
   (shows where components go until you drop one in)
   --------------------------------------------------------- */
.placeholder-block {
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
}

/* =========================================================
   6. COMPONENTS
   ========================================================= */

/* ---- Photo Hero (reference-style: inset photo, dark overlay,
        big centered headline). The photo is an <img class="bg-img">
        inside the section; without it, a slate gradient shows. ---- */
.photo-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(30rem, 72vh, 40rem);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #3B4A5B 0%, #2A3542 60%, #22433C 100%);
  overflow: hidden;
}
/* Shared: photo layer + dark overlay for Photo Hero and Page Header */
.photo-hero > .bg-img,
.page-header > .bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.photo-hero::before,
.page-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 24, 30, 0.55);   /* overlay darkness */
}
.photo-hero-inner { position: relative; z-index: 1; max-width: 54rem; padding: 4rem 1.5rem; }
.photo-hero h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.photo-hero .hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.photo-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.photo-hero .hero-meta {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: center;
}
.photo-hero .hero-meta i { color: var(--color-accent); margin-right: 0.4rem; }
/* Decorative mountain line echoing the logo */
.photo-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90 L180 40 L260 62 L420 8 L560 58 L640 30 L780 70 L900 22 L1040 66 L1200 36 L1200 90 Z' fill='%2334B296' fill-opacity='0.18'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  pointer-events: none;
}

/* ---- Page Header (smaller hero for inner pages) ---- */
.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: 4.5rem 2rem;
  background: linear-gradient(135deg, #3B4A5B 0%, #2A3542 60%, #22433C 100%);
  text-align: center;
}
.page-header::before { background: rgba(20, 24, 30, 0.6); }
.page-header h1 { color: #fff; font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; margin: 0; }
.page-header p { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 40rem; margin: 1rem auto 0; }

/* ---- Trust Bar (credential row under the hero) ---- */
.trust-bar {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.5rem;
  margin-top: -3rem;            /* overlaps the hero edge */
  position: relative; z-index: 2;
}
.trust-item { display: flex; align-items: center; gap: 0.9rem; }
.trust-item i {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-accent-soft); color: var(--color-accent-strong);
  font-size: 1.15rem;
}
.trust-item strong { display: block; font-family: var(--font-heading); font-size: 1rem; line-height: 1.25; }
.trust-item span { font-size: 0.9rem; color: var(--color-text-muted); }
.trust-item a { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 575.98px) {
  .trust-bar { padding: 1.25rem 1rem; }
  .trust-item { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .trust-item i { width: 40px; height: 40px; font-size: 1rem; }
  .trust-item strong { font-size: 0.95rem; }
  .trust-item span { font-size: 0.85rem; line-height: 1.35; display: block; }
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex; flex-direction: column;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.service-card .service-icon {
  font-size: 1.6rem; color: var(--color-accent-strong);
  margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--color-text-muted); margin-bottom: 1.25rem; }
.service-card .link-arrow { margin-top: auto; }

/* ---- Service Group (detailed list for the Services page) ---- */
.service-group {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 2.25rem 2rem;
  height: 100%;
  display: flex; flex-direction: column;
}
.service-group-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-group-head i {
  width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--color-accent-soft); color: var(--color-accent-strong); font-size: 1.3rem;
}
.service-group-head h2 { font-size: 1.5rem; margin: 0; }
.service-group > p { color: var(--color-text-muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; columns: 2 14rem; column-gap: 1.5rem; }
.check-list li { break-inside: avoid; padding: 0.3rem 0 0.3rem 1.7rem; position: relative; }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 0.35rem; color: var(--color-accent); font-size: 0.9rem;
}
.check-list small { color: var(--color-text-muted); }
.service-group .btn { align-self: flex-start; margin-top: auto; }

/* ---- Chip List (industries / who we help) ---- */
.chip-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.chip-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.975rem;
}
.chip-list li i { color: var(--color-accent-strong); margin-right: 0.45rem; }
.chip-list.chip-list-center { justify-content: center; }

/* ---- Process Steps (how it works) ---- */
.process-step { text-align: left; height: 100%; }
.process-num {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-accent); color: var(--color-primary);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--color-text-muted); margin: 0; }
@media (min-width: 768px) {
  .process-row > div:not(:last-child) .process-step { position: relative; }
  .process-row > div:not(:last-child) .process-step::after {
    content: ""; position: absolute; top: 26px; left: 68px; right: -12px;
    border-top: 2px dashed var(--color-border);
  }
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
  background-color: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  display: flex; flex-direction: column;
}
.testimonial-stars { color: #E8A93B; margin-bottom: 1rem; letter-spacing: 0.15em; }
.testimonial-quote { color: var(--color-text); font-size: 1.05rem; }
.testimonial-author { font-weight: 700; font-family: var(--font-heading); margin-top: auto; padding-top: 1rem; }
.testimonial-author small { display: block; font-weight: 400; color: var(--color-text-muted); font-family: var(--font-body); }

/* ---- Reviews Widget slot (live Google reviews via Featurable) ----
   script.js adds .is-empty when no widget code has been pasted in,
   so the section collapses to heading + "Read all our reviews" button. */
.reviews-widget { margin-bottom: 2.5rem; min-height: 1px; }
.reviews-widget.is-empty { display: none; }
.reviews-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---- Static reviews (summary + card grid; scrolls sideways on phones) ---- */
.reviews-summary { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.reviews-score { font-family: var(--font-heading); font-size: 3.25rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.reviews-summary .testimonial-stars { margin: 0 0 0.15rem; font-size: 1.3rem; }
.reviews-count { color: var(--color-text-muted); }
.reviews-count a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-author small a { color: var(--color-text-muted); }
.testimonial-author small a:hover { color: var(--color-accent-strong); }
@media (max-width: 991.98px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) {
  .reviews-grid {
    display: flex; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .reviews-grid > .testimonial-card { flex: 0 0 85%; scroll-snap-align: start; }
}

/* ---- Accordion (FAQ) ---- */
.accordion-custom { border-top: 1px solid var(--color-border); }
.accordion-custom li { border-bottom: 1px solid var(--color-border); }
.accordion-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  background: none; border: 0; text-align: left;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}
.accordion-toggle::after {
  content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--color-accent-strong); transition: transform 0.2s ease; flex: 0 0 auto;
}
.accordion-toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-toggle:hover { color: var(--color-accent-strong); }
.accordion-panel { display: none; padding: 0 2.5rem 1.25rem 0; color: var(--color-text-muted); }
.accordion-panel.active { display: block; }
.accordion-panel ul { padding-left: 1.2rem; margin-bottom: 0; }

/* ---- CTA Band (repeat the ask at the end of every page) ---- */
.cta-band {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--border-radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -20px; bottom: -10px; width: 420px; height: 160px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 160'%3E%3Cpath d='M0 160 L120 60 L170 95 L260 10 L330 80 L370 55 L420 100 L420 160 Z' fill='%2334B296' fill-opacity='0.25'/%3E%3C/svg%3E") no-repeat right bottom/contain;
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.125rem; margin: 0; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; position: relative; z-index: 1; }

/* ---- Media Frame (image slot with logo fallback) ----
   Put an <img class="bg-img"> inside. If the photo is missing,
   onerror removes it and the logo shows instead. */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  min-height: 24rem; height: 100%;
  background: var(--color-surface) url("assets/img/medrano-tax-logo.png") center / 55% auto no-repeat;
}
/* Landscape variant: keeps a wide photo (like the storefront) uncropped */
.media-frame-landscape { aspect-ratio: 4 / 3; min-height: 0; height: auto; }
.media-frame > .bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---- Credential Card ---- */
.credential-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 2rem;
  border-left: 5px solid var(--color-accent);
  height: 100%;
}
.credential-card .cred-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 700; }
.credential-card .cred-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0 0.75rem; }
.credential-card p { color: var(--color-text-muted); margin-bottom: 0.75rem; }

/* ---- Booking Form (Google Forms–connected) ---- */
.booking-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.booking-head { margin-bottom: 1.75rem; }
.booking-head h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.booking-card .form-intro { color: var(--color-text-muted); margin: 0; font-size: 0.975rem; }
.booking-form .form-control {
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  font-size: 1.15rem;       /* ≥16px prevents iOS zoom-on-focus */
  background: #FBFBFC;
}
.booking-form .form-control:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(52,178,150,0.18); background: #fff; }
.booking-form.was-validated .form-control:invalid,
.booking-form .form-control.is-invalid { border-color: #C2413A; }
.booking-form .invalid-feedback { color: #B0352F; font-size: 0.95rem; margin-top: 0.5rem; }
.booking-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-form .btn-brand { padding: 1rem 2rem; font-size: 1.1rem; }
.booking-form .btn-brand[disabled] { opacity: 0.7; }
.booking-status { display: none; border-radius: 10px; padding: 1rem 1.15rem; margin-top: 1rem; font-weight: 600; }
.booking-status.is-error { display: block; background: #FBECEB; color: #8E2B26; }
.booking-success { display: none; text-align: center; padding: 1.5rem 0; }
.booking-success i { font-size: 3rem; color: var(--color-accent); margin-bottom: 1rem; }
.booking-success h3 { font-size: 1.6rem; }
.booking-success p { color: var(--color-text-muted); }
.booking-card.is-sent .booking-form,
.booking-card.is-sent .booking-head { display: none; }
.booking-card.is-sent .booking-success { display: block; animation: step-in 0.35s ease both; }

/* ---- Stepper Form (one question at a time, Squarespace-style) ----
   script.js adds .is-stepped to a form with [data-stepper]; without JS
   every question shows as a normal stacked form. */
.step-question {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.step-question .req { color: var(--color-accent-strong); }
.step-question .opt { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--color-text-muted); letter-spacing: 0; }
.form-step { margin-bottom: 1.5rem; }
.step-help { font-size: 0.925rem; color: var(--color-text-muted); margin: 0.6rem 0 0; }
.step-help-lock { display: flex; gap: 0.55rem; }
.step-help-lock i { color: var(--color-accent-strong); margin-top: 0.25rem; }

.step-meta { display: none; }
.step-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.step-back {
  background: none; border: 0; padding: 0.5rem 0;
  font-family: var(--font-heading); font-weight: 700;
  color: var(--color-text-muted);
}
.step-back i { margin-right: 0.45rem; transition: transform 0.15s ease; }
.step-back:hover { color: var(--color-text); }
.step-back:hover i { transform: translateX(-3px); }
.step-hint { display: none; }

/* Stepped mode */
.booking-form.is-stepped .step-meta { display: block; margin-bottom: 1.75rem; }
.step-count {
  display: block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}
.step-progress { height: 5px; border-radius: 99px; background: var(--color-bg-alt); overflow: hidden; }
.step-progress-bar {
  display: block; height: 100%; width: 0;
  background: var(--color-accent);
  border-radius: inherit;
  transition: width 0.35s ease;
}
.booking-form.is-stepped .form-step { min-height: 11.5rem; margin-bottom: 1.25rem; }
.booking-form.is-stepped .form-step.is-active { animation: step-in 0.3s ease both; }
.booking-form.is-stepped .form-step.is-active.is-back { animation-name: step-in-back; }
.booking-form.is-stepped .step-question { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.booking-form.is-stepped .step-next { order: 2; }
.booking-form.is-stepped .step-next i { margin-left: 0.5rem; }
.booking-form.is-stepped .step-back { order: 1; }
.booking-form.is-stepped .step-hint { display: inline; order: 3; font-size: 0.875rem; color: var(--color-text-muted); }
.step-hint kbd {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  background: var(--color-bg); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 6px; padding: 0.15rem 0.45rem;
  box-shadow: none;
}
@media (hover: none) { .booking-form.is-stepped .step-hint { display: none; } }  /* touch screens: no Enter hint */
.booking-form.is-stepped .step-question .req { display: none; }   /* one question per screen: "*" adds nothing; the optional one says "(optional)" */
.step-back, .step-next { white-space: nowrap; }
@media (max-width: 575.98px) {
  .booking-form.is-stepped .step-nav { flex-wrap: nowrap; }
  .booking-form.is-stepped .step-next { flex: 1; padding-left: 1.25rem; padding-right: 1.25rem; }
  .booking-form.is-stepped .step-hint { display: none; }
  .booking-form.is-stepped .form-step { min-height: 0; }
}

@keyframes step-in      { from { opacity: 0; transform: translateX(18px); }  to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .booking-form.is-stepped .form-step.is-active,
  .booking-card.is-sent .booking-success { animation: none; }
  .step-progress-bar { transition: none; }
}

/* ---- Contact Info List ---- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--color-border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list > li > i {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--color-accent-soft); color: var(--color-accent-strong);
}
.contact-list .label { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--color-text-muted); }
.contact-list .value { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--color-text); }
.contact-list a.value:hover { color: var(--color-accent-strong); }

/* ---- Hours Table ---- */
.hours-table { width: 100%; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px dashed var(--color-border); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr:last-child td { border-bottom: 0; }

/* ---- Contact Map ---- */
.contact-map-wrap {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.contact-map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---- Info Panel (white card, generic) ---- */
.info-panel {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
}
.info-panel h3 { margin-bottom: 1rem; }
