:root {
  --teal: #0b5960;
  --teal-deep: #073f45;
  --teal-dark: #062f34;
  --teal-soft: #e8f1f1;
  --gold: #d2a846;
  --gold-dark: #a97822;
  --gold-light: #f0d47d;
  --ink: #183136;
  --muted: #5d6f72;
  --cream: #f7f4ed;
  --white: #ffffff;
  --border: #e4e5df;
  --shadow: 0 18px 55px rgba(7, 63, 69, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 9999; padding: 10px 16px; background: #fff; color: var(--teal); }
.skip-link:focus { left: 10px; }

.topbar { background: var(--teal-deep); color: #fff; font-size: .88rem; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); box-shadow: 0 4px 20px rgba(8,50,54,.08); }
.nav-wrap { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 285px; }
.brand img { width: 74px; height: 74px; object-fit: cover; border-radius: 50%; }
.brand-name { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; color: var(--teal-deep); font-size: 1.28rem; line-height: 1.15; }
.brand-place { display: block; color: var(--gold-dark); font-size: .76rem; margin-top: 5px; letter-spacing: .12em; text-transform: uppercase; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--teal); font-size: 1.9rem; cursor: pointer; padding: 8px; }
.nav-list { display: flex; align-items: center; gap: 24px; list-style: none; padding: 0; margin: 0; }
.nav-list a { position: relative; padding: 34px 0 30px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; color: #294b51; white-space: nowrap; transition: color .2s ease; }
.nav-list a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 24px; height: 2px; background: linear-gradient(90deg,var(--gold-dark),var(--gold-light),var(--gold-dark)); transition: left .24s ease, right .24s ease; }
.nav-list a:hover, .nav-list a:focus-visible, .nav-list a.active { color: var(--teal); }
.nav-list a:hover::after, .nav-list a:focus-visible::after, .nav-list a.active::after { left: 0; right: 0; }

.hero { min-height: 590px; display: grid; align-items: center; color: #fff; background: linear-gradient(90deg,rgba(4,49,55,.96) 0%,rgba(5,54,60,.86) 38%,rgba(5,54,60,.30) 68%,rgba(5,54,60,.06) 100%), url("assets/church-building.jpeg") center 52%/cover no-repeat; }
.hero-copy { width: min(690px, 62%); padding: 84px 0; }
.eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: .19em; font-weight: 700; font-size: .84rem; }
h1, h2, h3 { font-family: "Libre Baskerville", Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2.75rem, 5vw, 4.7rem); margin: 15px 0 18px; letter-spacing: -.035em; }
.hero p { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: #edf6f5; max-width: 640px; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 6px; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .9rem; transition: transform .2s ease, box-shadow .2s ease, background-position .35s ease; }
.btn::after { content: "→"; font-size: 1.25rem; transition: transform .2s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,.2); }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(5px); }
.btn-gold { color: #fff; border: 1px solid #ebca6e; background: linear-gradient(110deg,#a97822,#e6c567 48%,#bb882b); background-size: 180% 100%; }
.btn-gold:hover { background-position: 100% 0; }
.btn-outline { color: #fff; border: 2px solid rgba(255,255,255,.9); background: rgba(5,56,62,.25); }
.btn-outline:hover { background: #fff; color: var(--teal-deep); }
.btn-teal { color: #fff; background: var(--teal); }

.section { padding: 78px 0; }
.section-soft { background: var(--cream); }
.section-teal { color: #fff; background: linear-gradient(135deg,var(--teal-deep),var(--teal)); }
.section-heading { max-width: 740px; margin: 0 auto 38px; text-align: center; }
.section-heading h2 { color: var(--teal-deep); font-size: clamp(2rem, 3.4vw, 3rem); margin: 8px 0 12px; }
.section-teal .section-heading h2 { color: #fff; }
.section-heading p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-teal .section-heading p { color: #d8e8e8; }
.gold-rule { width: 76px; height: 3px; border: 0; margin: 16px auto 0; background: linear-gradient(90deg,var(--gold-dark),var(--gold-light),var(--gold-dark)); }

.quick-grid, .feature-grid, .study-grid, .contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card { position: relative; padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(7,63,69,.07); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--gold-light),var(--gold-dark)); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d8c795; }
.card:hover::before { transform: scaleY(1); }
.card-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--gold-light),var(--gold-dark)); font-size: 1.45rem; margin-bottom: 18px; }
.card h3 { color: var(--teal-deep); margin: 0 0 12px; font-size: 1.35rem; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card a.inline-link { color: var(--teal); font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.schedule-line { padding: 8px 0; border-bottom: 1px solid #eceae4; }
.schedule-line:last-child { border-bottom: 0; }
.schedule-line strong { display: block; color: var(--teal-deep); }

.welcome-grid, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.photo-frame { position: relative; }
.photo-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--gold); border-radius: 10px; z-index: 0; }
.photo-frame img { position: relative; z-index: 1; border-radius: 10px; min-height: 430px; width: 100%; object-fit: cover; }
.copy h2 { color: var(--teal-deep); font-size: clamp(2rem,3.3vw,3rem); margin: 8px 0 18px; }
.copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li { position: relative; padding: 8px 0 8px 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 800; }

.verse-band { padding: 48px 0; color: #fff; background: linear-gradient(rgba(5,54,60,.93),rgba(5,54,60,.93)), url("assets/church-building.jpeg") center/cover fixed; text-align: center; }
.verse-band blockquote { max-width: 850px; margin: 0 auto; font: 700 clamp(1.5rem,3vw,2.35rem)/1.4 "Libre Baskerville",Georgia,serif; }
.verse-band cite { display: block; margin-top: 16px; color: var(--gold-light); font-style: normal; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }

.page-hero { padding: 85px 0 80px; color: #fff; background: linear-gradient(125deg,var(--teal-dark),var(--teal)); }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { font-size: clamp(2.5rem,5vw,4.25rem); margin-bottom: 14px; }
.page-hero p { max-width: 760px; margin: 0; color: #dceaea; font-size: 1.12rem; }
.page-hero.short { padding-block: 65px; }

.belief-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.belief { padding: 30px; border-top: 4px solid var(--gold); background: #fff; box-shadow: 0 10px 32px rgba(7,63,69,.08); }
.belief h2 { color: var(--teal-deep); font-size: 1.55rem; margin: 0 0 12px; }
.belief p { color: var(--muted); margin: 0 0 12px; }
.references { color: var(--gold-dark); font-size: .91rem; font-weight: 700; }
.salvation-steps { counter-reset: salvation; display: grid; gap: 14px; margin-top: 28px; }
.salvation-step { counter-increment: salvation; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.salvation-step::before { content: counter(salvation); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.salvation-step h3 { margin: 1px 0 5px; color: var(--teal-deep); font-size: 1.08rem; }
.salvation-step p { margin: 0; color: var(--muted); }

.info-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); }
.info-table th, .info-table td { padding: 17px 20px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.info-table th { width: 32%; color: var(--teal-deep); background: var(--teal-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.notice { padding: 22px 24px; border-left: 5px solid var(--gold); background: #fff8e8; color: #6a511e; border-radius: 0 8px 8px 0; }
.profile { display: grid; grid-template-columns: 210px 1fr; gap: 34px; padding: 34px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.profile-placeholder { min-height: 245px; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(145deg,var(--teal),var(--teal-deep)); border-radius: 8px; font-size: 4rem; }
.profile h2 { margin: 0 0 4px; color: var(--teal-deep); }
.role { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .82rem; }

.contact-card a { color: var(--teal); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.map-box { min-height: 350px; display: grid; place-items: center; padding: 30px; text-align: center; color: #fff; background: linear-gradient(rgba(5,54,60,.82),rgba(5,54,60,.82)), url("assets/church-building.jpeg") center/cover; border-radius: 10px; }

.site-footer { color: #dce9e9; background: var(--teal-dark); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 50px; padding: 58px 0 42px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.footer-brand strong { font: 700 1.18rem/1.2 "Libre Baskerville",Georgia,serif; color: #fff; }
.site-footer h3 { color: var(--gold-light); margin: 0 0 15px; font-size: 1.05rem; }
.site-footer p { margin: 0 0 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.13); text-align: center; font-size: .85rem; }

@media (max-width: 1050px) {
  .nav-list { gap: 15px; }
  .nav-list a { font-size: .75rem; }
  .brand { min-width: 250px; }
}

@media (max-width: 880px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner span:last-child { display: none; }
  .nav-wrap { min-height: 82px; }
  .brand img { width: 60px; height: 60px; }
  .nav-toggle { display: block; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: 120px; padding: 15px 25px 25px; background: #fff; box-shadow: 0 14px 25px rgba(7,63,69,.13); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: 12px 4px; font-size: .86rem; }
  .nav-list a::after { bottom: 7px; }
  .hero { min-height: 560px; background-position: 64% center; }
  .hero-copy { width: 78%; }
  .quick-grid, .feature-grid, .study-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .welcome-grid, .split { grid-template-columns: 1fr; }
  .photo-frame { max-width: 720px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .brand-name { font-size: 1rem; }
  .brand-place { font-size: .63rem; }
  .nav-list { top: 120px; }
  .hero { min-height: 620px; background-position: 69% center; }
  .hero-copy { width: 100%; padding: 72px 0; }
  .hero h1 { font-size: 2.75rem; }
  .hero p { font-size: 1.06rem; }
  .actions { display: grid; }
  .btn { width: 100%; }
  .section { padding: 58px 0; }
  .quick-grid, .feature-grid, .study-grid, .contact-grid, .belief-grid { grid-template-columns: 1fr; }
  .card { padding: 25px; }
  .welcome-grid { gap: 38px; }
  .photo-frame::before { inset: 12px -8px -12px 8px; }
  .photo-frame img { min-height: 290px; }
  .page-hero { padding: 58px 0; }
  .profile { grid-template-columns: 1fr; padding: 24px; }
  .profile-placeholder { min-height: 200px; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 5px; border-bottom: 0; }
  .info-table td { padding-top: 5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Show the complete animated church logo */
.site-header .brand img {
width: 280px;
height: auto;
object-fit: contain;
border-radius: 0;
}

.site-header .brand-name {
display: none;
}

@media (max-width: 650px) {
.site-header .brand {
min-width: 0;
}

.site-header .brand img {
width: 220px;
max-width: 65vw;
}
}
/* Display the complete footer logo */
.site-footer .footer-brand img {
width: 280px;
max-width: 100%;
height: auto;
object-fit: contain;
border-radius: 0;
border: 0;
filter: brightness(0) invert(1);
}

.site-footer .footer-brand > strong {
display: none;
}

@media (max-width: 650px) {
.site-footer .footer-brand img {
width: 220px;
}
}