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

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

/* ── Root colours ── */
:root {
  --burgundy:     #8B2635;
  --burgundy-dark:#6B1C28;
  --rose-gold:    #B76E79;
  --blush:        #C4957A;
  --cream:        #FDF6F0;
  --warm-brown:   #5C3317;
  --light-pink:   #FAF0EA;
  --border-color: #E8C9B8;
  --text-light:   #F5D5C0;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--cream);
  color: var(--warm-brown);
  line-height: 1.7;
}

/* ── Navigation ── */
.navbar {
  background: var(--burgundy);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Great Vibes', cursive;
  color: var(--text-light);
  font-size: 28px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-light);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('');
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
}

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

.hero-pretext {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(56px, 10vw, 96px);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 40px;
}

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

.count-box {
  background: rgba(253, 246, 240, 0.12);
  border: 0.5px solid rgba(245, 213, 192, 0.35);
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 72px;
  text-align: center;
}

.count-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--cream);
  display: block;
  line-height: 1;
}

.count-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.8;
  margin-top: 6px;
  display: block;
}

.hero-birthday-msg {
  display: none;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(32px, 6vw, 56px);
  color: var(--cream);
  margin-top: 24px;
}

/* ── Section shared ── */
.section {
  padding: 72px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.section-alt {
  background: var(--light-pink);
}

.section-alt .section {
  background: transparent;
}

.badge {
  display: inline-block;
  background: rgba(183, 110, 121, 0.15);
  border: 0.5px solid var(--rose-gold);
  border-radius: 20px;
  padding: 4px 16px;
  color: var(--burgundy);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--rose-gold);
  margin-bottom: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  max-width: 860px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 0.5px;
  background: var(--border-color);
}

.divider-ornament {
  color: var(--rose-gold);
  font-size: 12px;
  letter-spacing: 6px;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 8px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose-gold);
  border: 2px solid var(--cream);
  outline: 1px solid var(--rose-gold);
}

.timeline-line {
  width: 1px;
  flex: 1;
  background: var(--border-color);
  min-height: 32px;
}

.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--burgundy);
  min-width: 40px;
  padding-top: 0px;
}

.timeline-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--warm-brown);
  line-height: 1.6;
}

/* ── Photo Gallery ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.photo-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid var(--border-color);
  position: relative;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.04);
}

.upload-photo-btn {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px dashed var(--rose-gold);
  background: rgba(183, 110, 121, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 8px;
  transition: background 0.3s;
}

.upload-photo-btn:hover {
  background: rgba(183, 110, 121, 0.12);
}

.upload-photo-btn span {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--rose-gold);
  text-transform: uppercase;
}

.upload-icon {
  font-size: 24px;
  color: var(--rose-gold);
}

/* ── Messages Wall ── */
.messages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.message-card {
  background: #FFFFFF;
  border: 0.5px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  position: relative;
}

.message-card::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 60px;
  color: var(--rose-gold);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 14px;
  line-height: 1;
}

.message-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.message-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--warm-brown);
  line-height: 1.7;
}

.message-location {
  font-size: 11px;
  color: var(--rose-gold);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* ── Message Form ── */
.message-form {
  background: var(--burgundy);
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.form-title {
  font-family: 'Great Vibes', cursive;
  font-size: 36px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-light);
  opacity: 0.75;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(253, 246, 240, 0.1);
  border: 0.5px solid rgba(245, 213, 192, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--cream);
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  transition: border-color 0.3s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 213, 192, 0.55);
  font-size: 12px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(245, 213, 192, 0.7);
}

.submit-btn {
  width: 100%;
  background: var(--rose-gold);
  border: none;
  border-radius: 6px;
  padding: 14px;
  color: var(--cream);
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--burgundy-dark);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
}

.form-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--text-light);
}

/* ── Footer ── */
.footer {
  background: var(--warm-brown);
  padding: 48px 24px;
  text-align: center;
}

.footer-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer-love {
  color: var(--rose-gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-copy {
  color: var(--text-light);
  font-size: 11px;
  opacity: 0.4;
  margin-top: 24px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .navbar {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--burgundy);
    padding: 20px;
    gap: 20px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .message-form {
    padding: 28px 20px;
  }

  .count-box {
    min-width: 60px;
    padding: 12px 14px;
  }

  .count-num {
    font-size: 30px;
  }
}