/* ============================================================
   Leadbelt Pentecostal Church — shared styles
   Palette: deep evergreen + aged gold on warm paper
   Type: Fraunces (display) + Karla (body/UI)
   ============================================================ */

:root {
  --pine:        #163a2e;
  --pine-deep:   #0e2820;
  --pine-line:   #24513f;
  --gold:        #c69a3f;
  --gold-soft:   #e2cd93;
  --cream:       #f7f2e8;
  --cream-2:     #efe7d6;
  --paper:       #fffdf8;
  --ink:         #21261f;
  --ink-soft:    #5c6157;
  --line:        #e2dac8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Karla", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(14, 40, 32, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
a { color: inherit; }

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

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.on-dark { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--pine-deep); }
.btn-gold:hover { transform: translateY(-2px); background: #d3a94d; }
.btn-outline { border-color: rgba(247,242,232,0.5); color: var(--cream); }
.btn-outline:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-pine { background: var(--pine); color: var(--cream); }
.btn-pine:hover { transform: translateY(-2px); background: var(--pine-deep); }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 58, 46, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--pine-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}
.brand .mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-soft);
  font-size: 1.05rem;
}
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}
.brand .brand-name span { display: block; font-size: 0.68rem; font-family: var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  position: relative;
  opacity: 0.9;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { color: var(--gold-soft); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--gold);
}
.nav-links .give-link {
  background: var(--gold);
  color: var(--pine-deep);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  opacity: 1;
}
.nav-links .give-link.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--cream); margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--pine-deep);
    padding: 0.5rem 24px 1.2rem;
    border-bottom: 1px solid var(--pine-line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a.active::after { display: none; }
  .nav-links .give-link { display: inline-block; margin-top: 0.9rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--pine);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero .contours {
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.5;
}
.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4rem, 11vw, 8.5rem) 24px clamp(3.5rem, 8vw, 6rem);
}
.hero h1 {
  font-size: clamp(2.15rem, 5.7vw, 4.25rem);
  max-width: none;
  white-space: nowrap;
  margin-bottom: 1rem;
  font-weight: 600;
}
@media (max-width: 620px) {
  .hero h1 { white-space: normal; font-size: clamp(2rem, 9vw, 2.9rem); }
}
.hero .lede {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  max-width: 44ch;
  color: #e9e3d4;
  margin-bottom: 2rem;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }
.hero .snapshot {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem 1.1rem;
  font-size: 0.95rem;
  color: var(--gold-soft);
  border-top: 1px solid var(--pine-line);
  padding-top: 1.3rem;
  font-weight: 600;
}
.hero .snapshot .dot { color: var(--gold); }

/* Simpler page header (interior pages) */
.page-head {
  position: relative;
  background: var(--pine);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.page-head .contours { position: absolute; inset: 0; z-index: -1; opacity: 0.4; }
.page-head-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 24px clamp(2.6rem, 5vw, 4rem);
}
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 0.5rem; }
.page-head p { color: #e2dccd; max-width: 52ch; font-size: 1.1rem; margin: 0; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section.alt { background: var(--paper); }

/* ---------- Weekly schedule (home) ---------- */
.week-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.day-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.day-card h3 {
  font-size: 1.5rem;
  color: var(--pine);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.slot { margin-bottom: 1.1rem; }
.slot:last-child { margin-bottom: 0; }
.slot .time {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  display: block;
}
.slot .what { font-weight: 700; color: var(--ink); }
.slot .sub { font-size: 0.92rem; color: var(--ink-soft); }
.slot ul { margin: 0.3rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.95rem; }
.footnote { margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.9rem; font-style: italic; }

@media (max-width: 780px) {
  .week-grid { grid-template-columns: 1fr; }
}

/* ---------- Invite band ---------- */
.invite {
  background: var(--pine);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.invite .contours { position: absolute; inset: 0; z-index: -1; opacity: 0.4; }
.invite-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 24px;
  text-align: center;
}
.invite h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.invite p { color: #e6e0d1; max-width: 46ch; margin: 0 auto 1.8rem; font-size: 1.15rem; }

/* ---------- Beliefs (who we are) ---------- */
.beliefs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.belief {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1.7rem 1.7rem;
}
.belief h3 { font-size: 1.35rem; color: var(--pine); margin-bottom: 0.5rem; }
.belief p { margin-bottom: 0.6rem; }
.belief .ref { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin: 0; }
@media (max-width: 780px) { .beliefs { grid-template-columns: 1fr; } }

/* ---------- Pastor ---------- */
.pastor {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.6rem;
  align-items: center;
}
.pastor .photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--pine), var(--pine-deep));
  border: 1px solid var(--pine-line);
  display: grid; place-items: center;
  color: var(--gold-soft);
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pastor .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.pastor .photo .ph-note { font-size: 0.85rem; line-height: 1.5; }
.pastor h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.pastor .role { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 1rem; }
@media (max-width: 720px) {
  .pastor { grid-template-columns: 1fr; }
  .pastor .photo { max-width: 300px; }
}

/* ---------- Service times + expect (visit) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 860px){ .two-col { grid-template-columns: 1fr; } }

.times-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.times-card .trow { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.times-card .trow:last-child { border-bottom: 0; padding-bottom: 0; }
.times-card .trow:first-child { padding-top: 0; }
.times-card .day { color: var(--pine); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.3rem; }
.times-card .line { display: flex; justify-content: space-between; gap: 1rem; }
.times-card .line .lbl { font-weight: 700; }
.times-card .line .tm { color: var(--gold); font-weight: 700; white-space: nowrap; }
.times-card .grp { font-size: 0.92rem; color: var(--ink-soft); margin: 0.2rem 0 0.5rem; }

.map-embed {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.map-wrap { display: flex; flex-direction: column; }
.addr-strip {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--pine);
}
.addr-strip span { display:block; font-weight: 400; color: var(--ink-soft); }

.expect-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 1rem; }
@media (max-width: 860px){ .expect-grid { grid-template-columns: 1fr; } }
.expect {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
}
.expect h3 { color: var(--pine); font-size: 1.3rem; border-bottom: 2px solid var(--gold); padding-bottom: 0.5rem; display:inline-block; margin-bottom: 1rem; }
.expect .item { margin-bottom: 1rem; }
.expect .item:last-child { margin-bottom: 0; }
.expect .item .nm { font-weight: 700; color: var(--ink); }
.expect .item .ds { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Connect ---------- */
.connect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 780px){ .connect-grid { grid-template-columns: 1fr; } }
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.tile h3 { color: var(--pine); font-size: 1.5rem; margin-bottom: 0.6rem; }
.tile p { color: var(--ink-soft); }
.tile .big-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--pine); font-weight: 600; }
.tile .big-num b { color: var(--gold); }
.social-row { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-row a {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--pine);
  display: grid; place-items: center;
  color: var(--pine);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.social-row a:hover { background: var(--pine); color: var(--cream); transform: translateY(-2px); }
.social-row svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Giving ---------- */
.give-hero { text-align: center; max-width: 620px; margin: 0 auto; }
.give-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 620px;
  margin: 0 auto;
}
.give-card h2 { color: var(--pine); font-size: clamp(1.8rem,4vw,2.6rem); }
.give-card p { color: var(--ink-soft); margin-bottom: 1.8rem; }
.give-alt { text-align: center; color: var(--ink-soft); margin-top: 1.8rem; font-size: 0.95rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--pine-deep);
  color: #d6d0c1;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--pine-line);
}
@media (max-width: 780px){ .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer-grid h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.footer-grid .f-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); margin-bottom: 0.6rem; }
.footer-grid a { color: #d6d0c1; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 0.6rem; }
.f-social { display: flex; gap: 0.7rem; margin-top: 0.4rem; }
.f-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--pine-line);
  display: grid; place-items: center;
}
.f-social a:hover { border-color: var(--gold); }
.f-social svg { width: 18px; height: 18px; fill: currentColor; }
.copyright { padding-top: 1.6rem; font-size: 0.85rem; color: #8ea296; text-align: center; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--pine-deep);
  padding: 0.7rem 1.2rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

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