/* ==========================================================================
   Lake Kiowa Fellowship Church — site styles
   Plain CSS, no build step. Colors and fonts live in the :root tokens below.
   ========================================================================== */

:root {
  --lake-900: #14293a;
  --lake-800: #1d3a50;
  --lake-700: #275069;
  --lake-100: #e3edf2;
  --sand-50: #fbf8f2;
  --sand-100: #f4ede1;
  --sand-200: #e9dcc6;
  --sun-600: #b8612e;
  --sun-700: #9a4f23;
  --ink: #1f2a33;
  --ink-soft: #4a5862;
  --white: #fff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(20 41 58 / .06), 0 8px 24px rgb(20 41 58 / .08);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--lake-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }

a { color: var(--sun-700); text-underline-offset: .18em; }
a:hover { color: var(--sun-600); }

:focus-visible { outline: 3px solid var(--sun-600); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--white); color: var(--lake-900); padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun-700);
  margin-bottom: .75rem;
}

.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--ink-soft); }

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

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sun-600); color: var(--white); }
.btn-primary:hover { background: var(--sun-700); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--lake-800); }
.btn-outline:hover { background: var(--lake-800); border-color: var(--lake-800); color: var(--white); }
.btn-light { border-color: rgb(255 255 255 / .8); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--lake-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--lake-900);
  color: var(--white);
  box-shadow: 0 1px 0 rgb(255 255 255 / .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand img { width: 38px; height: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; font-weight: 600; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: rgb(255 255 255 / .85); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.site-nav a:hover { color: var(--white); background: rgb(255 255 255 / .08); }
.site-nav a[aria-current="page"] { color: var(--white); background: rgb(255 255 255 / .14); }
.site-nav .nav-give { background: var(--sun-600); color: var(--white); margin-left: .25rem; }
.site-nav .nav-give:hover, .site-nav .nav-give[aria-current="page"] { background: var(--sun-700); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgb(255 255 255 / .35); color: var(--white);
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
}

@media (max-width: 880px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--lake-900);
    padding: .5rem var(--gutter) 1.25rem;
    border-top: 1px solid rgb(255 255 255 / .08);
    display: none;
  }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: .8rem 1rem; border-radius: 10px; }
  .js .site-nav .nav-give { margin: .5rem 0 0; text-align: center; }
  /* Without JS the nav just wraps below the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
}

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

.hero {
  position: relative;
  color: var(--white);
  background: var(--lake-900) center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(20 41 58 / .35) 0%, rgb(20 41 58 / .55) 55%, rgb(20 41 58 / .9) 100%);
}
.hero h1, .hero h2 { color: var(--white); }
.hero .eyebrow { color: var(--sand-200); }

.hero-home { min-height: min(88vh, 760px); display: flex; align-items: flex-end; padding: 8rem 0 4rem; }
.hero-home::before {
  background:
    linear-gradient(90deg, rgb(20 41 58 / .75) 0%, rgb(20 41 58 / .35) 55%, transparent 80%),
    linear-gradient(180deg, rgb(20 41 58 / .2) 0%, rgb(20 41 58 / .8) 100%);
}
.hero-home h1 { max-width: 14ch; }
.hero-home .lead { color: rgb(255 255 255 / .9); max-width: 40ch; }

.hero-page { padding: clamp(5rem, 14vw, 9rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero-page h1 { margin: 0; }
.hero-page .lead { color: rgb(255 255 255 / .88); margin: .75rem 0 0; max-width: 46ch; }

.hero-plain { background: var(--lake-800); }
.hero-plain::before { background: radial-gradient(ellipse at 80% 0%, rgb(184 97 46 / .25), transparent 60%); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sand { background: var(--sand-100); }
.section-lake { background: var(--lake-800); color: var(--white); }
.section-lake h2, .section-lake h3 { color: var(--white); }
.section-lake a:not(.btn) { color: var(--sand-200); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Info strip under the home hero */
.quick-info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--sand-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: -2.5rem; position: relative; z-index: 2;
}
.quick-info > div { background: var(--white); padding: 1.5rem 1.75rem; }
.quick-info dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-700); }
.quick-info dd { margin: .25rem 0 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--lake-900); line-height: 1.3; }
.quick-info dd small { display: block; font-family: var(--font-body); font-size: .95rem; color: var(--ink-soft); }

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

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.5rem 1.6rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-body p:last-child { margin-bottom: 0; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-link { text-decoration: none; color: inherit; transition: transform .15s; }
.card-link:hover { transform: translateY(-3px); color: inherit; }

/* Visit / plan-your-visit list */
.visit-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 1.1rem; }
.visit-list li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; align-items: start; }
.visit-list .icon {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lake-100); color: var(--lake-800);
}
.section-lake .visit-list .icon { background: rgb(255 255 255 / .12); color: var(--sand-200); }
.visit-list .icon svg { width: 1.15rem; height: 1.15rem; }
.visit-list strong { display: block; }

.map {
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); background: var(--lake-100);
}

/* Scripture callout */
.verse {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.4;
  max-width: 34ch; margin: 0 auto; text-align: center; color: var(--lake-900);
}
.verse cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-style: normal; font-size: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-700); }
.section-lake .verse { color: var(--white); }
.section-lake .verse cite { color: var(--sand-200); }

/* ---------- About: leadership ---------- */

.people { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.person { text-align: center; }
.person img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: .85rem;
}
.person h3 { font-size: 1.15rem; margin: 0; }
.person p { margin: .15rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.person a { font-size: .95rem; }

.feature-person {
  display: grid; gap: 1.5rem 2.5rem; align-items: center;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 2.5rem;
}
@media (min-width: 720px) { .feature-person { grid-template-columns: 220px 1fr; } }
.feature-person img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- About: beliefs ---------- */

.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 3rem; }
.pillars-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pillar { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
.pillar h3 { color: var(--sun-700); }
.pillar p:last-child, .pillar ul:last-child { margin-bottom: 0; }
.pillar ul { padding-left: 1.2rem; }

.accordion { display: grid; gap: .6rem; }
.accordion details {
  background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(20 41 58 / .06);
  border: 1px solid var(--sand-200);
}
.accordion summary {
  cursor: pointer; list-style: none;
  padding: 1rem 1.25rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--lake-900);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-family: var(--font-body); font-size: 1.5rem; line-height: 1; color: var(--sun-600);
  transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 1.25rem 1.25rem; }
.refs { font-size: .9rem; color: var(--ink-soft); padding-left: 0; list-style: none; margin: 0; border-top: 1px solid var(--sand-200); padding-top: .75rem; }
.refs li { margin-bottom: .2rem; }

/* ---------- Ministries ---------- */

.ministry { padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--sand-200); }
.ministry:last-child { border-bottom: 0; }
.ministry .meta {
  display: inline-flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.tag {
  font-size: .85rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px;
  background: var(--lake-100); color: var(--lake-800);
}
.outreach-list { display: grid; gap: 1rem; margin-top: 1rem; }
.outreach-list h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 0 .2rem; color: var(--lake-900); }
.outreach-list p { margin: 0; }

/* ---------- Giving / contact ---------- */

.option-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.option {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.option .btn { margin-top: auto; align-self: flex-start; }
.option address { font-style: normal; font-weight: 600; margin-bottom: 1rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li {
  background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.35rem; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: baseline;
}
.contact-list strong { color: var(--lake-900); }
.contact-list span { color: var(--ink-soft); font-size: .95rem; display: block; }

/* ---------- Events ---------- */

.event {
  display: grid; gap: 1.25rem 2rem; align-items: center;
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow);
}
@media (min-width: 720px) { .event { grid-template-columns: 140px 1fr; } }
.event img { width: 140px; }
.event-past { opacity: .85; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 999px; background: var(--sand-200); color: var(--ink-soft); margin-bottom: .5rem;
}
.empty-state {
  text-align: center; padding: 2.5rem 1.5rem; border: 2px dashed var(--sand-200); border-radius: var(--radius-lg);
  color: var(--ink-soft); margin-bottom: 3rem;
}
.empty-state h3 { color: var(--lake-900); }

.notice {
  background: var(--lake-100); border-left: 4px solid var(--lake-700);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 2rem;
}
.notice p:last-child { margin: 0; }

.flyer { max-width: 520px; margin: 2rem auto 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Bio ---------- */

.bio-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 0 0 2.5rem; width: 100%; }
.bio blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--sun-600);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--lake-900);
}
.bio-sign { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.bio-sign img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }

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

.site-footer { background: var(--lake-900); color: rgb(255 255 255 / .78); padding: 3.5rem 0 2rem; font-size: 1rem; }
.site-footer a { color: rgb(255 255 255 / .9); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-200); margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 34px; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; line-height: 1.15; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
