/* ═══════════════════════════════════════════
   FARAH & MARWAN — ELEGANT MINIMAL WEDDING
   ═══════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --cream:        #faf7f2;
  --cream-dark:   #f3ede3;
  --white:        #ffffff;
  --charcoal:     #2b2b2b;
  --text:         #4a4444;
  --text-light:   #7a7070;
  --gold:         #c9a96e;
  --gold-light:   #e0c99a;
  --gold-dark:    #a07c42;
  --dark-bg:      #1c1916;
  --dark-mid:     #26221d;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', system-ui, sans-serif;

  --section-pad:  6rem 1.5rem;
  --transition:   0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography helpers ── */
.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.18;
  margin-bottom: 1.5rem;
}

/* ── Ornaments ── */
.ornament {
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  opacity: 0.7;
}
.ornament--top  { margin-bottom: 1.8rem; }
.ornament--bottom { margin-top: 1.8rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}
.btn--outline {
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border: 1px solid transparent;
}
.btn--gold:hover {
  background: var(--gold-dark);
}

/* ── Section wrapper ── */
.section {
  padding: var(--section-pad);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(26,22,18,0.72) 0%, rgba(26,22,18,0.55) 100%),
    url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem 5rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; max-width: 680px; }

.hero__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.hero__names {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.hero__ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.55em;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin: 0.15em 0;
}

.hero__invite {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 3rem;
}

.hero__date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero__date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.hero__date-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}

.hero__date-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero__date-sep {
  width: 1px;
  height: 45px;
  background: rgba(255,255,255,0.25);
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  transition: var(--transition);
  border-radius: 1px;
}
.hero__cta:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.hero__cta--gold {
  background: var(--gold);
  border-color: var(--gold);
}
.hero__cta--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  animation: bounce 2s infinite;
}

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

/* ════════════════════════════════════════
   WELCOME
   ════════════════════════════════════════ */
.welcome {
  background: var(--white);
  padding: 5.5rem 1.5rem;
}

.welcome__divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0.7;
}

.welcome__message {
  max-width: 580px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.85;
  font-style: italic;
}

/* ════════════════════════════════════════
   COUNTDOWN
   ════════════════════════════════════════ */
.countdown-section {
  background: var(--dark-bg);
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(201,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(201,169,110,0.06) 0%, transparent 60%);
  padding: 5.5rem 1.5rem;
}

.countdown-section .section__eyebrow { color: var(--gold-light); }

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 80px;
}

.countdown__num {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.countdown__label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.countdown__sep {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════
   OUR STORY
   ════════════════════════════════════════ */
.story {
  background: var(--cream);
  padding: 5.5rem 1.5rem;
}

.story__timeline {
  max-width: 640px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
  position: relative;
}

.story__timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.4;
}

.story__step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.story__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.story__body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.story__body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ════════════════════════════════════════
   DETAILS
   ════════════════════════════════════════ */
.details {
  background: var(--white);
  padding: 5.5rem 1.5rem;
}

.details__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2.5rem auto;
  max-width: 860px;
}

.details__card {
  background: var(--cream);
  border: 1px solid rgba(201,169,110,0.25);
  padding: 2.5rem 2rem;
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
  transition: var(--transition);
}

.details__card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.07);
}

.details__card-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.details__card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}

.details__card p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

.details__card-sub {
  color: var(--text-light) !important;
  font-size: 0.8rem !important;
}

/* ════════════════════════════════════════
   MAP SECTION
   ════════════════════════════════════════ */
.map-section {
  background: var(--dark-mid);
  padding: 5rem 1.5rem;
  text-align: center;
}

.map-section__inner { max-width: 800px; margin: 0 auto; }

.map-section__sub {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: -0.8rem;
  margin-bottom: 2.5rem;
}

.map-section .section__title { color: var(--white); }

.map-section__embed {
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(201,169,110,0.2);
}

.map-section__embed iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}

/* ════════════════════════════════════════
   CLOSING
   ════════════════════════════════════════ */
.closing {
  background: var(--cream-dark);
  padding: 6rem 1.5rem;
}

.closing__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.closing__message {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

.closing__names {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 300;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  margin-bottom: 0.5rem;
}

.closing__amp {
  font-style: italic;
  color: var(--gold);
  font-size: 0.65em;
}

.closing__date {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ════════════════════════════════════════
   RSVP SECTION
   ════════════════════════════════════════ */
.rsvp {
  background: var(--white);
  padding: 5.5rem 1.5rem 4rem;
}

.rsvp__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* ── Form ── */
.rsvp__form {
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rsvp__field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.req { color: var(--gold); margin-left: 2px; }
.rsvp__optional { color: var(--text-light); font-size: 0.68rem; text-transform: none; letter-spacing: 0; font-weight: 300; }

.rsvp__field input[type="text"],
.rsvp__field input[type="number"],
.rsvp__field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 2px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

.rsvp__field input[type="text"]:focus,
.rsvp__field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}

.rsvp__field input[type="text"].invalid,
.rsvp__field textarea.invalid {
  border-color: #c0392b;
}

.rsvp__field textarea { min-height: 110px; }

/* ── Attending radio toggle ── */
.rsvp__toggle-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.rsvp__toggle {
  flex: 1 1 200px;
  cursor: pointer;
}

.rsvp__toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp__toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 2px;
  background: var(--cream);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: all 0.28s ease;
  user-select: none;
}

.rsvp__toggle input[type="radio"]:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  font-weight: 500;
}

.rsvp__toggle:hover span {
  border-color: var(--gold);
}

.rsvp__toggle-group.invalid .rsvp__toggle span {
  border-color: #c0392b;
}

/* ── Guests stepper ── */
.rsvp__guests-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 2px;
  overflow: hidden;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  background: var(--cream-dark);
  border: none;
  font-size: 1.3rem;
  color: var(--gold-dark);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.stepper-btn:hover { background: var(--gold); color: var(--white); }

.rsvp__guests-stepper input[type="number"] {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1px solid rgba(201,169,110,0.3);
  border-right: 1px solid rgba(201,169,110,0.3);
  border-radius: 0;
  background: var(--white);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 0;
  height: 44px;
  -moz-appearance: textfield;
}
.rsvp__guests-stepper input[type="number"]::-webkit-outer-spin-button,
.rsvp__guests-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Errors ── */
.rsvp__error {
  font-size: 0.72rem;
  color: #c0392b;
  display: none;
  margin-top: -0.2rem;
}
.rsvp__error.visible { display: block; }

/* ── Submit button ── */
.rsvp__submit {
  align-self: flex-start;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
  font-size: 0.78rem;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
}
.rsvp__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.rsvp__submit .spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success state ── */
.rsvp__success {
  max-width: 480px;
  margin: 0 auto 3rem;
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
}

.rsvp__success-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}

.rsvp__success h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}

.rsvp__success p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ── Guest list ── */
.rsvp__list-wrapper {
  max-width: 560px;
  margin: 1rem auto 3rem;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.rsvp__list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: var(--cream-dark);
  border-bottom: 1px solid rgba(201,169,110,0.2);
}

.rsvp__list-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rsvp__list-title i { color: var(--gold); }

.rsvp__count {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.rsvp__list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}

.rsvp__list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(201,169,110,0.1);
  transition: background 0.2s;
}
.rsvp__list li:last-child { border-bottom: none; }
.rsvp__list li:hover { background: var(--cream); }

.rsvp__guest-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.rsvp__guest-info { flex: 1; }

.rsvp__guest-name {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--charcoal);
  display: block;
}

.rsvp__guest-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.1rem;
}

.rsvp__guest-status {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.rsvp__guest-status--yes {
  background: rgba(39,174,96,0.12);
  color: #27ae60;
}
.rsvp__guest-status--no {
  background: rgba(192,57,43,0.1);
  color: #c0392b;
}

.rsvp__list-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
  background: var(--dark-bg);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════
   ANIMATIONS — Scroll Reveal
   ════════════════════════════════════════ */

/* fade-in — hero initial animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s var(--transition) 0.3s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* reveal — sections */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* reveal-up — staggered children */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up:nth-child(1) { transition-delay: 0.1s; }
.reveal-up:nth-child(2) { transition-delay: 0.25s; }
.reveal-up:nth-child(3) { transition-delay: 0.4s; }
.reveal-up:nth-child(4) { transition-delay: 0.55s; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

@media (max-width: 600px) {
  .hero__date-block { gap: 1.2rem; }
  .hero__date-sep   { height: 32px; }

  .countdown { gap: 0.5rem; }
  .countdown__unit { min-width: 64px; }
  .countdown__sep  { display: none; }

  .story__timeline::before { display: none; }
  .story__step { flex-direction: column; align-items: center; text-align: center; }

  .details__card { max-width: 100%; }

  .closing__names { flex-direction: column; gap: 0.2em; }
}
