/* =========================================================
   Church of Elohim — shared site styles (global base)
   Ported from the design bundle's assets/site.css
   Tokens · resets · type · nav · footer · buttons · helpers
   ========================================================= */

:root {
  /* palette */
  --charcoal: #2A2C2B;
  --charcoal-2: #3A3D3C;
  --ink: #1B1D1C;
  --sand: #E8DBC0;
  --sand-2: #F2E9D6;
  --sand-3: #FAF6EC;
  --teal: #7BA8A1;
  --teal-2: #5E8F88;
  --teal-3: #A9C6C0;
  --paper: #FBF9F4;
  --line: rgba(42, 44, 43, 0.12);
  --line-strong: rgba(42, 44, 43, 0.22);
  --muted: rgba(42, 44, 43, 0.62);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--paper);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- MEDIA FIT (any image/video fills its box) ---------- */
/* Used on cards + hero backgrounds: regardless of the uploaded asset's
   intrinsic size, it covers the box without distortion. */
.media-fit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-box { position: relative; overflow: hidden; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 17px;
  color: var(--ink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.wordmark .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--teal-2);
  transform: rotate(45deg);
  position: relative;
  top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--charcoal);
  opacity: 0.78;
  transition: opacity .15s ease;
  position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--ink);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--sand-3);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform .15s ease, background .15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-2); transform: translateY(-1px); }
.nav-cta .arr { transition: transform .2s ease; }
.nav-cta:hover .arr { transform: translateX(3px); }

/* mobile menu toggle (hidden on desktop) */
.nav-toggle { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: inherit;
  transition: all .18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--sand-3); }
.btn-primary:hover { background: var(--teal-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--sand-3); border-color: var(--ink); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- TYPE / SECTION HELPERS ---------- */
section { padding: 120px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 28px;
}
.eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--teal-2);
  position: relative;
}
.eyebrow .pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 999px;
  border: 1px solid var(--teal-2);
  opacity: 0.5;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.h-display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
  text-wrap: balance;
}
.h-display em {
  font-style: normal;
  font-family: 'Cinzel', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--teal-2);
}
.h-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.sec-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  max-width: 640px;
}
.sec-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
}
.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
  cursor: pointer;
}
.sec-link:hover { border-color: var(--teal-2); color: var(--teal-2); }

/* ---------- PHOTO PLACEHOLDERS ---------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #8a7d63 0%, #6a614e 40%, #45413a 100%);
}
.photo--sand {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #c7b48a 0%, #6f6346 100%);
}
.photo--teal {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #7BA8A1 0%, #4d736d 100%);
}
.photo--charcoal {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #54595a 0%, #2A2C2B 100%);
}
.photo--olive {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #b9a884 0%, #7d6e4f 100%);
}
.photo .photo-label {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.74);
  text-transform: uppercase;
  z-index: 1;
}

/* ---------- PAGE HEADER (used on inner pages) ---------- */
.page-header {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-header .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}
.page-header .breadcrumbs .sep { width: 10px; height: 1px; background: var(--line-strong); display:inline-block; }
.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
  max-width: 900px;
}
.page-header h1 em {
  font-style: normal;
  font-family: 'Cinzel', serif;
  font-weight: 400;
  color: var(--teal-2);
  letter-spacing: 0.01em;
}
.page-header .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin: 0;
  text-wrap: pretty;
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
}

/* ---------- FOOTER ---------- */
footer.site-foot {
  background: var(--ink);
  color: rgba(250, 246, 236, 0.7);
  padding: 80px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 64px;
}
.foot-brand .wordmark { color: var(--sand-3); }
.foot-brand p {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.foot-col h5 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-3);
  margin: 0 0 18px;
  font-weight: 600;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.foot-col a { font-size: 14px; color: rgba(250, 246, 236, 0.7); transition: color .15s ease; }
.foot-col a:hover { color: var(--teal-3); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(250, 246, 236, 0.5);
}
.foot-bottom .socials { display: flex; gap: 18px; }
.foot-bottom a:hover { color: var(--teal-3); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a.active::after { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
  }
  section { padding: 80px 0; }
  .page-header { padding: 56px 0 40px; }
  .page-header-grid, .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
