/* =============================================
   WEDDING WEBSITE — DESIGN SYSTEM
   Fall Color Theme
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette */
  --burgundy: #9B2335;          /* Deep Crimson (auspicious red) */
  --burgundy-light: #B53040;    /* Ruby */
  --burgundy-dark: #7C1C2E;     /* Dark Garnet */
  --burnt-orange: #C4622D;      /* Terracotta */
  --burnt-orange-light: #D97840;/* Copper */
  --golden-amber: #C4622D;      /* Map to Terracotta for focus states */
  --golden-amber-light: #F7C06D;/* Warm gold for countdown accents and header text */
  --forest-green: #2E5A44;      /* Deep Sage Green */
  --forest-green-light: #447C61;/* Sage Green Light */

  /* Neutrals */
  --cream: #FDF0EB;             /* Warm Blush White (Main Background) */
  --cream-dark: #F7E6DE;        /* Parchment Rose (Card / Nav Border) */
  --ivory: #FFFFFF;             /* White (Card backgrounds) */
  --charcoal: #3D2B1F;          /* Warm Charcoal (Text) */
  --warm-brown: #5C4033;        /* Warm Brown */
  --warm-brown-light: #7A5A4D;  /* Warm Brown Light */
  --white: #FFFFFF;
  --light-gray: #FAF5F2;        /* Blush-tinged Light Gray */

  /* Overlay */
  --overlay-dark: rgba(61, 43, 31, 0.7);
  --overlay-light: rgba(253, 240, 235, 0.85);

  /* Typography */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Sizing */
  --max-width: 1100px;
  --nav-height: 72px;
  --border-radius: 12px;
  --border-radius-sm: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.08);
  --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.12);
  --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.16);
}

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

html {
  font-size: 100%; /* 16px base */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px - larger for readability */
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--burnt-orange);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--golden-amber);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--burgundy);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; margin-bottom: var(--space-md); }
h3 { font-size: 2.2rem; margin-bottom: var(--space-sm); }
h4 { font-size: 1.8rem; }

p {
  margin-bottom: var(--space-sm);
}

ul, ol {
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--warm-brown);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  font-weight: 400;
}

.text-center { text-align: center; }
.text-warm { color: var(--warm-brown); }

/* --- Divider --- */
.divider {
  width: 100%;
  max-width: 500px;
  margin: var(--space-xl) auto;
  display: block;
}

.divider-sm {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--burnt-orange));
  border: none;
  border-radius: 2px;
  margin: var(--space-md) auto;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--ivory);
  border-bottom: 2px solid var(--cream-dark);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--burgundy);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--burgundy);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
  padding: 0;
}

.nav-links a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--burgundy);
  background-color: var(--cream);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--burgundy);
  background-color: var(--cream);
  font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  min-width: 48px;
  min-height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--charcoal);
  border-radius: 2px;
  margin: 5px 0;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--warm-brown); /* fallback */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(54, 69, 79, 0.45) 0%,
    rgba(114, 47, 55, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-lg);
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-sm);
}

.hero-date {
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--golden-amber-light);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

/* --- Countdown --- */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius);
  padding: var(--space-sm) var(--space-md);
  min-width: 90px;
  text-align: center;
}

.countdown-number {
  display: block;
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--golden-amber-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--ivory);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-md) var(--space-lg);
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--warm-brown);
  margin-bottom: var(--space-md);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Quick Links Grid (Home) */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.quick-link-card {
  background: var(--ivory);
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
  text-decoration: none;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  display: block;
}

.quick-link-card:hover,
.quick-link-card:focus {
  border-color: var(--burgundy);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--charcoal);
}

.quick-link-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  display: block;
}

.quick-link-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--burgundy);
  margin-bottom: var(--space-xs);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  min-height: 48px;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 3px solid var(--golden-amber);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background-color: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-secondary:hover {
  background-color: var(--burgundy);
  color: var(--white);
  text-decoration: none;
}

.btn-accent {
  background-color: var(--burnt-orange);
  color: var(--white);
  border-color: var(--burnt-orange);
}

.btn-accent:hover {
  background-color: var(--burnt-orange-light);
  border-color: var(--burnt-orange-light);
  color: var(--white);
  text-decoration: none;
}

/* =============================================
   TIMELINE (Schedule Page)
   ============================================= */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--burgundy), var(--burnt-orange));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: var(--space-2xl);
}

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 26px;
  height: 26px;
  background: var(--burgundy);
  border-radius: 50%;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 2px var(--burgundy);
}

.timeline-time {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--burnt-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}

.timeline-venue {
  font-size: 0.95rem;
  color: var(--warm-brown-light);
  margin-bottom: 0.25rem;
}

.timeline-venue a {
  color: var(--burnt-orange);
}

.timeline-desc {
  color: var(--warm-brown);
  font-size: 1rem;
}

/* =============================================
   VENUE DETAIL
   ============================================= */
.venue-header-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
}

.venue-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.venue-details h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.venue-address {
  font-size: 1.05rem;
  color: var(--warm-brown);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.venue-address strong {
  color: var(--charcoal);
}

.venue-map {
  width: 100%;
  height: 350px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.venue-map-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* =============================================
   RSVP / IFRAME EMBED
   ============================================= */
.rsvp-frame-wrapper {
  background: var(--ivory);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
}

.rsvp-frame {
  width: 100%;
  min-height: 700px;
  border: none;
}

/* =============================================
   TRAVEL & ACCOMMODATIONS
   ============================================= */
.hotel-card {
  background: var(--ivory);
  border: 1px solid var(--cream-dark);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hotel-card h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
}

.hotel-card .hotel-info {
  color: var(--warm-brown);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.hotel-card .hotel-info p {
  margin-bottom: 0.25rem;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.travel-tips {
  background: var(--ivory);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  margin-top: var(--space-xl);
}

.travel-tips h3 {
  margin-bottom: var(--space-md);
}

.travel-tips ul {
  list-style: none;
  padding: 0;
}

.travel-tips li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 1.05rem;
}

.travel-tips li:last-child {
  border-bottom: none;
}

.travel-tips li::before {
  content: '🍂 ';
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: var(--ivory);
  border: 1px solid var(--cream-dark);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 48px;
}

.faq-question:hover {
  background-color: var(--cream);
}

.faq-question:focus-visible {
  outline: 3px solid var(--golden-amber);
  outline-offset: -3px;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--burgundy);
  flex-shrink: 0;
  font-weight: 400;
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--warm-brown);
  font-size: 1.05rem;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* =============================================
   PASSWORD GATE
   ============================================= */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--warm-brown);
  position: relative;
}

.gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(114, 47, 55, 0.8) 0%,
    rgba(92, 64, 51, 0.85) 50%,
    rgba(54, 69, 79, 0.8) 100%
  );
}

.gate-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 240, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 440px;
  width: 90%;
  border: 1px solid var(--cream-dark);
}

.gate-card h1 {
  color: var(--burgundy);
  font-size: 3.2rem;
  margin-bottom: var(--space-xs);
}

.gate-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--warm-brown);
  margin-bottom: var(--space-xl);
}

.gate-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.gate-input {
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 0.875rem var(--space-md);
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius-sm);
  background: var(--white);
  color: var(--charcoal);
  text-align: center;
  min-height: 48px;
}

.gate-input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.15);
}

.gate-error {
  color: #c0392b;
  font-size: 0.95rem;
  display: none;
  margin-top: var(--space-xs);
}

/* =============================================
   PAGE HEADER (for inner pages)
   ============================================= */
.page-header {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: var(--space-xs);
}

.page-header p {
  color: var(--golden-amber-light);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--golden-amber-light);
  margin-bottom: var(--space-xs);
}

.footer p {
  font-size: 0.95rem;
  color: var(--cream-dark);
  margin-bottom: 0;
}

/* =============================================
   WELCOME SECTION
   ============================================= */
.welcome-card {
  background: var(--ivory);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 750px;
  margin: 0 auto var(--space-xl);
  border: 1px solid var(--cream-dark);
}

.welcome-card p {
  font-size: 1.15rem;
  color: var(--warm-brown);
  line-height: 1.8;
}

/* =============================================
   RESPONSIVE — Tablet
   ============================================= */
@media (max-width: 900px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.8rem; }

  .hero h1 { font-size: 3.5rem; }
  .page-header h1 { font-size: 2.8rem; }
  .gate-card h1 { font-size: 2.6rem; }

  .venue-info {
    grid-template-columns: 1fr;
  }

  .venue-map {
    height: 300px;
  }
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }

  .hero {
    min-height: 60vh;
  }

  .hero h1 { font-size: 2.8rem; }
  .hero-date { font-size: 1.15rem; }

  .countdown {
    gap: var(--space-xs);
  }

  .countdown-item {
    min-width: 70px;
    padding: var(--space-xs) var(--space-sm);
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .page-header h1 { font-size: 2.2rem; }
  .gate-card h1 { font-size: 2.4rem; }

  .container {
    padding: 0 var(--space-sm);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: var(--space-sm);
    border-bottom: 2px solid var(--cream-dark);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-sm) var(--space-md);
    font-size: 1.1rem;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 6px;
    width: 22px;
    height: 22px;
  }

  .venue-header-img {
    height: 250px;
  }

  .quick-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
}
