/* ================================================
   WEDDING GATHA — SHARED STYLES
   Cormorant (headings) + Montserrat (body)
   Palette: Cream / Dark / Gold
   ================================================ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #FAF8F5;
  --cream-mid:  #F2EBE1;
  --cream-dark: #E8DDD0;
  --dark:       #1A1814;
  --dark-2:     #3D3830;
  --gold:       #C4A35A;
  --gold-light: #D4BA7A;
  --warm-gray:  #8A847C;
  --border:     #E5DDD0;
  --nav-h:      68px;
}

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

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAVBAR ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Opaque: on scroll OR on inner pages */
.navbar.scrolled,
.navbar.opaque {
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(26,24,20,0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; }

/* White logo: shown on transparent navbar (hero pages) */
.nav-logo .logo-white { display: block; }
.nav-logo .logo-dark  { display: none; }
.navbar.scrolled .nav-logo .logo-white,
.navbar.opaque  .nav-logo .logo-white { display: none; }
.navbar.scrolled .nav-logo .logo-dark,
.navbar.opaque  .nav-logo .logo-dark  { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s, font-weight 0.25s, letter-spacing 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: white;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
/* Dark links when navbar is opaque */
.navbar.scrolled .nav-links a,
.navbar.opaque   .nav-links a { color: var(--dark); }
.navbar.scrolled .nav-links a:hover,
.navbar.opaque   .nav-links a:hover {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: white;
  transition: all 0.3s ease;
}
.navbar.scrolled .hamburger span,
.navbar.opaque   .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(250,248,245,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  padding: 28px clamp(20px,5vw,72px) 32px;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* Inner pages: navbar always opaque, hero has margin-top */
.page-hero { margin-top: var(--nav-h); }

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes kenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}
@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 100%; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  @keyframes kenBurns { 0%,100% { transform: scale(1); } }
}

/* ── SECTION LABEL / HEADING ─────────────────── */
.sec-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.sec-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark);
}
.sec-title em { font-style: italic; color: var(--dark-2); }

/* ── BUTTONS ─────────────────────────────────── */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(to right, var(--gold) 50%, var(--dark) 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  text-decoration: none;
  padding: 16px 36px;
  border: 1px solid var(--dark);
  transition: background-position 0.42s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.42s ease;
  cursor: pointer;
}
.btn-dark:hover { background-position: left bottom; border-color: var(--gold); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 0.2s;
  cursor: pointer;
}
.btn-ghost svg { transition: transform 0.3s; }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover svg { transform: translateX(5px); }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 64px clamp(20px,5vw,72px) 36px;
}
.footer-inner { max-width: 1260px; margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.footer-brand-name {
  font-family: 'Cormorant', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: white;
  letter-spacing: 0.04em;
}
.footer-brand-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}
.footer-nav {
  display: flex;
  gap: clamp(20px,4vw,56px);
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  cursor: pointer;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
}

/* ── PAGE HERO (inner pages) ─────────────────── */
.page-hero {
  margin-top: var(--nav-h);
  padding: clamp(60px,8vw,100px) clamp(20px,5vw,72px);
  background: var(--cream-mid);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .sec-label { justify-content: center; }
.page-hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.page-hero-title em { font-style: italic; color: var(--warm-gray); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links  { display: none; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}
