/* ==========================================================================
   Uri & Mire · 11.09.26
   Image-based pixel-perfect landing (every section is a Figma asset)
   ========================================================================== */

@font-face {
  font-family: 'Calyx';
  src: url('fonts/Calyx.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-terracota: #A33908;
  --color-terracota-dark: #7d2b05;
  --color-beige: #EBE2D0;
  --color-cream: #EBE2D0;
  --color-text: #A33908;
  --font-serif: 'Calyx', 'Playfair Display', Georgia, serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-w: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-beige);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   LANDING — stack vertical, cada sección es una imagen
   ========================================================================== */

.landing {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--color-beige);
}

.sec {
  position: relative;
  width: 100%;
}

.sec__img {
  width: 100%;
  height: auto;
}

/* Secciones card (transport, bengalas) — margen lateral mínimo (12px).
   Sin gap entre ellos: la foto de bengalas se pega al panel transport (como Figma). */
.sec--transport,
.sec--bengalas {
  padding: 0 12px;
}
.sec--transport {
  padding-top: 20px;
  padding-bottom: 0;  /* sin gap abajo */
}
.sec--bengalas {
  padding-top: 0;     /* sin gap arriba */
  padding-bottom: 40px;
}
/* El panel transport tiene corners redondeados abajo también, pero la foto encima
   debería "pegarse" sin gap. Ambos mantienen sus propios border-radius. */
.sec__img--card {
  margin: 0 auto;
  width: 100%;  /* ocupa todo el ancho disponible (viewport - 24px padding) */
  max-width: 100%;  /* en desktop limitado por el max-width del body.landing */
}

/* ==========================================================================
   Botón COM ARRIBAR-HI (después del venue)
   ========================================================================== */

.sec--venue-cta {
  background: var(--color-beige);
  padding: clamp(40px, 8vw, 72px) 12px clamp(40px, 8vw, 72px);
  text-align: center;
}
.btn-venue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(60px, 12vw, 84px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(14px, 3.8vw, 18px);
  letter-spacing: 0.18em;
  color: var(--color-terracota);
  background: rgba(163, 57, 8, 0.18);  /* tinte rosado terracota translúcido */
  border: 1px solid var(--color-terracota);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-venue:hover {
  background: rgba(163, 57, 8, 0.28);
}

/* ==========================================================================
   DUBTES (DRESSCODE + CONTACTE) — tarjetas blancas translúcidas sobre beige
   ========================================================================== */

.sec--dubtes {
  background: var(--color-beige);
  padding: clamp(24px, 6vw, 48px) 12px clamp(40px, 8vw, 64px);
  text-align: center;
}
.dubtes__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10px, 2.5vw, 12px);
  letter-spacing: 0.35em;
  color: var(--color-terracota);
  margin: 0 0 clamp(24px, 5vw, 40px);
  font-weight: 500;
}
.dubtes__card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 44px) clamp(20px, 4vw, 36px);
  max-width: 100%;
  margin: 0 auto clamp(12px, 2vw, 20px);
  color: var(--color-terracota);
}
/* Título: Calyx serif (solo mayúsculas), grande, subrayado */
.dubtes__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 6vw, 28px);
  letter-spacing: 0.08em;
  margin: 0 0 clamp(18px, 4vw, 28px);
  color: var(--color-terracota);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
/* Body text: Helvetica Neue Regular 16px / LH 120% / tracking 2% (Figma specs) */
.dubtes__text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;  /* 120% */
  letter-spacing: 0.02em;  /* 2% */
  margin: 0;
  color: var(--color-terracota);
}
.dubtes__contacts {
  list-style: none;
  padding: 0;
  margin: clamp(14px, 3vw, 22px) 0 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-terracota);
}
.dubtes__contacts li {
  display: block;
  margin-bottom: 6px;
}
.dubtes__contacts li {
  display: block;
  margin-bottom: 6px;
}
.contact-name {
  display: block;
}
.dubtes__contacts a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.dubtes__contacts a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ==========================================================================
   TIMELINE (HTML — fondo beige + texto terracota, tipo Figma)
   ========================================================================== */

.sec--timeline {
  background: var(--color-beige);
  padding: clamp(48px, 10vw, 80px) clamp(24px, 5vw, 48px) clamp(48px, 10vw, 80px);
  text-align: center;
}
.timeline__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10px, 2.5vw, 12px);
  letter-spacing: 0.35em;
  color: var(--color-terracota);
  margin: 0 0 clamp(28px, 6vw, 48px);
  font-weight: 500;
}
.timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.5vw, 8px);
  max-width: 360px;
  margin-inline: auto;
}
.timeline__item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 16px);
  font-family: var(--font-serif);
  font-size: clamp(44px, 12vw, 64px);
  line-height: 1.1;
  color: var(--color-terracota);
}
.timeline__name {
  font-family: var(--font-serif);
  font-style: normal;
}
.timeline__time {
  font-family: var(--font-sans);
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: 0.1em;
  font-weight: 500;
  transform: translateY(-0.9em);
  white-space: nowrap;
}
.timeline__time--left {
  order: -1;
}

/* ==========================================================================
   CTAs superpuestos (invisibles, cubren el área del botón en la imagen)
   ========================================================================== */

.sec__cta {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}
.sec__cta:focus-visible {
  outline: 2px solid var(--color-beige);
  outline-offset: 2px;
  border-radius: 999px;
}

/* Hero CTA: Figma pos y=570-616 en hero 632 → bottom 2.53%, left/right 2.93% */
.sec__cta--hero {
  left: 2.93%;
  right: 2.93%;
  bottom: 2.53%;
  height: 7.28%;  /* 46/632 */
  border-radius: 999px;
}

/* Venue CTA "COM ARRIBAR-HI" — lo posicionaremos cuando veamos la imagen del venue
   Aprox: y_end-100 a y_end-50 del 800px image */
.sec__cta--venue {
  display: block;
  left: 2.93%;
  right: 2.93%;
  bottom: 4%;
  height: 5.75%;
  border-radius: 999px;
}

/* Footer CTA "CONFIRMAR ASSISTÈNCIA" — ajustar cuando veamos la imagen */
.sec__cta--footer {
  left: 5%;
  right: 5%;
  top: 42%;  /* aprox, ajustaremos */
  height: 8%;
  border-radius: 999px;
}

/* ==========================================================================
   FOOTER — monograma fondo + texto + countdown
   ========================================================================== */

.sec--footer {
  position: relative;
  background: var(--color-beige);
  padding: clamp(60px, 12vw, 120px) clamp(24px, 5vw, 48px) clamp(40px, 8vw, 72px);
  overflow: hidden;
  text-align: center;
}
.footer__monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 620px);
  height: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.footer__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 6vw, 56px);
  max-width: 500px;
  margin: 0 auto;
}
.footer__thanks {
  font-family: var(--font-sans);
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: 0.18em;
  line-height: 1.8;
  color: var(--color-terracota);
  margin: 0;
  font-weight: 500;
}
.footer__love {
  font-family: var(--font-sans);
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: 0.18em;
  color: var(--color-terracota);
  margin: 0;
  font-weight: 500;
}
.footer__mark {
  font-family: var(--font-serif);
  font-size: clamp(40px, 10vw, 64px);
  color: var(--color-terracota);
  margin: 0;
  letter-spacing: 0.05em;
  margin-top: clamp(24px, 5vw, 48px);
  line-height: 1;
}

/* Countdown — cuadro con borde rx=20 */
/* Countdown — estrella olive con texto encima (sin cuadro exterior) */
.countdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(130px, 32vw, 180px);
  height: clamp(130px, 32vw, 180px);
}
.countdown__star {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}
.countdown__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.countdown__label {
  font-family: var(--font-sans);
  font-size: clamp(8px, 1.8vw, 10px);
  letter-spacing: 0.25em;
  line-height: 1.2;
  color: var(--color-beige);
}
.countdown__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1;
  color: var(--color-beige);
  margin: 2px 0;
}

/* ==========================================================================
   MODAL FORM (no cambia — sigue funcionando)
   ========================================================================== */

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(62, 31, 14, 0.55);
  backdrop-filter: blur(2px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 32px auto;
  background: var(--color-beige);
  border-radius: 20px;
  padding: 40px 28px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-terracota);
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  line-height: 1;
  color: var(--color-terracota);
  padding: 4px 8px;
}
.modal__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.05;
  color: var(--color-terracota);
  text-align: center;
  margin: 0 0 10px;
}
.modal__subtitle {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-terracota);
  margin: 0 0 28px;
  line-height: 1.6;
}

.rsvp-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: block; }
.field input[type="text"],
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-terracota);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-terracota);
  opacity: 0.7;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-terracota);
  outline-offset: 1px;
}
.field__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-terracota);
  margin: 4px 0 -6px;
  font-weight: 600;
}
.field--radio {
  border: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.field--radio legend {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--color-terracota);
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.5;
}
.field--radio label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--color-terracota);
  cursor: pointer;
}
.field--radio input[type="radio"] { accent-color: var(--color-terracota); }

.btn-modal-submit {
  width: 100%;
  background: var(--color-terracota);
  color: var(--color-beige);
  border-radius: 999px;
  height: 46px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  margin-top: 8px;
  transition: background 0.2s;
}
.btn-modal-submit:hover { background: var(--color-terracota-dark); }
.btn-modal-submit:disabled { opacity: 0.6; cursor: wait; }

.rsvp-form__status {
  text-align: center;
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 20px;
  color: var(--color-terracota);
}
.rsvp-form__status.is-error { font-weight: 600; }
.rsvp-form__status.is-success { color: #2a7d4a; font-weight: 600; }

/* ==========================================================================
   Desktop — la landing se mantiene centrada con max-width 640px
   ========================================================================== */
@media (min-width: 641px) {
  body {
    background: #EBE2D0;  /* beige, NO blanco */
    padding: 0;  /* sin padding arriba: imagen pegada al top */
  }
  .landing {
    max-width: 960px;
    box-shadow: 0 0 60px rgba(62, 31, 14, 0.12);
    border-radius: 0;  /* sin esquinas redondeadas */
    overflow: hidden;
  }
}
