/* ==========================================================================
   Delta Dental Care — Invisalign Open Day Landing Page
   Brand colours derived from the Delta Dental Care logo (#948453 gold/bronze
   on white). See README.md for asset sources and campaign configuration.
   ========================================================================== */

:root {
  /* Brand palette */
  --gold: #948453;          /* Primary brand gold — decorative, large/bold text, icons */
  --gold-deep: #6b5c37;     /* Darker gold — buttons & body-size text (AA contrast on white) */
  --gold-darker: #564a2c;   /* Hover state for buttons */
  --gold-tint: #f7f4ec;     /* Very light cream section background */
  --gold-tint-2: #efe9d8;   /* Slightly deeper tint for borders/dividers */
  --ink: #201d17;           /* Primary text (warm near-black) */
  --ink-soft: #58513f;      /* Secondary / muted text */
  --white: #ffffff;
  --border: #e7e1cf;
  --success: #4b6b45;       /* Used sparingly for confirmation ticks */
  --danger: #a3352b;        /* Form validation errors */
  --shadow-sm: 0 1px 3px rgba(32, 29, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(32, 29, 23, 0.10);
  --shadow-lg: 0 16px 48px rgba(32, 29, 23, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-width: 1180px;
  --header-h: 72px;
  --urgency-h: 40px;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { 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; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

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

/* Grid/flex children default to min-width:auto (their content's min-content
   size), which can force the whole row wider than the viewport when a
   child contains nowrap text (badges, buttons). This resets that so
   children always shrink to fit and wrap normally instead. */
.hero .container > *,
.offer-grid > *,
.steps-grid > *,
.benefits-layout > *,
.trust-layout > *,
.location-layout > *,
.register-layout > *,
.footer-grid > *,
.team-grid > *,
.price-panel,
.price-tiers,
.price-tier,
.price-figures,
.hero-ctas,
.trust-microcopy,
.price-badges,
.value-stack-list li,
.value-stack-total {
  min-width: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

section { padding: 64px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

h2.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 36px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-header .section-lede { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-darker); }

.btn-on-dark {
  background: var(--white);
  color: var(--gold-darker);
}
.btn-on-dark:hover { background: var(--gold-tint); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  padding: 10px 20px;
  font-size: 0.95rem;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1.08rem; }

/* ==========================================================================
   Urgency bar
   ========================================================================== */
.urgency-bar {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  min-height: var(--urgency-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
.urgency-bar strong { color: var(--gold); font-weight: 800; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  white-space: nowrap;
}
.header-phone svg { flex-shrink: 0; color: var(--gold-deep); }
.header-phone .phone-label { display: none; }

/* Header CTA is redundant on small screens where the sticky bottom CTA
   already provides "Register for Open Day" — hiding it here keeps the
   header to just logo + clickable phone number, per brief. */
.header-actions .btn-primary { display: none; }

@media (min-width: 560px) {
  .header-phone .phone-label { display: inline; font-weight: 500; color: var(--ink-soft); margin-right: 2px; }
}

@media (min-width: 768px) {
  .header-actions .btn-primary { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 40px 0 56px;
  background: linear-gradient(180deg, var(--gold-tint) 0%, var(--white) 78%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero-content { order: 1; }
.hero-media { order: 2; }

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 1.6rem + 2.2vw, 3.2rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-deep);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 24px;
}

.price-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.price-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 14px;
}
.price-tier { min-width: 0; }
.price-tier-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.price-tier-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}
.price-figures { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.price-was {
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.price-now {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.price-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-save { background: var(--gold-deep); color: var(--white); }
.badge-included { background: var(--gold-tint-2); color: var(--gold-darker); border: 1px solid var(--gold); }
.price-extras {
  color: var(--gold-darker);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.trust-microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.trust-microcopy span { display: inline-flex; align-items: center; gap: 6px; }
.trust-microcopy svg { color: var(--gold-deep); flex-shrink: 0; }

.hero-media figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gold-tint);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-media figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
}

/* ==========================================================================
   Offer value cards
   ========================================================================== */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.offer-card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.offer-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.offer-card p { color: var(--ink-soft); font-size: 0.98rem; }
.offer-card .card-price { color: var(--gold-darker); font-weight: 700; margin-top: 10px; }

.value-stack {
  margin-top: 24px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.value-stack-header { text-align: center; margin-bottom: 18px; }
.value-stack-header .eyebrow { display: block; }
.value-stack-header h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
}
.value-stack-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding-top: 4px;
}
.value-stack-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.value-stack-list li:last-child { border-bottom: none; padding-bottom: 0; }
.value-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  min-width: 0;
  flex: 1 1 auto;
}
.value-item-name svg { color: var(--gold-deep); flex-shrink: 0; }
.value-item-worth {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
.value-stack-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: var(--gold-tint);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 8px 12px;
}
.value-stack-total span { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.value-stack-total strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-darker);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .value-stack-list { grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
}

.offer-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 640px;
  margin: 28px auto 0;
}

/* ==========================================================================
   How it works — steps
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 62px;
}
.step-num {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

.steps-cta { text-align: center; margin-top: 36px; }

/* ==========================================================================
   Why Invisalign — benefits
   ========================================================================== */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.benefits-list { display: grid; gap: 16px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-item svg {
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 3px;
}
.benefit-item p { color: var(--ink); font-size: 1rem; }

/* ==========================================================================
   Trust / practice section
   ========================================================================== */
.trust-section { background: var(--gold-tint); }
.trust-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.trust-intro p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.trust-address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 20px;
}
.trust-address svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.trust-address address { font-style: normal; line-height: 1.5; }
.trust-address a { font-weight: 700; color: var(--gold-darker); }

.team-grid-header { text-align: center; margin-top: 48px; margin-bottom: 24px; }
.team-grid-header h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  color: var(--ink);
}

.team-grid {
  display: grid;
  /* auto-fit + minmax makes this self-adjusting by available width rather
     than a fixed breakpoint: it naturally lays out as one column on a
     narrow phone and a horizontal 3-across strip on desktop/tablet,
     whatever the exact window width (a fixed min-width:768px rule here
     previously stayed single-column on any desktop browser window
     narrower than 768px). */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.team-card-body { padding: 20px 22px; }
.team-card-body .eyebrow-small {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 4px; display: block;
}
.team-card-body h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 2px; }
.team-card-body .role { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 8px; display: block; }
.team-card-body p.bio { font-size: 0.9rem; color: var(--ink-soft); }

.practice-photo-wrap {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.practice-photo-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.practice-photo-wrap figcaption {
  background: var(--white);
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Accreditation logo strip
   ========================================================================== */
.accreditation-strip { padding: 36px 0; }
.accreditation-strip .strip-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.accreditation-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 52px;
}
.accreditation-logos img {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(15%);
}

@media (min-width: 768px) {
  .accreditation-logos img { height: 60px; }
}

/* ==========================================================================
   Social proof
   ========================================================================== */
.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.reviews-rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.reviews-rating .rating-text { font-weight: 700; color: var(--ink); }
.reviews-rating .rating-sub { color: var(--ink-soft); font-size: 0.92rem; }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 10px; display: block; font-size: 0.95rem; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 1rem; color: var(--ink); margin-bottom: 14px; }
.testimonial-card .attribution { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.testimonial-card .source-tag { font-size: 0.78rem; color: var(--ink-soft); font-weight: 400; }

.reviews-link { text-align: center; margin-top: 28px; }
.reviews-link a { color: var(--gold-darker); font-weight: 700; border-bottom: 2px solid var(--gold); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-question .icon-plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq-question .icon-plus::before, .faq-question .icon-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.faq-question .icon-plus::before { width: 12px; height: 2px; }
.faq-question .icon-plus::after { width: 2px; height: 12px; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .icon-plus { background: var(--gold-deep); color: var(--white); }
.faq-question[aria-expanded="true"] .icon-plus::after { transform: rotate(90deg) scaleY(0); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.faq-answer-inner { padding: 0 4px 20px; color: var(--ink-soft); font-size: 0.98rem; max-width: 68ch; }

/* ==========================================================================
   Registration section (contrasting)
   ========================================================================== */
.register-section {
  background: var(--ink);
  color: var(--white);
  position: relative;
}
.register-section .eyebrow { color: var(--gold); }
.register-section h2.section-title { color: var(--white); }
.register-intro { text-align: center; max-width: 640px; margin: 0 auto 20px; }
.register-intro p.sub { color: #d9d4c4; }

.register-price {
  display: flex;
  justify-content: center;
  margin: 20px 0 8px;
}
.register-price .price-tiers { justify-content: center; margin-bottom: 0; }
.register-price .price-tier-label { color: #b9b39f; }
.register-price .price-was { color: #b9b39f; }
.register-price .price-now { color: var(--white); }
.register-price .price-tier-divider { background: rgba(255, 255, 255, 0.18); }
.register-included {
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 32px;
}

.register-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.register-checklist { display: grid; gap: 14px; align-content: start; }
.register-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #ece8da;
  font-size: 0.98rem;
}
.register-checklist svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 4px; }
.form-card .form-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 20px; }

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-row .optional-tag { color: var(--ink-soft); font-weight: 400; }
.form-row input,
.form-row select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease;
  min-height: 48px;
}
.form-row input:focus, .form-row select:focus {
  border-color: var(--gold-deep);
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 92, 55, 0.15);
}
.form-row input[aria-invalid="true"] { border-color: var(--danger); }
.form-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 5px;
  display: none;
}
.form-error.visible { display: block; }

.form-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}
.consent-row input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--gold-deep);
  flex-shrink: 0;
}
.consent-row label { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }
.consent-row a { color: var(--gold-darker); font-weight: 600; text-decoration: underline; }

.form-submit-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.5;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.error { background: #fbeceb; color: var(--danger); }

/* ==========================================================================
   Location
   ========================================================================== */
.location-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.location-card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 14px; }
.location-detail { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.location-detail svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.location-detail a { font-weight: 700; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  background: var(--gold-tint);
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #f4f1e6;
  padding: 44px 0 100px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
@media (min-width: 768px) {
  .site-footer { padding-bottom: 44px; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand img { height: 34px; margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-weight: 600; color: var(--ink); }
.footer-links a:hover { color: var(--gold-darker); }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-copyright { margin-top: 14px; font-size: 0.78rem; }

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(32,29,23,0.10);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ==========================================================================
   Scroll-reveal (subtle, respects prefers-reduced-motion)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

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

/* Small phones baseline is mobile-first above. Tighten hero spacing for very small widths */
@media (max-width: 374px) {
  .container { padding: 0 16px; }
  .btn { padding: 14px 20px; font-size: 0.95rem; }
}

/* Tablet and up */
@media (min-width: 640px) {
  .form-row-double { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  section { padding: 88px 0; }
  .section-tight { padding: 60px 0; }
  .hero { padding: 56px 0 80px; }
  .benefits-layout { grid-template-columns: 1.1fr 0.9fr; }
  .trust-layout { grid-template-columns: 1.1fr 0.9fr; }
  .location-layout { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
  .hero-content { order: 0; }
  .hero-media { order: 0; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .register-layout { grid-template-columns: 0.9fr 1.1fr; }
  h2.section-title { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); }
}

@media (min-width: 1440px) {
  .container { padding: 0 24px; }
}

/* ==========================================================================
   Standalone thank-you page (thank-you.html)
   ========================================================================== */
.thankyou-page-main {
  min-height: calc(100vh - var(--header-h) - 1px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 64px;
  background: linear-gradient(180deg, var(--gold-tint) 0%, var(--white) 60%);
  position: relative;
  overflow: hidden;
}

.thankyou-card {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 28px;
  text-align: center;
}
@media (min-width: 640px) {
  .thankyou-card { padding: 56px 48px; }
}

.thankyou-card .icon-check {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}

.thankyou-card h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 14px;
}

.thankyou-card p.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.thankyou-next-steps {
  text-align: left;
  background: var(--gold-tint);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}
.thankyou-next-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.96rem;
}
.thankyou-next-steps svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }

.thankyou-recap {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
