/* ============================================================
   WEDDING SITE — style.css
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --cream:       #FAF6F0;
  --warm-white:  #FDF9F4;
  --gold:        #BF9673;
  --gold-light:  #D9C196;
  --gold-dark:   #8B6914;
  --charcoal:    #2C2825;
  --brown:       #5C4A32;
  --brown-light: #8B7355;
  --rose:        #D5A4A2;
  --sage:        #99A68D;
  --light-blue:  #C9D7D9;
  --nav-h:       70px;
  --ff-display:  'Playfair Display', 'Prompt', serif;
  --ff-body:     'Sarabun', 'Prompt', sans-serif;
  --ff-sans:     'Sarabun', 'Prompt', sans-serif;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--ff-body);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 0;
  width: 100%;
}

img { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

a { 
  text-decoration: none; 
  color: inherit; 
}

ul { 
  list-style: none; 
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-brand {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-right: 10px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: flex-end;
}

.nav-links a {
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

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

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* Mobile Menu */
.nav-mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 99;
  transform: translateY(-130%);
  transition: transform var(--transition);
  border-bottom: 1px solid var(--gold-light);
}

.nav-mobile-menu.open { 
  transform: translateY(0); 
}

.nav-mobile-menu a {
  font-family: var(--ff-sans);
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 18px 40px;
  border-bottom: 1px solid rgba(201,169,110,0.15);
  color: var(--charcoal);
  transition: background 0.2s, color 0.2s;
}

.nav-mobile-menu a:hover {
  background: rgba(201,169,110,0.08);
  color: var(--gold);
}

/* ---------- Language Toggle ---------- */
body.lang-en .lang-th { display: none !important; }
body.lang-th .lang-en { display: none !important; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  font-family: var(--ff-sans);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--charcoal);
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
  padding: 4px;
}

.lang-btn:hover { opacity: 0.8; }

.lang-btn.active,
body.lang-th .lang-btn[data-lang="th"],
body.lang-en .lang-btn[data-lang="en"] {
  opacity: 1;
  color: var(--gold);
  font-weight: bold;
}

.lang-divider {
  color: var(--charcoal);
  opacity: 0.3;
  font-size: 0.8rem;
}

/* ---------- Music Player ---------- */
.music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-light);
  border-radius: 50px;
  padding: 8px 16px 8px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  max-width: calc(100vw - 35px); 
}

.music-btn {
  width: 36px; 
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.music-btn:hover { 
  background: var(--gold); 
  color: white; 
}

.music-volume input[type=range] {
  width: 80px;
  accent-color: var(--gold);
  cursor: pointer;
  transition: width 0.3s ease;
}

.music-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 5px;
  min-width: 0; 
}

.song-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
}

.artist-name {
  font-size: 0.75rem;
  font-weight: 400;
  color: #666; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ---------- Section Base ---------- */
.section {
  min-height: 100vh;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.section-label {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--brown-light);
  margin-bottom: 60px;
}

/* ---------- HERO ---------- */
.hero {
  padding: var(--nav-h) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center); 
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 40, 37, 0.2) 0%,
    rgba(44, 40, 37, 0.5) 50%,
    rgba(44, 40, 37, 0.7) 100%
  );
}

.hero-bg:not(:has(img[src])) {
  background: linear-gradient(135deg, #2C2825 0%, #5C4A32 50%, #8B6914 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-date {
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--warm-white);
  margin-bottom: 24px;
  opacity: 0;
  transition: opacity 0.6s ease; 
}

.hero-names {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25); 
}

.name-bride,
.name-groom {
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-amp {
  display: block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.8em;
  margin: 4px 0;
}

.hero-tagline {
  font-family: var(--ff-body);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  opacity: 0;
}

.hero-scroll-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
  opacity: 0;
  cursor: pointer;
}

.hero-scroll-btn svg { width: 20px; animation: bounce 2s infinite; }
.hero-scroll-btn:hover { color: white; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- STORY ---------- */
.story-section {
  background: var(--warm-white);
  padding-top: 120px;
}

.story-timeline {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.story-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-chapter.reverse { direction: rtl; }
.story-chapter.reverse > * { direction: ltr; }

.chapter-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
}

.chapter-img-wrap.no-img {
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-img-wrap.no-img::after {
  content: '📷';
  font-size: 3rem;
  opacity: 0.3;
}

.chapter-img { 
  width: 100% ;
  height: 100% ;
  object-fit: cover;
  display: block; 
  transition: transform 0.8s var(--transition); 
}

.chapter-img-wrap:hover .chapter-img { transform: scale(1.05); }

.chapter-number {
  position: absolute;
  top: 20px; left: 20px;
  width: 40px; height: 40px;
  background: var(--gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  border-radius: 50%;
  z-index: 2;
}

.chapter-text { padding: 20px; }

.chapter-title {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.chapter-date {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.chapter-desc {
  font-size: 1.1rem;
  color: var(--brown);
  line-height: 1.8;
  text-align: justify;

  /* ปรับการตัดคำภาษาไทยให้สวยงาม */
  word-break: normal; 
  overflow-wrap: break-word; 
  line-break: loose;
  
  /* ช่วยเรื่องการกระจายตัวอักษรให้ชิดขอบทั้งสองข้าง (Justify) */
  text-justify: inter-character; 
}

/* ---------- GALLERY ---------- */
.gallery-section {
  background: var(--cream);
  min-height: auto;
  padding: 120px 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 280px;
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  will-change: transform;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gold-light);
  cursor: pointer;
  transform: translateZ(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center); 
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 90vw;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  font-size: 2rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2010;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2010;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

.lightbox-caption {
  color: white;
  margin-top: 20px;
  font-family: var(--ff-sans);
  font-size: 1rem;
  text-align: center;
  opacity: 0.8;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--ff-sans);
  font-size: 0.9rem;
}

/* ---------- EVENT ---------- */
.event-section {
  background: var(--charcoal);
  color: var(--cream);
  min-height: auto;
  padding: 120px 60px;
}

.event-section .section-label { color: var(--gold-light); }
.event-section .section-title { color: var(--cream); }

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  padding: 40px;
  border-right: 1px solid rgba(201,169,110,0.15);
  text-align: center;
}

.event-card:last-child { border-right: none; }

.event-icon {
  font-family: 'Material Icons';
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-block;
  vertical-align: middle;
}

.event-card h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--gold-light);
}

.event-card p {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: rgba(250, 246, 240, 0.9);
  line-height: 1.7;
}

.map-wrap {
  max-width: 1000px;
  margin: 80px auto 0;
  text-align: center;
}

.map-title {
  text-align: center;
  font-family: var(--ff-display);
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--gold-light);
}

.map-iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: block;
}

.map-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(232, 213, 176, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.map-link:hover { color: white; border-color: white; }

/* ---------- FORMS (RSVP & Wishes from Code 1) ---------- */
.rsvp-section {
  background: var(--cream);
  min-height: auto;
  padding: 120px 60px;
}

.wishes-section {
  background: var(--cream);
  min-height: auto;
  padding: 120px 60px;
}

.rsvp-form, .wishes-form {
  max-width: 580px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--gold-light);
  border-radius: 3px;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex !important;
  align-items: center;
  cursor: pointer;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--charcoal) !important;
  padding: 12px 20px;
  border: 1px solid var(--gold-light);
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}

.radio-label:hover { background: rgba(201,169,110,0.08); }
.radio-label input[type=radio] { accent-color: var(--gold); }

.radio-label input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

.radio-icon {
  font-family: 'Material Icons'; 
  font-size: 1.8rem; 
  line-height: 1;
  vertical-align: middle; 
  margin-right: 6px; 
  display: inline-block;
  color: var(--gold);
  transition: color 0.3s ease; 
}

input[type="radio"]:checked + span .radio-icon.attending-icon { color: #4CAF50; }
input[type="radio"]:checked + span .radio-icon.not-attending-icon { color: #F44336; }

.btn-submit {
  width: 100%;
  padding: 18px 40px;
  background: var(--charcoal);
  color: var(--gold-light);
  border: 1px solid var(--charcoal);
  border-radius: 3px;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  /* letter-spacing: 0.2em; */
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  margin-top: 10px;
}

.btn-submit:hover {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 3px;
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(139, 158, 139, 0.15);
  border: 1px solid var(--sage);
  color: #4a6b4a;
}

.form-message.error {
  display: block;
  background: rgba(212, 165, 165, 0.15);
  border: 1px solid var(--rose);
  color: #8b4444;
}

/* Wishes wall */
.wishes-wall {
  max-width: 580px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wish-card {
  background: white;
  border: 1px solid var(--gold-light);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  padding: 24px 28px;
}

.wish-card-name {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.wish-card-text {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--brown);
  line-height: 1.7;
  text-align: justify;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: loose;
  text-justify: inter-character;
}

/* ---------- Color Theme & Extra Features (2026-06-03) ---------- */
.color-swatch-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px; 
  margin: 12px 0;
  flex-wrap: wrap; 
}

.color-group {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  gap: 6px;               
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.color-hex-code {
  font-size: 1rem;
  color: rgba(250, 246, 240, 0.8);
  font-family: var(--ff-body);
  text-align: center;
}

.color-theme-card {
  grid-column: span 3;
  border-right: none !important;
  border-top: 1px solid rgba(201,169,110,0.15);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cards-section { text-align: center; }

.cards-section img {
  max-width: 100%;       
  height: auto;          
  display: block;        
  margin: 0 auto 20px;   
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;   
}

.cards-section img:hover { transform: translateY(-5px); }

@media (min-width: 768px) {
  .cards-section img { max-width: 600px; }
}

/* Countdown Timer */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
  width: 100%;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.2); 
  backdrop-filter: blur(5px);
  padding: 10px 15px;
  border-radius: 10px;
  min-width: 70px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-number {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.countdown-label {
  font-size: 0.8rem;
  margin-top: 5px;
  color: #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-separator {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
}

/* Calendar Button */
.calendar-btn {
  background-color: #ffffff; 
  border: 2px solid #d1d5db; 
  color: #374151; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 99px; 
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.calendar-btn:hover {
  background-color: #f3f4f6; 
  border-color: #9ca3af; 
  color: #111827; 
  transform: translateY(-2px); 
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.calendar-btn:active {
  transform: translateY(0); 
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 60px 40px 40px;
}

.footer-names {
  font-family: var(--ff-display);
  font-size: 2.0rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer-date {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-note {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.3);
}

/* ---------- Reveal Animations ---------- */
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); opacity: 0; }
.reveal-right { transform: translateX(40px); opacity: 0; }

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px; 
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s, transform 0.3s;
  z-index: 300;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--charcoal); transform: translateY(-3px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .lang-switcher { margin-left: 0; margin-right: 20px; }

  .section { padding: 100px 30px 60px; }
  .hero { padding: var(--nav-h) 0 0; }

  .story-chapter { 
    display: flex;
    flex-direction: column;
    gap: 30px; 
  }
  .story-chapter.reverse { flex-direction: column; direction: ltr; }
  .chapter-img-wrap { width: 100%; aspect-ratio: 2/3; flex-shrink: 0; }
  .chapter-text {
    width: 100%;
    padding: 0 15px; 
    text-align: center; 
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .event-cards { grid-template-columns: 1fr; gap: 0; }
  .event-card { border-right: none; border-bottom: 1px solid rgba(201,169,110,0.15); }
  .event-card:last-child { border-bottom: none; }

  .navbar { padding: 0 24px; }
  .music-volume { display: none; }
}

@media (max-width: 768px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.2rem; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; }

  .music-player {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom)); 
    padding: 6px 12px 6px 6px;
    gap: 6px;
  }
  .music-btn { width: 32px; height: 32px; font-size: 0.9rem; }
  .music-volume input[type=range] { width: 50px; }
  .song-title { font-size: 0.8rem; }
  .artist-name { font-size: 0.65rem; }

  .back-to-top {
    bottom: calc(90px + env(safe-area-inset-bottom)); 
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  .hero-names { font-size: 3rem; }
  .section-title { font-size: 2rem; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .rsvp-section,
  .wishes-section,
  .gallery-section,
  .event-section,
  .story-section { padding: 80px 24px 60px; }
  
  .story-timeline { gap: 30px; }
}

@media (max-width: 480px) {
  .countdown-container { gap: 5px; }
  .countdown-item { min-width: 55px; padding: 8px 10px; }
  .countdown-number { font-size: 1.5rem; }
  .countdown-label { font-size: 0.65rem; }
  .countdown-separator { font-size: 1.5rem; }

  .calendar-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .music-player { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .back-to-top {
    bottom: calc(80px + env(safe-area-inset-bottom)); 
    width: 38px;
    height: 38px;
  }
}

@media (min-width: 1185px) {
  .hero-names { flex-direction: column; gap: 0.5rem; }
  .name-bride, .name-groom { font-size: clamp(3rem, 6vw, 5.92rem); }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }