/* ===========================
   WEDDING INVITATION STYLESHEET
   Lucía & Juan
   Colors: sage green (#7a8c74, #8fa387), soft white (#f9f8f6), warm grey (#888)
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage: #7a8c74;
  --sage-light: #a3b59d;
  --sage-dark: #5e6e5a;
  --cream: #f9f8f6;
  --dark: #2c2c2c;
  --mid: #555;
  --light: #888;
  --border: #ddd;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  animation: zoomIn 8s ease forwards;
}

@keyframes zoomIn {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: fadeUp 1.2s ease 0.3s both;
}

.couple-name {
  font-family: var(--font-script);
  font-size: clamp(52px, 14vw, 72px);
  color: white;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.amp {
  font-family: var(--font-script);
  font-size: 0.85em;
}

.tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.92);
  margin-top: 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.scroll-hint {
  position: absolute;
  bottom: 100px;
  z-index: 2;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ===========================
   AUDIO PLAYER
   =========================== */
.audio-player {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.95);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.audio-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  padding: 2px;
}

.audio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-time {
  font-size: 11px;
  color: var(--mid);
  font-family: var(--font-sans);
}

.audio-progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.audio-progress {
  height: 100%;
  background: var(--dark);
  width: 0%;
  border-radius: 2px;
  transition: width 0.5s linear;
}

.audio-vol {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid);
  display: flex;
  align-items: center;
}

/* ===========================
   INTRO / COUNTDOWN
   =========================== */
.intro {
  text-align: center;
  padding: 52px 28px 44px;
  background: white;
}

.script-title {
  font-family: var(--font-script);
  font-size: 46px;
  color: var(--dark);
  margin-bottom: 14px;
}

.intro-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto 28px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--sage);
  color: white;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  justify-content: center;
  gap: 1px;
}

.count-num {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1;
}

.count-label {
  font-size: 7px;
  letter-spacing: 1px;
  font-weight: 400;
  opacity: 0.9;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--dark);
  background: white;
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--dark);
  color: white;
}

/* ===========================
   EVENT SECTIONS (Ceremony / Celebration)
   =========================== */
.event-section {
  text-align: center;
  padding: 52px 28px;
  background: var(--cream);
}

.event-section.alt {
  background: white;
}

.event-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.event-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--dark);
  margin-bottom: 10px;
}

.event-venue {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--mid);
  margin-bottom: 6px;
}

.event-join {
  font-size: 13px;
  color: var(--light);
  margin-bottom: 18px;
}

.event-datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}

.event-date {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--dark);
}

.event-divider {
  color: var(--border);
  font-size: 28px;
  font-weight: 300;
}

.event-time {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--dark);
}

.pm {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-sans);
}

.event-address {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--sage);
  color: white;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--sage-dark);
}

/* ===========================
   DRESS CODE
   =========================== */
.dress-section {
  text-align: center;
  padding: 52px 28px;
  background: var(--cream);
}

.dress-style {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--mid);
  margin-bottom: 6px;
}

.dress-sub {
  font-size: 13px;
  color: var(--light);
}

/* ===========================
   GALLERY & SHARE PHOTOS
   =========================== */
.gallery-section {
  background: var(--sage);
}

.gallery-bg {
  padding: 32px 16px 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 6px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.gallery-item { height: 160px; }
.gallery-item.tall {
  grid-row: span 2;
  height: 326px;
}
.gallery-item.tall,
.gallery-item:nth-child(2) {
    grid-row: span 2;
    height: 326px;
}
.gallery-item.wide {
  grid-column: span 2;
  height: 200px;
}

.share-section {
  background: white;
  text-align: center;
  padding: 40px 28px 48px;
}

.share-title {
  margin-bottom: 10px;
}

.share-sub {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 22px;
}

.share-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn-outline-dark {
  border: 1.5px solid var(--dark);
  background: white;
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  width: 220px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: white;
}

.uploaded-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 20px;
}

.uploaded-grid img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

/* ===========================
   GIFTS
   =========================== */
.gifts-section {
  text-align: center;
  padding: 52px 28px;
  background: var(--cream);
}

.gifts-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto 22px;
}

.bank-details {
  margin-top: 20px;
}

.bank-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  text-align: left;
  font-size: 13px;
  color: var(--mid);
  line-height: 2;
}

/* ===========================
   RSVP
   =========================== */
.rsvp-section {
  padding: 52px 28px 60px;
  background: white;
  text-align: center;
}

.rsvp-title {
  margin-bottom: 14px;
}

.rsvp-intro {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 24px;
}

.rsvp-radios {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 22px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mid);
  cursor: pointer;
}

.radio-label input { accent-color: var(--sage); }

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rsvp-input, .rsvp-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--dark);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.rsvp-input:focus, .rsvp-textarea:focus {
  border-color: var(--sage);
}

.rsvp-textarea {
  min-height: 110px;
  resize: vertical;
}

.rsvp-submit {
  width: 100%;
  padding: 15px;
  font-size: 12px;
  letter-spacing: 3px;
  margin-top: 4px;
}

.rsvp-confirmation {
  margin-top: 20px;
  color: var(--sage-dark);
  font-size: 14px;
  font-weight: 500;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--cream);
  text-align: center;
  padding: 48px 28px;
  border-top: 1px solid #e8e4df;
}

.footer-script {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--light);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--dark);
}

/* ===========================
   SCROLL REVEAL ANIMATION
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 400px) {
  .couple-name { font-size: 48px; }
  .count-item { width: 56px; height: 56px; }
  .count-num { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-hint { animation: none; }
}
