/* ============================================================
   bodaLilianaLuis.pt — Main Stylesheet
   Theme: Whimsical Wedding — Blue & Purple
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --purple:       #0ea5e9;   /* primary   → blue  */
  --purple-light: #38bdf8;   /* primary light     */
  --purple-pale:  #f0f9ff;   /* primary pale      */
  --blue:         #7c3aed;   /* secondary → purple */
  --blue-light:   #a855f7;   /* secondary light   */
  --pink:         #ec4899;
  --white:        #ffffff;
  --off-white:    #fafafa;
  --light-gray:   #f1f5f9;
  --mid-gray:     #94a3b8;
  --dark:         #0c1a2e;
  --text:         #374151;
  --text-light:   #6b7280;

  --font-script:  'Dancing Script', cursive;
  --font-serif:   'Playfair Display', serif;
  --font-sans:    'Lato', sans-serif;

  --radius:       12px;
  --radius-lg:    24px;
  --shadow:       0 4px 24px rgba(14,165,233,0.12);
  --shadow-md:    0 8px 40px rgba(14,165,233,0.20);
  --transition:   all 0.3s ease;

  --header-h:     70px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3 { line-height: 1.2; }
h2 { font-family: var(--font-serif); }
h3 { font-family: var(--font-sans); font-weight: 700; }

/* ── Layout ── */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}
.section-light  { background: var(--light-gray); }
.section-purple { background: linear-gradient(135deg, var(--purple) 0%, #0284c7 100%); }
.section-white  { background: var(--white); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--purple);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-title--light { color: #fff; }
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.section-subtitle--light { color: rgba(255,255,255,0.8); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(14,165,233,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.45);
}
.btn-outline {
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
}
.btn-outline:hover {
  background: var(--purple);
  color: #fff;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,165,233,0.1);
  transition: var(--transition);
}
#site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  height: 100%;
  width: min(1200px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--purple);
  font-weight: 700;
  flex-shrink: 0;
}
.nav-logo .heart { color: var(--pink); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  margin: 0 auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.lang-switcher {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
  border: 1.5px solid var(--light-gray);
  transition: var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--purple);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-logo { margin-right: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(14,165,233,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(14,165,233,0.08) 0%, transparent 55%),
    var(--white);
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

/* Floating hearts background */
#hero::before {
  content: '♥  ♥  ♥  ♥  ♥  ♥  ♥  ♥  ♥  ♥';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--purple);
  opacity: 0.06;
  letter-spacing: 2.5rem;
  white-space: nowrap;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 3rem 1rem 1rem;
  z-index: 1;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--purple);
  line-height: 1;
}
.hero-names .amp {
  color: var(--blue);
  font-size: 0.8em;
  margin: 0 0.2em;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-serif);
}
.date-number {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
}
.date-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.date-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--text);
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.countdown-item span {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--purple);
  line-height: 1;
  background: var(--purple-pale);
  padding: 8px 12px;
  border-radius: var(--radius);
  min-width: 64px;
  text-align: center;
}
.countdown-item label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-top: 4px;
}
.countdown-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  padding-top: 8px;
  line-height: 1;
}

/* Hero car */
.hero-car {
  width: 100%;
  max-width: 860px;
  margin-top: 1rem;
}
.car-svg {
  width: 100%;
  height: auto;
  opacity: 0.85;
}
.car-img {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--purple);
  animation: bounce 2s infinite;
  opacity: 0.5;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   OUR STORY
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}
.story-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-pale);
}
.story-card--highlight {
  background: linear-gradient(135deg, #fdf4ff, #f0f9ff);
  border-color: rgba(14,165,233,0.15);
}
.story-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.story-card h3 {
  font-size: 1.2rem;
  color: var(--purple);
  margin-bottom: 0.8rem;
}
.story-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================================
   SCHEDULE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 620px;
  margin: 2.5rem auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.25);
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 28px 1fr;
  gap: 0 1rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-time {
  text-align: right;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  padding-top: 4px;
  line-height: 1.3;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--purple-light);
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-dot--cake      { border-color: var(--pink); }
.timeline-dot--breakfast { border-color: #f59e0b; }

.timeline-content {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}
.timeline-content h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.timeline-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.timeline-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #bfdbfe;
  font-weight: 600;
  transition: var(--transition);
}
.timeline-link:hover { color: #fff; }

/* ============================================================
   LOCKED WRAPPER / BLUR OVERLAY (Challenge Gate)
   ============================================================ */
.locked-wrapper {
  position: relative;
  overflow: hidden;
}
.locked-blur {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  z-index: 10;
  background: rgba(14,165,233,0.25);
  backdrop-filter: blur(2px);
}
.unlock-prompt {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: rgba(12,26,46,0.75);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 48px rgba(0,0,0,0.3);
}
.unlock-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}
.challenge-form {
  margin-top: 2rem;
}
.challenge-question {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.challenge-input-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.challenge-input {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}
.challenge-input::placeholder {
  color: rgba(255,255,255,0.5);
}
.challenge-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.18);
}
.challenge-error {
  color: #fca5a5;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ============================================================
   LOCATIONS
   ============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--purple-pale);
  transition: var(--transition);
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14,165,233,0.3);
}
.location-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.location-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--purple);
  margin-bottom: 0.4rem;
}
.location-type {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.location-address {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.location-map-placeholder {
  margin-top: auto;
}

/* ============================================================
   RSVP FORM
   ============================================================ */
.rsvp-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--purple-pale);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
}
.radio-label:has(input:checked) {
  border-color: var(--purple);
  background: var(--purple-pale);
  color: var(--purple);
  font-weight: 600;
}
.radio-label input { accent-color: var(--purple); }

.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}
.form-actions .btn { width: 100%; max-width: 320px; padding: 14px 28px; font-size: 1rem; }

.rsvp-success {
  max-width: 680px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.rsvp-success span { font-size: 2.5rem; }
.rsvp-success p {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: #16a34a;
  font-weight: 600;
}
.rsvp-wa-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.rsvp-wa-cta .wa-qr-img {
  width: 160px;
  height: 160px;
}

/* ── RSVP divider ── */
.rsvp-divider {
  max-width: 680px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rsvp-divider::before,
.rsvp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.rsvp-divider span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Contacts block ── */
.rsvp-contacts {
  max-width: 680px;
  margin: 1.5rem auto 0;
  text-align: center;
}
.rsvp-contacts > p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.contacts-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin: 1.2rem 0 0.6rem;
}
.contacts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--purple-pale);
  border: 1.5px solid rgba(14,165,233,0.2);
  border-radius: 50px;
  font-weight: 600;
  color: var(--purple);
  font-size: 0.92rem;
  transition: var(--transition);
}
.contact-pill:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* WhatsApp variant */
.contact-pill--wa {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}
.contact-pill--wa:hover {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.contact-pill--locked {
  opacity: 0.5;
  cursor: default;
  filter: blur(1px);
}
.contact-pill--locked:hover {
  background: inherit;
  color: inherit;
  border-color: inherit;
  transform: none;
}
.contacts-locked-hint {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}
.wa-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   WHATSAPP GROUP
   ============================================================ */
.wa-group-container {
  text-align: center;
  max-width: 500px;
}
.wa-group-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.btn-wa-join {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  padding: 14px 32px;
  font-size: 1rem;
}
.btn-wa-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  background: #1ebe5d;
}
.wa-qr-wrapper {
  margin-bottom: 1.5rem;
}
.wa-qr-img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: linear-gradient(135deg, var(--dark) 0%, #075985 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.footer-hearts {
  font-size: 1.4rem;
  color: var(--purple-light);
  letter-spacing: 0.6rem;
  margin-bottom: 1.2rem;
  opacity: 0.7;
}
.footer-names {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.footer-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--purple-light);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}
.footer-baby {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .section { padding: 56px 0; }

  .countdown {
    gap: 0.3rem;
  }
  .countdown-item { min-width: 50px; }
  .countdown-item span { font-size: 1.5rem; padding: 6px 8px; min-width: 50px; }
  .countdown-sep { font-size: 1.4rem; }

  .hero-date { gap: 0.8rem; }
  .date-number { font-size: 2.5rem; }

  .timeline::before { left: 70px; }
  .timeline-item { grid-template-columns: 64px 24px 1fr; }
  .timeline-time { font-size: 0.85rem; }

  .rsvp-form { padding: 1.6rem; }
}

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