/* =========================================
   FLORIDA CRYOGEN — STYLESHEET
   Ice-blue palette sampled from the FloridaCryogenLOGO seal:
     --navy       deep blue ring
     --copper     medium steel-aqua (seal ring tone) — kept name for back-compat
     --ice        pale aquamarine (seal center)
   ========================================= */

:root {
  --navy: #0d2461;          /* deep saturated navy (matches screenshot) */
  --navy-dark: #06143a;     /* near-black navy for top bar / footer */
  --navy-light: #1d3d8f;    /* lifted navy for hover / secondary surfaces */
  --copper: #5fb0ca;        /* ice blue — steel-aqua from logo seal ring */
  --copper-dark: #4290ad;   /* deeper ice blue for hover */
  --ice: #c8e1e9;           /* pale aquamarine — logo seal center */
  --ice-soft: #ecf4f7;      /* very light ice tint */
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --text: #1a2332;
  --text-muted: #5a6677;
  --border: #e4ebef;
  --shadow-sm: 0 2px 8px rgba(28, 58, 95, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 58, 95, 0.10);
  --shadow-lg: 0 20px 50px rgba(28, 58, 95, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* ============================================================================
 * CROSS-PLATFORM RENDERING NORMALIZATION
 * Designed to make iOS Safari, Android Chrome, and desktop browsers render as
 * close to identically as physically possible. Every rule here exists because
 * a real device-vs-device diff surfaced something. Order matters — this layer
 * must come BEFORE any component CSS.
 * ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* iOS Safari shrinks/enlarges text when the orientation changes; Android
     Chrome respects the spec-correct `text-size-adjust`. Both need pinning. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Subtle tap-flash that matches across both platforms; avoids Android's
     default electric blue. */
  -webkit-tap-highlight-color: rgba(13, 36, 97, 0.10);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  /* Font weight tends to render slightly heavier on Android Chrome than iOS
     Safari (different default subpixel rendering). These three rules dampen
     that diff so headlines + body type look the same weight on both. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Prevent the browser from synthesizing fake bold/italic when a weight or
     style isn't available in the loaded font — keeps Inter consistent. */
  font-synthesis: none;
  font-feature-settings: "kern" 1, "liga" 1;
  font-optical-sizing: auto;
  /* Defensive against Android Chrome inflating font-size in some article-like
     elements when it thinks the page is "long content." */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Stop horizontal jiggle that can happen when scrollbar gutter appears. */
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--copper); }
ul { list-style: none; padding: 0; margin: 0; }
button {
  font: inherit; cursor: pointer; border: none; background: none;
  /* Safari adds default rounding + inner padding on <button> — neutralize. */
  -webkit-appearance: none; appearance: none;
  color: inherit;
}
input, select, textarea {
  font: inherit;
  /* iOS Safari styles inputs with default rounding + gradient — flatten. */
  -webkit-appearance: none; appearance: none;
  border-radius: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-dark);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

/* ===== LAYOUT HELPERS ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  color: var(--copper);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy-dark);
  color: #d9e3ec;
  font-size: .9rem;
  padding: 10px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9e3ec;
  font-size: calc(clamp(12px, 3vw, 15px) / var(--text-scale, 1));
}
.topbar-link:hover { color: var(--copper); }
.topbar-cta {
  background: var(--copper);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: calc(clamp(12px, 3vw, 14px) / var(--text-scale, 1));
  letter-spacing: .5px;
  text-transform: uppercase;
}
.topbar-cta:hover { background: var(--copper-dark); color: #fff; }

/* ===== HEADER (centered logo + nav) ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 14px 24px;
  position: relative;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo {
  width: 84px;
  height: auto;
  transition: transform .3s ease;
}
.logo-wrap:hover .logo { transform: scale(1.04); }

/* Brand name + tagline next to the logo */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: center;
}
.logo-brand {
  font-family: 'Montserrat', var(--font-sans);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: .5px;
  white-space: nowrap;
}
.logo-tagline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  color: var(--copper);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  /* offset the trailing letter-spacing so the phrase visually centers under FLORIDA CRYOGEN */
  padding-left: 3.5px;
}

.main-nav { flex: 1; min-width: 0; }
.main-nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 0;
}
.main-nav a {
  font-weight: 700;
  font-size: .86rem;
  color: var(--text);
  padding: 8px 2px;
  position: relative;
  letter-spacing: .1px;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); }

.header-cta {
  background: var(--copper);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: all .2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(95, 176, 202, 0.28);
}
.header-cta:hover {
  background: var(--copper-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(95, 176, 202, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 44px;             /* 44px touch target */
  height: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
/* When the drawer is open, morph the three bars into an X */
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
  display: none;
  font-size: 2rem;
  color: var(--navy);
  padding: 4px 12px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Backdrop behind the drawer — created by JS, fades in/out */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 99;            /* one below the drawer */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}
/* Scroll lock is handled in JS via inline `position: fixed` on body — that
   avoids an iOS Safari bug where overflow:hidden + a position:fixed drawer
   silently blocks <a href> clicks inside the drawer from navigating. */

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(13,36,97,0.95) 0%, rgba(6,20,58,0.98) 100%),
    radial-gradient(circle at 30% 50%, var(--ice) 0%, var(--navy) 80%);
  color: #fff;
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(95,176,202,0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(207,228,236,0.16) 0%, transparent 55%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  z-index: 2;
}
.hero-text { text-align: left; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-logo {
  width: 100%;
  max-width: 440px;
  height: auto;
  animation: logo-float 5s ease-in-out infinite;
  filter: drop-shadow(0 0 60px rgba(207, 228, 236, 0.55));
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* Slow-falling snowflakes layer on the homepage hero */
.snowflakes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.snowflakes .snow {
  position: absolute;
  top: -40px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(207, 228, 236, 0.7);
  /* per-snowflake duration is set inline so each falls at a different speed */
  animation: snow-fall linear infinite;
  will-change: transform, opacity;
}
@keyframes snow-fall {
  0%   { transform: translateY(0)     translateX(0)    rotate(0deg);   opacity: 0; }
  8%   { opacity: .85; }
  92%  { opacity: .55; }
  100% { transform: translateY(110vh) translateX(30px) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .snowflakes .snow { animation: none; }
}
/* ------------------------------------------------------------------------
 * HERO + BRAND TYPOGRAPHY — anchored in PX, not REM.
 *
 * Why px? Chrome's accessibility "Text scaling" setting (Chrome → Settings →
 * Accessibility → Text scaling) multiplies rem/em sizes by the user's
 * preference (e.g. 130%). That's correct behavior for body content but it
 * blows up the hero — a 30% bigger headline pushes buttons and feature
 * list below the fold on Android. Hero text drives brand identity, not
 * readability, so we lock its proportions with px-based clamps. Body
 * paragraphs (rem) still scale normally.
 * ------------------------------------------------------------------------ */
/*
 * --text-scale is set by the inline probe in <head> when the browser is
 * applying accessibility text scaling (e.g. Chrome Android 130%). Dividing
 * by it here pre-shrinks our value so when the browser scales it back up,
 * the rendered pixels equal the design intent. Defaults to 1 (no probe / no
 * scaling). This is the ONLY way to make brand hero typography render at
 * the same visual size on iPhone (no scaling) and Android Chrome (any
 * scaling) without sacrificing readability of body content.
 */
.hero-eyebrow {
  color: var(--copper);
  font-weight: 600;
  letter-spacing: clamp(1px, 0.5vw, 3px);
  text-transform: uppercase;
  font-size: calc(clamp(10px, 2vw, 14px) / var(--text-scale, 1));
  margin-bottom: 18px;
}
.hero-title {
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: calc(clamp(22px, 5.5vw, 56px) / var(--text-scale, 1));
  line-height: 1.15;
}
.hero-title .accent {
  color: var(--copper);   /* turquoise */
  font-style: italic;
  font-weight: 600;
}

/* 4-checkmark grid below hero buttons */
.hero-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
}
.hero-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, .94);
  font-size: calc(clamp(14px, 3.8vw, 16px) / var(--text-scale, 1));
  line-height: 1.35;
  font-weight: 500;
}
/* The longer 5th checkmark on the hero spans both grid columns,
   with a thin separator above so it reads as a closing statement */
.hero-check-wide {
  grid-column: 1 / -1;
  font-weight: 600;
  color: #ffffff;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.45;
}

.hero-check::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 7px;
  background-color: var(--copper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}
.hero-sub {
  font-size: calc(clamp(13px, 3.5vw, 20px) / var(--text-scale, 1));
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5px;
  transition: all .2s ease;
  text-transform: uppercase;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--copper);
  color: #fff;
}
.btn-primary:hover {
  background: var(--copper-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: var(--ice); color: var(--navy); }

/* ===== TWO-COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
/* Canonical fix for grid items overflowing a narrow viewport: each grid
   item defaults to `min-width: auto`, which prevents shrinking below the
   item's min-content size. On a 320px iPhone SE that lets non-breaking
   content push the grid wider than the viewport. `min-width: 0` allows
   normal shrink-to-fit. (Same fix applies to flex items if needed.) */
.two-col-text, .two-col-card { min-width: 0; }
.two-col.reverse .two-col-text { order: 2; }
.two-col-card {
  background: var(--ice-soft);
  border-left: 4px solid var(--copper);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid rgba(28,58,95,.08);
}
.check-list li:last-child { border: none; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 18px; height: 18px;
  background: var(--copper);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") no-repeat center / contain;
}

.link-arrow {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--copper);
  letter-spacing: .5px;
}
.link-arrow:hover { color: var(--copper-dark); }

/* Inline highlighted stat sentence — turquoise, bold, slight emphasis */
.highlight-stat {
  color: var(--copper-dark);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, rgba(95, 176, 202, 0.18) 60%);
  padding: 0 2px;
}

/* ===== BENEFITS BAND ===== */
.band {
  background: var(--navy);
  color: #fff;
  padding: 60px 0;
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.band-item h3 { color: #fff; font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: 6px; }
.band-item p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; }
.band-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--copper);
  margin-bottom: 8px;
  font-weight: 700;
}

/* ===== CARD GRID (conditions) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  color: var(--text);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--copper);
  color: var(--text);
}
.card h3 { color: var(--navy); }
.card p { color: var(--text-muted); font-size: .95rem; flex-grow: 1; }
.card-link {
  color: var(--copper);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 12px;
}
.card-cta {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  justify-content: center;
  text-align: center;
}
.card-cta:hover { background: var(--navy-light); color: #fff; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255,255,255,.8); }

/* ===== CONDITIONS CAROUSEL — fanned vertical cards ===== */
.conditions-carousel {
  position: relative;
  margin-top: 48px;
  padding: 0 60px;            /* room for prev/next arrows */
}
.carousel-viewport {
  position: relative;
  overflow: visible;           /* let side cards peek in */
  height: 660px;
  perspective: 1400px;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.condition-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 380px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition:
    transform .7s cubic-bezier(.22,.61,.36,1),
    opacity   .7s ease,
    filter    .7s ease;
  transform: translateX(-50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(2px);
  will-change: transform, opacity;
}
.condition-slide.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  filter: none;
  z-index: 3;
}
.condition-slide.is-prev {
  transform: translateX(calc(-50% - 300px)) scale(0.86);
  opacity: 0.55;
  filter: blur(0);
  z-index: 2;
}
.condition-slide.is-next {
  transform: translateX(calc(-50% + 300px)) scale(0.86);
  opacity: 0.55;
  filter: blur(0);
  z-index: 2;
}

/* Image area — dark navy top half with body silhouette in white */
.condition-image {
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(95,176,202,0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(207,228,236,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;               /* drives currentColor in the SVG */
  height: 230px;
  flex-shrink: 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.condition-image::after {
  /* faint star/snow specks */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 75%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 85%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 12% 88%, rgba(255,255,255,.35) 50%, transparent 51%);
  pointer-events: none;
}
.condition-image .body-svg {
  width: auto;
  height: 100%;
  max-height: 200px;
  position: relative;
  z-index: 1;
  /* Cyan X-ray glow surrounding the entire silhouette */
  color: #a8e0ff;
  filter:
    drop-shadow(0 0 3px rgba(120, 200, 255, 0.75))
    drop-shadow(0 0 8px rgba(70, 170, 240, 0.45));
}

/* Real photographs for select slides (e.g. lower back, joints) */
.condition-image .condition-photo {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  display: block;
}

/* Content area — white text below; scrolls vertically when description is too long */
.condition-content {
  flex: 1;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  text-align: center;          /* default: centers heading + link */
  overflow-y: auto;
  scrollbar-width: thin;                            /* Firefox */
  scrollbar-color: rgba(95,176,202,0.5) transparent;
}
.condition-content::-webkit-scrollbar { width: 6px; }
.condition-content::-webkit-scrollbar-track { background: transparent; }
.condition-content::-webkit-scrollbar-thumb {
  background: rgba(95, 176, 202, 0.45);
  border-radius: 3px;
}
.condition-content::-webkit-scrollbar-thumb:hover { background: rgba(95, 176, 202, 0.75); }
.condition-content .eyebrow {
  margin-bottom: 8px;
  font-size: .75rem;
}
.slide-counter {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  margin-left: 4px;
}
.condition-content h3 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.condition-content p {
  color: var(--text);
  font-size: .86rem;
  line-height: 1.5;
  margin-bottom: 10px;
  /* Left-aligned (was: text-align: justify). Justified text on the web
     relies on a rudimentary algorithm that distributes whitespace evenly
     across each line. On narrow viewports — especially Android Chrome with
     ~360px viewports — that creates very visible gaps between words. iPhone
     Safari hides the issue better with tighter glyph metrics, but the rule
     was platform-inconsistent either way. Left-align is the modern default
     and reads cleanly at every viewport width. */
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.condition-content .link-arrow {
  font-size: .9rem;
  padding-top: 6px;
  flex-shrink: 0;
}

/* Prev / next arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  box-shadow: var(--shadow-md);
  z-index: 5;
  cursor: pointer;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  padding-bottom: 4px;
}
.carousel-arrow:hover {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
  transform: translateY(-50%) scale(1.06);
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Dot pagination */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  border: none;
  transition: all .25s ease;
}
.carousel-dots button:hover { background: var(--text-muted); }
.carousel-dots button.active {
  background: var(--copper);
  width: 26px;
  border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .condition-slide { transition: opacity .2s ease; filter: none !important; }
}

@media (max-width: 900px) {
  .conditions-carousel { padding: 0 50px; }
  .condition-slide.is-prev { transform: translateX(calc(-50% - 240px)) scale(0.82); }
  .condition-slide.is-next { transform: translateX(calc(-50% + 240px)) scale(0.82); }
}

@media (max-width: 768px) {
  /* Minimal side gutter — just enough for the arrows to sit at the card
     edges without overlapping the image. Card itself fills most of the
     viewport width so descriptions get more words per line. */
  .conditions-carousel { padding: 0 22px; }
  .carousel-viewport { height: 700px; }
  .condition-slide { width: calc(100% - 28px); }
  .condition-slide.is-prev,
  .condition-slide.is-next {
    transform: translateX(-50%) scale(0.92);
    opacity: 0;
    filter: blur(4px);
  }
  .condition-image { height: 220px; }
  .condition-content { padding: 22px 22px 24px; }
  .condition-content h3 { font-size: 1.45rem; }
  .condition-content p { font-size: .92rem; }

  /* Compact arrows on mobile — small enough to leave room for the card +
     a longer line length in the description, large enough to stay tappable
     (28px circle + 6px of effective hit-padding from absolute positioning). */
  .carousel-arrow {
    display: flex;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(13, 36, 97, 0.16);
    z-index: 6;
    padding-bottom: 2px;
  }
  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }
  /* Bigger, higher-contrast dots so they're a clear navigation control,
     not a decorative footer. */
  .carousel-dots { margin-top: 18px; gap: 7px; }
  .carousel-dots button { width: 11px; height: 11px; background: rgba(13, 36, 97, 0.20); }
  .carousel-dots button.active { width: 28px; }
  /* Subtle "X of N" hint below the dots so visitors know there's a series
     to step through, not a single static card. Wired by JS. */
  .carousel-counter {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .5px;
  }
}
/* On desktop / wide we don't need the counter — JS renders it but CSS hides it. */
.carousel-counter { display: none; }
@media (max-width: 768px) { .carousel-counter { display: block; } }

/* ===== TECH SECTION ===== */
.tech-section { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.tech-card {
  background: var(--navy);
  color: #fff;
  border-left-color: var(--copper);
  display: grid;
  gap: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.stat:last-child { border-bottom: 0; padding-bottom: 0; }

/* Tech card feature list (LARGE ice-blue checkmark + bold serif text on dark navy card) */
.tech-card .tech-feature {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.tech-card .tech-feature:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.tech-check {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--copper);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(95, 176, 202, 0.45);
}
.tech-check svg {
  width: 28px;
  height: 28px;
}
.tech-feature-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.2px;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--copper);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,.8);
  margin-top: 6px;
  font-size: .95rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.testimonial {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 4px solid var(--copper);
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--ice);
  position: absolute;
  top: 0;
  right: 16px;
  line-height: 1;
}
.testimonial p {
  font-style: italic;
  color: var(--text);
  position: relative;
}
.testimonial footer {
  color: var(--copper);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 8px;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 28px; font-size: 1.1rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: #c9d3dc;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
/* Footer brand lockup mirrors the header brand lockup byte-for-byte
   on typography (font, size, weight, letter-spacing, line-height, tagline
   padding-left offset) — only the brand-name COLOR differs (white on the
   dark footer vs. navy on the light header). Logo size + horizontal gap
   also match the header so the bottom and top of the site read as the
   same visual mark. */
.footer-logo { width: 84px; height: auto; margin: 0; flex-shrink: 0; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: center;
}
.footer-brand-name {
  font-family: 'Montserrat', var(--font-sans);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .5px;
  /* line-height inherited from .footer-brand-text (1.05) — mirrors the
     header's .logo-text wrapper exactly so the brand + tagline stack at
     the same height in both lockups. */
  white-space: nowrap;
}
.footer-brand-tagline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  color: var(--copper);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  padding-left: 3.5px;
}
.footer-brand p { color: #aab6c2; font-size: .95rem; }

/* Social icon buttons (Facebook / Instagram / TikTok) */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d9e3ec;
  transition: all .2s ease;
}
.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}
.social-link:hover {
  background: var(--copper);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(95, 176, 202, 0.35);
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a { color: #c9d3dc; font-size: .95rem; }
.footer-col a:hover { color: var(--copper); }
.footer-contact li { color: #c9d3dc; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  font-size: .85rem;
  color: #8b97a3;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #8b97a3; }
.footer-bottom a:hover { color: var(--copper); }

/* ===== INNER PAGE HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 680px; margin: 0 auto; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: .9rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color .2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(95,176,202,.15);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-info-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 4px solid var(--copper);
}
.contact-info-card h3 { color: var(--navy); margin-bottom: 18px; }
.info-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-icon {
  width: 36px; height: 36px;
  background: var(--copper);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-text strong { display: block; color: var(--navy); margin-bottom: 2px; }
.info-text span { color: var(--text-muted); font-size: .95rem; }

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ===== CONDITIONS PAGE ===== */
.condition-block {
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}
.condition-block:last-child { border-bottom: 0; }
.condition-block h2 { color: var(--navy); }

/* ===== FAQ PAGE ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--copper);
  border-left-color: var(--copper-dark);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  position: relative;
  user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 22px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq-item[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-item > summary:hover { color: var(--copper-dark); }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}
.faq-answer p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .faq-item > summary { font-size: 1.02rem; padding: 18px 48px 18px 20px; }
  .faq-answer { padding: 0 20px 20px; font-size: .95rem; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .two-col,
  .two-col.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .two-col.reverse .two-col-text { order: 0; }
  .band-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  /* Compact hero on mobile so all CTAs + feature checklist stay above the
     fold even when the user has Chrome text scaling at 130%+. Pre-fix the
     hero had ~80+90=170px of vertical padding which pushed buttons offscreen
     on scaled Android. Tighter padding + tighter inter-element margins make
     the brand impression land within the first viewport on every phone. */
  .hero { padding: 40px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-text { text-align: center; }
  .hero-eyebrow { margin-bottom: 10px; }
  .hero-title { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 22px; }
  .hero-cta { justify-content: center; }
  .hero-checks { margin-top: 22px; }
  .hero-logo { max-width: 220px; margin: 0 auto; }
  /* Checkmark grid: stack to one column, centered */
  .hero-checks { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; gap: 10px; text-align: left; }
}

/* tighten gaps on small-desktop / tablet widths so 2-col doesn't feel cramped */
@media (max-width: 900px) and (min-width: 769px) {
  .two-col, .two-col.reverse, .contact-grid { gap: 36px; }
  .section { padding: 70px 0; }
  /* Header gets tighter at tablet widths */
  .main-nav ul { gap: 4px 14px; }
  .main-nav a { font-size: .82rem; }
  .header-cta { padding: 10px 18px; font-size: .82rem; }
  .logo { width: 60px; }
}

/* ============================================================================
 * MOBILE NAV — at <768px the horizontal menu hides entirely, the burger ☰
 * appears, and tapping it slides a drawer in from the right with a backdrop.
 * The body gets `.nav-open` (JS) which fades in the backdrop, locks page
 * scroll, and morphs the burger bars into an X.
 * ============================================================================ */
@media (max-width: 768px) {
  /* ===== TOPBAR — force a deterministic vertical stack on mobile =====
     Previously the topbar relied on flex-wrap, which gave different layouts
     on Android (narrower viewport → 3 wrapped rows of different widths) vs.
     iOS (wider viewport → 2 wrapped rows). Forcing column flexbox gives the
     exact same stack on every phone: phone → address → BOOK NOW. */
  .topbar { padding: 8px 0; }
  .topbar-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }
  .topbar-info {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }
  .topbar-link { line-height: 1.3; }
  .topbar-address { white-space: normal; word-break: keep-all; }
  .topbar-cta { margin-top: 2px; }

  /* Hero eyebrow margin override on mobile (size lives in the px-clamp at
     the base .hero-eyebrow rule). */
  .hero-eyebrow { margin-bottom: 14px; }
  .nav-toggle { display: flex; }       /* burger appears */
  .header-cta { display: none; }       /* topbar CTA + burger remain */
  .nav-close { display: block; align-self: flex-end; margin: 16px 16px 0 0; }

  /* MOBILE NAV — inline accordion pattern (no drawer, no fixed positioning).
     This is the Bootstrap/Tailwind-style classic mobile nav: tap the burger,
     the menu expands DOWN below the header inline; tap again to collapse.
     No position:fixed, no backdrop, no scroll lock — so iOS Safari has no
     surface area for its drawer-related bugs. The links are plain block
     anchors with no JS handlers; the browser navigates natively. */
  .main-nav {
    display: none;                /* hidden until burger is tapped */
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    position: absolute;
    top: 100%;                    /* drops below the header */
    left: 0; right: 0;
    box-shadow: 0 8px 24px rgba(13, 36, 97, 0.12);
    z-index: 50;
  }
  body.nav-open .main-nav { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 12px;
    gap: 0;
  }
  .main-nav ul li { width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav ul li:last-child { border-bottom: none; }
  .main-nav ul li a {
    display: block;
    padding: 18px 22px;
    font-size: 1rem;
    color: var(--navy);
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(95, 176, 202, 0.22);
  }
  .main-nav ul li a::after { display: none; }
  .main-nav ul li a:active { background: rgba(95, 176, 202, 0.10); }

  /* The dedicated nav-close X is no longer needed — tapping the burger
     again toggles the menu. Keep the HTML but hide the X. */
  .nav-close { display: none !important; }

  /* Header needs position:relative so the absolute-positioned .main-nav
     drops down relative to it, not relative to the viewport. */
  .site-header { position: relative; }
  .header-inner { justify-content: space-between; gap: 12px; padding: 14px 16px; }
  .logo { width: 56px; }
  /* Hide the header brand text on phones — the seal logo already shows
     "FLORIDA CRYOGEN" and we need the space for the hamburger button. */
  /* Brand text stays VISIBLE next to the logo on mobile (previously hidden
     to save width — but with the tighter logo size + counter-scaled type
     there's room). Compact px-anchored sizes so it never wraps or pushes
     the burger off-screen, even at 320px viewport + 130% Chrome scaling. */
  .logo-text { display: flex; min-width: 0; }
  .logo-brand {
    font-size: calc(clamp(13px, 3.5vw, 18px) / var(--text-scale, 1));
    letter-spacing: .3px;
  }
  .logo-tagline {
    font-size: calc(clamp(8px, 2vw, 10px) / var(--text-scale, 1));
    letter-spacing: 1.8px;
    margin-top: 2px;
    padding-left: 1.8px;
  }
  .band-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  /* .hero-title + .hero-sub font sizes live in the px-clamp at the base
     rule (top of file). No mobile override needed — clamp handles it. */
  /* Footer brand row mirrors the header mobile lockup: 56px seal logo +
     horizontal row + clamp-scaled typography. Previously stacked
     vertically with desktop sizes — created a visual mismatch where the
     bottom-of-page mark looked larger than the top-of-page mark. With
     the smaller mobile logo + clamp brand-name the row fits across the
     full-width footer column without clipping. */
  .footer-logo { width: 56px; }
  .footer-brand-row { flex-direction: row; align-items: center; gap: 12px; }
  .footer-brand-name {
    font-size: calc(clamp(13px, 3.5vw, 18px) / var(--text-scale, 1));
    letter-spacing: .3px;
  }
  .footer-brand-tagline {
    font-size: calc(clamp(8px, 2vw, 10px) / var(--text-scale, 1));
    letter-spacing: 1.8px;
    margin-top: 2px;
    padding-left: 1.8px;
  }

  /* ===== Mobile sizing dial-down (≤768px) =====
     Tighten the overall density: smaller base type, tighter sections,
     less side padding, less air around cards. The desktop site is built
     for a wide canvas; on a phone everything should feel compact. */
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .page-hero { padding: 50px 0 40px; }
  .page-hero h1 { font-size: 1.85rem; line-height: 1.18; }
  .page-hero p { font-size: 1rem; line-height: 1.45; max-width: 100%; padding: 0 6px; }
  h2 { font-size: 1.55rem; line-height: 1.2; }
  h3 { font-size: 1.15rem; }
  .card { padding: 20px; }
  .card h3 { font-size: 1.05rem; margin-bottom: 8px; }
  .card p { font-size: .92rem; line-height: 1.45; margin: 0 0 8px; }
  .card-grid { gap: 16px; }
  .cta-band { padding: 48px 0; }
  .cta-band p { font-size: 1rem; margin-bottom: 18px; }
}

/* ===== Smaller phones (≤480px) — extra tightening ===== */
@media (max-width: 480px) {
  html { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero p { font-size: .95rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.05rem; }
  /* .hero-title + .hero-sub use px-clamp at their base rule — no override. */
  .card { padding: 18px; }
  .card p { font-size: .9rem; }
  /* Keep address lines from wrapping the street name in two on narrow screens */
  .card p strong + br + br ~ * { font-size: .9rem; }
  .btn, .btn-primary, .btn-light, .btn-outline { padding: 12px 20px; font-size: .9rem; }

  /* Topbar text small enough that the full address fits on ONE LINE on
     a Pixel 7 (412px wide) even with Chrome accessibility text scaling at
     130%. Address still fully displayed — no truncation, no replacement —
     matches the iPhone layout exactly. */
  .topbar { padding: 6px 0; }
  .topbar-link, .topbar-cta { font-size: calc(clamp(10px, 2.5vw, 14px) / var(--text-scale, 1)); }
  .topbar-address { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .hero { padding: 22px 0 30px; }
  .hero-checks { margin-top: 14px; gap: 8px; }
  .header-inner { padding: 10px 14px; }
}

/* =============================================================================
   NATIVE BOOKING WIDGET (booking.js → #booking-widget)
   Renders inline on contact.html — no iframe, never blank.
   ============================================================================= */
.bw-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bw-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  color: var(--navy);
}
.bw-header strong { font-weight: 700; }
.bw-hours { font-size: 13px; color: var(--text-muted); }
/* "🆕 New Client" / "↩️ Returning Client" badge above the booking form,
   set by the pre-booking gate modal. The Change button lets the visitor
   re-open the gate without losing other form state. */
.bw-status-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; background: rgba(95, 176, 202, 0.08);
  border-bottom: 1px solid var(--border); gap: 8px; flex-wrap: wrap;
}
.bw-status-badge {
  font-size: 13px; font-weight: 700; color: var(--navy);
  letter-spacing: .2px;
}
.bw-status-change {
  background: none; border: 1px solid var(--copper); color: var(--copper);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.bw-status-change:hover { background: var(--copper); color: #fff; }
.bw-body { padding: 24px; background: #fbfdfe; }
.bw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 768px) { .bw-grid { grid-template-columns: 1fr; gap: 20px; } }

.bw-col { display: flex; flex-direction: column; }
.bw-label {
  font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px; display: block;
}
.bw-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit; font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bw-input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(95, 176, 202, .15);
}
.bw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Name row — first + last share equal columns, never stretch. Stack on mobile. */
.bw-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.bw-name-row .bw-input { width: 100%; }
.bw-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
@media (max-width: 480px) {
  .bw-name-row { grid-template-columns: 1fr; }
}
/* Select fields in the widget — match the input styling, add chevron */
select.bw-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}
select.bw-input:disabled {
  background-color: #f3f6f9;
  color: var(--text-muted);
  cursor: not-allowed;
  font-weight: 500;
}
.bw-time-summary {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 6px 2px 0;
  min-height: 1em;       /* prevents layout jump when empty */
  line-height: 1.4;
}

/* "Flexible appointments" CTA — appears below the time dropdown when the
   user picks a Sunday, after-hours window, or a fully-booked day. Never
   tells the visitor we're "closed"; instead offers the call + contact-form
   path so off-hours requests have a clear next step. */
.bw-flex-cta {
  margin-top: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(95, 176, 202, 0.10) 0%, rgba(207, 228, 236, 0.20) 100%);
  border: 1px solid rgba(95, 176, 202, 0.30);
  border-radius: 10px;
}
.bw-flex-headline {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: .98rem;
  color: var(--navy);
}
.bw-flex-tagline {
  margin: 0 0 6px;
  font-size: .95rem;
  color: var(--navy);
  line-height: 1.4;
}
.bw-flex-sub {
  margin: 0 0 12px;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.bw-flex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bw-flex-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--copper);
  border-radius: 8px;
  background: #fff;
  color: var(--copper);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}
.bw-flex-btn:hover { background: rgba(95, 176, 202, 0.08); }
.bw-flex-btn-primary {
  background: var(--copper);
  color: #fff;
}
.bw-flex-btn-primary:hover { background: var(--copper-dark); color: #fff; }
@media (max-width: 480px) {
  .bw-flex-actions { flex-direction: column; }
  .bw-flex-btn { justify-content: center; }
}
textarea.bw-input { resize: vertical; min-height: 90px; }

.bw-slots {
  min-height: 64px;
  padding: 8px 0;
}
.bw-muted { color: var(--text-muted); font-size: 14px; }
.bw-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
}
.bw-slot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 6px;
  cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--navy);
  transition: all .15s ease;
}
.bw-slot:hover { border-color: var(--copper); color: var(--copper-dark); }
.bw-slot.selected {
  background: var(--copper); color: #fff; border-color: var(--copper);
  box-shadow: 0 4px 12px rgba(95, 176, 202, .35);
}

.bw-btn {
  margin-top: 16px;
  background: var(--copper);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .15s ease;
}
.bw-btn:hover:not(:disabled) {
  background: var(--copper-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(95, 176, 202, .35);
}
.bw-btn:disabled { opacity: .55; cursor: not-allowed; }

.bw-status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.bw-status-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.bw-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--ice-soft);
}
.bw-footer a { color: var(--navy); font-weight: 600; }

.bw-success, .bw-fallback {
  text-align: center;
  padding: 48px 24px;
}
.bw-success-icon {
  font-size: 48px; line-height: 1;
  margin-bottom: 8px;
  color: #16a34a;
}
.bw-fallback-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 18px;
}
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--copper); color: var(--copper-dark); }
