/* Fairpark Baptist Church */
:root {
  --navy: #1f3a4c;
  --navy-dark: #162b39;
  --teal: #3d6f85;
  --sky: #6a9fb5;
  --sky-soft: #e6eff3;
  --cream: #faf8f4;
  --ink: #1d2328;
  --muted: #4f5a62;
  --line: #dfe3e6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); 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; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand img { width: 150px; }
.brand .tagline { display: none; font-size: .875rem; line-height: 1.3; color: var(--muted); border-left: 1px solid var(--line); padding-left: .9rem; max-width: 13rem; }
@media (min-width: 1200px) { .brand .tagline { display: block; } }
.nav-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .8rem; font: inherit; font-size: .95rem; color: var(--navy); cursor: pointer; min-height: 44px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a { display: block; padding: .7rem .25rem; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .give a { color: var(--teal); }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; gap: .15rem; padding: 0; align-items: center; }
  .site-nav a { border: 0; padding: .5rem .65rem; font-size: .98rem; border-radius: 6px; }
  .site-nav a:hover { background: var(--sky-soft); color: var(--navy); }
  .site-nav .give a { background: var(--navy); color: #fff; padding-inline: 1rem; margin-left: .35rem; }
  .site-nav .give a:hover { background: var(--teal); color: #fff; }
}

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; padding: .8rem 1.5rem; border-radius: 6px; border: 2px solid var(--navy); line-height: 1.3; cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--navy); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #eef3f6; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy a:not(.btn) { color: #fff; }

/* Page hero */
.page-hero { background: var(--navy); color: #fff; padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #dbe7ed; font-size: 1.2rem; margin: 0 auto; max-width: 46rem; font-family: var(--serif); font-style: italic; }
.page-hero .eyebrow { color: #a9cbd9; }

/* Home hero */
.home-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.home-hero .grid { display: grid; gap: 2.5rem; align-items: center; }
.home-hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.home-hero .photo img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(31,58,76,.18); width: 100%; aspect-ratio: 1024 / 590; object-fit: cover; }
@media (min-width: 900px) { .home-hero .grid { grid-template-columns: 1.05fr 1fr; } }

/* Video */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.intro-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.4fr 1fr; } }

/* Cards (mission / pastor / beliefs) */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card-link { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 4 / 3; background: var(--navy); }
.card-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,43,57,.05) 30%, rgba(22,43,57,.88) 100%); }
.card-link .txt { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; }
.card-link h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.card-link span { font-size: 1rem; color: #e2ecf1; }
.card-link:hover img { transform: scale(1.04); }
.card-link:hover { color: #fff; }

/* Media grid */
.media-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
.media-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media-item .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.media-item .thumb a { display: block; height: 100%; }
.media-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-item .thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; background: rgba(31,58,76,.92); border-radius: 12px; }
.play::after { content: ""; position: absolute; left: 26px; top: 12px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.thumb:hover .play { background: #c4302b; }
.media-item .body { padding: 1rem 1.1rem 1.2rem; }
.media-item h3 { font-family: var(--sans); font-size: 1.05rem; margin: 0 0 .3rem; color: var(--ink); }
.media-item time { font-size: .9rem; color: var(--muted); }

/* Heaven bound callout */
.callout { background: var(--navy) url("img/the-cross.webp") center / cover no-repeat; position: relative; color: #fff; text-align: center; }
.callout::before { content: ""; position: absolute; inset: 0; background: rgba(22,43,57,.86); }
.callout .narrow { position: relative; }
.callout h2 { color: #fff; }
.callout .big { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); color: #fff; }
.callout p { color: #e2ecf1; }

/* Split rows */
.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.flip > :first-child { order: 2; } }
.split + .split { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* About */
.mv { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv article { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(31,58,76,.1); }
.mv img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mv .body { padding: 1.5rem 1.6rem 1.75rem; border-top: 6px solid var(--sky); }
.exist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; counter-reset: ex; }
@media (min-width: 760px) { .exist { grid-template-columns: 1fr 1fr; } }
.exist > li { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 8px; padding: 1.2rem 1.3rem; }
.exist h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.exist h3 small { display: block; font-family: var(--sans); font-size: .9rem; color: var(--teal); font-weight: 700; margin-top: .2rem; }
.exist ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

/* Beliefs */
.quote { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.6rem); font-style: italic; color: var(--navy); text-align: center; margin: 0 auto 1.5rem; max-width: 44rem; }
.quote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 1rem; color: var(--teal); margin-top: .6rem; font-weight: 700; }
.beliefs { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 820px) { .beliefs { grid-template-columns: 1fr 1fr; } }
.beliefs article { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; border-top: 4px solid var(--sky); box-shadow: 0 4px 16px rgba(31,58,76,.08); }
.beliefs h3 { margin-bottom: .5rem; }
.beliefs .refs { display: block; color: var(--teal); font-size: .95rem; font-weight: 700; margin-top: .4rem; }

/* Pastor */
.pastor { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .pastor { grid-template-columns: 380px 1fr; } }
.pastor img { border-radius: var(--radius); box-shadow: 0 14px 34px rgba(31,58,76,.18); }
.pastor figcaption { font-size: .95rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.facts { display: grid; gap: .75rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { background: var(--sky-soft); border-radius: 8px; padding: .9rem 1rem; font-size: .98rem; }
.facts strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.25rem; }

/* Heaven bound page */
.prayer { background: var(--sky-soft); border-left: 5px solid var(--teal); border-radius: 8px; padding: 1.4rem 1.5rem; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--navy); }
blockquote.verse { margin: 1.2rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--sky); color: var(--muted); font-style: italic; }

/* Give */
.ways { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.ways article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.ways address { font-style: normal; font-weight: 700; color: var(--navy); background: var(--cream); padding: .8rem 1rem; border-radius: 6px; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: 0 8px 30px rgba(31,58,76,.12); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: .35rem; color: var(--navy); }
label .req { color: #a3341f; font-weight: 400; }
input, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #b9c3ca; border-radius: 6px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(61,111,133,.25); }
textarea { min-height: 150px; resize: vertical; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); display: block; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #d3dfe6; padding: 3.5rem 0 2rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.foot-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot-logo { width: 170px; filter: invert(1); margin-bottom: 1rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.times dt { color: #fff; font-weight: 700; }
.times dd { margin: 0 0 .7rem; }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: var(--teal); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .95rem; padding-bottom: 1rem; }
.phone-big { font-size: 1.2rem; font-weight: 700; }
