/* =========================
   styles-web.css (BASE / DESKTOP)
   ========================= */

:root{
  /* COLORS */
  --paper-cream: #f4f0e7;
  --paper-cream-line: rgba(0,0,0,.18);

  --card-dark-a: #374010;
  --card-dark-b: #444e1a;
  --card-dark-line: rgba(255,255,255,.55);

  --ink: rgba(0,0,0,.82);
  --ink-soft: rgba(0,0,0,.62);

  --wax: #6a2a2a;
  --wax-deep: #4c1b1b;

  /* FONTS */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Allura", cursive;

  /* SHAPE */
  --r: 16px;
  --shadow: 0 26px 60px rgba(0,0,0,.28);
  --shadow-soft: 0 18px 40px rgba(0,0,0,.18);

  /* IMAGES */
  --banner-url: none;

  /* SPACING */
  --section-gap: 170px;

  /* RSVP */
  --rsvp-h: 70%;

  /* CAROUSEL */
  --carousel-lift: -220px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-color: #ffffff;
  font-family: var(--serif);
}

.page{
  width: min(980px, 96vw);
  padding: 28px 14px 40px;
  display: grid;
  place-items: center;
}

.section-gap{
  width: 100%;
  height: var(--section-gap);
}

/* =========================
   TOP SCENE
   ========================= */
.scene{
  position: relative;
  width: min(760px, 92vw);
  aspect-ratio: 4 / 3;
  overflow: visible;
}

.scene-top-min{
  margin-top: clamp(80px, 70vw, 100px);
}

/* =========================
   ENVELOPE
   ========================= */
.envelope{
  position: absolute;
  left: 55%;
  bottom: 5%;
  transform: translateX(-50%);
  width: 120%;
  height: 112%;
  border-radius: var(--r);
  filter: drop-shadow(var(--shadow));
  z-index: 4;

  background-image: url("https://invite.amoreaestudio.com/miguelycamila/_assets/media/9349232ab82f850ab26e398a997683b8.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.envelope-center-back{
  position: absolute;
  top: 50%;
  left: 46%;
  transform: translate(-50%, -50%) scale(.9);
  width: 40%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 8;
}

.envelope-center-back-front{
  position: absolute;
  top: 62%;
  left: 46%;
  transform: translate(-50%, -50%) scale(1.8);
  width: 46.5%;
  height: 38%;
  object-fit: fill;
  pointer-events: none;
  z-index: 8;
}

.envelope-center-image{
  position: absolute;
  top: 65%;
  left: 46%;
  transform: translate(-50%, -50%) scale(.5);
  width: clamp(140px, 26%, 220px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 10;
}

.envelope-back-decor{
  position: absolute;
  z-index: 3;
  top: -5%;
  right: clamp(40px, 10vw, 100px);
  width: clamp(120px, 22vw, 260px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  transform: rotate(20deg) scale(1.5);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.28));
}

/* =========================
   CARDS
   ========================= */
.card{
  position: absolute;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  z-index: 10;
}

.card-left{
  left: 12%;
  top: 57%;
  width: 42%;
  min-height: 90%;
  background: linear-gradient(180deg, var(--card-dark-a), var(--card-dark-b));
  border: 2px solid var(--card-dark-line);
  border-radius: 14px;
  padding: 0;
  overflow: visible;
  transform: scale(.8);
}

.card-left-inner{
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  gap: 6px;
  z-index: 999;
}

/* =========================
   SAVE THE DATE (card-left)
   ========================= */
.save-the-date{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-family: "Italianno", cursive;
  color: rgba(255,255,255,.95);

  line-height: 1.05;
  text-align: center;

  font-size: 400%;
  letter-spacing: .5px;
}
/* Save / the */
.std-left{
  transform: translateX(-80%);
  font-family: "Italianno", cursive;
  font-weight: 400;
  letter-spacing: .6px;
}

/* date (hero word) */
.std-middle{
  font-family: "Italianno", cursive;
  font-weight: 400;
  letter-spacing: .6px;
}

.std-right{
  transform: translateX(80%);
}

.ftwo{
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.85);
  transform: translate(20%, 870%) scale(.8);
  border-bottom: #fff 1px solid;
}

/* Names */
.std-names{
  font-family: var(--serif); /* elegant contrast like the photo */
  font-size: 14px;
  letter-spacing: 2px;
  margin-top: 50%;
  text-transform: uppercase;
  /* margin-top: 6px; */
  color: rgba(255,255,255,.85);
  transform: translate(50%, 300%) scale(2.2);
}

/* Ampersand tweak */
.std-names .amp{
  font-family: var(--script);
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 4px;
}

.small{
  margin: 0;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.82);
}

.names{
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.95);
}

.script{ font-family: var(--script); line-height: 1; }
.serif{ font-family: var(--serif); line-height: 1; }

.names .script{
  display: block;
  text-align: center;
  font-size: clamp(34px, 4.6vw, 52px);
}

.amp{
  display: block;
  font-size: 18px;
  opacity: .9;
}

.card-right{
  right: 10%;
  bottom: -20%;
  width: 35%;
  height: 62%;
  background: var(--paper-cream);
  border: 2px solid var(--paper-cream-line);
  border-radius: 14px;
  padding: 14px;
  overflow: visible;
}

.card-right-inner{
  width: 100%;
  height: 100%;
  border: 2px solid #542020;
  border-radius: 12px;
  padding: 18px 14px;
  box-sizing: border-box;

  /* ✅ IMPORTANT */
  position: relative;   /* lets absolute children anchor here */
  overflow: hidden;     /* ✅ clips everything */
  
  display: grid;
  grid-template-rows: auto auto 1fr; /* text, date, floral */
  gap: 14px;
}

/* TEXT */
.details{
  text-align: center;
  color: #000;
  font-size: 12px;
  font-family: var(--serif);
  letter-spacing: .5px;
  line-height: -1.55;
  z-index: 2;
  margin-top: 0;
  margin-bottom: 0;
  transform: translate(-300, -300);
} 

.date-photo{
  z-index: 2;
  justify-self: center;

  /* ✅ CONTROL SIZE HERE */
  width: 140px;   /* change this */
  height: auto;

  /* remove your old translate/scale */
  transform: translateY(10%) scale(1.7);
}

/* FLORAL (bottom fill, clipped) */
.card-right-photo{
  z-index: 1;

  /* ✅ sits at bottom area */
  width: 100%;
  height: 110%;

}

.card-left-photo{
  position: absolute;
  z-index: 70;
  top: 12%;
  left: 13%;
  width: clamp(80px, 12vw, 120px);
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: translate(-5%, 80%) scale(2.2);
  pointer-events: none;
}
.card-left-photo-std{
  position: absolute;
  z-index: 70;
  top: 20%;
  left: 50%;
  width: clamp(100px, 15vw, 150px);
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: translate(-47%, -40%) scale(2);
  pointer-events: none;
}

/* =========================
   DETAILS GRID (used for RSVP area)
   ========================= */
.details-grid{
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px 22px;
  padding: 0;
  align-items: start;
}

/* =========================
   RSVP
   ========================= */
.rsvp-box{
  grid-column: 1 / 2;
  position: relative;
  background: var(--paper-cream);
  border: 2px solid rgba(0,0,0,.18);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0,0,0,.14);
  width: 100%;
  height: var(--rsvp-h);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  transform: translate(30%, 50%) scale(1.2);
  justify-self: start;
}

.rsvp-inner{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.rsvp-kicker{
  margin: 0;
  font-size: 22px;
  color: rgba(0,0,0,.62);
}

.rsvp-big{
  margin: -10px 0;
  font-size: 68px;
  color: rgba(0,0,0,.82);
}

.rsvp-seal{
  position: absolute;
  left: -18px;
  top: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  transform: translate(200%, 120%);
}
/* Make whole RSVP card clickable */
.rsvp-link{
  text-decoration: none;
  color: inherit;
  display: contents; /* 🔑 keeps layout EXACT */
}

/* Hover feedback — NO transform */
.rsvp-link:hover .rsvp-box{
  box-shadow: 
    0 26px 50px rgba(0,0,0,.22),
    inset 0 0 0 1px rgba(255,255,255,.25);
}


/* =========================
   MUSIC
   ========================= */
.music-section{
  width: min(760px, 96vw);
  margin: 0 auto 32px;
  transform: translate(5%, -70%) scale(1.1);
}

.music-box{
  text-align: center;
  transform: translate(0%, 10%) scale(1.1);
}

.music-text{
  margin: 0 0 12px;
  font-family: var(--script);
  font-size: 22px;
  color: rgba(0,0,0,.7);
}
/* ===== MUSIC CONTROLS (Font Awesome) ===== */
.music-controls{
  display: grid;
  grid-template-columns: 44px 56px 44px; /* perfectly symmetric */
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 10px;
}

/* Decorative icons (same size both sides) */
.music-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  color: rgba(0,0,0,.45);
  font-size: 14px;

  pointer-events: none; /* NOT clickable */
}

/* Play button (only interactive control) */
.music-play-btn{
  width: 56px;
  height: 56px;
  border-radius: 999px;

  border: none;
  background: #fff;          /* ALWAYS white */
  color: #000;               /* icon color */

  display: grid;
  place-items: center;

  font-size: 18px;
  cursor: pointer;

  /* 🔑 kill mobile blue effects */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;

  outline: none;
  box-shadow: none;

  transition: transform .15s ease;
}

/* Hover (desktop only) */
.music-play-btn:hover{
  transform: scale(1.06);
}

/* Active (mobile tap) */
.music-play-btn:active{
  background: #fff;          /* prevent blue */
  transform: scale(0.96);
}

/* Focus (keyboard / accessibility) */
.music-play-btn:focus,
.music-play-btn:focus-visible{
  outline: none;
  box-shadow: none;
  background: #fff;
}

/* When music is playing — KEEP SAME LOOK */
.music-play-btn.is-playing{
  background: #fff;
  color: #000;
}


.music-progress{
  position: relative;
  width: 160px;
  height: 2px;
  background: rgba(0,0,0,.25);
  margin: 0 auto;
  border-radius: 999px;
}

.music-dot{
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 999px;
}

/* =========================
   CAROUSEL MESSAGE
   ========================= */
.carousel-message{
  margin: 0 auto 18px;
  text-align: center;
  font-family: var(--script);
  font-size: 28px;
  color: rgba(0,0,0,.7);
  letter-spacing: .5px;
  transform: translateY(-60%);
}

/* =========================
   PHOTOS CAROUSEL
   ========================= */
.photos-section{
  width: min(860px, 96vw);
  margin: 0 auto;
  transform: translateY(var(--carousel-lift));
}

.photos-carousel{
  position: relative;
  width: 100%;
}

.carousel-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 360px);
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 52px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar{ display: none; }

.carousel-item{ scroll-snap-align: center; margin: 0; }

.carousel-item img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  z-index: 5;
}
.carousel-btn.prev{ left: 6px; }
.carousel-btn.next{ right: 6px; }

/* =========================
   TIMELINE
   ========================= */
.timeline-section{
  width: min(760px, 92vw);
  margin: 0 auto;
  margin-top: -20%;
  padding: 40px 0;
  text-align: center;
}

.timeline-title{
  font-size: 42px;
  margin-bottom: 40px;
  color: #542020;
}

.timeline-subtext{
  background: #fff;
  color: #542020;
  padding: 10px 18px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .5px;
  margin-bottom: 12px;
  transform: translateY(-60%);
}

.timeline{
  position: relative;
  min-height: 650px;
}

.timeline-line{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(0,0,0,.2);
}

.timeline-item{
  position: absolute;
  width: 280px;
  text-align: center;
}

.timeline-item.right{ left: 55%; }
.timeline-item.left{ right: 55%; }

.timeline-item.top{ top: 0; }
.timeline-item.middle{ top: 200px; }
.timeline-item.bottom{ top: 400px; transform: scale(.8);}

.timeline-btn{
  background: #fff;
  color: #542020;
  border: none;
  padding: 10px 18px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .5px;
  cursor: pointer;
  margin-bottom: 12px;
  transform: translateX(20%);
}

.timeline-img{
  width: 75%;
  height: 75%;
  margin-bottom: 10px;
}

.timeline-info{
  opacity: 0;
  transform: translateY(-6px);
  transition: all .3s ease;
  font-size: 13px;
  color: rgba(0,0,0,.7);
}
.timeline-item:hover .timeline-info{
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.active .timeline-info{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   COUNTDOWN
   ========================= */
.countdown-banner{
  width: min(860px, 96vw);
  margin: 34px auto 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18);
  position: relative;
  min-height: 210px;
  background-color: #374010;
  background-image: url("https://www.transparenttextures.com/patterns/xv.png");
}

.countdown-overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(255,255,255,.10), rgba(255,255,255,0));
  pointer-events: none;
}

.countdown-content{
  position: relative;
  padding: 22px 18px 20px;
  color: rgba(255,255,255,.92);
  text-align: center;
}

.countdown-script{
  margin: 0 0 6px;
  font-size: clamp(22px, 3.2vw, 34px);
  opacity: .95;
}

.countdown-names{
  margin: 0;
  letter-spacing: 2px;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
}

.countdown-date{
  margin: 6px 0 14px;
  font-size: 14px;
  letter-spacing: 2px;
  opacity: .9;
}

.countdown-timer{
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 12px;
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.countdown-foot{
  font-size: 12px;
}

.time-box{
  width: 100%;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  backdrop-filter: blur(6px);
  padding: 10px 8px;
}

.time-box .num{
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}

.time-box .label{
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: .9;
}
