:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-color: #faf9f6;
  --bg-alt: #f4f0eb;
  --text-color: #2b2b2b;
  --text-muted: #666;
  --accent-color: #526354; /* Deep sage green */
  --accent-dark: #374439;
  --accent-light: #e6ede6;
  --terracotta: #a8624a;
  --gold-accent: #b39255;
  --card-bg: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--bg-color);
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 4.2rem;
  margin-top: 0.2rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 1.25rem;
  text-align: center;
  color: #232d24;
}

h3 {
  font-size: 1.7rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.section-intro {
  text-align: center;
  max-width: 650px;
  margin: -0.5rem auto 2.5rem auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Sticky Navigation */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: var(--accent-color);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-left: 1rem;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-color);
}

.lang-btn.active {
  background: var(--accent-color);
  color: white;
}

.lang-divider {
  color: var(--border-subtle);
  font-size: 0.75rem;
  margin: 0 0.1rem;
}

/* --- Hero Section (Two Chapters Storybook Theme) --- */
.hero-story {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background-image: url('assets/photo1.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 20, 0.55) 0%,
    rgba(22, 28, 24, 0.68) 60%,
    rgba(250, 249, 246, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-monogram {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-story .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: #e2ede3;
  margin-top: 0;
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.hero-story .hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: #f0ede6;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Dual Celebration Badges (Chapter Style) */
.celebration-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1.75rem auto 2.5rem auto;
  flex-wrap: wrap;
}

.chapter-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.badge-text-group {
  display: flex;
  flex-direction: column;
}

.badge-chapter {
  font-weight: 600;
  font-size: 0.95rem;
  color: #232d24;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.badge-date {
  color: #555;
  font-size: 0.82rem;
}

/* Countdown Wrapper & Tabs */
.countdown-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.2rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  margin: 0 auto 2.5rem auto;
  max-width: 600px;
}

.countdown-tabs {
  display: inline-flex;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  gap: 4px;
}

.countdown-tab {
  background: transparent;
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.countdown-tab.active {
  background: white;
  color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.countdown-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 55px;
}

.countdown-item span:first-child {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: #232d24;
}

.countdown-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Sections & Layout */
.section {
  padding: 5.5rem 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.alt-bg {
  background-color: var(--bg-alt);
  max-width: 100%;
  padding-left: max(2rem, calc(50vw - 490px));
  padding-right: max(2rem, calc(50vw - 490px));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}

.card {
  background: var(--card-bg);
  padding: 2.4rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* Chapter Cards */
.chapter-card {
  position: relative;
  border-top: 4px solid var(--accent-color);
}

.chapter-number {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-accent);
  opacity: 0.6;
  line-height: 1;
}

.destination-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.destination-header h3 {
  font-size: 1.85rem;
  margin-bottom: 0.25rem;
}

.destination-date {
  font-weight: 600;
  color: #333;
  margin: 0.2rem 0;
}

.destination-place {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.destination-desc {
  color: #444;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.destination-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Ceremony Schedule Cards */
.ceremony-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.6rem 2rem;
}

.ceremony-card h3 {
  font-size: 1.85rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  color: #232d24;
}

.ceremony-time {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0.5rem 0;
}

.ceremony-card .location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.ceremony-action {
  margin-top: 0.5rem;
}

/* Travel lists */
.card ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem 0;
  color: #444;
}

.card ul li {
  margin-bottom: 0.35rem;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.gallery-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.gallery-img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  opacity: 0.96;
}

.gallery-action {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* --- Image Modal (Lightbox) --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.modal-caption {
  color: #eee;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ccc;
}

/* RSVP Deadlines */
.rsvp-deadlines {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.deadline-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
}

.rsvp-subtext, .registry-subtext {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.form-container iframe {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: white;
  width: 100%;
}

.rsvp-footer-notes {
  text-align: center;
  margin-top: 1.25rem;
}

.rsvp-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.85rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: var(--accent-dark);
  color: white;
}

.btn.outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 1.5px solid var(--accent-color);
}

.btn.outline:hover {
  background-color: var(--accent-color);
  color: white;
}

.btn-hero {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
}

.link {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.link.small {
  font-size: 0.85rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 4.5rem 1rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

footer p {
  margin: 0.25rem 0;
}

.furever-tag {
  font-size: 1rem;
  font-style: italic;
  color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  .navbar {
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-links {
    justify-content: center;
    gap: 0.9rem;
    font-size: 0.75rem;
  }
  .lang-switch {
    margin-left: 0;
  }
  .section { padding: 3.5rem 1.5rem; }
  .alt-bg { padding-left: 1.5rem; padding-right: 1.5rem; }
  .card { padding: 1.6rem; }
  .celebration-badges { flex-direction: column; gap: 0.85rem; }
  .chapter-badge { width: 100%; max-width: 320px; }
}
