/* Nannies for Christ — warm & classic */
:root {
  --navy: #001f4f;
  --navy-2: #0b2d63;
  --navy-ink: #13284d;
  --gold: #cd9102;
  --gold-deep: #9a6c00;   /* gold text on light backgrounds (AA) */
  --gold-soft: #f3e3b8;
  --cream: #faf6ee;
  --cream-2: #f3ecdf;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #535b6b;
  --line: #e4dccb;

  --font-display: 'Gambetta', 'Georgia', serif;
  --font-body: 'Satoshi', 'Segoe UI', system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  --text-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --text-hero: clamp(2.5rem, 1.5rem + 4vw, 4.6rem);

  --radius: 14px;
  --wrap: 1180px;
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Eyebrow with the logo's rule-and-dot motif */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--gold); }

.rule { display: flex; align-items: center; gap: .6rem; max-width: 260px; margin: 1.6rem 0; }
.rule::before, .rule::after { content: ""; flex: 1; height: 2px; background: var(--gold); border-radius: 2px; }
.rule span { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.on-dark .rule span { background: var(--cream); }
.center .rule { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 var(--text-sm)/1 var(--font-body); letter-spacing: .02em;
  padding: .95rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e0a312; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.on-dark .btn-ghost { color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 31, 79, .35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--navy); line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .2em; color: var(--gold-deep); margin-top: .3rem; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: .55rem .85rem; font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--navy-ink); border-radius: 8px; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.nav-links .btn { margin-left: .6rem; padding: .75rem 1.25rem; }
.menu-btn { display: none; background: none; border: 0; width: 46px; height: 46px; border-radius: 10px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: .75rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(0,31,79,.4);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: .95rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 1rem 0 0; padding: 1rem; }
  .brand-name small { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: var(--text-hero); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero .lede { font-size: var(--text-lg); color: var(--muted); max-width: 34ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-media { position: relative; padding-top: 10%; container-type: inline-size; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 32% 70%; border-radius: 50cqw 50cqw var(--radius) var(--radius); box-shadow: 0 40px 70px -40px rgba(0,31,79,.55); }
.hero-rays { position: absolute; left: -15%; top: 0; width: 130%; height: auto; transform: translateY(-3.85%); z-index: 0; pointer-events: none; }
.hero-rays line { stroke: var(--gold); stroke-width: 7; stroke-linecap: round; opacity: .55; }
.hero-media > img, .hero-media .badge { position: relative; z-index: 1; }
.badge {
  position: absolute !important; left: -1.5rem; bottom: 2rem; background: var(--paper); border-radius: var(--radius);
  padding: 1rem 1.2rem; display: flex; gap: .85rem; align-items: center; max-width: 290px;
  box-shadow: 0 20px 40px -24px rgba(0,31,79,.45); border: 1px solid var(--line);
}
.badge img { width: 44px; height: auto; }
.badge p { margin: 0; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; color: var(--navy); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-media img { aspect-ratio: 1 / .95; }
  .badge { left: 1rem; bottom: 1rem; }
}

/* Tagline band */
.band { background: var(--navy); color: var(--cream); }
.band-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.5rem; padding-block: 1.4rem; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); }
@media (max-width: 600px) { .band-inner { flex-direction: column; align-items: center; gap: .15rem; } .band-inner i { display: none; } }
.band-inner i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); align-self: center; }

/* Sections */
.section { padding-block: var(--section); }
.section.alt { background: var(--paper); }
.section.dark { background: var(--navy); color: #e8ecf4; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: var(--text-base); }
.dark .section-head p { color: #c3cbe0; }
.center { text-align: center; }
.center.section-head { margin-inline: auto; }

/* Program cards */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(0,31,79,.5); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card .num { font-family: var(--font-display); font-size: .95rem; color: var(--gold-deep); font-weight: 600; margin-bottom: .4rem; }
.card h3 { margin-bottom: .5rem; color: var(--navy); }
.card p { color: var(--muted); font-size: var(--text-sm); flex: 1; }
.card .more { font-weight: 700; font-size: var(--text-sm); color: var(--navy); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.card .more:hover { color: var(--gold-deep); }
.card .more svg { transition: transform .25s var(--ease); }
.card .more:hover svg { transform: translateX(3px); }
@media (max-width: 900px) { .programs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* Scripture */
.scripture { text-align: center; max-width: 820px; margin-inline: auto; }
.scripture blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); line-height: 1.3; color: #fff; text-wrap: balance; }
.scripture cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: var(--text-sm); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* Page header */
.page-head { background: var(--cream-2); padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-head h1 { max-width: 18ch; }
.page-head p { font-size: var(--text-lg); color: var(--muted); max-width: 52ch; line-height: 1.5; margin: 0; }
.page-head .mark { position: absolute; right: max(2rem, calc((100vw - var(--wrap)) / 2)); top: 50%; transform: translateY(-50%); width: clamp(120px, 18vw, 230px); opacity: .14; }
@media (max-width: 700px) { .page-head .mark { display: none; } }

/* About */
.statement { font-family: var(--font-display); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); line-height: 1.45; color: var(--navy); }
.mission-list { list-style: none; counter-reset: m; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.mission-list li { counter-increment: m; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.6rem 1.6rem; }
.mission-list strong { display: block; font-size: var(--text-lg); color: var(--navy); margin-bottom: .3rem; }
.mission-list span { color: var(--muted); }
@media (max-width: 760px) { .mission-list { grid-template-columns: 1fr; } }
.belief { max-width: 760px; margin-inline: auto; text-align: center; }
.belief p { font-size: var(--text-lg); line-height: 1.6; color: var(--navy-ink); }
.motto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.15); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.motto-grid div { background: var(--navy); padding: 2rem 1.5rem; text-align: center; font-family: var(--font-display); font-size: var(--text-lg); color: #fff; }
.motto-grid div span { display: block; font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; font-weight: 700; }
@media (max-width: 760px) { .motto-grid { grid-template-columns: 1fr; } }
.verses { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.verse { border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.5rem; }
.verse p { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); line-height: 1.4; color: var(--navy); margin-bottom: .6rem; }
.verse cite { font-style: normal; font-weight: 700; font-size: var(--text-sm); color: var(--gold-deep); letter-spacing: .08em; }
@media (max-width: 760px) { .verses { grid-template-columns: 1fr; } }

/* Programs page */
.program { padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.program:last-of-type { border-bottom: 0; }
.program .tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); background: var(--gold-soft); padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .65rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .2rem; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23001f4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { counter-increment: s; padding: 1.8rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { content: none; }
.step p { color: var(--muted); margin: 0; font-size: var(--text-sm); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.contact-card dd { margin: .2rem 0 0; font-size: var(--text-lg); color: var(--navy); font-weight: 500; }
.contact-card dd a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.give { background: var(--navy); color: #dfe5f1; border-color: var(--navy); position: relative; overflow: hidden; }
.give h2 { color: #fff; }
.give .mark { position: absolute; right: -30px; bottom: -30px; width: 180px; opacity: .12; }
.give .btn { position: relative; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.testimonial-form { display: grid; gap: 1rem; }
.testimonial-form label { display: grid; gap: .4rem; font-weight: 600; }
.testimonial-form input:not([type="checkbox"]), .testimonial-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: .5rem; padding: .75rem; background: #fff; color: var(--navy); font: inherit; }
.testimonial-form textarea { resize: vertical; min-height: 8rem; }
.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-help { font-size: var(--text-sm); color: var(--muted); }
.testimonial-form .field-help { margin: -.5rem 0 0; }
.testimonial-form .consent { display: flex; align-items: flex-start; gap: .7rem; font-size: var(--text-sm); font-weight: 400; }
.consent input { flex: none; margin-top: .3rem; width: 1.1rem; height: 1.1rem; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.testimonial-form button:disabled { opacity: .65; cursor: wait; }
.testimonial-story { margin: 1.5rem 0; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow-wrap: anywhere; }
.testimonial-story blockquote { margin: 0 0 1rem; font-size: var(--text-lg); white-space: pre-wrap; }
.testimonial-story figcaption { color: var(--gold-deep); font-weight: 700; }
@media (max-width: 1000px) { .testimonials-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .name-fields { grid-template-columns: 1fr; } }

/* CTA */
.cta { text-align: center; }
.cta .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

/* Footer */
.site-footer { background: #00163a; color: #b9c3d8; padding-block: 3.5rem 2rem; font-size: var(--text-sm); }
.foot-grid { display: grid; grid-template-columns: 1.1fr .65fr 1.25fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.foot-brand { width: 100%; max-width: 22rem; justify-self: center; text-align: center; }
.foot-brand img { display: block; width: 170px; height: auto; margin: 0 auto 1rem; }
.foot-brand p { margin: 0; text-wrap: balance; }
.foot-explore { width: 100%; text-align: center; }
.foot-contact { width: 100%; max-width: 26rem; justify-self: center; text-align: center; overflow-wrap: anywhere; }
.site-footer h4 { font-family: var(--font-body); color: var(--gold); font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #e7ebf3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-email { margin: 0; }
.foot-region { margin: .5rem 0 1.25rem; color: #b9c3d8; font-size: var(--text-xs); }
.foot-person { max-width: 21rem; margin: 0 auto; padding: 1rem .5rem; border-top: 1px solid rgba(255,255,255,.12); }
.foot-person-name { margin: 0 0 .25rem; color: #fff; font-weight: 600; }
.site-footer .foot-phone { display: inline-block; color: var(--gold); font-size: 1rem; font-weight: 600; letter-spacing: .02em; }
.site-footer .foot-phone:hover { color: #fff; }
.foot-person-area { margin: .4rem 0 0; color: #b9c3d8; font-size: var(--text-xs); line-height: 1.65; text-wrap: balance; }
.foot-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; text-align: center; font-size: var(--text-xs); }
.design-credit { margin: 1.5rem 0 0; text-align: center; font-size: var(--text-xs); letter-spacing: .02em; }
.design-credit .credit-heart { color: var(--gold); }
.site-footer .design-credit a { color: var(--gold); font-weight: 700; }
.site-footer .design-credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1.5fr; row-gap: 2.5rem; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } .foot-contact { justify-self: center; text-align: center; } }

/* Reveal motion — content visible without JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@keyframes rayPulse { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }
.hero-rays line { animation: rayPulse 5s ease-in-out infinite; }
.hero-rays line:nth-child(2n) { animation-delay: -1.6s; } .hero-rays line:nth-child(3n) { animation-delay: -3.2s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-rays line { animation: none; }
  .card, .btn { transition: none; }
}
