/* Christ Fellowship Church — navy and slate blue from their logo, warm tan and gold from the original site */
:root {
  --navy: #16365c;
  --navy-dark: #0f2540;
  --slate: #3e6380;
  --tan: #f4eee4;
  --tan-2: #e8dcc8;
  --gold: #b86e1c;
  --gold-light: #e0a24f;
  --ink: #1f2933;
  --muted: #4f5b66;
  --white: #fff;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--tan-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand-tag { font-size: .8rem; color: var(--gold); font-weight: 600; letter-spacing: .01em; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; min-width: 48px; min-height: 48px; }
.bars, .bars::before, .bars::after { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--navy); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -8px; } .bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.site-nav a { display: block; padding: .55rem .7rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); background: var(--tan); }
.site-nav .nav-give { background: var(--navy); color: #fff; margin-left: .35rem; padding-inline: 1rem; }
.site-nav .nav-give:hover { background: var(--gold); color: #fff; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--tan-2); box-shadow: 0 12px 24px rgba(15, 37, 64, .12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; }
  .site-nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .site-nav .nav-give { margin: .5rem 0 0; text-align: center; }
}
@media (max-width: 420px) { .brand-tag { font-size: .75rem; } .brand-name { font-size: 1.05rem; } }

/* buttons */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--navy); color: var(--navy); background: transparent; font-size: 1rem; cursor: pointer; line-height: 1.2; margin: .2rem .3rem .2rem 0; }
.btn:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* hero */
.hero { position: relative; color: #fff; background: var(--navy-dark); min-height: min(78vh, 640px); display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 37, 64, .15) 0%, rgba(15, 37, 64, .55) 45%, rgba(15, 37, 64, .9) 100%); }
.hero-text { position: relative; z-index: 1; padding: 6rem 0 3.5rem; max-width: 760px; margin-left: max(1.25rem, (100% - 1140px) / 2); }
.hero h1 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 700; color: var(--gold-light); margin-bottom: .6rem; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin-bottom: 1.6rem; }

.page-hero { position: relative; background: var(--navy-dark); color: #fff; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero-text { position: relative; padding: 4.5rem 0 3.25rem; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { font-size: 1.15rem; max-width: 640px; margin: 0; }

/* sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tint { background: var(--tan); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.link-more { font-weight: 700; text-decoration: none; padding: .4rem 0; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }
.stack { display: grid; gap: 1.25rem; }
.feature-img { margin: 0; }
.feature-img img { border-radius: var(--radius); box-shadow: 0 14px 34px rgba(15, 37, 64, .2); width: 100%; }
.feature-img figcaption { margin-top: .8rem; font-family: var(--serif); font-style: italic; color: var(--slate); text-align: center; }

.cards3 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; background: var(--white); border: 1px solid var(--tan-2); border-radius: var(--radius); padding: 1.6rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 37, 64, .12); color: var(--ink); }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 700; color: var(--gold); }
.section-tint .card { border-color: transparent; }

/* sermons */
.sermon-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .sermon-list { grid-template-columns: repeat(2, 1fr); } .sermon-grid { grid-template-columns: repeat(3, 1fr); } }
.sermon { background: var(--white); border-radius: var(--radius); padding: 1.3rem 1.4rem; border-left: 4px solid var(--gold); box-shadow: 0 2px 10px rgba(15, 37, 64, .07); }
.sermon h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.sermon-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; color: var(--muted); margin: 0; }
.sermon-ref { color: var(--slate); font-weight: 700; }
.callout { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2rem; margin-bottom: 3rem; }
.callout h2 { color: #fff; }
.callout p { margin: 0; max-width: 620px; }

/* about */
.beliefs { list-style: none; counter-reset: b; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .beliefs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .beliefs { grid-template-columns: repeat(3, 1fr); } }
.beliefs li { counter-increment: b; background: var(--tan); border-radius: var(--radius); padding: 1.6rem; }
.beliefs h3::before { content: counter(b) ". "; color: var(--gold); }
.beliefs p { margin: 0; }

/* photo band */
.photo-band { position: relative; display: grid; background: var(--navy-dark); }
.photo-band img { width: 100%; max-height: 560px; object-fit: cover; }
.photo-band-text { background: var(--navy); color: #fff; padding: 2rem 1.5rem; }
.photo-band-text h2 { color: #fff; }
.photo-band-text p { margin: 0; }
@media (min-width: 860px) {
  .photo-band-text { position: absolute; right: max(1.25rem, (100% - 1140px) / 2); bottom: 2rem; max-width: 440px; border-radius: var(--radius); padding: 2rem; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
}

/* blessing & verses */
.blessing { background: var(--tan); }
blockquote { margin: 0; }
.blessing blockquote p { font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 1.75rem); line-height: 1.45; color: var(--navy); text-align: center; }
blockquote cite { display: block; font-style: normal; font-weight: 700; color: var(--gold); text-align: center; }
.verse { background: var(--tan); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 1.5rem; }
.verse p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--navy); }
.verse cite { text-align: left; }
.verse-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.verse-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--tan-2); }
.verse-list a { font-weight: 700; }
.verse-list span { color: var(--muted); font-size: .92rem; }
.small { font-size: .85rem; color: var(--muted); }
.lead-sm { font-size: 1.1rem; margin-top: 2rem; }

/* map */
.map { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; text-decoration: none; background: var(--tan); border-radius: var(--radius); padding: 1rem; color: var(--navy); font-weight: 700; font-family: var(--serif); font-size: 1.2rem; }
.map img { border-radius: 8px; width: 180px; }
.map small { font-family: var(--sans); font-size: .95rem; color: var(--gold); }
@media (max-width: 480px) { .map { grid-template-columns: 1fr; } .map img { width: 100%; } }

/* long documents */
.doc-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .doc-layout { grid-template-columns: 280px 1fr; gap: 3.5rem; align-items: start; } .doc-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; } }
.doc-toc { background: var(--tan); border-radius: var(--radius); padding: 1.4rem; font-size: .95rem; }
.doc-toc h2 { font-size: 1.2rem; }
.doc-toc ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc-toc li { margin: .35rem 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; padding-top: .5rem; border-top: 2px solid var(--tan-2); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.6rem; scroll-margin-top: 90px; color: var(--slate); }
.prose .ref { font-size: .97rem; }
.prose .ref strong { color: var(--navy); }

/* forms */
.form p { margin-bottom: 1rem; }
.form label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--navy); }
.form input, .form textarea { width: 100%; padding: .8rem .9rem; font: inherit; border: 1.5px solid #b9c3cc; border-radius: 8px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(184, 110, 28, .35); }
.row2 { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* footer */
.site-footer { background: var(--navy-dark); color: #dbe3ec; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-logo { background: #fff; border-radius: 8px; padding: .7rem .9rem; width: 240px; margin-bottom: 1rem; }
.footer-blessing { font-family: var(--serif); font-style: italic; }
.footer-blessing span { display: block; font-style: normal; color: var(--gold-light); font-size: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: .25rem 0; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: #b8c4d1; }
