/* ==========================================================================
   NewDeal After School Program — Ad 4 (School-Closed Daycare) Landing Page
   "School's Closed. We're Open."
   Premium, mobile-first, cross-browser optimized stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root{
  --navy:        #0f2647;
  --navy-deep:   #081729;
  --navy-mid:    #16335c;
  --gold:        #f0a83a;
  --gold-deep:   #d6871a;
  --cream:       #fffaf1;
  --ink:         #1b2430;
  --ink-soft:    #4a5568;
  --line:        #e7e2d6;
  --white:       #ffffff;
  --success:     #1e8e5a;
  --danger:      #d64545;
  --shadow-sm:   0 2px 8px rgba(15,38,71,.08);
  --shadow-md:   0 10px 30px rgba(15,38,71,.14);
  --shadow-lg:   0 24px 60px rgba(15,38,71,.22);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   26px;
  --font-head:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap-max:    1180px;
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; height: auto; }
picture{ display: block; }
a{ color: inherit; text-decoration: none; }
h1, h2, h3, h4{ font-family: var(--font-head); margin: 0 0 .5em; line-height: 1.15; color: var(--navy); }
p{ margin: 0 0 1em; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }
input, textarea{ font-family: inherit; font-size: 16px; } /* 16px prevents iOS zoom-on-focus */

.wrap{
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip link ---------- */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus{
  left: 12px;
  top: 12px;
}

/* Visible focus rings everywhere (accessibility + all browsers) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Announcement bar ---------- */
.announce-bar{
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  color: #fdf3de;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 9px 12px;
  padding-top: calc(9px + var(--safe-top));
  border-bottom: 1px solid rgba(240,168,58,.28);
}

/* ---------- Header ---------- */
.site-header{
  background: linear-gradient(180deg, var(--navy) 0%, #0c1f3d 100%);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 4px 24px rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(240,168,58,.18);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 12px;
}
.logo{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 80px;
  line-height: 1;
  color: #fff;
  transition: transform .2s ease, filter .2s ease;
}
.logo:hover{ transform: translateY(-1px); filter: brightness(1.08); }
.logo-img{
  display: block;
  height: 80px;
  width: auto;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  flex: none;
}
.logo-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.logo-name{
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
  line-height: 1.05;
  white-space: nowrap;
}
.logo-tagline{
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.05;
  white-space: nowrap;
}
.logo-badge{
  font-size: 9.5px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-deep);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(214,135,26,.35);
  align-self: center;
}
.phone-link{
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  background: rgba(255,255,255,.08);
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.18);
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.phone-link:hover{ background: var(--gold); color: var(--navy-deep); transform: translateY(-1px); }
.phone-link svg{ flex: none; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.hero-media{ position: absolute; inset: 0; z-index: -2; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-scrim{
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,23,41,.9) 0%, rgba(8,23,41,.72) 32%, rgba(8,23,41,.55) 60%, rgba(8,23,41,.9) 100%),
    linear-gradient(100deg, rgba(8,23,41,.65) 0%, rgba(8,23,41,.05) 55%),
    radial-gradient(circle at 12% 22%, rgba(240,168,58,.22), transparent 42%);
}
.hero::after{
  /* soft gold vignette from top-left — subtle brand glow */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 85% 90%, rgba(240,168,58,.14), transparent 45%);
  pointer-events: none;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
  padding: 56px 20px 68px;
  min-height: 680px;
}
.hero-copy{ padding-right: 6px; }
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(240,168,58,.22), rgba(240,168,58,.08));
  border: 1px solid rgba(240,168,58,.6);
  color: #ffd88a;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 30px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(240,168,58,.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero h1{
  color: #fff;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: -.015em;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero h1 .accent{
  color: var(--gold);
  background: linear-gradient(135deg, #ffd88a 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hero-sub{
  font-size: 16.5px;
  color: #dfe6f0;
  max-width: 540px;
  margin-bottom: 18px;
}
.hero-bullets{ margin-bottom: 22px; display: flex; flex-direction: column; gap: 9px; }
.hero-bullets li{
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 600;
  color: #f3f6fa;
}
.hero-bullets li::before{
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-deep);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(240,168,58,.35);
}
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-ctas.center{ justify-content: center; }
.trust-micro{ font-size: 13px; color: #b9c6da; margin: 0; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  min-height: 54px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before{
  /* subtle shimmer sheen on hover */
  content: "";
  position: absolute; top: 0; left: -110%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .6s ease;
  pointer-events: none;
}
.btn:hover::before{ left: 130%; }
.btn:active{ transform: translateY(1px) scale(.99); }
.btn-primary{
  background: linear-gradient(135deg, #ffc36b 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: var(--navy-deep);
  box-shadow: 0 10px 26px rgba(214,135,26,.45), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover{ box-shadow: 0 16px 34px rgba(214,135,26,.55), inset 0 1px 0 rgba(255,255,255,.5); transform: translateY(-2px); }
.btn-ghost{
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover{ background: rgba(255,255,255,.16); border-color: #fff; }
.btn-ghost-dark{
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost-dark:hover{ background: var(--navy); color: #fff; }
.btn-block{ width: 100%; }
.btn:disabled{ opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- Form card ---------- */
.form-card{
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 28px 26px;
  box-shadow: 0 30px 80px rgba(8,23,41,.42), 0 2px 6px rgba(8,23,41,.14);
  border: 1px solid rgba(255,255,255,.75);
  position: relative;
}
.form-card::before{
  /* thin gold accent stripe on top */
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 0 0 4px 4px;
}
.form-title{
  font-size: 21px;
  margin-bottom: 4px;
}
.form-sub{
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.field{ margin-bottom: 14px; position: relative; }
.field label{
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
  letter-spacing: .01em;
}
.field input,
.field textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fdfcf9;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(240,168,58,.18);
}
.field textarea{ resize: vertical; min-height: 64px; }
.field.field-invalid input,
.field.field-invalid textarea{ border-color: var(--danger); }
.field-error{
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  min-height: 0;
}
.field-check{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 10px;
  align-items: start;
  margin-bottom: 16px;
}
.field-check input{
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-deep);
}
.field-check label{
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
}
.field-check label a{ color: var(--navy); text-decoration: underline; }
.field-check .field-error{ grid-column: 1 / -1; }

#submitBtn{ position: relative; }
.btn-spinner{
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(15,38,71,.25);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
#submitBtn.is-loading .btn-label{ opacity: .4; }
#submitBtn.is-loading .btn-spinner{ display: inline-block; position: absolute; right: 20px; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.legal{ font-size: 11px; color: #8a94a3; margin: 12px 0 0; line-height: 1.4; }

.form-success{ text-align: center; padding: 10px 4px 4px; }
.success-icon{
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.form-success h3{ font-size: 19px; margin-bottom: 8px; }
.form-success p{ font-size: 14px; color: var(--ink-soft); }
.success-alt a{ color: var(--navy); font-weight: 700; text-decoration: underline; }

/* ---------- Trust bar ---------- */
.trustbar{
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  color: #fff;
  padding: 24px 0;
  border-top: 1px solid rgba(240,168,58,.2);
  border-bottom: 1px solid rgba(240,168,58,.2);
}
.trustbar-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: center;
  position: relative;
}
.trustbar .cell{
  font-size: 12px; color: #cdd7e6; font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
}
.trustbar .cell strong{
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
}
.trustbar .cell + .cell::before{
  content: "";
  position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(240,168,58,.3), transparent);
}

/* ---------- Benefits ---------- */
.benefits{ padding: 72px 20px 56px; position: relative; }
.benefits::before{
  /* eyebrow label above heading */
  content: "WHY FAMILIES CHOOSE US";
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.benefits h2{
  text-align: center;
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 900;
  max-width: 780px;
  margin: 0 auto 44px;
  color: var(--navy);
  letter-spacing: -.01em;
}
.benefit-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.benefit-card{
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15,38,71,.09);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  border: 1px solid rgba(15,38,71,.06);
}
.benefit-card::before{
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  opacity: 0; transition: opacity .25s ease;
  z-index: 2;
}
.benefit-card:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,38,71,.18); }
.benefit-card:hover::before{ opacity: 1; }
.benefit-card picture{ overflow: hidden; }
.benefit-card picture img{ width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.benefit-card:hover picture img{ transform: scale(1.05); }
.benefit-card h3{ font-size: 18px; font-weight: 800; margin: 18px 20px 8px; color: var(--navy); }
.benefit-card p{ font-size: 14px; color: var(--ink-soft); margin: 0 20px 22px; line-height: 1.55; }

.benefit-row-2{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mini-benefit{
  display: flex;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf9ef 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mini-benefit:hover{ transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,38,71,.1); border-color: rgba(240,168,58,.4); }
.mini-ico{
  font-size: 22px; flex: none; line-height: 1;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(240,168,58,.18), rgba(240,168,58,.06));
  border-radius: 12px;
  border: 1px solid rgba(240,168,58,.3);
}
.mini-benefit strong{ display: block; font-size: 14.5px; color: var(--navy); margin-bottom: 4px; font-weight: 800; }
.mini-benefit p{ font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Gallery (LP1-6 flatlay imagery) ---------- */
.gallery{
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 72px 20px 80px;
  position: relative;
  overflow: hidden;
}
.gallery::before{
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(240,168,58,.18), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(240,168,58,.12), transparent 50%);
  pointer-events: none;
}
.gallery-head::before{
  content: "IN OUR CENTER";
  display: block;
  font-size: 11.5px; font-weight: 800; letter-spacing: .28em;
  color: var(--gold); margin-bottom: 10px;
}
.gallery-head h2{ font-weight: 900; letter-spacing: -.01em; }
.gallery-head{ text-align: center; max-width: 620px; margin: 0 auto 34px; position: relative; z-index: 1; }
.gallery-head h2{ color: #fff; font-size: clamp(23px, 3.2vw, 30px); }
.gallery-head p{ color: #c3cee0; font-size: 14.5px; margin: 0; }
.gallery-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  position: relative;
  z-index: 1;
}
.gallery-card{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.gallery-card img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-card .gallery-tag{
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(8,23,41,.72);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.18);
}
.gallery-card.tall{ min-height: 100%; }
.gallery-card.short{ aspect-ratio: 16/11; }

/* ---------- Testimonial ---------- */
.testimonial{ padding: 72px 20px; background: linear-gradient(180deg, transparent 0%, rgba(240,168,58,.05) 100%); }
.testimonial blockquote{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border: none;
  padding: 40px 32px 32px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(15,38,71,.1);
  border: 1px solid rgba(15,38,71,.06);
}
.testimonial blockquote::before{
  /* giant decorative quote mark */
  content: "“";
  position: absolute;
  top: -18px; left: 32px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 96px;
  line-height: 1;
  color: var(--gold);
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(240,168,58,.28);
}
.testimonial p{
  font-size: clamp(19px, 2.6vw, 26px);
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
}
.testimonial footer{
  font-size: 13.5px; color: var(--ink-soft); font-weight: 700;
  margin-top: 14px; letter-spacing: .03em; text-transform: uppercase;
}
.testimonial footer::before{
  content: ""; display: inline-block;
  width: 28px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- Final CTA ---------- */
.final-cta{
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before{
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(240,168,58,.16), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(240,168,58,.1), transparent 45%);
  pointer-events: none;
}
.final-cta-inner{ position: relative; z-index: 1; }
.final-cta h2{ color: #fff; font-size: clamp(26px, 3.8vw, 38px); font-weight: 900; margin-bottom: 10px; letter-spacing: -.01em; }
.final-cta p{ color: #cdd7e6; font-size: 16px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-deep);
  color: #9fb0c8;
  padding: 30px 20px 96px;
  text-align: center;
  border-top: 3px solid var(--gold);
}
.footer-inner p{ margin: 0 0 8px; font-size: 12.5px; }
.footer-links a{ text-decoration: none; color: #b9c6da; transition: color .2s ease; margin: 0 4px; }
.footer-links a:hover{ color: var(--gold); }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar{
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-deep);
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 16px;
  padding-bottom: calc(14px + var(--safe-bottom));
  box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}

/* ---------- Scroll-reveal animation hooks (JS adds .is-visible) ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Tablet */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; padding-top: 34px; min-height: auto; }
  .hero-copy{ padding-right: 0; text-align: center; }
  .hero-bullets{ display: inline-block; text-align: left; }
  .hero-ctas{ justify-content: center; }
  .form-card{ max-width: 480px; margin: 0 auto; }
  .benefit-grid{ grid-template-columns: repeat(2, 1fr); }
  .benefit-row-2{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .gallery-card.tall{ aspect-ratio: 16/11; }
}

/* Mobile */
@media (max-width: 640px){
  .wrap{ padding: 0 16px; }
  .header-inner{ height: 72px; }
  .logo{ height: 56px; gap: 10px; }
  .logo-img{ height: 56px; }
  .logo-name{ font-size: 15px; }
  .logo-tagline{ font-size: 9px; letter-spacing: .1em; }
  .logo-badge{ display: none; } /* keep header tidy on phones */
  .phone-link span{ display: none; }
  .phone-link{ padding: 10px; border-radius: 50%; }
  .phone-link svg{ width: 18px; height: 18px; }

  .announce-bar{ font-size: 11px; padding: 7px 10px; padding-top: calc(7px + var(--safe-top)); }
  .announce-bar br{ display:none; }

  .hero-grid{ padding: 26px 16px 40px; gap: 26px; }
  .hero h1{ font-size: 27px; }
  .hero-sub{ font-size: 15px; }
  .pill{ font-size: 12px; }
  .hero-ctas{ flex-direction: column; width: 100%; }
  .hero-ctas .btn{ width: 100%; }
  .hero-ctas.center{ align-items: stretch; }

  .form-card{ padding: 22px 18px 20px; border-radius: 18px; }
  .form-title{ font-size: 18.5px; }

  .trustbar-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .trustbar .cell strong{ font-size: 15px; }

  .benefits{ padding: 44px 16px 30px; }
  .benefit-grid{ grid-template-columns: 1fr; gap: 18px; }
  .benefit-card picture img{ aspect-ratio: 16/10; }

  .gallery{ padding: 40px 16px; }
  .gallery-card.short{ aspect-ratio: 4/3; }

  .testimonial{ padding: 36px 16px; }
  .final-cta{ padding: 42px 16px 46px; }

  .site-footer{ padding: 22px 16px 100px; }

  .mobile-call-bar{ display: block; }
  body{ padding-bottom: 0; }
}

/* Small phones */
@media (max-width: 420px){
  .logo-text{ display: none; } /* on very tight widths, let the logo mark speak for itself */
}
@media (max-width: 380px){
  .hero h1{ font-size: 24px; }
  .btn{ font-size: 14.5px; padding: 14px 18px; }
}

/* Landscape phone: shrink hero a bit so form isn't fully off-screen */
@media (max-width: 900px) and (orientation: landscape){
  .hero-media img{ object-position: center 15%; }
}

/* Large desktop refinement */
@media (min-width: 1400px){
  .wrap{ max-width: 1280px; }
  .hero h1{ font-size: 50px; }
}

/* Print */
@media print{
  .mobile-call-bar, .announce-bar, .site-header{ display: none; }
}

/* High-contrast / forced-colors mode support */
@media (forced-colors: active){
  .btn{ border: 2px solid; }
  .gallery-card .gallery-tag{ background: Canvas; color: CanvasText; border-color: CanvasText; }
}
