:root {
  --primary-dark: #4b382f;
  --primary-dark-2: #4b382f;
  --primary-light: #f5f2ed;
  --accent-gold: #d4a574;
  --text-dark: #2a2a2a;
  --text-light: #f5f2ed;
  --text-soft: #6f584c;
  --text-muted: #8a766c;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --border-subtle: #e8e5df;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.wedding-body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: var(--primary-light);
  color: var(--text-dark);
  text-align: center;
  overflow-x: hidden;
}

header {
  padding: 36px 20px 28px;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary-dark-2) 0%, var(--primary-dark) 100%);
  display: none; /* Hide old header */
}

.site-header {
  display: block; /* Show new header */
}

.header-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 1040px;
  margin: 0 auto 24px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 165, 116, 0.35);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(75, 56, 47, 0.1);
  display: none; /* Hide old hero card */
}

.hero-image {
  position: relative;
  min-height: 480px;
  border-radius: 26px;
  background: url('../images/47836D44-D091-4AF8-8566-A8885D034D69_1_105_c.jpeg') center/cover no-repeat;
  box-shadow: 0 20px 35px rgba(75, 56, 47, 0.14);
  display: none; /* Hide old hero image */
}

.hero-copy {
  text-align: left;
  padding: 12px 8px;
  display: none; /* Hide old hero copy */
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent-gold);
  font-size: 12px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.hero-tagline {
  max-width: 28ch;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero-date-card {
  margin-top: 22px;
  max-width: 330px;
  text-align: center;
  box-shadow: 0 18px 35px rgba(75, 56, 47, 0.12);
}


h1 {
  margin: 0;
  font-family: "Baskerville", "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  color: var(--primary-dark);
}

h2 {
  font-weight: normal;
  margin-top: 0;
  font-family: "Baskerville", "Times New Roman", serif;
  color: var(--primary-dark);
  letter-spacing: 2px;
}

h3 {
  font-weight: normal;
  font-family: "Baskerville", "Times New Roman", serif;
  color: var(--primary-dark);
  letter-spacing: 2px;
}

#wedding-invitation > header[data-reveal],
#wedding-invitation > section[data-reveal],
#wedding-invitation > footer[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms ease, transform 800ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

#wedding-invitation > header[data-reveal].is-visible,
#wedding-invitation > section[data-reveal].is-visible,
#wedding-invitation > footer[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

section {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
}

/* Override old section styling for new structure */
#wedding-invitation > section:not(.invitation-section) {
  padding: 40px 20px;
}

#wedding-invitation > .invitation-main {
  padding: 0;
}

iframe {
  border: 0;
  width: 100%;
  max-width: 600px;
  height: 350px;
  border-radius: 12px;
}

.spotify iframe {
  height: 380px;
}

.spotify-h3 {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-dark);
  color: var(--primary-light);
  text-decoration: none;
  border: 2px solid var(--primary-dark);
  border-radius: 25px;
  font-size: 16px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.btn:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

footer {
  padding: 30px;
  font-size: 14px;
  color: var(--text-muted);
}

.container {
  display: flex;
  gap: 20px;
  font-family: serif;
}

.container section {
  flex: 1;
}

@media (max-width: 768px) {
  header {
    padding: 26px 18px 44px;
  }

  .header-topbar {
    margin-bottom: 18px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 18px 24px;
    border-radius: 24px;
  }

  .hero-image {
    width: min(72vw, 280px);
    min-height: min(72vw, 280px);
    margin: 0 auto;
    border-radius: 50%;
    background-position: center 34%;
  }

  .hero-copy {
    text-align: center;
    padding: 0;
  }

  .hero-tagline {
    max-width: 32ch;
    margin-inline: auto;
    font-size: 16px;
  }

  .hero-date-card {
    max-width: 100%;
    margin: 20px auto 0;
  }

  .overview-section {
    padding: 8px 18px 42px;
  }

  .overview-shell {
    display: block;
  }

  .venue-card {
    border-radius: 24px;
  }

  .overview-title {
    font-size: 34px;
  }

  .overview-date-card,
  .venue-card {
    padding-inline: 18px;
  }

  .day p {
    font-size: 44px;
  }

  .container {
    flex-direction: column;
  }
}

/* Caption text */
.text {
  color: var(--primary-dark);
  font-size: 15px;
  padding: 8px 12px;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* OVERVIEW - OLD STYLES HIDDEN */
.overview-section {
  max-width: 900px;
  padding: 8px 20px 56px;
  display: none; /* Hide old overview */
}

.overview-shell {
  display: flex;
  justify-content: center;
  display: none; /* Hide old shell */
}

.overview-eyebrow,
.venue-label {
  margin: 0;
  color: var(--accent-gold);
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.overview-title {
  margin: 14px 0 10px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.04;
  color: var(--primary-dark);
}

.overview-date-card {
  padding: 26px 18px;
  background: linear-gradient(135deg, var(--primary-dark-2) 0%, var(--primary-dark) 100%);
  border-radius: 22px;
}

.overview-month,
.overview-year {
  margin: 0;
  color: var(--accent-gold);
  font-size: 14px;
  letter-spacing: 3px;
}

.overview-year {
  margin-top: 8px;
}

.date-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 18px 0 14px;
}

.day p {
  border-bottom: none;
  font-size: 52px;
  font-weight: bold;
  color: var(--primary-light);
}

.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.date-block p {
  margin: 0;
}

.date-block::before,
.date-block::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(212, 165, 116, 0.45);
}

.day::before,
.day::after {
  display: none;
}

.overview-venues {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 26px;
  width: 100%;
}

.venue-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(212, 165, 116, 0.38);
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(75, 56, 47, 0.08);
}

.venue-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
  color: var(--primary-dark);
}

/* LINEA VERTICAL */
.divider {
  width: 1px;
  height: 20px;
  background: var(--accent-gold);
  margin: 12px auto 18px;
  opacity: 0.6;
}

.address {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.venue-time {
  margin: 20px 0 18px;
  color: var(--primary-dark);
  font-size: 24px;
  letter-spacing: 2px;
}

.venue-card .map-link {
  margin-top: auto;
}

.map-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px 0;
  text-decoration: none;
  color: var(--primary-dark);
}

.pin {
    width: 30px;
    fill: var(--primary-dark);
    margin-bottom: 6px;
}

.map-link span {
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .overview-shell {
    display: block;
  }

  .overview-venues {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .venue-card {
    border-radius: 24px;
  }

  .overview-date-card,
  .venue-card {
    padding-inline: 18px;
  }

  .day p {
    font-size: 44px;
  }
}

/*TIMING BLOCK*/
/* CENTER LINE */
.timeline {
  position: relative;
  margin-top: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--border-subtle);
  transform: translateX(-50%);
}

/* EVENT */
.event {
  width: 100%;
  position: relative;
  margin: 15px 0;
  display: flex;
}

/* LEFT SIDE */
.event.left {
  justify-content: flex-start;
  text-align: right;
}

.event.left .content {
  width: 45%;
  text-align: right;
}

.event.left .content .time {
  padding-right: 20px;
}

.event.left .content .title {
  padding-right: 20px;
}

.event.left .content .icon {
  padding-right: 10px;
}

/* RIGHT SIDE */
.event.right {
  justify-content: flex-end;
  text-align: left;
}

.event.right .content {
  width: 45%;
}

.event.right .content .time{
  width: 45%;
  padding-left: 25px;
}

.event.right .content .title{
  width: 45%;
  padding-left: 25px;
}

.event.right .content .icon {
  padding-left: 5px;
}

/* DOT */
.event::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--primary-dark);
  border-radius: 50%;
  transform: translate(-50%, 0);
}

/* TEXT */
.time {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  margin-top: 5px;
}

.sentence {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.icon {
  width: 100px;
}

/*PREBODA BLOCK*/
.preboda {
    display: flex;
    background-color: rgba(75, 56, 47, 0.08);
}

.block {
  width: 50%; /* each takes half the space */
  padding: 20px;
}

.table {
  border: 1px solid rgba(212, 165, 116, 0.35);
}
ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

li {
  position: relative;
  padding-left: 1.2em;
  text-align: left;
}

/*li::before {*/
/*  content: "·";*/
/*  position: absolute;*/
/*  left: 0;*/
/*}*/

/*GUIA*/
.guia-h4{
    letter-spacing: 2px;
}

.guia-li {
    content: "";
}

.guia-h2 {
    padding-top: 20px;
}

/*FORM*/
#wedding-invitation label {
  display: block;
  margin-top: 15px;
  /*font-weight: bold;*/
}

#form-button {
    margin-top: 20px;
}
#wedding-invitation .checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  justify-content: center
}

#wedding-invitation .checkbox-group input {
  width: auto;
}

#wedding-invitation input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid rgba(212, 165, 116, 0.65);
  accent-color: var(--primary-dark);
}

#wedding-invitation form {
    padding-top: 0;
    background: transparent;
    padding-bottom: 0;
    border-radius: 0;
}

.sticker{
    width: 50%;
    border-radius: 10px;
}

#score_img {
    width: 15%;
    transition: transform 0.2s;
}

#score {
    transition: transform 0.2s;
    font-size: 20px;
    text-align: right;
    padding-left: 20%;
}

/*COUNTDOWN*/
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.bubble {
  width: 80px;
  height: 80px;
  background: var(--primary-dark);
  color: white;
  border-radius: 50%; /* makes it a circle */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.bubble:hover {
  transform: scale(1.1);
}

.bubble span {
  font-size: 20px;
}

.bubble p {
  font-size: 10px;
  margin: 0;
}

/*POPUP*/
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--surface-soft);
  width: min(900px, 90vw);
  max-height: 85vh;
  overflow-y: auto;

  margin: auto;
  padding: 20px;
  border-radius: 10px;

  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

/* =====================
   LANGUAGE SWITCHER
   ===================== */
.lang-btn {
  background: transparent;
  border: 1px solid rgba(212, 165, 116, 0.7);
  border-radius: 4px;
  color: rgba(245, 242, 237, 0.9);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 4px;
  padding: 4px 10px;
  transition: background 200ms ease, color 200ms ease;
}

.lang-btn:hover {
  background: rgba(212, 165, 116, 0.2);
  color: var(--primary-light);
}

.lang-btn.lang-active {
  background: rgba(212, 165, 116, 0.28);
  border-color: rgba(212, 165, 116, 0.95);
  color: var(--primary-light);
}
