/* ============================================
   VARIABLES & DESIGN SYSTEM
   ============================================ */
:root {
  --white: #FAF8F5;
  --sage: #A8B5A2;
  --beige: #D8CBB8;
  --gold: #C8A96A;
  --warm-gray: #5F5F5F;
  --dark: #2C2C2C;
  --darker: #1A1A1A;
  --cream: #F5F0EA;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 2px 20px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --white: #1A1A1A;
  --beige: #2C2C2C;
  --cream: #222222;
  --warm-gray: #B0B0B0;
  --dark: #FAF8F5;
  --darker: #FAF8F5;
  --shadow-sm: 0 2px 20px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--warm-gray);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

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

a:hover, a:focus {
  color: var(--sage);
}

ul { list-style: none; }

::selection {
  background: var(--gold);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--dark);
  font-weight: 500;
  line-height: 1.2;
  transition: color var(--transition);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  background: var(--white);
  transition: background-color var(--transition);
}

.section--alt {
  background: var(--cream);
  transition: background-color var(--transition);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__subtitle {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 12px;
  font-weight: 500;
}

.section__title {
  margin-bottom: 16px;
}

.section__text {
  max-width: 600px;
  margin: 0 auto;
  color: var(--warm-gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  outline: none;
}

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

.btn--primary:hover, .btn--primary:focus {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 169, 106, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--secondary:hover, .btn--secondary:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

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

.btn--outline:hover, .btn--outline:focus {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar--scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar--scrolled {
  background: rgba(26, 26, 26, 0.95);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 3px;
  font-weight: 500;
  transition: color var(--transition);
}

.navbar--scrolled .navbar__logo {
  color: var(--dark);
}

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

.navbar__link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 400;
  transition: color var(--transition);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.navbar__link:hover::after,
.navbar__link:focus::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar--scrolled .navbar__link {
  color: var(--warm-gray);
}

.navbar__link:hover {
  color: var(--gold);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__toggle-bar {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.navbar--scrolled .navbar__toggle-bar {
  background: var(--dark);
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.navbar__lang-switch, .navbar__theme-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: color var(--transition);
  padding: 2px 4px;
}

.navbar--scrolled .lang-btn {
  color: var(--warm-gray);
}

.lang-btn.active {
  color: var(--gold);
}

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

.lang-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
}

.navbar--scrolled .lang-divider {
  color: rgba(95,95,95,0.3);
}

.theme-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color var(--transition);
  padding: 4px;
}

.navbar--scrolled .theme-btn {
  color: var(--warm-gray);
}

.theme-btn:hover {
  color: var(--gold);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__parallax-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 100%),
    url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=85') center/cover no-repeat;
  transform: translateZ(0);
  will-change: transform;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.05) 60%,
    rgba(0,0,0,0.3) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero__label {
  font-family: var(--font-serif);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 20px;
  opacity: 0.9;
  font-weight: 300;
}

.hero__names {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.hero__ampersand {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
  display: inline-block;
  margin: 0 8px;
}

.hero__details {
  margin-bottom: 32px;
}

.hero__date {
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero__location {
  font-size: 0.95rem;
  letter-spacing: 3px;
  opacity: 0.7;
  font-weight: 300;
}

.hero__countdown {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: 2px;
}

.countdown__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.6;
  margin-top: 8px;
  font-weight: 400;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.5); opacity: 1; }
}

/* ============================================
   TIMELINE (Nuestra Historia)
   ============================================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

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

.timeline__item {
  display: flex;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
  align-items: center;
}

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

.timeline__image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.timeline__image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.timeline__item:hover .timeline__image img {
  transform: scale(1.03);
}

.timeline__content {
  flex: 1;
  padding: 20px 0;
}

.timeline__date {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline__title {
  margin: 8px 0 12px;
}

.timeline__text {
  line-height: 1.8;
  font-size: 0.95rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 1;
}

[data-theme="dark"] .timeline__item::before {
  border-color: var(--darker);
}

/* ============================================
   CARDS (Información)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.card__title {
  margin-bottom: 16px;
}

.card__body p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.card__body .btn {
  margin-top: 16px;
}

.color-swatches {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.05);
  cursor: help;
  transition: transform var(--transition);
}

.color-swatch:hover {
  transform: scale(1.2);
}

/* ============================================
   SCHEDULE (Agenda)
   ============================================ */
.schedule {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.schedule::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage), transparent);
}

.schedule__item {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  position: relative;
}

.schedule__item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold);
}

[data-theme="dark"] .schedule__item::before {
  border-color: var(--darker);
}

.schedule__time {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 500;
  min-width: 80px;
  padding-top: 4px;
}

.schedule__content h4 {
  margin-bottom: 4px;
}

.schedule__content p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.calendar-btn-wrapper {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   RSVP FORM
   ============================================ */
.rsvp-container {
  max-width: 680px;
  margin: 0 auto;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--warm-gray);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--dark);
  transition: all var(--transition);
  outline: none;
}

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

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-error {
  font-size: 0.75rem;
  color: #e74c3c;
  display: none;
}

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

.radio-group {
  display: flex;
  gap: 24px;
  padding: 8px 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--beige);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--white);
}

/* Thank you message */
.rsvp-thankyou {
  display: none;
  text-align: center;
  padding: 60px 32px;
}

.rsvp-thankyou.visible {
  display: block;
  animation: fadeInUp 0.8s ease;
}

.rsvp-thankyou__icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.rsvp-thankyou h3 {
  margin-bottom: 16px;
}

.rsvp-thankyou p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 16px;
}

.rsvp-thankyou__names {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  font-style: italic;
}

/* ============================================
   MAP
   ============================================ */
.map-wrapper {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.direction-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.direction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.direction-card i {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.direction-card h4 {
  margin-bottom: 8px;
}

.direction-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   HOTELS
   ============================================ */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.hotel-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.hotel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.hotel-card__image {
  height: 200px;
  overflow: hidden;
}

.hotel-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hotel-card:hover .hotel-card__image img {
  transform: scale(1.05);
}

.hotel-card__body {
  padding: 24px;
}

.hotel-card__name {
  margin-bottom: 12px;
}

.hotel-card__distance,
.hotel-card__price,
.hotel-card__phone {
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hotel-card__distance i,
.hotel-card__price i,
.hotel-card__phone i {
  color: var(--gold);
  width: 16px;
}

.hotel-card__body .btn {
  margin-top: 16px;
}

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

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--dark);
  text-align: left;
  transition: color var(--transition);
  gap: 16px;
}

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

.faq-icon {
  font-size: 0.8rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.85;
}

/* ============================================
   GIFTS
   ============================================ */
.gifts-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.gifts-text {
  margin-bottom: 48px;
}

.gifts-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

.gifts-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.gift-card {
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gift-card i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.gift-card h4 {
  margin-bottom: 12px;
}

.gift-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.gift-card__number {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 1px;
  word-break: break-all;
}

.gift-card .btn {
  margin-top: 8px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 280px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

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

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

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

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

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.lightbox__image {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 2.5rem;
  transition: opacity var(--transition);
  opacity: 0.7;
  z-index: 2001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 24px;
  right: 32px;
  font-size: 3rem;
}

.lightbox__prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================
   SHARE / UPLOAD
   ============================================ */
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.share-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.share-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.share-card i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.share-card h4 {
  margin-bottom: 12px;
}

.share-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.file-upload-wrapper {
  position: relative;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.upload-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.qr-placeholder canvas,
.qr-placeholder img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
  text-align: center;
  transition: background-color var(--transition);
}

[data-theme="dark"] .footer {
  background: var(--darker);
}

.footer__names {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.footer__ampersand {
  color: var(--gold);
  font-style: italic;
  margin: 0 4px;
}

.footer__date {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 24px;
}

.footer__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.8;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer__social a {
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  transition: all var(--transition);
}

.footer__social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer__contact {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer__contact a {
  color: var(--gold);
}

.footer__copy {
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 1px;
}

/* ============================================
   SCROLL TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(200,169,106,0.3);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-4px);
  background: var(--sage);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .timeline__item,
  .timeline__item:nth-child(even) {
    flex-direction: column;
    gap: 24px;
  }

  .timeline::before {
    left: 0;
  }

  .timeline__item::before {
    left: -6px;
    top: 50%;
  }

  .timeline__image img {
    height: 280px;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: right var(--transition);
    padding: 40px;
    box-shadow: var(--shadow-lg);
  }

  [data-theme="dark"] .navbar__menu {
    background: rgba(26, 26, 26, 0.98);
  }

  .navbar__menu.active {
    right: 0;
  }

  .navbar__link {
    color: var(--dark);
    font-size: 0.9rem;
  }

  [data-theme="dark"] .navbar__link {
    color: var(--white);
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__lang-switch {
    order: 0;
  }

  .navbar__theme-switch {
    order: 0;
  }

  .lang-btn {
    color: var(--warm-gray);
  }

  [data-theme="dark"] .lang-btn {
    color: rgba(255,255,255,0.6);
  }

  .lang-divider {
    color: rgba(95,95,95,0.3);
  }

  [data-theme="dark"] .lang-divider {
    color: rgba(255,255,255,0.3);
  }

  .theme-btn {
    color: var(--warm-gray);
  }

  [data-theme="dark"] .theme-btn {
    color: rgba(255,255,255,0.6);
  }

  .hero__countdown {
    gap: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cards-grid,
  .hotels-grid {
    grid-template-columns: 1fr;
  }

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

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

  .share-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gifts-options {
    grid-template-columns: 1fr;
  }

  .directions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .schedule__time {
    min-width: 60px;
    font-size: 1.2rem;
  }

  .footer {
    padding: 60px 0 32px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero__countdown {
    gap: 16px;
  }

  .countdown__number {
    font-size: 2rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .directions-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .navbar,
  .hero__scroll-indicator,
  .scroll-top,
  .footer__social {
    display: none;
  }
}
