/* ==========================================================================
   Mom's House — Senior Transition Specialist site
   Design tokens per "Mom's House Brand Guide v1.0"
   ========================================================================== */

:root {
  --pink: #E6407D;
  --pink-dark: #C22F65;
  --blue: #2E82C7;
  --blue-dark: #24689E;
  --white: #FFFFFF;
  --navy: #22303D;
  --blush: #FBD1E0;
  --blush-soft: #FDF0F5;
  --blue-tint: #EAF3FB;
  --border: #E4E9ED;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --max-width: 1160px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 32px rgba(34, 48, 61, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--pink); text-decoration: none; }

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

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

section { padding: 88px 0; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.section-white { background: var(--white); }
.section-blush { background: var(--blush-soft); }
.section-blue-tint {
  background: linear-gradient(180deg, var(--blue-tint) 0%, var(--blue-tint) 55%, var(--white) 100%);
}
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}
.section-blue .eyebrow,
.section-navy .eyebrow { color: var(--blush); }

.lede {
  font-size: 1.15rem;
  color: #4C5A67;
  max-width: 640px;
}
.section-blue .lede,
.section-navy .lede { color: #D9E6F2; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
}
.btn-primary:hover { background: var(--pink-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-secondary:hover { background: var(--blue-tint); }

.btn-outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-lockup img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pink);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.nav-links a:hover { color: var(--pink); }
.nav-links a.active { color: var(--pink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 90px;
}

/* Photo banner up top, text sits below on plain white — no overlap to fight */
.hero-photo {
  position: relative;
  padding: 380px 0 64px;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  overflow: hidden;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.32) 58%,
    rgba(255, 255, 255, 0.58) 70%,
    rgba(255, 255, 255, 0.82) 82%,
    rgba(255, 255, 255, 0.95) 92%,
    var(--white) 100%
  );
}
.hero-photo .container {
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 640px;
}

/* Optional second column: a supporting photo beside the hero copy */
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-inner .hero-content {
  max-width: none;
}
.hero-secondary {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
  margin-top: 56px;
}
.hero-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-secondary { display: none; }
}

.trust-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 800;
  font-size: 14px;
  color: var(--blue-dark);
}
.trust-strip span::before {
  content: "✓";
  color: var(--pink);
  margin-right: 6px;
}

@media (max-width: 860px) {
  .hero-photo {
    padding: 260px 0 48px;
  }
  .hero-bg {
    height: 300px;
  }
  .hero-content { max-width: 100%; }
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.card-flat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border);
}
.section-blue .card,
.section-navy .card {
  color: var(--navy);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blush);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p, .card-flat p { color: #4C5A67; margin-bottom: 0; }

.card-eyebrow {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
  display: block;
}

/* ---------- Numbered steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .steps, .steps.steps-4 { grid-template-columns: 1fr; }
}
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 8px; }
.step p { color: #4C5A67; margin-bottom: 0; }

/* ---------- Testimonials ---------- */

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--blush);
  line-height: 1;
  margin-bottom: 4px;
}
.testimonial p.quote { font-style: normal; color: var(--navy); }
.testimonial .cite {
  font-weight: 800;
  font-size: 14px;
  color: var(--blue-dark);
}
.testimonial-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--blush-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.testimonial-feature {
  background: var(--blush-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 780px;
  margin: 40px auto 0;
}
.testimonial-feature p.quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  text-align: center;
}
.cta-banner h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Values ---------- */

.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin-top: 48px;
}
@media (max-width: 700px) { .value-list { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 16px; }
.value-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.section-white .value-badge, .section-blush .value-badge {
  background: var(--blush);
  color: var(--pink);
}
.value-item h3 { margin-bottom: 6px; font-size: 1.15rem; }
.value-item p { margin-bottom: 0; }

/* ---------- Two column layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .portrait-frame {
    max-width: 260px;
    margin: 0 auto;
  }
}

.portrait-frame {
  background: var(--blush);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-dark);
  font-weight: 700;
  text-align: center;
  padding: 24px;
  border: 1px dashed #F3A9C4;
  overflow: hidden;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}
.portrait-frame.has-photo {
  padding: 0;
  border: none;
}

/* ---------- Promise list ---------- */

.promise-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.promise-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 700;
  font-size: 1.05rem;
}
.promise-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

/* ---------- Services list ---------- */

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}
.service-card .best-for {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--blue-dark);
  font-weight: 700;
}

/* ---------- Contact / Form ---------- */

.urgent-banner {
  background: var(--blush);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--pink-dark);
  margin-bottom: 40px;
}
.urgent-banner a { color: inherit; text-decoration: underline; }

.form-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) { .form-shell { padding: 26px; } }

.progress-label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.progress-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--blue-tint);
  overflow: hidden;
  margin-bottom: 32px;
}
.progress-fill {
  height: 100%;
  width: 50%;
  background: var(--pink);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.form-step { display: none; }
.form-step.active { display: block; }

.field-group { margin-bottom: 28px; }
.field-group > label.q-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 520px) { .option-grid { grid-template-columns: 1fr; } }

.option-pill {
  display: block;
  position: relative;
}
.option-pill input { position: absolute; opacity: 0; }
.option-pill span {
  display: block;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-pill input:checked + span {
  border-color: var(--pink);
  background: var(--blush-soft);
  color: var(--pink-dark);
}

.text-field {
  margin-bottom: 20px;
}
.text-field label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}
.text-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  font-family: var(--font-body);
  font-size: 16px;
}
.text-field input:focus {
  outline: none;
  border-color: var(--blue);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .field-pair { grid-template-columns: 1fr; } }

.consent-block {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #5A6874;
  margin-bottom: 16px;
}
.consent-block input { margin-top: 4px; }
.consent-block a { color: var(--blue); text-decoration: underline; }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 16px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--blue-dark);
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
}

.reassurance {
  text-align: center;
  font-size: 13px;
  color: #6B7885;
  margin-top: 16px;
}

.confirmation {
  display: none;
  text-align: center;
}
.confirmation.active { display: block; }
.confirmation .check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--pink);
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #C7D2DA;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
.footer-brand span {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-tagline { max-width: 320px; color: #9FADB8; margin-bottom: 20px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #C7D2DA; font-weight: 600; }
.footer-col a:hover { color: var(--white); }
.footer-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  color: #8B98A3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-disclaimer p { margin: 0; max-width: 700px; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.max-w-content { max-width: 680px; }

.badge-seal {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
}

.page-hero {
  padding: 60px 0 20px;
  text-align: center;
}
.page-hero .lede { margin-left: auto; margin-right: auto; }

.section-intro {
  max-width: 720px;
}

/* ==========================================================================
   Motion — scroll reveal + hover states
   ========================================================================== */

/* Fade-in-up for headings and subtext as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1.is-visible { transition-delay: 0.08s; }
.reveal-2.is-visible { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hover: cards + content blocks lift, glow, and pick up brand color */
.card,
.card-flat,
.service-card,
.testimonial,
.step,
.value-item,
.portrait-frame,
.hero-secondary,
.testimonial-feature {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.card:hover,
.card-flat:hover,
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(34, 48, 61, 0.16);
  border-color: var(--pink);
}

.card:hover .card-icon {
  background: var(--pink);
  color: var(--white);
  transform: scale(1.1);
}
.card-icon {
  transition: transform 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.testimonial:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 44px rgba(34, 48, 61, 0.14);
  border-color: var(--blush);
  background: var(--blush-soft);
}

.step {
  border-radius: var(--radius-md);
  padding-top: 6px;
  padding-bottom: 6px;
}
.step:hover {
  background: var(--blush-soft);
}
.step::before {
  transition: transform 0.28s ease, background-color 0.28s ease;
}
.step:hover::before {
  transform: scale(1.15);
  background: var(--pink-dark);
}

.value-badge {
  transition: transform 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}
.value-item:hover .value-badge {
  transform: scale(1.15) rotate(-6deg);
}
.section-blue .value-item:hover .value-badge,
.section-navy .value-item:hover .value-badge {
  background: var(--pink);
  color: var(--white);
}
.section-white .value-item:hover .value-badge,
.section-blush .value-item:hover .value-badge {
  background: var(--pink);
  color: var(--white);
}

.portrait-frame:hover,
.hero-secondary:hover {
  transform: scale(1.015);
}

.testimonial-feature:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 44px rgba(34, 48, 61, 0.1);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--pink);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.promise-list li {
  transition: transform 0.22s ease;
}
.promise-list li:hover {
  transform: translateX(6px);
}
.promise-list li:hover::before {
  background: var(--pink);
  transform: scale(1.1);
}
.promise-list li::before {
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.footer-col a {
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-col a:hover {
  padding-left: 4px;
}
