/* ============================================
   BeLoved Encounters — styles.css
   Dark navy & antique gold — original theme
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark navy palette — matches the original site */
  --navy:         #0d1520;
  --navy-lt:      #142030;
  --navy-card:    #1a2a3d;
  --navy-border:  #1e3050;
  --gold:         #c9a84c;
  --gold-lt:      #e0bf6e;
  --gold-dk:      #a07830;
  --text:         #e8dfc8;
  --text-light:   #a89f8a;
  --white:        #ffffff;
  --shadow:       rgba(0,0,0,0.35);
  --radius:       10px;
  --font-serif:   'Georgia', 'Times New Roman', serif;
  --font-sans:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Aliases so every section reference still works */
  --parchment:    var(--navy-lt);
  --parchment-dk: var(--navy-card);
  --charcoal:     var(--navy);
  --border:       var(--navy-border);
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.85;
  color: var(--text);
  background: var(--navy);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-lt); text-decoration: underline; }
a:hover { color: var(--gold); }
strong { font-weight: 700; }

/* --- Utility --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.site-logo span {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: 0.02em;
}

/* Nav */
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  color: var(--parchment-dk);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--gold);
  color: var(--charcoal);
}
.site-nav a.nav-give {
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
}
.site-nav a.nav-give:hover { background: var(--gold-lt); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--parchment);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-content p {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  opacity: 0.92;
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: 0.2s;
  letter-spacing: 0.03em;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-lt); color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--parchment); }
.btn-dark:hover { background: #3d3020; color: var(--parchment); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  background: var(--charcoal);
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--white);
}
.page-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.page-hero-content p {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 72px 24px; }
.section-alt { background: var(--parchment-dk); }
.section-dark { background: var(--charcoal); color: var(--parchment); }
.section-dark a { color: var(--gold-lt); }
.section-center { text-align: center; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  color: var(--gold-lt);
  margin-bottom: 16px;
}
.section-dark h2 { color: var(--gold-lt); }
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}
.section-dark h3 { color: var(--gold-lt); }
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 32px;
  border-radius: 2px;
}
.section-center .divider { margin: 20px auto 32px; }

/* Scripture pullquote */
.scripture {
  border-left: 4px solid var(--gold);
  padding: 18px 24px;
  margin: 28px 0;
  background: rgba(184,134,11,0.07);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}
.scripture cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-dk);
  margin-top: 8px;
}
.section-dark .scripture {
  background: rgba(184,134,11,0.15);
  color: var(--parchment-dk);
}

/* ============================================
   THREE WAYS / CARD GRID
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-body p { font-size: 0.97rem; color: var(--text); flex: 1; }
.card-body .btn { margin-top: 18px; align-self: flex-start; }

/* Number step cards */
.step-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--navy-card);
  border-radius: var(--radius);
  border: 1px solid var(--navy-border);
  box-shadow: 0 2px 10px var(--shadow);
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ============================================
   TESTIMONIES
   ============================================ */
.testimony-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.testimony-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
}
.testimony-card img {
  width: 100%;
  height: auto;
  border-bottom: 3px solid var(--gold);
}
.testimony-caption {
  padding: 18px 20px;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  background: var(--navy-card);
}
.testimony-caption strong {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--gold-dk);
  margin-top: 6px;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col.align-center { align-items: center; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================
   VIDEO PAGE
   ============================================ */
.video-section { padding: 60px 24px; }
.video-wrapper {
  max-width: 600px;
  margin: 0 auto 36px;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  position: relative;
}
.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  display: block;
  aspect-ratio: 9/16;
}
/* Fallback placeholder */
.video-placeholder {
  background: var(--charcoal);
  color: var(--parchment);
  text-align: center;
  padding: 60px 24px;
  font-size: 1.1rem;
}
.video-placeholder .icon { font-size: 3rem; margin-bottom: 12px; }

/* ============================================
   CONTACT / FORM
   ============================================ */
.form-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 4px 20px var(--shadow);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--navy-border);
  border-radius: 6px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  background: var(--navy-lt);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* ============================================
   GIVE PAGE
   ============================================ */
.give-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.give-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
}
.give-card .give-icon { font-size: 2.5rem; margin-bottom: 14px; }
.give-card h3 { margin-bottom: 12px; }
.give-card p { color: var(--text-light); font-size: 1rem; margin-bottom: 20px; }

/* ============================================
   EXIT-INTENT POPUP
   ============================================ */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,36,22,0.72);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-overlay.active { display: flex; }
.popup-box {
  background: var(--navy-lt);
  border: 2px solid var(--gold);
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  padding: 44px 36px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  text-align: center;
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}
.popup-close:hover { color: var(--charcoal); }
.popup-box h2 { font-size: 1.7rem; margin-bottom: 10px; }
.popup-box p { font-size: 1rem; color: var(--text-light); margin-bottom: 22px; }
.popup-box .form-group { text-align: left; }
.popup-box .btn { width: 100%; justify-content: center; margin-top: 8px; }
.popup-success { display: none; color: var(--gold-dk); font-weight: 700; font-size: 1.1rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #071020;
  border-top: 2px solid var(--gold-dk);
  color: rgba(201,168,76,0.75);
  padding: 56px 24px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(201,168,76,0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.2);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(201,168,76,0.4);
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================
   BLOG
   ============================================ */
.post-header { padding: 56px 24px 40px; max-width: 780px; margin: 0 auto; }
.post-meta {
  font-family: var(--font-sans);
  font-size: 0.87rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.post-body { max-width: 780px; margin: 0 auto; padding: 0 24px 72px; }
.post-body h2 { margin-top: 36px; margin-bottom: 14px; }
.post-body h3 { margin-top: 28px; margin-bottom: 10px; }
.post-body p { margin-bottom: 1.2em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em 2em; }
.post-body li { margin-bottom: 0.5em; }
.post-cta {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 48px 0;
}
.pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--charcoal);
  color: var(--parchment);
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.97rem;
  transition: background 0.2s;
  margin-top: 14px;
}
.pdf-download:hover { background: var(--gold-dk); color: var(--parchment); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--charcoal); padding: 16px; gap: 4px; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 16px; font-size: 1rem; }
  .menu-toggle { display: flex; }
  .header-inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-content h1 { font-size: 1.8rem; }
  .form-card { padding: 24px 18px; }
  .popup-box { padding: 32px 22px; }
  .section { padding: 48px 18px; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .testimony-grid { grid-template-columns: 1fr; }
  .give-grid { grid-template-columns: 1fr; }
}
