/* ========== VARIABLES ========== */
:root {
  --terracotta: #C2673A;
  --terracotta-dark: #A8552E;
  --cream: #f3e0d1;
  --cream-dark: #E6C9A8;
  --stripe: #D4A878;
  --dark: #3D2B1F;
  --dark-soft: #5A4436;
  --white: #FFFFFF;
  --nav-height: 56px;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* remove iOS tap flash */
}

html {
  font-size: 16px; /* never scale below 16px — prevents iOS input zoom */
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--dark);
  background-color: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button {
  touch-action: manipulation; /* removes 300ms tap delay on iOS */
  cursor: pointer;
}

/* Prevent iOS default input/select styling */
input,
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
}

/* ========== LANGUAGE VISIBILITY ========== */
body.lang-pt .lang-fr { display: none !important; }
body.lang-fr .lang-pt { display: none !important; }

.hidden { display: none !important; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== LANGUAGE OVERLAY ========== */
.lang-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--cream);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* safe areas for notched phones */
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.lang-overlay.fade-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.lang-overlay-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.lang-stripes-left,
.lang-stripes-right {
  position: fixed;
  top: 0;
  width: 80px;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 14px,
    var(--stripe) 14px,
    var(--stripe) 15px
  );
  opacity: 0.35;
  pointer-events: none;
}
.lang-stripes-left  { left: 0; }
.lang-stripes-right { right: 0; }

.lang-arch-small {
  width: 90px;
  height: 125px;
  background-color: var(--terracotta);
  border-radius: 45px 45px 0 0;
  margin: 0 auto 1.5rem;
  position: relative;
}
.lang-arch-small::after {
  content: '';
  position: absolute;
  top: 13px; left: 13px; right: 13px; bottom: 0;
  border: 1px solid rgba(255,255,255,0.3);
  border-bottom: none;
  border-radius: 32px 32px 0 0;
}

.lang-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.lang-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: var(--dark-soft);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.lang-date {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 300;
  color: var(--dark-soft);
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
}

.lang-divider {
  width: 36px;
  height: 1px;
  background-color: var(--terracotta);
  margin: 0 auto 2rem;
}

.lang-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* minimum 44px tall touch target */
  padding: 0.9rem 3rem;
  min-height: 48px;
  width: 200px;
  border: 1.5px solid var(--terracotta);
  background: transparent;
  color: var(--terracotta);
  border-radius: 50px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.lang-btn:hover,
.lang-btn:active {
  background-color: var(--terracotta);
  color: var(--cream);
}

/* ========== SITE NAVIGATION ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background-color: var(--terracotta);
  display: flex;
  align-items: center;
  /* safe area: push content away from notch edges */
  padding-right: max(0.75rem, env(safe-area-inset-right));
  padding-left: env(safe-area-inset-left, 0);
}

/* Mobile-only logo shown in the nav bar */
.nav-logo {
  display: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--cream);
  flex: 1;
  padding-left: 1rem;
  pointer-events: none;
  user-select: none;
}

/* Desktop: horizontal tab bar */
.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1;
  min-width: 0;
}

.nav-tab {
  flex-shrink: 0;
  height: 100%;
  padding: 0 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.nav-tab:hover:not(.active) { color: var(--cream); }
.nav-tab:active             { color: var(--cream); }
.nav-tab.active {
  color: var(--cream);
  border-bottom-color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* Highlighted tab — Presença / Présence */
.nav-tab.nav-tab-highlight {
  color: var(--cream);
  font-weight: 700;
}

@media (min-width: 769px) {
  .nav-tab.nav-tab-highlight {
    background-color: var(--cream);
    color: var(--terracotta) !important;
    border-radius: 20px;
    border-bottom: none !important;
    margin-left: 0.5rem;
    height: 34px;
    align-self: center;
    padding: 0 1.1rem;
    transition: background-color 0.2s ease;
  }
  .nav-tab.nav-tab-highlight:hover,
  .nav-tab.nav-tab-highlight.active {
    background-color: var(--cream-dark);
    color: var(--terracotta) !important;
    border-bottom-color: transparent !important;
  }
}

@media (max-width: 768px) {
  .nav-tab.nav-tab-highlight {
    color: var(--cream);
    background-color: rgba(255,255,255,0.1);
    border-left-color: var(--cream) !important;
  }
}

/* Language toggle */
.nav-lang-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-lang-toggle:hover,
.nav-lang-toggle:active {
  border-color: var(--cream);
  color: var(--cream);
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  margin-left: 0.25rem;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate to × when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop — dims page behind open mobile menu */
.nav-backdrop {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(61, 43, 31, 0.18);
  z-index: 140;
}
.nav-backdrop.show { display: block; }

/* ── Mobile overrides ──────────────────────────── */
@media (max-width: 768px) {
  .nav-logo    { display: block; }
  .nav-hamburger { display: flex; }

  /* Hide horizontal tabs; they become the dropdown */
  .nav-tabs {
    display: none;
    flex: none;
  }

  /* Dropdown state */
  .nav-tabs.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--terracotta);
    border-bottom: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 32px rgba(61, 43, 31, 0.2);
    z-index: 150;
    animation: menuSlideDown 0.22s ease;
  }

  /* Vertical tab items */
  .nav-tab {
    height: auto;
    min-height: 52px;
    width: 100%;
    padding: 0 1.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-left: 3px solid transparent;
  }
  .nav-tab:last-child { border-bottom: none; }

  /* Active: left accent bar instead of bottom underline */
  .nav-tab.active {
    border-bottom-color: rgba(255,255,255,0.12);
    border-left-color: var(--cream);
    background-color: rgba(255,255,255,0.08);
  }
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== TAB PANELS ========== */
.tab-panel { display: none; }

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.35s ease;
}

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

/* ========== MAIN CONTENT ========== */
.main-content.visible { opacity: 1; }

/* ========== HERO ========== */
.hero {
  /* use svh (small viewport height) — excludes browser chrome on mobile */
  min-height: calc(100svh - var(--nav-height));
  /* fallback for browsers without svh */
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
  padding: 2rem 1rem;
}

.hero-stripes {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(340px, 90vw);
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 21px,
    var(--stripe) 21px, var(--stripe) 22px
  );
  opacity: 0.35;
  z-index: 0;
}

.hero-arch {
  width: min(360px, 84vw);
  min-height: min(480px, 70vh);
  background-color: var(--terracotta);
  border-radius: min(180px, 42vw) min(180px, 42vw) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 4vw, 2rem) 2.5rem;
}

.hero-arch-line {
  position: absolute;
  top: 18px; left: 18px; right: 18px; bottom: 0;
  border: 1px solid rgba(255,255,255,0.22);
  border-bottom: none;
  border-radius: min(162px, calc(42vw - 18px)) min(162px, calc(42vw - 18px)) 0 0;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  color: var(--cream);
}

.hero-pretitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-style: italic;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1.75rem;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 10vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.15;
}

.hero-ampersand {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 300;
  opacity: 0.55;
}

.hero-date-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.hero-date-line {
  width: 32px;
  height: 1px;
  background-color: rgba(255,255,255,0.38);
}

.hero-date {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.32em;
}

/* ========== SECTION BASE ========== */
.section { padding: 2.5rem 0; }

/* ========== PHOTO SECTIONS ========== */
.section-photo-couple {
  background-color: var(--cream);
  padding: 2rem 0 0.5rem;
  display: flex;
  justify-content: center;
}

.photo-arch-frame {
  width: min(240px, 62vw);
  height: min(310px, 78vw);
  border-radius: min(120px, 31vw) min(120px, 31vw) 0 0;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(61, 43, 31, 0.12);
}
.photo-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.section-photo-sunset { }

.photo-banner {
  width: 100%;
}
.photo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-programa {
  width: 100%;
  margin-bottom: 0;
}
.photo-programa img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== AMOUR SECTION ========== */
.section-amour {
  background-color: var(--cream);
  text-align: center;
}

.amour-content {
  max-width: 540px;
  margin: 0 auto;
}

.amour-highlight {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 6vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}

.amour-content > p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.amour-family {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem !important;
  font-style: italic;
  color: var(--terracotta);
  margin-top: 1.2rem !important;
}

/* ========== HISTÓRIA SECTION ========== */
.section-historia { background-color: var(--cream-dark); }

.historia-content p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  /* left-align on mobile for readability; justify only on wider screens */
}

.historia-break {
  text-align: center !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.5em;
  color: var(--terracotta);
  margin: 2rem 0 !important;
}

.historia-ending {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem !important;
  font-style: italic;
  text-align: center !important;
  color: var(--terracotta);
  margin-top: 1.8rem !important;
}

/* ========== PROGRAMA SECTION ========== */
.section-programa {
  background-color: var(--cream);
  color: var(--dark);
  padding-top: 0;
}
.section-programa .section-title { color: var(--terracotta); }

.espaco-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}
.espaco-intro p {
  font-size: 1rem;
  opacity: 0.92;
}

.programa-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 2.5rem;
}
.programa-subtitle::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background-color: rgba(194, 103, 58, 0.35);
  margin: 0.8rem auto 0;
}

/* ========== TIMELINE ========== */
.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;   /* centre of the 10px dot */
  top: 0; bottom: 0;
  width: 1px;
  background-color: rgba(194, 103, 58, 0.3);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative; /* needed for absolutely-positioned dot */
  padding-left: 30px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-time { display: none; } /* hidden — shown via data-time on mobile */

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--terracotta);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content { flex: 1; }

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--dark);
  line-height: 1.3;
}

/* show time label above heading on mobile via data attribute */
.timeline-content h4::before {
  content: attr(data-time);
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.65;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.timeline-content p {
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: 0.7rem;
}
.timeline-content p:last-child { margin-bottom: 0; }

/* wider screens: restore the side-by-side time column */
@media (min-width: 600px) {
  .timeline::before { left: 80px; }

  .timeline-item { padding-left: 0; }

  .timeline-time {
    display: block;
    width: 70px;
    flex-shrink: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: right;
    padding-right: 20px;
    padding-top: 2px;
    opacity: 0.85;
  }

  .timeline-dot {
    position: relative;
    left: auto;
    top: auto;
    margin-top: 8px;
  }

  .timeline-content {
    padding-left: 20px;
  }

  .timeline-content h4::before { display: none; }
}

/* ========== DRESS CODE ========== */
.section-dresscode {
  background-color: var(--cream);
  text-align: center;
}

.dresscode-content {
  max-width: 540px;
  margin: 0 auto;
}

.dresscode-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 1.3rem;
}
.dresscode-content > p:not(.dresscode-label) { font-size: 1rem; }

/* ========== ALOJAMENTO ========== */
.section-alojamento {
  background-color: var(--cream-dark);
  text-align: center;
}

.alojamento-content {
  max-width: 560px;
  margin: 0 auto;
}
.alojamento-content > p {
  font-size: 1rem;
  margin-bottom: 1.3rem;
}

.alojamento-card {
  background-color: var(--cream);
  border: 1.5px solid var(--stripe);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin: 1.75rem auto;
  max-width: 400px;
}

.alojamento-code-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dark-soft);
  margin-bottom: 0.3rem;
}

.alojamento-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.1em;
  margin-bottom: 1.4rem;
}

.alojamento-card ul { list-style: none; text-align: left; }

.alojamento-card li {
  font-size: 0.95rem;
  padding: 0.45rem 0 0.45rem 1.1rem;
  position: relative;
  line-height: 1.5;
}
.alojamento-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--terracotta);
}

.alojamento-note {
  font-style: italic;
  color: var(--dark-soft);
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* ========== RSVP ========== */
.section-rsvp { background-color: var(--cream); }

.rsvp-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.rsvp-intro p { font-size: 1rem; margin-bottom: 1rem; }

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.4rem; }

.form-group label:not(.radio-label) {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-soft);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  /* 16px minimum — critical: prevents iOS Safari from zooming on focus */
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--dark);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--stripe);
  border-radius: 10px;
  background-color: var(--white);
  transition: border-color 0.25s ease;
  outline: none;
  /* ensure min touch height */
  min-height: 48px;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.form-row {
  display: flex;
  gap: 1rem;
}
.form-row .form-group { flex: 1; }

/* stack side-by-side fields on small screens */
@media (max-width: 520px) {
  .form-row { flex-direction: column; gap: 0; }
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  /* large touch target */
  min-height: 48px;
  padding: 0.4rem 0;
}
.radio-label input[type="radio"] { display: none; }

.radio-custom {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--stripe);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.25s ease;
}
.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--terracotta);
}
.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background-color: var(--terracotta);
}

.rsvp-details { display: none; }
.rsvp-details.show {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

/* People counters — two side by side */
.people-counters-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.people-counters-row .people-counter-group {
  flex: 1;
  min-width: 120px;
  margin-bottom: 0;
}
.people-counters-row .form-group label:not(.radio-label) {
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.counter-note {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 300;
  opacity: 0.7;
}

/* People counter */
.people-counter-group {
  margin-bottom: 1.8rem;
  text-align: center;
}

.people-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.6rem;
}

.counter-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--stripe);
  background: transparent;
  color: var(--dark-soft);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.counter-btn:hover:not(:disabled) {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.counter-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--terracotta);
  min-width: 2rem;
  text-align: center;
}

/* Person cards */
.person-card {
  background: var(--white);
  border: 1.5px solid var(--stripe);
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1rem;
  animation: cardAppear 0.25s ease;
}

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

.person-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

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

/* RSVP result messages */
.rsvp-success-msg {
  text-align: center;
  padding: 2.5rem 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.rsvp-success-msg p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1.6;
}

.rsvp-error-msg {
  text-align: center;
  max-width: 500px;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  background: rgba(194, 103, 58, 0.08);
  border: 1px solid rgba(194, 103, 58, 0.3);
  border-radius: 10px;
}
.rsvp-error-msg p {
  font-size: 0.9rem;
  color: var(--terracotta-dark);
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  min-height: 52px;
  border: none;
  border-radius: 50px;
  background-color: var(--terracotta);
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
  margin-top: 0.5rem;
}
.btn-submit:hover,
.btn-submit:active { background-color: var(--terracotta-dark); }

.rsvp-thanks {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--terracotta);
  margin-top: 2rem;
}

/* ========== PRENDAS ========== */
.section-prendas {
  background-color: var(--cream);
}

.prendas-content {
  max-width: 600px;
  margin: 0 auto;
}

.prendas-highlight {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 1.4rem;
  text-align: center;
}

.prendas-content > div > p {
  font-size: 1rem;
  margin-bottom: 1.3rem;
}

.prendas-list {
  list-style: none;
  margin: 0.5rem 0 1.75rem;
  background-color: var(--cream-dark);
  border-radius: 14px;
  padding: 0.5rem 1.25rem;
}
.prendas-list li {
  font-size: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--stripe);
  line-height: 1.55;
}
.prendas-list li:last-child { border-bottom: none; }

.iban-card {
  background-color: var(--cream-dark);
  border: 1.5px solid var(--stripe);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin: 1.4rem 0;
  text-align: center;
}

.iban-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dark-soft);
  margin-bottom: 0.4rem;
}

.iban-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  word-break: break-all;
}

.prendas-closing {
  font-style: italic;
  color: var(--dark-soft);
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ========== LANDSCAPE PHONE ========== */
/* When viewport height is short (phone in landscape), shrink the hero arch */
@media (max-height: 550px) {
  .hero-arch {
    min-height: 280px;
    padding: 2rem 1.5rem;
  }
  .hero-pretitle { margin-bottom: 0.8rem; }
  .hero-names    { margin-bottom: 0.8rem; }
}

/* ========== DESKTOP REFINEMENTS ========== */
@media (min-width: 769px) {
  .section { padding: 3rem 0; }

  .lang-buttons {
    flex-direction: row;
    gap: 1.5rem;
  }
  .lang-btn { width: auto; }

  .historia-content p { text-align: justify; }

  .photo-arch-frame {
    width: 260px;
    height: 340px;
    border-radius: 130px 130px 0 0;
  }

  .photo-banner    { max-height: none; }

  .section-photo-couple { padding: 2rem 0 1rem; }
}

/* ========== PRINT ========== */
@media print {
  .lang-overlay, .site-nav { display: none !important; }
  .main-content { opacity: 1 !important; }
  .tab-panel { display: block !important; }
  .section-programa {
    background-color: var(--cream) !important;
    color: var(--dark) !important;
  }
}
