/* ============================================================
   Wedding Website — Autumn Grace
   Main Stylesheet
   Caroline & David · 20 September 2026
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&family=Lato:wght@300;400;700&display=swap');

/* ============================================================
   CSS Custom Properties — Autumn Grace Palette
   ============================================================ */
:root {
  /* Core Colours */
  --rose-gold:    #B76E79;   /* Rose Gold replaced cheshunt*/
  --warm-gold:    #C8963A;   /* richer, slightly deeper gold */
  --burgundy:     #6B1E3A;   /* kept */
  --soft-cream:   #FAF6EE;
  --light-cream:  #FDF9F3;
  --ivory:        #F5EFE0;   /* warm page background tint */
  --dark-text:    #2C1C10;
  --medium-text:  #5C3D2C;
  --muted-text:   #8B6E5A;
  --white:        #FFFFFF;

  /* Semantic aliases (used by shared CSS & JS templates) */
  --accent:       var(--warm-gold);
  --accent-dark:  var(--rose-gold);
  --accent-muted: var(--burgundy);

  /* Shadows */
  --shadow-warm:  rgba(183, 110, 121, 0.13);
  --shadow-dark:  rgba(44, 28, 16, 0.11);

  /* Typography */
  --font-serif:     'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif-alt: 'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Inter', 'Lato', sans-serif;

  /* Spacing */
  --section-pad:    80px;
  --section-pad-sm: 50px;

  /* Transitions */
  --transition:      0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--dark-text);
  background-color: var(--soft-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--dark-text);
  line-height: 1.25;
}

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

p { font-family: var(--font-sans); font-size: 1rem; color: var(--medium-text); }

.serif-body {
  font-family: var(--font-serif-alt);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--medium-text);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-slow), box-shadow var(--transition-slow), padding var(--transition);
}

.nav.scrolled {
  background: rgba(250, 246, 238, 0.97);
  box-shadow: 0 2px 20px var(--shadow-dark);
  padding: 12px 5%;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--medium-text);
  letter-spacing: 0.02em;
}

.nav-logo span { color: var(--warm-gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--medium-text);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--warm-gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active { color: var(--rose-gold); }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1.5px solid var(--warm-gold);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose-gold);
  letter-spacing: 0.05em;
  transition: all var(--transition);
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--warm-gold);
  color: var(--white);
  border-color: var(--warm-gold);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--rose-gold);
  transition: all var(--transition);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--light-cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.nav-mobile.open { display: flex; opacity: 1; }

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--rose-gold);
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--rose-gold); }

.nav-mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted-text);
  background: none;
  border: none;
  line-height: 1;
}

.nav-mobile .lang-toggle { margin-top: 12px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

/* Primary — rose--rose-gold */
.btn-primary {
  background: var(--rose-gold);
  color: var(--white);
  border-color: var(--rose-gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--rose-gold);
}

/* Outline — rose--rose-gold */
.btn-outline {
  background: transparent;
  color: var(--rose-gold);
  border-color: var(--rose-gold);
}
.btn-outline:hover {
  background: var(--rose-gold);
  color: var(--white);
}

/* Gold */
.btn-gold {
  background: var(--warm-gold);
  color: var(--white);
  border-color: var(--warm-gold);
}
.btn-gold:hover {
  background: transparent;
  color: var(--warm-gold);
}

/* Gold Outline */
.btn-gold-outline {
  background: transparent;
  color: var(--warm-gold);
  border-color: var(--warm-gold);
}
.btn-gold-outline:hover {
  background: var(--warm-gold);
  color: var(--white);
}

/* Sage (replaces green) */
.btn-sage {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn-sage:hover {
  background: transparent;
  color: var(--burgundy);
}

/* Legacy alias */
.btn-green { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); }
.btn-green:hover { background: transparent; color: var(--burgundy); }

/* ============================================================
   Section Layout
   ============================================================ */
.section { padding: var(--section-pad) 5%; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 16px; }
.section-title h2 { color: var(--dark-text); }

.section-subtitle {
  text-align: center;
  font-family: var(--font-serif-alt);
  font-style: italic;
  color: var(--muted-text);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 40px;
}

.divider-line {
  width: 60px; height: 1px;
  background: var(--warm-gold);
}

.divider-leaf { color: var(--warm-gold); font-size: 1.1rem; }

/* ============================================================
   Hero / Page Headers
   ============================================================ */
.page-header {
  padding: 140px 5% 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--soft-cream) 0%, #f0e8d8 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(155,74,27,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(107,30,58,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 { color: var(--dark-text); margin-bottom: 12px; }
.page-header .serif-body { font-size: 1.2rem; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 24px var(--shadow-dark);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px var(--shadow-warm);
}

.card-body { padding: 28px; }

/* ============================================================
   Grid Layouts
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   Decorative Elements
   ============================================================ */
.autumn-border-top {
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--rose-gold), var(--warm-gold), var(--burgundy)) 1;
}

.autumn-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--rose-gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* Cross / Christian ornament */
.cross-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 40px;
}

.cross-divider::before,
.cross-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--warm-gold);
}

.cross-icon {
  color: var(--warm-gold);
  font-size: 1.2rem;
}

.gold-accent   { color: var(--warm-gold); }
.rose--rose-gold-accent{ color: var(--rose-gold); }
.sage-accent   { color: var(--burgundy); }

/* Autumn leaf SVG decorations */
.leaf-decoration {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark-text);
  color: rgba(250,246,238,0.75);
  padding: 50px 5% 30px;
  text-align: center;
}

.footer-names {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--warm-gold);
  margin-bottom: 8px;
}

.footer-date {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.5);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--warm-gold); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(250,246,238,0.35);
  border-top: 1px solid rgba(250,246,238,0.1);
  padding-top: 20px;
  margin-top: 10px;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--medium-text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid #DDD4C4;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--dark-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--warm-gold);
  box-shadow: 0 0 0 3px rgba(200,150,58,0.14);
}

.form-control::placeholder {
  color: var(--muted-text);
  opacity: 0.6;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B6E5A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-radio-group, .form-check-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-radio, .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-radio input, .form-check input {
  accent-color: var(--warm-gold);
  width: 16px; height: 16px;
  cursor: pointer;
}

.form-radio label, .form-check label {
  font-size: 0.95rem;
  color: var(--medium-text);
  cursor: pointer;
}

.form-error {
  color: #B53A2A;
  font-size: 0.82rem;
  margin-top: 5px;
  display: none;
}

.form-error.show { display: block; }

/* ============================================================
   Alerts / Notifications
   ============================================================ */
.alert {
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 24px;
  display: none;
}

.alert.show { display: block; }

.alert-success {
  background: #F4F7EE;
  border-left: 4px solid var(--burgundy);
  color: var(--burgundy);
}

.alert-error {
  background: #FDF0F0;
  border-left: 4px solid #B53A2A;
  color: #B53A2A;
}

/* ============================================================
   Countdown
   ============================================================ */
.countdown {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

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

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

.countdown-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-top: 6px;
  display: block;
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--warm-gold);
  align-self: flex-start;
  margin-top: 8px;
  opacity: 0.5;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; max-width: 750px; margin: 0 auto; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--warm-gold), var(--rose-gold));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  flex: 1;
  background: var(--white);
  padding: 24px 28px;
  border-radius: 4px;
  box-shadow: 0 3px 18px var(--shadow-dark);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content { text-align: right; }

.timeline-year {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--warm-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 0.93rem;
  color: var(--medium-text);
  line-height: 1.65;
}

.timeline-dot {
  width: 16px; height: 16px;
  background: var(--warm-gold);
  border: 3px solid var(--soft-cream);
  border-radius: 50%;
  position: absolute;
  left: 50%; top: 28px;
  transform: translateX(-50%);
  flex-shrink: 0;
}

.timeline-spacer { flex: 1; }

/* ============================================================
   Info Icon Circles
   ============================================================ */
.info-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.info-icon-rose--rose-gold { background: rgba(155,74,27,0.11);  color: var(--rose-gold); }
.info-icon-gold     { background: rgba(200,150,58,0.12); color: var(--warm-gold); }
.info-icon-sage     { background: rgba(107,124,82,0.12); color: var(--burgundy); }
.info-icon-burg     { background: rgba(107,30,58,0.11);  color: var(--burgundy); }

/* Legacy aliases */
.info-icon-orange { background: rgba(155,74,27,0.11);  color: var(--rose-gold); }
.info-icon-green  { background: rgba(107,124,82,0.12); color: var(--burgundy); }

/* ============================================================
   Wedding Party Cards
   ============================================================ */
.party-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 3px 18px var(--shadow-dark);
  transition: transform var(--transition);
}

.party-card:hover { transform: translateY(-4px); }

.party-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm-gold), var(--rose-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin: 0 auto 16px;
  font-style: italic;
}

.party-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 4px;
}

.party-role {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: 10px;
}

.party-note {
  font-size: 0.88rem;
  color: var(--muted-text);
  font-style: italic;
}

/* ============================================================
   Map / Travel
   ============================================================ */
.map-embed {
  width: 100%; height: 380px;
  border-radius: 4px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 20px var(--shadow-dark);
}

.transport-card {
  background: var(--white);
  border-radius: 4px;
  padding: 24px 28px;
  box-shadow: 0 3px 18px var(--shadow-dark);
  border-top: 3px solid var(--warm-gold);
}

/* ============================================================
   Scroll-in Animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.w-full { width: 100%; }

.bg-cream  { background-color: var(--soft-cream); }
.bg-light  { background-color: var(--light-cream); }
.bg-sage   { background-color: var(--burgundy); }
.bg-dark   { background-color: var(--dark-text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-links      { display: none; }
  .nav-hamburger  { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 50px;
  }
  .timeline-dot { left: 20px; top: 20px; }
  .timeline-content { text-align: left !important; }
  .timeline-spacer  { display: none; }
}

@media (max-width: 600px) {
  :root { --section-pad: var(--section-pad-sm); }
  .btn  { padding: 12px 26px; font-size: 0.8rem; }
  .countdown { gap: 16px; }
  .countdown-number { font-size: 2.2rem; }
  .form-radio-group, .form-check-group { flex-direction: column; gap: 12px; }
}
