/* ============================================
   Anna & Alex — October 2–4, 2026
   Retro Outdoorsy Wedding
   ============================================ */

/* ---------- PALETTE ---------- */
:root {
  --forest: #2d5a3f;
  --forest-deep: #1e3f2c;
  --rust: #c4652a;
  --rust-light: #d4783f;
  --rust-dark: #a8521e;
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --parchment: #faf6ef;
  --brown: #3d2c1e;
  --brown-light: #6b5542;
  --amber: #d4a03c;
  --amber-soft: #e2bb6a;
  --text-primary: #2c2418;
  --text-body: #4a3f34;
  --text-muted: #7d7168;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cabin', sans-serif;
  color: var(--text-body);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.2;
}

/* ---------- NAV ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 24px;
  background: var(--forest-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--rust);
}

.site-nav a {
  font-family: 'Cabin', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--cream);
  padding: 6px 14px;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--amber-soft);
}

.nav-separator {
  color: var(--rust);
  font-size: 10px;
  opacity: 0.6;
  user-select: none;
}

/* Mobile menu button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30,63,44,0.45) 0%,
    rgba(30,63,44,0.25) 40%,
    rgba(44,36,24,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: 'Cabin', sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-soft);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 10vw, 110px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-rule {
  width: 60px;
  height: 3px;
  background: var(--rust);
  margin: 24px auto;
}

.hero-subtitle {
  font-family: 'Cabin', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* Reduce top padding when section follows a page header */
.page-header + .section,
.page-header + .schedule-day {
  padding-top: 40px;
}

.section-wide {
  max-width: 1100px;
}

.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 46px);
  color: var(--forest-deep);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.section-rule {
  width: 40px;
  height: 3px;
  background: var(--rust);
  margin: 0 auto 20px;
}

/* ---------- INTRO BLOCK ---------- */
.intro {
  background: var(--forest-deep);
  color: var(--cream);
  border-top: 4px solid var(--rust);
}

.intro-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 70px 24px;
  text-align: center;
}

.intro-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--cream);
}

.intro-detail {
  margin-top: 32px;
  font-size: 15px;
  color: var(--cream-dark);
  opacity: 0.75;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* ---------- WEEKEND PREVIEW ---------- */
.weekend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.weekend-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--rust);
}

.weekend-card-day {
  font-family: 'Cabin', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 8px;
}

.weekend-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--forest-deep);
  margin-bottom: 12px;
}

.weekend-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- PHOTO FEATURE ---------- */
.photo-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.photo-feature img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--cream-dark);
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid #d9d0c1;
  border-bottom: 1px solid #d9d0c1;
}

.cta-banner-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--forest-deep);
  margin-bottom: 12px;
}

.cta-banner-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  font-family: 'Cabin', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-rust {
  background: var(--rust);
  color: var(--white);
}
.btn-rust:hover {
  background: var(--rust-dark);
}

.btn-outline {
  background: transparent;
  color: var(--forest-deep);
  border: 2px solid var(--forest-deep);
}
.btn-outline:hover {
  background: var(--forest-deep);
  color: var(--cream);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  text-align: center;
  padding: 48px 24px;
  border-top: 3px solid var(--rust);
}

.footer-names {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-detail {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cream-dark);
  opacity: 0.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 800px) {
  .weekend-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .photo-feature {
    grid-template-columns: 1fr;
  }

  .photo-feature img {
    height: 260px;
  }

  .hero {
    min-height: 70vh;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding-bottom: 12px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-separator {
    display: none;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 16px 20px;
  }
  .site-nav a {
    padding: 10px 14px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--cream);
    letter-spacing: 0;
    text-transform: none;
    padding: 0;
  }
  .nav-brand:hover {
    color: var(--cream);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 20px;
  }

  .intro-inner {
    padding: 50px 20px;
  }
}

/* ---------- PASSWORD GATE ---------- */
body > *:not(#gate-overlay) {
  opacity: 0;
  transition: opacity 0.3s;
}
html.gate-passed body > *:not(#gate-overlay) {
  opacity: 1;
}

#gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.gate-box {
  text-align: center;
  padding: 40px 24px;
  max-width: 360px;
  width: 100%;
}
.gate-eyebrow {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 16px;
}
.gate-prompt {
  font-family: 'Cabin', sans-serif;
  font-size: 15px;
  color: var(--cream-dark);
  margin-bottom: 28px;
  line-height: 1.6;
}
#gate-form {
  display: flex;
  gap: 0;
}
#gate-input {
  flex: 1;
  font-family: 'Cabin', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-right: none;
  background: var(--white);
  color: var(--text-primary);
  outline: none;
}
#gate-input::placeholder {
  color: var(--text-muted);
}
#gate-form button {
  font-family: 'Cabin', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 24px;
  background: var(--rust);
  color: var(--white);
  border: 2px solid var(--rust);
  cursor: pointer;
  transition: background 0.2s;
}
#gate-form button:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
}
#gate-error {
  font-family: 'Cabin', sans-serif;
  font-size: 14px;
  color: var(--rust-light);
  margin-top: 12px;
  min-height: 20px;
}
