/* ======================
   Walk In Miracles — style.css
   ====================== */

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

/* --- Variables --- */
:root {
  --navy: #1C2B3A;
  --gold: #C9A84C;
  --cream: #FAF6EF;
  --rose: #C98B8B;
  --sage: #7A9E8E;
  --charcoal: #3D3D3D;
  --white: #ffffff;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--cream);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }

p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--charcoal);
  max-width: 720px;
}

/* --- Layout Utilities --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--navy {
  background-color: var(--navy);
}

.section--cream {
  background-color: var(--cream);
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--navy);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--navy);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding: 24px;
  z-index: 999;
}

.nav__mobile.open {
  display: block;
}

.nav__mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav__mobile a {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--gold);
}

/* Page offset for fixed nav */
.page-wrap {
  padding-top: var(--nav-height);
}

/* --- Hero --- */
.hero {
  background-color: var(--navy);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.hero__accent {
  display: block;
  width: 64px;
  height: 3px;
  background-color: var(--gold);
  margin: 16px 0 28px;
}

.hero p {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 40px;
}

.hero--center {
  text-align: center;
}

.hero--center .hero__accent {
  margin-left: auto;
  margin-right: auto;
}

.hero--center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background-color: var(--gold);
  color: var(--navy);
}

.btn--filled {
  background-color: var(--gold);
  color: var(--navy);
}

.btn--filled:hover {
  background-color: transparent;
  color: var(--gold);
}

/* --- Mission / Text Sections --- */
.section__heading {
  margin-bottom: 20px;
}

.section__heading--gold {
  color: var(--gold);
}

.section__body p + p {
  margin-top: 18px;
}

/* --- Featured Project Card --- */
.feature-card {
  border-left: 4px solid var(--gold);
  padding: 36px 40px;
  background-color: #f5f0e8;
  max-width: 820px;
}

.feature-card h2 {
  margin-bottom: 16px;
}

.feature-card p {
  margin-bottom: 28px;
}

/* --- Pull Quote --- */
.pull-quote {
  background-color: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.pull-quote__marks {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--gold);
  display: block;
  margin-bottom: 24px;
}

.pull-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.pull-quote cite {
  font-family: 'Lora', serif;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Scripture Band --- */
.scripture-band {
  background-color: var(--navy);
  padding: 40px 0;
  text-align: center;
}

.scripture-band p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--sage);
  max-width: 700px;
  margin: 0 auto;
}

/* --- Scripture Close (pages) --- */
.scripture-close {
  background-color: var(--navy);
  padding: 60px 0;
  text-align: center;
}

.scripture-close p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--sage);
  max-width: 680px;
  margin: 0 auto;
}

/* --- About Sections --- */
.about-story {
  background-color: var(--cream);
}

.about-story p {
  margin-bottom: 18px;
}

.about-vision {
  background-color: #f0ece3;
  border-top: 4px solid var(--gold);
}

/* --- Dunamis Sections --- */
.dunamis-section {
  background-color: var(--cream);
}

.dunamis-section + .dunamis-section {
  background-color: #f0ece3;
}

.dunamis-name {
  background-color: var(--cream);
  border-left: 4px solid var(--sage);
  padding-left: 32px;
}

/* --- Contact Section --- */
.contact-section {
  background-color: var(--cream);
}

.contact-email-block {
  max-width: 560px;
}

.contact-email-block p {
  margin-bottom: 32px;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.contact-closing {
  background-color: var(--navy);
  padding: 60px 0;
  text-align: center;
}

.contact-closing p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  background-color: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 36px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
}

.footer__brand {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
}

.footer__scripture {
  text-align: center;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sage);
}

.footer__copy {
  text-align: right;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .section {
    padding: 56px 0;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__copy {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pull-quote__marks {
    font-size: 3.5rem;
  }
}
