/* ============================================================
   EVERWARD — Design System
   Premium institution. Human experience.
   ============================================================ */

:root{
  --navy:#0E1B2C;
  --navy2:#162A44;
  --ivory:#FAF6EE;
  --stone:#E7E0D0;
  --gold:#C6A15B;
  --gold-deep:#A9853F;
  --ink:#1B2431;
  --muted:#5D6874;
  --line:rgba(14,27,44,.14);
  --line-ivory:rgba(250,246,238,.18);
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Inter","Helvetica Neue",Arial,sans-serif;
  --radius:14px;
  --shadow:0 24px 60px -24px rgba(14,27,44,.28);
  --max:1180px;
  --ease:cubic-bezier(.22,.61,.21,1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--sans);
  background:var(--ivory);
  color:var(--ink);
  font-size:1.0625rem;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}
::selection{background:var(--gold);color:var(--navy)}

/* ---------- Type ---------- */
h1,h2,h3,.serif{font-family:var(--serif);font-weight:560;line-height:1.12;letter-spacing:-.01em;color:var(--navy);text-wrap:balance}
h1{font-size:clamp(2.6rem,6.4vw,4.6rem)}
h2{font-size:clamp(1.9rem,4.2vw,2.9rem)}
h3{font-size:clamp(1.25rem,2.4vw,1.6rem)}
p{margin:0 0 1.1em}
.lede{font-size:clamp(1.12rem,2.2vw,1.35rem);line-height:1.65;color:var(--ink)}
.eyebrow{
  font-family:var(--sans);font-size:.78rem;font-weight:700;
  letter-spacing:.22em;text-transform:uppercase;color:var(--gold-deep);
  margin-bottom:1.1rem;display:flex;align-items:center;gap:.8rem;
}
.eyebrow::before{content:"";width:34px;height:2px;background:var(--gold);flex:none}
.eyebrow.center{justify-content:center}
.eyebrow.center::after{content:"";width:34px;height:2px;background:var(--gold);flex:none}
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark .lede{color:var(--ivory)}
.on-dark{color:#EDE6D6}
.on-dark .eyebrow{color:var(--gold)}

/* ---------- Layout ---------- */
.container{width:min(var(--max),92%);margin:0 auto}
.section{padding:clamp(4.5rem,9vw,7.5rem) 0;position:relative}
.section-tight{padding:clamp(3rem,6vw,4.5rem) 0}
.band-navy{background:var(--navy);color:#EDE6D6}
.band-navy2{background:var(--navy2);color:#EDE6D6}
.band-stone{background:var(--stone)}
.band-ivory{background:var(--ivory)}
.texture{background-image:url("../svg/texture.svg");background-repeat:repeat}
.split{display:grid;gap:clamp(2rem,5vw,4.5rem);align-items:center}
@media(min-width:900px){
  .split{grid-template-columns:1.05fr .95fr}
  .split.flip>.split-media{order:2}
  .split.narrow{grid-template-columns:.9fr 1.1fr}
}
.stack>*+*{margin-top:1.1rem}
.center{text-align:center}
.measure{max-width:44rem}
.measure-center{max-width:44rem;margin-left:auto;margin-right:auto}

/* Gentle Sunday invitation that closes major sections */
.sunday-nudge{margin-top:2.4rem;font-size:1rem}
.sunday-nudge a{font-weight:600;color:var(--navy);text-decoration:none;border-bottom:2px solid var(--gold);padding-bottom:2px;transition:border-color .25s,color .25s}
.sunday-nudge a:hover{color:var(--gold-deep);border-color:var(--navy)}
.on-dark .sunday-nudge a{color:var(--ivory)}
.on-dark .sunday-nudge a:hover{color:var(--gold)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  font-family:var(--sans);font-weight:650;font-size:1rem;letter-spacing:.01em;
  padding:1rem 1.9rem;border-radius:999px;text-decoration:none;cursor:pointer;
  border:2px solid transparent;transition:transform .25s var(--ease),box-shadow .25s,background .25s,color .25s,border-color .25s;
  line-height:1.2;text-align:center;
}
.btn:active{transform:translateY(1px) scale(.99)}
.btn-gold{background:var(--gold);color:var(--navy)}
.btn-gold:hover{background:var(--gold-deep);color:var(--ivory);box-shadow:var(--shadow);transform:translateY(-2px)}
.btn-outline{border-color:var(--navy);color:var(--navy);background:transparent}
.btn-outline:hover{background:var(--navy);color:var(--ivory);transform:translateY(-2px)}
.btn-outline-light{border-color:rgba(250,246,238,.55);color:var(--ivory)}
.btn-outline-light:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px)}
.btn-navy{background:var(--navy);color:var(--ivory)}
.btn-navy:hover{background:var(--navy2);transform:translateY(-2px);box-shadow:var(--shadow)}
.btn-row{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:1.8rem}
.btn-row.center{justify-content:center}
.btn .arr{font-family:var(--serif)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(250,246,238,.92);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s;
}
.site-header.scrolled{box-shadow:0 10px 30px -18px rgba(14,27,44,.35)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 0}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none}
.brand-mark{width:34px;height:34px;flex:none}
.brand-word{font-family:var(--serif);font-weight:700;font-size:1.28rem;letter-spacing:.14em;color:var(--navy)}
.main-nav ul{display:flex;gap:1.35rem;list-style:none;align-items:center}
.main-nav a{
  text-decoration:none;font-size:.92rem;font-weight:550;color:var(--ink);
  padding:.4rem 0;position:relative;white-space:nowrap;
}
.main-nav a::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--gold);transition:width .3s var(--ease)}
.main-nav a:hover::after,.main-nav a.active::after{width:100%}
.main-nav a.active{color:var(--navy);font-weight:700}
.header-cta{display:flex;align-items:center;gap:.8rem}
.header-cta .btn{padding:.72rem 1.4rem;font-size:.92rem}
.nav-toggle{
  display:none;background:none;border:1px solid var(--line);border-radius:10px;
  width:46px;height:44px;cursor:pointer;position:relative;flex:none;
}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{
  content:"";display:block;width:20px;height:2px;background:var(--navy);
  position:absolute;left:12px;transition:transform .3s var(--ease),opacity .2s;
}
.nav-toggle span{top:21px}
.nav-toggle span::before{top:-7px;left:0}
.nav-toggle span::after{top:7px;left:0}
.nav-toggle[aria-expanded="true"] span{background:transparent}
.nav-toggle[aria-expanded="true"] span::before{transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span::after{transform:translateY(-7px) rotate(-45deg)}
.mobile-nav{display:none;border-top:1px solid var(--line);background:var(--ivory);max-height:0;overflow:hidden;transition:max-height .4s var(--ease)}
.mobile-nav.open{max-height:80vh;overflow-y:auto}
.mobile-nav ul{list-style:none;padding:.6rem 4% 1.4rem}
.mobile-nav a{display:block;padding:.85rem .2rem;text-decoration:none;font-family:var(--serif);font-size:1.25rem;color:var(--navy);border-bottom:1px solid var(--line)}
.mobile-nav a.active{color:var(--gold-deep)}
@media(max-width:1080px){
  .main-nav{display:none}
  .nav-toggle{display:block}
  .mobile-nav{display:block}
  .header-cta .btn{display:none}
}
@media(min-width:1081px){.mobile-nav{display:none!important}}

/* ---------- Hero ---------- */
.hero{position:relative;background:var(--navy);color:var(--ivory);overflow:hidden;isolation:isolate}
.hero-media{position:absolute;inset:0;z-index:-2;background:var(--navy2)}
.hero-media img{width:100%;height:100%;object-fit:cover;opacity:.9}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(100deg,rgba(14,27,44,.88) 20%,rgba(14,27,44,.55) 55%,rgba(14,27,44,.25) 100%);
}
.hero-inner{padding:clamp(5rem,12vh,8rem) 0 clamp(4rem,9vh,6rem);max-width:46rem}
.hero h1{color:var(--ivory);margin-bottom:1.3rem}
.hero .lede{color:#E9E2D2;max-width:38rem}
.hero-chips{display:flex;flex-wrap:wrap;gap:.7rem;margin:1.9rem 0 0;list-style:none}
.hero-chips li{
  display:flex;align-items:center;gap:.55rem;
  font-size:.92rem;font-weight:550;color:var(--ivory);
  border:1px solid var(--line-ivory);border-radius:999px;padding:.55rem 1.05rem;
  background:rgba(14,27,44,.45);
}
.hero-chips svg{width:17px;height:17px;color:var(--gold);flex:none}
.hero .btn-row{margin-top:2.2rem}

/* ---------- Image frames (navy fallback behind every image) ---------- */
.img-frame{
  position:relative;background:var(--navy2);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);
}
.img-frame img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
.img-frame:hover img{transform:scale(1.03)}
.img-frame.ratio-43{aspect-ratio:4/3}
.img-frame.ratio-169{aspect-ratio:16/9}
.img-frame.ratio-11{aspect-ratio:1/1}
.img-frame.ratio-34{aspect-ratio:3/4}
.img-frame.tall-mobile{aspect-ratio:4/3}
@media(max-width:700px){.img-frame.tall-mobile{aspect-ratio:4/5}}
.img-frame img.broken{display:none}
.caption{font-size:.85rem;color:var(--muted);margin-top:.7rem;font-style:italic}

/* Offset / asymmetry treatments */
.offset-frame{position:relative}
@media(min-width:900px){
  .offset-frame::before{
    content:"";position:absolute;inset:0;transform:translate(18px,18px);
    border:2px solid var(--gold);border-radius:var(--radius);z-index:-1;
  }
}

/* ---------- Question / pull-quote treatments ---------- */
.big-question{
  font-family:var(--serif);font-size:clamp(1.7rem,4vw,2.6rem);color:var(--navy);
  line-height:1.25;text-wrap:balance;
}
.on-dark .big-question{color:var(--gold)}
.truth-line{
  font-family:var(--serif);font-size:clamp(1.5rem,3.6vw,2.4rem);
  color:var(--gold);line-height:1.35;text-wrap:balance;letter-spacing:.02em;
}

/* ---------- Steps (What actually happens) ---------- */
.steps{list-style:none;counter-reset:step;display:grid;gap:0;margin-top:2.5rem}
@media(min-width:900px){.steps{grid-template-columns:repeat(3,1fr);gap:2.2rem}}
.step{counter-increment:step;position:relative;padding:1.6rem 0;border-top:2px solid var(--line)}
.step::before{
  content:"0" counter(step);font-family:var(--serif);font-size:.95rem;font-weight:700;
  color:var(--gold-deep);letter-spacing:.12em;display:block;margin-bottom:.7rem;
}
.step h3{margin-bottom:.5rem}
.step p{color:var(--muted);font-size:.99rem;margin:0}
@media(max-width:899px){.step{padding:1.3rem 0}}

/* ---------- Checklist (Maybe you) ---------- */
.check-list{list-style:none;display:grid;gap:.85rem;margin-top:1.8rem}
@media(min-width:760px){.check-list{grid-template-columns:1fr 1fr}}
.check-list li{
  display:flex;gap:.85rem;align-items:flex-start;
  background:rgba(250,246,238,.7);border:1px solid var(--line);
  border-radius:12px;padding:1rem 1.15rem;font-size:1rem;
}
.check-list svg{width:20px;height:20px;color:var(--gold-deep);flex:none;margin-top:.2rem}

/* ---------- FAQ accordion ---------- */
.faq{margin-top:2rem;border-top:1px solid var(--line)}
.faq-item{border-bottom:1px solid var(--line)}
.faq-q{
  width:100%;background:none;border:0;cursor:pointer;text-align:left;
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:1.35rem .2rem;font-family:var(--serif);font-size:1.2rem;color:var(--navy);font-weight:560;
}
.faq-q .plus{flex:none;width:30px;height:30px;border:1.5px solid var(--gold-deep);border-radius:50%;position:relative;transition:transform .35s var(--ease),background .3s}
.faq-q .plus::before,.faq-q .plus::after{content:"";position:absolute;background:var(--gold-deep);left:50%;top:50%}
.faq-q .plus::before{width:12px;height:2px;transform:translate(-50%,-50%)}
.faq-q .plus::after{width:2px;height:12px;transform:translate(-50%,-50%)}
.faq-item.open .faq-q .plus{transform:rotate(135deg);background:var(--gold)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .45s var(--ease)}
.faq-a-inner{padding:0 .2rem 1.6rem;color:var(--muted);max-width:46rem}
.faq-a-inner p:last-child{margin-bottom:0}

/* ---------- Cards ---------- */
.card-grid{display:grid;gap:1.4rem;margin-top:2.4rem}
@media(min-width:760px){.card-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1080px){.card-grid.cols-3{grid-template-columns:repeat(3,1fr)}}
.card{
  background:var(--ivory);border:1px solid var(--line);border-radius:var(--radius);
  padding:2rem 1.8rem;transition:transform .3s var(--ease),box-shadow .3s;
  display:flex;flex-direction:column;gap:.7rem;text-decoration:none;color:inherit;
}
a.card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.card .icon{width:44px;height:44px;color:var(--gold-deep)}
.card h3{margin:0}
.card p{color:var(--muted);font-size:.99rem;margin:0}
.card .go{margin-top:auto;font-weight:650;color:var(--navy);font-size:.95rem}
.card .go .arr{color:var(--gold-deep)}
.band-navy .card,.band-navy2 .card{background:rgba(250,246,238,.05);border-color:var(--line-ivory)}
.band-navy .card p,.band-navy2 .card p{color:#C9CFD8}
.band-navy .card .go,.band-navy2 .card .go{color:var(--gold)}

/* ---------- Schedule table ---------- */
.schedule{display:grid;gap:1.2rem;margin-top:2rem}
@media(min-width:760px){.schedule{grid-template-columns:1fr 1fr}}
.sched-card{
  border:1px solid var(--line);border-radius:var(--radius);padding:2rem;
  background:var(--ivory);display:flex;gap:1.3rem;align-items:flex-start;
}
.sched-time{font-family:var(--serif);font-size:1.7rem;color:var(--gold-deep);white-space:nowrap;line-height:1.2}
.sched-card h3{margin-bottom:.3rem}
.sched-card p{color:var(--muted);margin:0;font-size:.98rem}

/* ---------- Forms ---------- */
.form-card{
  background:var(--ivory);border:1px solid var(--line);border-radius:calc(var(--radius) + 6px);
  padding:clamp(1.8rem,4vw,3rem);box-shadow:var(--shadow);max-width:42rem;
}
.field{margin-bottom:1.35rem}
.field label{display:block;font-weight:650;font-size:.95rem;margin-bottom:.45rem;color:var(--navy)}
.field .hint{font-size:.85rem;color:var(--muted);font-weight:400;margin-top:.3rem}
.field input,.field select,.field textarea{
  width:100%;font-family:var(--sans);font-size:1rem;color:var(--ink);
  background:#fff;border:1.5px solid var(--line);border-radius:10px;
  padding:.85rem 1rem;transition:border-color .25s,box-shadow .25s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--gold-deep);box-shadow:0 0 0 3px rgba(198,161,91,.22);
}
.field.error input,.field.error select{border-color:#B3402E;box-shadow:0 0 0 3px rgba(179,64,46,.15)}
.field .err-msg{display:none;color:#B3402E;font-size:.85rem;margin-top:.35rem;font-weight:550}
.field.error .err-msg{display:block}
.radio-row{display:flex;flex-wrap:wrap;gap:.7rem}
.radio-pill{position:relative}
.radio-pill input{position:absolute;opacity:0;inset:0}
.radio-pill span{
  display:inline-block;padding:.7rem 1.3rem;border:1.5px solid var(--line);border-radius:999px;
  font-weight:600;font-size:.95rem;cursor:pointer;transition:all .25s;background:#fff;
}
.radio-pill input:checked+span{background:var(--navy);color:var(--ivory);border-color:var(--navy)}
.radio-pill input:focus-visible+span{box-shadow:0 0 0 3px rgba(198,161,91,.35)}
.confirm-panel{display:none;border:2px solid var(--gold);border-radius:calc(var(--radius) + 6px);padding:clamp(1.8rem,4vw,3rem);background:#FFFDF7;max-width:46rem}
.confirm-panel.show{display:block;animation:rise .6s var(--ease)}
.confirm-panel h2{margin-bottom:1rem}
.confirm-list{list-style:none;margin:1.4rem 0;display:grid;gap:1rem}
.confirm-list li{display:flex;gap:.9rem;align-items:flex-start}
.confirm-list svg{width:22px;height:22px;color:var(--gold-deep);flex:none;margin-top:.15rem}
.confirm-list strong{color:var(--navy)}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy);color:#D8D2C2;padding:4.5rem 0 7.5rem;position:relative}
@media(min-width:760px){.site-footer{padding-bottom:3.5rem}}
.footer-grid{display:grid;gap:2.5rem;margin-bottom:3rem}
@media(min-width:900px){.footer-grid{grid-template-columns:1.3fr 1fr 1fr 1fr}}
.footer-brand .brand-word{color:var(--ivory)}
.footer-tag{font-family:var(--serif);font-style:italic;color:var(--gold);margin:.9rem 0 1.2rem;font-size:1.05rem}
.footer-addr{font-size:.93rem;line-height:1.8;color:#B9B2A1}
.footer-h{font-size:.78rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:1.1rem}
.footer-nav ul{list-style:none;display:grid;gap:.55rem}
.footer-nav a{text-decoration:none;font-size:.95rem;color:#D8D2C2;transition:color .25s}
.footer-nav a:hover{color:var(--gold)}
.footer-note{
  border-top:1px solid var(--line-ivory);padding-top:1.6rem;margin-top:.5rem;
  font-size:.82rem;color:#9A937F;font-style:italic;max-width:60rem;
}
.footer-legal{font-size:.82rem;color:#9A937F;margin-top:1rem}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta{
  position:fixed;left:0;right:0;bottom:0;z-index:55;
  padding:.7rem 4% calc(.7rem + env(safe-area-inset-bottom));
  background:rgba(14,27,44,.96);backdrop-filter:blur(10px);
  border-top:1px solid var(--line-ivory);display:block;
}
.sticky-cta a{
  display:flex;align-items:center;justify-content:center;gap:.6rem;
  background:var(--gold);color:var(--navy);font-weight:700;font-size:1.02rem;
  text-decoration:none;border-radius:999px;padding:.95rem;letter-spacing:.02em;
}
@media(min-width:760px){.sticky-cta{display:none}}

/* ---------- Reveal on scroll ---------- */
html.js .reveal{opacity:0;transform:translateY(26px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
html.js .reveal.in{opacity:1;transform:none}
.reveal-d1{transition-delay:.12s}.reveal-d2{transition-delay:.24s}.reveal-d3{transition-delay:.36s}
@media(prefers-reduced-motion:reduce){
  html.js .reveal,.reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* ---------- Misc components ---------- */
.divider-gold{width:64px;height:3px;background:var(--gold);margin:1.6rem 0;border:0}
.kv{display:grid;gap:1rem;margin-top:1.6rem}
.kv-row{display:flex;gap:1rem;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:1rem}
.kv-row svg{width:22px;height:22px;color:var(--gold-deep);flex:none;margin-top:.2rem}
.pill{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep);border:1.5px solid var(--gold);border-radius:999px;padding:.4rem 1rem;margin-bottom:1rem}
.timeline{list-style:none;margin-top:2rem;display:grid;gap:1.6rem}
.timeline li{display:grid;grid-template-columns:86px 1fr;gap:1.2rem;align-items:start}
.timeline .t{font-family:var(--serif);font-weight:700;color:var(--gold-deep);font-size:1.05rem}
.timeline p{margin:0;color:var(--muted)}
.timeline strong{color:var(--navy)}
.icon{width:22px;height:22px;flex:none}
.icon-lg{width:46px;height:46px;color:var(--gold-deep)}
.principle{border-top:1px solid var(--line);padding:1.8rem 0;display:grid;gap:.4rem}
@media(min-width:760px){.principle{grid-template-columns:280px 1fr;gap:2rem}}
.principle h3{font-size:1.3rem}
.principle p{color:var(--muted);margin:0;max-width:44rem}
.page-hero{background:var(--navy);color:var(--ivory);padding:clamp(3.5rem,8vw,5.5rem) 0;position:relative;overflow:hidden}
.page-hero h1{color:var(--ivory);max-width:20ch}
.page-hero .lede{color:#DCD4C0;max-width:40rem;margin-top:1rem;margin-bottom:0}
.page-hero .eyebrow{color:var(--gold)}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--navy);color:var(--ivory);padding:.8rem 1.2rem;z-index:100;border-radius:0 0 10px 0}
.skip-link:focus{left:0}
