/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  --color-sage:   #8DB5A3;
  --color-forest: #1C4A2E;
  --color-slate:  #3D5947;
  --color-ivory:  #EBEBE3;
  --color-black:  #0D0D0D;
  --color-white:  #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);

  --radius: 8px;
  --transition: 0.2s ease;
}

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

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

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

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

a { color: var(--color-forest); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-forest);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(235, 235, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(141, 181, 163, 0.3);
}

.site-nav .brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-forest);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate);
  font-weight: 600;
}

.nav-links a:hover { color: var(--color-forest); opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}
.btn-primary:hover {
  background: var(--color-slate);
  border-color: var(--color-slate);
  color: var(--color-white);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}
.btn-outline:hover {
  background: var(--color-forest);
  color: var(--color-white);
  opacity: 1;
}

.btn-sage {
  background: var(--color-sage);
  color: var(--color-white);
  border-color: var(--color-sage);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background-color: var(--color-ivory);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1rem;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  color: var(--color-forest);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.hero-ampersand {
  color: var(--color-sage);
  font-style: italic;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-slate);
  margin-bottom: 2.5rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--color-sage);
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.countdown-unit {
  text-align: center;
  min-width: 70px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--color-forest);
  line-height: 1;
  display: block;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-top: 0.25rem;
}

.countdown-separator {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-sage);
  align-self: flex-start;
  padding-top: 0.2rem;
  line-height: 1;
}

.married-message {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-forest);
  font-style: italic;
}

/* ============================================================
   SECTION TABS
   ============================================================ */
.section-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: wrap;
}
.section-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  border: 2px solid var(--color-sage);
  background: transparent;
  color: var(--color-slate);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-slate);
  font-size: 0.875rem;
  border-top: 1px solid rgba(141, 181, 163, 0.3);
  margin-top: 4rem;
}

.site-footer a { color: var(--color-slate); }

/* ============================================================
   FLORAL SVG PATTERN (hero background)
   ============================================================ */
.floral-pattern {
  width: 100%;
  height: 100%;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  text-align: center;
  padding: 7rem 2rem 2rem;
  background: var(--color-ivory);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-slate);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-photo { background: rgba(141, 181, 163, 0.25); color: var(--color-slate); }
.badge-video { background: rgba(28, 74, 46, 0.12); color: var(--color-forest); }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(141, 181, 163, 0.3);
  border-top-color: var(--color-forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--color-forest);
  color: var(--color-white);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  animation: slideIn 0.3s ease;
  pointer-events: auto;
}

.toast.error { background: #b91c1c; }
.toast.success { background: var(--color-forest); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .site-nav { padding: 0.75rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:nth-child(n+3) { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .countdown { gap: 1rem; }
}
