/* The Well EPC — shared stylesheet (mobile-first) */
:root{
  --navy:#12405e; --water:#1b6893; --water-l:#e7f1f7; --olive:#4f5c22; --rust:#9a4b14;
  --sand:#f8f5ef; --ink:#1d272d; --muted:#4a565e; --line:#d9dee2; --white:#fff;
  --radius:12px; --max:68rem;
  --serif:Georgia,"Times New Roman",serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--sans);font-size:1.0625rem;line-height:1.6;color:var(--ink);background:var(--white)}
img,svg,iframe{max-width:100%;display:block}
img{height:auto}
a{color:var(--water);text-underline-offset:.15em}
a:hover{color:var(--navy)}
:focus-visible{outline:3px solid #f2a33a;outline-offset:2px}
h1,h2,h3{font-family:var(--serif);line-height:1.2;color:var(--navy);margin:0 0 .5em}
h1{font-size:clamp(2rem,7vw,3.25rem)}
h2{font-size:clamp(1.5rem,4.5vw,2.1rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
ul{padding-left:1.25em}
.wrap{width:min(100% - 2.5rem,var(--max));margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:var(--navy);color:#fff;padding:.6rem 1rem;z-index:10}
.skip:focus{left:.5rem;top:.5rem}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Header + nav */
.site-header{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.25rem}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--navy);font-family:var(--serif);font-weight:700;font-size:1.2rem}
.brand img{width:48px;height:48px}
.nav-toggle{display:none;background:none;border:2px solid var(--navy);color:var(--navy);border-radius:8px;padding:.45rem .8rem;font:inherit;font-weight:600;cursor:pointer;min-height:44px}
.js .nav-toggle{display:inline-block}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem 1rem}
.site-nav a{display:block;padding:.6rem .1rem;text-decoration:none;color:var(--ink);font-weight:600}
.site-nav a[aria-current="page"]{color:var(--water);box-shadow:inset 0 -3px 0 var(--water)}
.js .site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--white);border-bottom:1px solid var(--line);padding:.5rem 1.25rem 1rem}
.js .site-nav.open{display:block}
.js .site-nav ul{flex-direction:column;gap:0}
.js .site-nav a{padding:.75rem 0;border-bottom:1px solid var(--line)}
@media (min-width:60em){
  .js .nav-toggle{display:none}
  .js .site-nav{display:block;position:static;border:0;padding:0;background:none}
  .js .site-nav ul{flex-direction:row;gap:1.25rem}
  .js .site-nav a{border:0;padding:.6rem .1rem}
}
.no-js .site-header .wrap{flex-wrap:wrap;padding-block:.5rem}

/* Buttons */
.btn{display:inline-block;padding:.8rem 1.3rem;border-radius:999px;font-weight:700;text-decoration:none;text-align:center;line-height:1.2;min-height:44px;border:2px solid transparent}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:#0b2e45;color:#fff}
.btn-light{background:#fff;color:var(--navy)}
.btn-light:hover{background:var(--water-l);color:var(--navy)}
.btn-outline{border-color:currentColor;color:var(--navy);background:transparent}
.btn-outline-light{border-color:#fff;color:#fff;background:transparent}
.btn-outline-light:hover{background:rgba(255,255,255,.15);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.25rem}

/* Hero */
.hero{position:relative;color:#fff;background:var(--navy);overflow:hidden}
.hero > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:42% 45%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,35,52,.85) 0%,rgba(10,35,52,.65) 55%,rgba(10,35,52,.45) 100%),linear-gradient(180deg,rgba(10,35,52,.2),rgba(10,35,52,.55))}
.hero h1,.hero .lead{text-shadow:0 1px 3px rgba(0,0,0,.45)}
.hero .wrap{position:relative;z-index:1;padding-block:3.5rem 3rem}
.hero h1{color:#fff;margin-bottom:.3em}
.hero .lead{font-size:1.2rem;max-width:36rem}
.hero .when{font-size:1.15rem;font-weight:700;background:rgba(255,255,255,.14);display:inline-block;padding:.5rem .9rem;border-radius:8px;margin:.25rem 0 0}
.page-hero{background:linear-gradient(135deg,var(--navy),var(--water));color:#fff}
.page-hero .wrap{padding-block:2.5rem 2.25rem}
.page-hero h1{color:#fff;margin:0}
.page-hero p{margin:.5rem 0 0;font-size:1.15rem;max-width:40rem}

/* Sections */
.section{padding-block:3rem}
.section.alt{background:var(--sand)}
.section.blue{background:var(--water-l)}
.grid{display:grid;gap:1.5rem}
@media (min-width:44em){.grid-2{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:repeat(3,1fr)}.split{grid-template-columns:1.1fr .9fr;align-items:center}}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem 1.25rem .5rem}
.card h3{margin-bottom:.35em}
.card.c-navy{border-top:5px solid var(--navy)} .card.c-olive{border-top:5px solid var(--olive)} .card.c-rust{border-top:5px solid var(--rust)}
.c-olive h3{color:var(--olive)} .c-rust h3{color:var(--rust)}
.photo{border-radius:var(--radius);overflow:hidden;background:var(--line);aspect-ratio:4/3}
.photo img{width:100%;height:100%;object-fit:cover}
.photo-caption{font-size:.85rem;color:var(--muted);margin-top:.35rem}
.dl dt{font-weight:700;color:var(--navy);margin-top:1rem}
.dl dd{margin:0}
.steps{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}
.steps li{background:#fff;border-left:4px solid var(--water);padding:.75rem 1rem;border-radius:0 8px 8px 0}
.steps strong{color:var(--navy)}
blockquote{margin:0;font-family:var(--serif);font-size:1.3rem;line-height:1.5;color:var(--navy)}
blockquote cite{display:block;margin-top:.75rem;font-family:var(--sans);font-size:.95rem;font-style:normal;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.essentials{padding-left:1.5em}
.essentials li{margin-bottom:1rem}
.motto{display:grid;gap:.5rem;text-align:center;font-family:var(--serif);color:var(--navy);font-size:1.15rem}
@media (min-width:44em){.motto{grid-template-columns:repeat(3,1fr)}}
.motto strong{display:block;font-size:1.4rem}
.note{font-size:.9rem;color:var(--muted)}
.rhythms{list-style:none;padding:0;margin:0 0 1rem}
.rhythms li{padding:.75rem 0;border-bottom:1px solid var(--line)}
.rhythms strong{display:block;color:var(--navy)}

/* Video facade */
.video{position:relative;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:#0b2e45}
.video img,.video iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}
.video .play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-decoration:none}
.video .play span{width:76px;height:54px;border-radius:14px;background:rgba(200,0,0,.92);display:flex;align-items:center;justify-content:center}
.video .play span::before{content:"";border-style:solid;border-width:12px 0 12px 20px;border-color:transparent transparent transparent #fff;margin-left:4px}
.video .play:hover span,.video .play:focus-visible span{background:#c00}
.video-title{font-weight:700;margin:.6rem 0 .1rem;color:var(--navy)}
.video-meta{font-size:.9rem;color:var(--muted);margin:0}
.sermon-list{list-style:none;padding:0;margin:0;display:grid;gap:1.25rem}
@media (min-width:44em){.sermon-list{grid-template-columns:repeat(3,1fr)}}
.sermon-list a{text-decoration:none;color:var(--ink);display:block}
.sermon-list img{border-radius:8px;aspect-ratio:16/9;object-fit:cover;width:100%}
.sermon-list .t{font-weight:700;color:var(--navy);margin:.4rem 0 0;line-height:1.3}

/* Map */
.map{border:0;width:100%;aspect-ratio:4/3;border-radius:var(--radius);background:var(--line)}
@media (min-width:44em){.map{aspect-ratio:16/10}}

/* Footer */
.site-footer{background:var(--navy);color:#e9f1f6;padding-block:2.5rem 1.5rem;font-size:.98rem}
.site-footer a{color:#fff}
.site-footer h2{color:#fff;font-size:1.2rem}
.site-footer .grid{gap:1.5rem}
@media (min-width:44em){.site-footer .grid{grid-template-columns:1.2fr 1fr 1fr}}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:.35rem}
.site-footer .fine{border-top:1px solid rgba(255,255,255,.2);margin-top:2rem;padding-top:1rem;font-size:.88rem;color:#cfdde6}
address{font-style:normal}
.callout{background:#fff4e5;border-left:5px solid var(--rust);padding:.75rem 1rem;border-radius:0 8px 8px 0;font-size:1.1rem;color:var(--ink)}
.callout strong{color:var(--rust)}
/* Portrait photo (church front): show the whole image, never cropped. width/height attrs reserve space (no CLS). */
.photo.photo-portrait{aspect-ratio:auto;height:auto;width:100%;max-width:26rem;justify-self:center;align-self:center;margin-inline:auto!important}
.photo.photo-portrait img{width:100%;height:auto;object-fit:initial}
@media (max-width:43.99em){.photo.photo-portrait{max-width:min(100%,22rem)}}
/* Whole photo at no more than its natural width (small originals stay sharp) */
.photo-natural{margin:0 auto;width:100%;justify-self:center;align-self:center}
.photo-natural img{width:100%;height:auto;border-radius:var(--radius)}
.photo-natural .photo-caption{text-align:center;margin-top:.5rem}
/* Whole landscape photo, uncropped */
.photo.photo-full{aspect-ratio:auto;width:100%;justify-self:center;align-self:center}
.photo.photo-full img{height:auto;object-fit:initial}
/* Two-column list of steps on wider screens */
@media (min-width:44em){.steps.steps-2{grid-template-columns:1fr 1fr}}
