/* ============================================
   Karina Somenzari — The Agency San Diego
   Brand: editorial/luxury, black + cream + gold
   ============================================ */

:root {
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --charcoal: #3a3a3a;
  --smoke: #6b6b6b;
  --line: #d9d4cb;
  --cream: #f6f2ea;
  --paper: #fbf9f5;
  --white: #ffffff;
  --gold: #b8935a;
  --gold-dark: #8f6f3f;
  --danger: #b44c3a;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --shadow: 0 20px 60px rgba(10, 10, 10, 0.12);
  --shadow-sm: 0 6px 20px rgba(10, 10, 10, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin-bottom: 1rem; color: var(--charcoal); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 56ch;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
}
.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--gold-dark); color: var(--white) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
    gap: 1.2rem;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .25s ease;
  font-family: var(--font-body);
  text-align: center;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-dark);
}
.btn-lg { padding: 1.1rem 2.4rem; font-size: 0.88rem; }
.btn-block { width: 100%; display: block; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/hero-sandiego-desktop.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
@media (max-width: 860px) {
  .hero::before {
    background-image: url("../images/hero-sandiego-mobile.jpg");
    background-position: center;
  }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
}
.hero h1 {
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 48ch;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero .btn-outline { color: var(--white); border-color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--black); }
.hero .eyebrow { color: var(--gold); }

/* ---------- SECTIONS ---------- */
section { padding: 6rem 0; }
@media (max-width: 700px) { section { padding: 4rem 0; } }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-head p { margin-top: 1rem; font-size: 1.05rem; }

.divider {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.about-photo {
  aspect-ratio: 4 / 5;
  background-image: url("https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.about-text .eyebrow { display: block; }
.about-text h2 { margin-bottom: 1.5rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 0.5rem;
  display: block;
}

/* ---------- TOOLS / CARD GRID ---------- */
.tools {
  background: var(--cream);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
@media (max-width: 860px) {
  .tools-grid { grid-template-columns: 1fr; }
}
.tool-card {
  background: var(--white);
  padding: 2.75rem 2rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.tool-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.tool-card h3 { margin-bottom: 0.75rem; }
.tool-card p { flex: 1; font-size: 0.95rem; }
.tool-card a.link-arrow {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--black);
}
.tool-card a.link-arrow:hover { color: var(--gold-dark); }
.tool-card a.link-arrow::after { content: " →"; transition: margin .2s ease; }
.tool-card a.link-arrow:hover::after { margin-left: 6px; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--black);
  color: var(--white);
}
.testimonials h2, .testimonials .eyebrow { color: var(--white); }
.testimonials .eyebrow { color: var(--gold); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--cream);
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 52ch; margin: 0 auto 2.5rem; font-size: 1.1rem; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
footer a { color: rgba(255,255,255,0.75); display: block; padding: 0.25rem 0; }
footer a:hover { color: var(--gold); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}
.dre { color: rgba(255,255,255,0.5); }

/* ============================================
   INTERIOR PAGES
   ============================================ */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:"";
  position:absolute; inset:0;
  background-image: url("https://images.unsplash.com/photo-1519046904884-53103b34b206?auto=format&fit=crop&w=1920&q=80");
  background-size: cover; background-position: center;
  opacity: 0.22;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 60ch; margin: 1rem auto 0; }

/* ---------- FORMS ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.3rem; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-row .hint { font-size: 0.8rem; color: var(--smoke); margin-top: 0.3rem; }
.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---------- FTHB PAGE ---------- */
.fthb-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 960px) { .fthb-layout { grid-template-columns: 1fr; } }

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
  transition: box-shadow .25s ease;
}
.program-card:hover { box-shadow: var(--shadow-sm); }
.program-card h3 { margin-bottom: 0.3rem; }
.program-card .program-meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  font-weight: 500;
}
.program-card ul { padding-left: 1.2rem; margin-top: 0.6rem; }
.program-card ul li { margin-bottom: 0.4rem; color: var(--charcoal); font-size: 0.95rem; }

.sticky-form { position: sticky; top: 90px; }

/* ---------- STEPS / PROCESS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.step h4 { font-family: var(--font-body); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--black); }
.step p { font-size: 0.9rem; }

/* ---------- CALCULATOR ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) { .calc-wrap { grid-template-columns: 1fr; } }

.range-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.range-val { font-weight: 600; color: var(--gold-dark); font-variant-numeric: tabular-nums; }
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px; width: 20px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: -8px;
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.result-card {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 2px;
  position: sticky;
  top: 90px;
}
.result-card .eyebrow { color: var(--gold); }
.result-card h3 { color: var(--white); margin-bottom: 1.5rem; }
.result-figure {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  margin: 0.3rem 0 0.2rem;
  line-height: 1;
}
.result-small {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.result-row {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.result-row:last-child { border-bottom: 0; }
.result-breakdown { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-top: 0.5rem; }

.result-lead-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.result-lead-form input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.result-lead-form input::placeholder { color: rgba(255,255,255,0.4); }
.result-lead-form label { color: rgba(255,255,255,0.6); }

/* ---------- QUIZ ---------- */
.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .quiz-shell { padding: 2rem 1.5rem; } }

.progress-track {
  background: var(--line);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width .4s ease;
}
.progress-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 2rem;
}
.quiz-q {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--black);
  margin-bottom: 2rem;
  line-height: 1.25;
}
.quiz-options { display: grid; gap: 0.75rem; }
.quiz-option {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  background: var(--paper);
  transition: all .2s ease;
  font-size: 1rem;
  text-align: left;
  font-family: var(--font-body);
  color: var(--ink);
}
.quiz-option:hover {
  border-color: var(--gold);
  background: var(--white);
  transform: translateX(4px);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.quiz-back {
  background: none;
  border: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  cursor: pointer;
  font-family: var(--font-body);
}
.quiz-back:hover { color: var(--gold-dark); }
.quiz-back:disabled { opacity: 0.3; cursor: not-allowed; }

.match-card {
  text-align: center;
}
.match-hood {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--gold-dark);
  margin: 0.5rem 0 1rem;
}
.match-hero {
  aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
  border-radius: 2px;
  margin: 1.5rem 0;
}
.match-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 500px) { .match-facts { grid-template-columns: 1fr; gap: 0.5rem; } }
.match-fact-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--black);
}
.match-fact-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
}
.match-lead {
  background: var(--cream);
  padding: 2rem;
  border-radius: 2px;
  margin-top: 1.5rem;
}
.hidden { display: none !important; }

/* ---------- THANK YOU ---------- */
.thankyou {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.thankyou-inner { max-width: 620px; margin: 0 auto; padding: 0 2rem; }
.thankyou .check {
  width: 64px; height: 64px; margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

/* ---------- UTILITIES ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--cream);
  color: var(--gold-dark);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.checkmark-list { list-style: none; padding: 0; }
.checkmark-list li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.checkmark-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   Layered after all base styles to override
   ============================================ */

/* Global: kill any horizontal overflow & improve touch */
html, body { overflow-x: hidden; max-width: 100%; }
* { -webkit-tap-highlight-color: rgba(184, 147, 90, 0.15); }

/* Form inputs at 16px to prevent iOS zoom-on-focus */
input, select, textarea, button { font-size: 16px; }

/* Prevent long emails / URLs from overflowing containers */
footer a, .about-text, .program-card, .form-card {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Larger slider thumb for finger-sized touch targets */
@media (hover: none) and (pointer: coarse) {
  input[type="range"]::-webkit-slider-thumb {
    height: 28px; width: 28px; margin-top: -12px;
  }
  input[type="range"]::-moz-range-thumb {
    height: 28px; width: 28px;
    background: var(--gold);
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
  }
  input[type="range"] { padding: 12px 0; }
}

/* Ensure Firefox slider track visible */
input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
}
input[type="range"]::-moz-range-thumb {
  height: 20px; width: 20px;
  background: var(--gold);
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
}

/* Tablet & below ------------------------------ */
@media (max-width: 960px) {
  /* Sticky forms don't make sense when stacked — content already sits in flow */
  .sticky-form { position: static; top: auto; }
  .result-card { position: static; top: auto; }
}

/* Mobile ≤ 860px ------------------------------ */
@media (max-width: 860px) {
  :root { --container: 100%; }

  /* Nav: smaller brand, tighter padding */
  .nav-inner { padding: 0.9rem 1.25rem; }
  .brand { font-size: 1.15rem; }
  .brand small { font-size: 0.58rem; letter-spacing: 0.22em; }

  /* Mobile menu — ensure it's wide, scrollable, and above hero */
  .nav-links.open {
    z-index: 60;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links.open li:last-child { border-bottom: 0; padding-top: 0.8rem; }
  .nav-links.open a {
    display: block;
    padding: 1rem 0;
    font-size: 0.95rem;
  }
  .nav-links.open .nav-cta {
    text-align: center;
    padding: 1rem 1.3rem;
    margin-top: 0.5rem;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero sizing */
  .hero { min-height: auto; padding: 3rem 0; }
  .hero-inner { padding: 3rem 1.25rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero p { font-size: 1rem; margin-bottom: 2rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }

  /* Container padding tightens */
  .container, .hero-inner, .nav-inner { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* Page hero (interior pages) */
  .page-hero { padding: 4rem 0 3rem; }
  .page-hero-inner { padding: 0 1.25rem; }

  /* Section spacing */
  section { padding: 4rem 0; }

  /* About photo gets reasonable height on mobile */
  .about-photo { aspect-ratio: 1 / 1; max-height: 420px; }

  /* Section heads */
  .section-head { margin-bottom: 3rem; }

  /* Tool cards padding trim */
  .tool-card { padding: 2rem 1.5rem; }

  /* Testimonial spacing */
  .testimonial-grid { gap: 2rem; }
  .testimonial blockquote { font-size: 1.05rem; }

  /* Form card shrinks */
  .form-card { padding: 1.75rem 1.25rem; }

  /* Footer: 2-col on tablet, clean on phone */
  .footer-grid { gap: 2rem; }

  /* Long email breaks nicely in footer */
  footer a { font-size: 0.88rem; line-height: 1.4; }

  /* CTA band buttons stack */
  .cta-band > .container > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cta-band .btn { width: 100%; }

  /* Calculator result card on mobile */
  .result-card { padding: 2rem 1.5rem; }
  .result-figure { font-size: 2.4rem; }

  /* Quiz: tighter on mobile */
  .quiz-shell { padding: 2rem 1.25rem; }
  .quiz-q { font-size: 1.4rem; margin-bottom: 1.5rem; }
  .quiz-option {
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
    min-height: 52px;
  }
  .quiz-option:hover { transform: none; } /* no sideways-slide on touch */

  /* Match card facts single-column on mobile */
  .match-hood { font-size: 2rem; }
  .match-facts { grid-template-columns: 1fr; gap: 0.75rem; text-align: center; }
  .match-fact-num { font-size: 1.2rem; }
  .match-lead { padding: 1.5rem; }

  /* Buttons always full-width-friendly on small screens */
  .btn-lg { padding: 1rem 1.5rem; }

  /* Program card trim */
  .program-card { padding: 1.5rem 1.25rem; }

  /* Steps (process) stack cleanly */
  .steps { gap: 0.5rem; margin-top: 2rem; }
  .step { padding: 1rem 0; }
}

/* Small phones ≤ 500px ------------------------ */
@media (max-width: 500px) {
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }

  .stats { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
  .stat-num { font-size: 2rem; }

  .testimonial { padding-left: 1rem; }

  .result-card { padding: 1.75rem 1.25rem; }

  .about-grid { gap: 2rem; }
}

/* Tiny phones ≤ 360px (iPhone SE etc.) -------- */
@media (max-width: 360px) {
  .container, .hero-inner, .nav-inner,
  .page-hero-inner, .thankyou-inner { padding-left: 1rem; padding-right: 1rem; }
  .brand { font-size: 1.05rem; }
  .brand small { display: none; }
  .nav-cta { padding: 0.6rem 1rem; }
  h1 { font-size: 2rem; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   FORM TEXT VISIBILITY — guarantees typed text,
   placeholders, carets, and autofilled values
   remain readable in both light and dark forms.
   ============================================ */

/* --- Light forms (default: .form-card on paper/cream bgs) --- */
.form-row input,
.form-row select,
.form-row textarea {
  color: var(--ink);
  caret-color: var(--gold-dark);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--smoke);
  opacity: 1;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  color: var(--ink);
  background: var(--white);
}
/* Chrome/Edge/Safari autofill — keep dark text on light bg */
.form-row input:-webkit-autofill,
.form-row input:-webkit-autofill:hover,
.form-row input:-webkit-autofill:focus,
.form-row input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset !important;
  caret-color: var(--gold-dark);
  transition: background-color 9999s ease-in-out 0s;
}

/* --- Dark forms (.result-lead-form on calculator's black card) --- */
.result-lead-form input {
  color: var(--white) !important;
  caret-color: var(--gold);
}
.result-lead-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}
/* Override the generic .form-row input:focus (which sets white bg) —
   keep dark bg so white text stays readable */
.result-lead-form input:focus {
  background: rgba(255, 255, 255, 0.16) !important;
  color: var(--white) !important;
  border-color: var(--gold) !important;
}
/* Autofill on dark inputs — preserve white text & dark bg */
.result-lead-form input:-webkit-autofill,
.result-lead-form input:-webkit-autofill:hover,
.result-lead-form input:-webkit-autofill:focus,
.result-lead-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--white) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(26, 26, 26, 0.96) inset !important;
  caret-color: var(--gold);
  transition: background-color 9999s ease-in-out 0s;
}
