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

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --warm: #f5f2ed;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --grey: #8a8680;
  --grey-light: #d8d4ce;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ─── NAVBAR ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(250, 250, 248, 0.96);
  box-shadow: 0 1px 0 var(--grey-light);
  backdrop-filter: blur(8px);
}
.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-names {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color 0.4s;
}
#navbar.scrolled .nav-names { color: var(--black); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-light); }
#navbar.scrolled .nav-links a { color: var(--grey); }
#navbar.scrolled .nav-links a:hover { color: var(--gold); }

.lang-toggle {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.15); }
#navbar.scrolled .lang-toggle {
  border-color: var(--grey-light);
  color: var(--black);
}
#navbar.scrolled .lang-toggle:hover { background: var(--warm); }

/* ─── HERO ──────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7vh;
  overflow: hidden;
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  animation: fadeUp 1.2s 0.3s both;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 100px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .hero-names {
    white-space: normal;
    font-size: clamp(34px, 10vw, 48px);
  }
  .amp { display: block; margin: 4px 0; }
  #hero { padding-top: 80px; }
  .hero-subtitle { margin-bottom: 10px; }
  .hero-invite { font-size: 9px; margin-bottom: 14px; }
  .date-number { font-size: 48px; }
}
.amp {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  margin: 0 8px;
}
.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 14px;
}
.hero-invite {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 10px;
}
.date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.date-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.date-number {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}
.hero-time {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  margin: 0 auto;
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ─── COUNTDOWN ─────────────────────────────────────── */
#countdown {
  background: var(--black);
  padding: 60px 24px;
}
.countdown-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.countdown-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 32px;
}
.countdown-boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.cd-box span {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.cd-box small {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 8px;
}
.cd-sep {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 20px;
}

/* ─── SECTION COMMON ────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ─── PROGRAMI / TIMELINE ───────────────────────────── */
#programi {
  padding: 100px 0;
  background: var(--warm);
}
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--grey-light);
  transform: translateX(-50%);
}
.tl-item {
  display: flex;
  align-items: center;
  margin-bottom: 56px;
  position: relative;
}
.tl-item:nth-child(odd) { flex-direction: row; }
.tl-item:nth-child(even) { flex-direction: row-reverse; }

.tl-time {
  width: calc(50% - 32px);
  text-align: right;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--gold);
  padding-right: 24px;
}
.tl-item:nth-child(even) .tl-time {
  text-align: left;
  padding-right: 0;
  padding-left: 24px;
}
.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.tl-content {
  width: calc(50% - 32px);
  padding-left: 24px;
}
.tl-item:nth-child(even) .tl-content {
  padding-left: 0;
  padding-right: 24px;
  text-align: right;
}
.tl-icon {
  font-size: 22px;
  margin-bottom: 8px;
}
.tl-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 4px;
}
.tl-content p {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-transform: uppercase;
}

/* ─── VENUES ────────────────────────────────────────── */
#vendet {
  padding: 100px 0;
  background: var(--white);
}
.venues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.venue-card {
  overflow: hidden;
  background: var(--warm);
}
.venue-img-wrap {
  width: 100%;
  height: 340px;
  overflow: hidden;
}
.venue-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.venue-card:hover .venue-img { transform: scale(1.05); }
.venue-info {
  padding: 32px;
}
.venue-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.venue-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.3;
}
.venue-address {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.venue-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.venue-map-btn:hover { color: var(--gold); border-color: var(--gold); }

/* ─── DETAILS ───────────────────────────────────────── */
#detaje {
  padding: 100px 0;
  background: var(--black);
  color: var(--white);
}
#detaje .section-title { color: var(--white); }
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.detail-card {
  background: #141414;
  padding: 48px 32px;
  text-align: center;
  transition: background 0.3s;
}
.detail-card:hover { background: #1c1c1c; }
.detail-icon {
  font-size: 28px;
  margin-bottom: 20px;
}
.detail-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--gold-light);
}
.detail-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

/* ─── RSVP ──────────────────────────────────────────── */
#rsvp {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
}
.rsvp-bg {
  position: absolute;
  inset: 0;
}
.rsvp-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.35);
}
.rsvp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.rsvp-inner {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.rsvp-pre {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.rsvp-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  margin-bottom: 24px;
}
.rsvp-deadline {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
}
.rsvp-deadline strong { color: var(--gold-light); font-weight: 400; }
.rsvp-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--gold);
  padding: 18px 48px;
  transition: background 0.3s, transform 0.3s;
  margin-bottom: 48px;
}
.rsvp-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.rsvp-thanks {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid #1e1e1e;
  padding: 48px 24px;
  text-align: center;
}
.footer-names {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-date {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.tl-photo-wrap {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 2px;
}
.tl-photo {
  width: 100%;
  max-width: 220px;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.tl-photo:hover { transform: scale(1.04); }
.tl-photos-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.tl-photos-row .tl-photo-wrap { margin-top: 0; flex: 1; }
.tl-photos-row .tl-photo { max-width: 100%; height: 160px; }

@media (max-width: 640px) {
  .tl-photos-row .tl-photo {
    height: 130px;
  }
}

/* ─── OUR STORY ─────────────────────────────────────── */
#historia {
  padding: 100px 0;
  background: var(--black);
  text-align: center;
}
.story-inner {
  max-width: 680px;
}
.story-year {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: -20px;
  letter-spacing: 0.1em;
}
.story-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0;
  letter-spacing: 0.05em;
}
.story-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto 32px;
}
.story-text {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 32px;
}
.story-since {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── FOOTER RSVP BUTTON ────────────────────────────── */
.footer-rsvp-btn {
  display: inline-block;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 36px;
  transition: all 0.3s;
}
.footer-rsvp-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* ─── SCROLL ANIMATIONS ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HAMBURGER ─────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}
#navbar.scrolled .hamburger span { background: var(--black); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ───────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  z-index: 99;
  flex-direction: column;
  padding: 24px 0;
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  padding: 16px 40px;
  border-bottom: 1px solid #1e1e1e;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:hover { color: var(--gold); padding-left: 48px; }


@media (max-width: 900px) {
  .details-grid { grid-template-columns: 1fr 1fr 1fr; }
  .venues-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}
@media (max-width: 640px) {
  .section-inner { padding: 0 24px; }
  #navbar { padding: 0 24px; }
  .details-grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .tl-item, .tl-item:nth-child(even) { flex-direction: row; }
  .tl-time { width: auto; min-width: 70px; text-align: left; padding-right: 0; padding-left: 0; }
  .tl-item:nth-child(even) .tl-time { text-align: left; padding-left: 0; }
  .tl-content, .tl-item:nth-child(even) .tl-content {
    padding-left: 20px;
    padding-right: 0;
    text-align: left;
  }
  .cd-box { min-width: 70px; }
  /* Bigger RSVP touch target on mobile */
  .rsvp-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 48px;
    padding: 22px 48px;
    font-size: 13px;
    text-align: center;
  }
}