/* ════════════════════════════════════════════
   GHEA & RIZAL WEDDING INVITATION
   60 · 30 · 10  Color Rule
   ─────────────────────────────────────────
   60 %  Dark Olive    #232018  ← backgrounds
   30 %  Dusty Rose   #D4A8B8  ← text, labels, most elements
   10 %  Champagne    #B8A46A  ← script titles, logo, key accents
════════════════════════════════════════════ */

:root {
  /* ── Palette — matched from style guide swatches ── */
  --dark:       #232018;   /* 60 % primary  */
  --dark-mid:   #1A1710;   /* deeper bg variant */
  --rose:       #D4A8B8;   /* 30 % secondary */
  --rose-dim:   rgba(212, 168, 184, 0.55);
  --gold:       #B8A46A;   /* 10 % accent */
  --gold-lt:    #D0BC88;   /* lighter gold for large script */

  /* ── Fonts ── */
  --script: 'Great Vibes', cursive;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Montserrat', sans-serif;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--rose); font-family: var(--sans); font-weight: 300; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; }

/* ════════════════════════════════════════════
   INFINITE PARALLAX BACKGROUND
════════════════════════════════════════════ */
.parallax-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.parallax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  height: 100%;
}

.parallax-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.parallax-col img {
  width: 100%;
  height: 400px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
}

.col-a { animation: scrollUp 30s linear infinite; }
.col-b { animation: scrollUp 38s linear infinite; animation-delay: -10s; }
.col-c { animation: scrollUp 34s linear infinite; animation-delay: -20s; }

@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 10, 0.88);
}

body > *:not(.parallax-bg) {
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
#cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.cover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-eyebrow {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--rose);           /* 30 % */
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.3s forwards;
}

.cover-logo {
  width: min(300px, 70vw);
  height: auto;
  mix-blend-mode: luminosity;
  filter: brightness(1.1);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.6s forwards;
}

.cover-divider {
  width: 44px;
  height: 1px;
  background: var(--gold);       /* 10 % */
  margin: 30px auto;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1s forwards;
}

.cover-date {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);            /* 30 % */
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.1s forwards;
}

.cover-venue {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rose);            /* 30 % */
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.2s forwards;
}

.cover-scroll {
  color: var(--rose-dim);
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards, bob 2s ease-in-out 2.5s infinite;
  display: inline-flex;
}

/* ════════════════════════════════════════════
   SECTIONS — open layout, no boxes
════════════════════════════════════════════ */
.section {
  padding: 100px 24px;
  background: rgba(26, 20, 10, 0.74);
}

.section--accent {
  background: rgba(18, 14, 8, 0.84);
}

.sec-inner {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* ════════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════════ */
.arabic {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--gold);             /* 10 % — highest importance */
  font-family: var(--serif);
  direction: rtl;
  margin-bottom: 10px;
}

.latin-prayer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--rose);            /* 30 % */
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.salam {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);            /* 30 % */
  opacity: 0.75;
  margin-bottom: 20px;
}

.body-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 2;
  color: var(--rose);            /* 30 % */
  opacity: 0.82;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);            /* 30 % */
  opacity: 0.7;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--script);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--gold-lt);         /* 10 % */
  font-weight: 400;
  margin-bottom: 14px;
}

.rule {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-dim), transparent);
  margin: 18px auto 28px;
}

/* ════════════════════════════════════════════
   COUPLE
════════════════════════════════════════════ */
.couple-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.couple-person {
  text-align: center;
  width: 100%;
}

.couple-person + .couple-person {
  margin-top: 8px;
}

.couple-name {
  font-family: var(--script);
  font-size: clamp(3.4rem, 9vw, 5rem);
  color: var(--gold-lt);         /* 10 % — key identity element */
  font-weight: 400;
  margin: 8px 0 12px;
}

.couple-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--rose);
  opacity: 0.5;
  margin-bottom: 4px;
}

.couple-family {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--rose);            /* 30 % */
  line-height: 1.75;
  opacity: 0.85;
}

.couple-amp-wrap { text-align: center; }

.couple-amp {
  font-family: var(--script);
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--gold);
  opacity: 0.25;
  display: block;
  line-height: 1;
}

/* ════════════════════════════════════════════
   PHOTO BREAK
════════════════════════════════════════════ */
.photo-break {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.photo-break-inner {
  position: absolute;
  inset: -15% 0;
  will-change: transform;
}

.photo-break-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.photo-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 10, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-break-logo {
  width: min(160px, 35vw);
  height: auto;
  mix-blend-mode: luminosity;
  filter: brightness(1.3);
  opacity: 0.9;
}

/* ════════════════════════════════════════════
   EVENT
════════════════════════════════════════════ */
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 36px 0;
}

.event-item { text-align: center; }

.event-icon {
  width: 24px;
  height: 24px;
  color: var(--rose);            /* 30 % */
  opacity: 0.65;
  margin: 0 auto 10px;
}

.event-label {
  font-family: var(--sans);
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);            /* 30 % */
  opacity: 0.6;
  margin-bottom: 6px;
}

.event-value {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--rose);            /* 30 % */
  line-height: 1.65;
}

.event-outdoor {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  color: var(--rose);
  opacity: 0.5;
  margin-top: 6px;
  line-height: 1.5;
}

/* ════════════════════════════════════════════
   DRESS CODE
════════════════════════════════════════════ */
.dresscode-swatches {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 28px;
}

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

.swatch-color {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 184, 0.18);
}

.swatch-label {
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.65;
}

/* ════════════════════════════════════════════
   COUNTDOWN
════════════════════════════════════════════ */
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cd-item { text-align: center; min-width: 64px; }

.cd-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: var(--rose);            /* 30 % — large & prominent */
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 300;
}

.cd-label {
  font-family: var(--sans);
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.55;
}

.cd-sep {
  font-size: 2rem;
  color: var(--rose);
  opacity: 0.2;
  padding-bottom: 24px;
  align-self: center;
}

/* ════════════════════════════════════════════
   GALLERY
════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 32px;
}

.g-item {
  overflow: hidden;
  background: var(--dark-mid);
}

.g-portrait {
  aspect-ratio: 2 / 3;
}

.g-landscape {
  aspect-ratio: 4 / 3;
  grid-column: span 2;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.g-item:hover img { transform: scale(1.03); }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 14px 40px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-top: 28px;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn--gold {
  background: var(--gold);
  color: var(--dark);
  border: none;
}
.btn--gold:hover { background: var(--gold-lt); }

/* Secondary button — outline in rose */
.btn--outline {
  border: 1px solid var(--rose-dim);
  color: var(--rose);            /* 30 % */
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.btn--outline:hover {
  background: var(--rose);
  color: var(--dark);
}

/* ════════════════════════════════════════════
   RSVP FORM
════════════════════════════════════════════ */
.rsvp-form {
  margin-top: 36px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rsvp-field { display: flex; flex-direction: column; gap: 8px; }

.rsvp-label {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.7;
}

.rsvp-optional {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  opacity: 0.5;
}

.rsvp-input {
  width: 100%;
  background: rgba(212, 168, 184, 0.05);
  border: 1px solid rgba(212, 168, 184, 0.2);
  color: var(--rose);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.rsvp-input::placeholder { opacity: 0.35; }
.rsvp-input:focus { border-color: rgba(212, 168, 184, 0.55); }

.rsvp-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4A8B8' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.rsvp-select option { background: #232018; color: #D4A8B8; }

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

.rsvp-radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.rsvp-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--rose);
  opacity: 0.8;
}

.rsvp-radio input[type="radio"] { accent-color: var(--gold); width: 15px; height: 15px; }

.rsvp-submit { margin-top: 8px; width: 100%; }

.rsvp-status {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--rose);
  opacity: 0;
  transition: opacity 0.4s;
  min-height: 1.4em;
}

.rsvp-status.show { opacity: 1; }

/* ════════════════════════════════════════════
   CLOSING
════════════════════════════════════════════ */
.closing-logo {
  width: min(200px, 50vw);
  height: auto;
  margin: 0 auto 16px;
  mix-blend-mode: luminosity;
  filter: brightness(1.1);
}

.closing-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--rose);
  opacity: 0.5;
  margin-top: 28px;
  margin-bottom: 8px;
}

.closing-families {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--rose);            /* 30 % */
  opacity: 0.6;
  line-height: 2.2;
}

/* ════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(9px); }
}

/* ════════════════════════════════════════════
   MOBILE
════════════════════════════════════════════ */
@media (max-width: 700px) {
  .parallax-grid { grid-template-columns: 1fr 1fr; }
  .col-c { display: none; }

  .section { padding: 72px 20px; }

  .couple-wrap { gap: 4px; }
  .couple-person + .couple-person { margin-top: 12px; }

  .event-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .g-landscape { grid-column: span 2; }

  .countdown-grid { gap: 6px; }
  .cd-item { min-width: 50px; }

  .photo-break { height: 60vh; }
}

@media (max-width: 420px) {
  .cover-logo { width: 80vw; }
  .section-title { font-size: 2.2rem; }
  .cd-num { font-size: 2.2rem; }
}
