/* ============================================================
   Sacred Presence Initiative — Global Stylesheet
   Style: Editorial / Academic / High-end Magazine
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #272420;
  --gray-1:  #36322e;
  --gray-2:  #56524d;
  --gray-3:  #7a766f;
  --gray-4:  #a09c96;
  --gray-5:  #d0ccc6;
  --gray-6:  #eceae6;
  --white:   #f5f3ef;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--black);
  background: #f2f0ec;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  height: 56px;
  background: rgba(242,240,236,0.97);
  border-bottom: 1px solid rgba(39,36,32,0.09);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--black);
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 28px; height: 28px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text .brand { font-size: 14px; font-weight: 700; }
.nav-logo-text .sub { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gray-3); font-family: var(--sans); font-weight: 500; }

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-2);
  padding: 6px 9px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--black); background: rgba(39,36,32,0.06); }
.nav-links a.active { color: var(--black); background: rgba(39,36,32,0.09); font-weight: 600; }

/* Hamburger — mobile only */
.nav-menu-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px;
  padding: 4px; flex-shrink: 0;
}
.nav-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--black); transition: all 0.3s;
}

/* Mobile menu overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: #f2f0ec;
  display: flex; flex-direction: column;
  padding: 90px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay.open { transform: translateX(0); }

.nav-overlay a {
  font-family: var(--serif);
  font-size: clamp(22px, 6vw, 40px);
  font-weight: 700;
  color: var(--black);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-6);
  transition: color 0.2s;
}
.nav-overlay a:hover { color: var(--gray-3); }

.nav-overlay .nav-close {
  position: absolute; top: 22px; right: 24px;
  font-size: 28px; background: none; border: none;
  cursor: pointer; color: var(--black);
}

/* Show desktop nav on wide screens */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-menu-btn { display: none; }
}

/* ===== PAGE WRAPPER ===== */
main { padding-top: 56px; }

/* ===== HERO (Dark with bg image) ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: flex-end;
  padding: 60px 28px;
  overflow: hidden;
  background: var(--gray-1);
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(100%) brightness(0.4);
  opacity: 0;
  animation: heroBgIn 0.65s ease-out 0.05s forwards;
  will-change: opacity;
}

@keyframes heroBgIn {
  to { opacity: 1; }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 720px;
  color: var(--white);
}

.label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 9vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-body {
  font-size: clamp(16px, 2.5vw, 19px);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.75;
}

/* ===== SECTION BASE ===== */
section {
  padding: 72px 28px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Light section (warm off-white) */
.section-light { background: #f5f3ef; }

/* Off-white / stone section */
.section-off { background: var(--gray-6); }

/* Dark section */
.section-dark {
  background: var(--gray-1);
  color: var(--white);
}
.section-dark .label { color: var(--gray-4); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-body { color: rgba(255,255,255,0.7); }

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
}

.section-body {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--gray-2);
  line-height: 1.8;
  max-width: 680px;
}

.section-body + .section-body { margin-top: 16px; }

/* Blockquote */
blockquote {
  border-left: 3px solid var(--black);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--gray-2);
  line-height: 1.65;
}

/* ===== DIVIDER ===== */
hr {
  border: none;
  border-top: 1px solid var(--gray-5);
  margin: 48px 0;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--gray-5);
  border: 1px solid var(--gray-5);
}

.card {
  background: var(--white);
  padding: 36px 28px;
  transition: background 0.2s;
}
.card:hover { background: var(--gray-6); }

.card-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray-4); margin-bottom: 14px;
}

.card-title {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 12px;
}

.card-body {
  font-size: 15px;
  color: var(--gray-3);
  line-height: 1.7;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== VIDEO CARD ===== */
.video-card {
  background: var(--black);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  cursor: pointer;
}

.video-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.3s;
}
.video-card:hover img { filter: grayscale(100%) brightness(0.65); }

.video-play {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px;
  transition: background 0.2s;
}
.video-card:hover .video-play { background: rgba(255,255,255,0.15); }

.video-meta {
  margin-top: 14px;
}
.video-meta .label { color: var(--gray-4); margin-bottom: 6px; }
.video-meta .title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  color: var(--black); line-height: 1.2;
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--black); color: var(--white);
  font-family: var(--sans); font-size: 13px;
  font-weight: 500; letter-spacing: 0.5px;
  cursor: pointer; border: 1px solid var(--black);
  transition: all 0.2s;
}
.btn:hover { background: var(--gray-1); }

.btn-outline {
  background: transparent; color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-white {
  background: var(--white); color: var(--black);
  border-color: var(--white);
}
.btn-white:hover { background: var(--gray-6); }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray-3); margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-5);
  background: var(--white);
  font-family: var(--sans); font-size: 15px;
  color: var(--black);
  transition: border-color 0.2s;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--black);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== TIMELINE (Roadmap) ===== */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1px 1fr;
  gap: 0 24px;
  padding-bottom: 40px;
}

.timeline-date {
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gray-4); padding-top: 3px;
  text-align: right;
}

.timeline-line {
  background: var(--gray-5);
  position: relative;
}
.timeline-line::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--white);
  outline: 1px solid var(--black);
}

.timeline-content { padding-top: 0; }
.timeline-content .card-title { font-size: 18px; margin-bottom: 8px; }
.timeline-content .card-body { font-size: 14px; }

/* ===== GLOSSARY ===== */
.glossary-term {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-5);
}
.glossary-term:first-child { border-top: 1px solid var(--gray-5); }

.term-word {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: var(--black); margin-bottom: 8px;
}

.term-def {
  font-size: 16px; color: var(--gray-2); line-height: 1.75;
}

.term-source {
  font-size: 13px; color: var(--gray-4);
  font-style: italic; margin-top: 6px;
}

/* ===== MONOGRAPH ===== */
.mono-article {
  max-width: 680px; margin: 0 auto;
}

.mono-article h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--black);
}

.mono-article p {
  font-size: 17px; color: var(--gray-2);
  line-height: 1.85; margin-bottom: 20px;
}

.mono-article blockquote {
  margin: 32px 0;
}

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  color: var(--white);
  padding: 56px 28px 32px;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px; color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; color: rgba(255,255,255,0.35);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ===== UTILITIES ===== */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  section { padding: 48px 20px; }
  .hero { padding: 40px 20px; min-height: 70vh; }
  nav { padding: 16px 20px; }
}
