/* ============================================
   PRESENTATION WEBSITE — Custom Stylesheet
   Load AFTER Tailwind CDN so these can override.
   ============================================ */

/* ---------- CSS Variables (single source of truth) ---------- */
:root {
  /* palette */
  --bordeaux: #6b2737;
  --bordeaux-deep: #4a1a27;
  --bordeaux-muted: #7d3347;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --gold-dim: rgba(201, 169, 110, 0.4);
  --cream: #fdf8f0;
  --cream-warm: #f5ede0;
  --text-dark: #2c1810;
  --text-muted: #6b5b4e;
  --blush: #e8c4b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Josefin Sans", sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--cream);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.section-title--light {
  color: var(--bordeaux);
}

.section-subtitle {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-subtitle--light {
  color: var(--text-muted);
}

/* ========== STICKY NAVBAR (appears after hero) ========== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: rgba(74, 26, 39, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}
.sticky-nav.show {
  transform: translateY(0);
}

.sticky-nav a {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  padding: 4px 20px;
  transition: color 0.3s ease;
}
.sticky-nav a:hover {
  color: #fff;
}
.sticky-nav .nav-bow {
  font-family: "Great Vibes", cursive;
  font-size: 20px;
  color: var(--gold);
  opacity: 0.6;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 20px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  margin: 5px 0;
}

/* ========== HERO WITH BORDEAUX FRAME ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bordeaux-deep);
  padding: 40px 20px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(201, 169, 110, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(201, 169, 110, 0.04) 0%,
      transparent 50%
    );
}

/* The bordeaux frame with photo */
.hero-frame {
  position: relative;
  z-index: 2;
  width: min(88vw, 2048px);
  aspect-ratio: 4/5;
  max-height: 90dvh;
  box-shadow:
    0 0 0 1px var(--gold-dim),
    inset 0 0 0 1px var(--gold-dim),
    0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.1);
}

/* Text overlay on the photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.15) 30%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  padding: 40px;
  text-align: center;
}

.hero-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(52px, 10vw, 100px);
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeUp 1.2s ease 0.4s forwards;
}

.hero-amp {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 4vw, 36px);
  color: var(--gold-light);
  margin: 2px 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: clamp(9px, 1.2vw, 12px);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 24px;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-cta {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--gold);
  margin-top: 8px;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

/* Side text on the frame */
.hero-side-text {
  position: absolute;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dim);
  writing-mode: vertical-rl;
  z-index: 3;
}

.hero-side-left {
  left: -28px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}

.hero-side-right {
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========== INLINE NAVBAR (below hero, inside bordeaux area) ========== */
.inline-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 20px;
  width: min(88vw, 780px);
  flex-wrap: wrap;
}

.inline-nav a {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  position: relative;
  padding: 2px 0;
  transition: color 0.3s ease;
}

.inline-nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
}

.inline-nav a:hover {
  color: #fff;
}

.nav-logo {
  width: 36px;
  height: auto;
  opacity: 0.6;
}

.nav-bow {
  font-family: "Great Vibes", cursive;
  font-size: 24px;
  color: var(--gold);
  opacity: 0.7;
  line-height: 1;
}

/* ========== QUOTE + WIDE PHOTO SECTION ========== */
.story-section {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

.story-photo-wrapper {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  position: absolute;
  inset: 0;
}

.story-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.02) saturate(1.05);
}

.story-photo-overlay {
  position: absolute;
  top: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.story-text {
  z-index: 2;
  max-width: 680px;
  margin: 60px auto 0;
  padding: 0 30px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--cream);
  line-height: 1.8;
}

.story-text p + p {
  margin-top: 1em;
}

.story-quote-block {
  position: relative;
  max-width: 700px;
  margin: 60px auto 0;
  padding: 0 30px 80px;
  text-align: center;
  z-index: 2;
}

.story-quote {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 24px);
  color: var(--cream);
  line-height: 1.7;
  margin-bottom: 24px;
}

.story-author {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
}

/* ========== COUNTDOWN ========== */
.countdown-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--bordeaux-deep);
  position: relative;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.countdown-item {
  text-align: center;
  min-width: 90px;
}
.countdown-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}
.countdown-label {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}
.countdown-separator {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  color: var(--gold-dim);
  align-self: flex-start;
  padding-top: 8px;
}

/* ========== DATE & DETAILS ========== */
.details-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--bordeaux-deep);
  position: relative;
  margin-top: -1px;
}

.section-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--cream);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.section-title--light {
  color: var(--bordeaux);
}

.section-subtitle {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 16px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-subtitle--light {
  color: var(--text-muted);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.detail-item {
  text-align: center;
}

.detail-icon {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 16px;
}

.detail-label {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.detail-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.5;
}

/* ========== TIMELINE ========== */
.timeline-section {
  padding: 100px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold-light),
    transparent
  );
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
}

.timeline-left,
.timeline-right {
  /* border: 1px solid var(--gold-light); */
  padding: 16px 20px;
  text-align: center;
}

.timeline-left {
  border-radius: 4px;
}

.timeline-right {
  border-radius: 4px;
}

.timeline-time {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2px;
}

.timeline-time-label {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-place {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 2px;
}

.timeline-place-sub {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ========== RSVP ========== */
.rsvp-section {
  padding: 100px 20px;
  background: var(--cream-warm);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rsvp-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 30px;
}
.form-label {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  color: var(--text-dark);
  background: transparent;
  border: 1px solid var(--gold-light);
  border-radius: 0;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--blush);
  font-style: italic;
}
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  color: var(--text-dark);
  transition: color 0.3s ease;
}
.radio-label:hover {
  color: var(--bordeaux);
}
.radio-input {
  display: none;
}
.radio-custom {
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}
.radio-custom::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.radio-input:checked + .radio-custom {
  border-color: var(--gold);
}
.radio-input:checked + .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}

.number-control {
  display: flex;
  align-items: center;
  gap: 20px;
}
.number-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-light);
  background: transparent;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.number-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
}
.number-display {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--bordeaux);
  min-width: 40px;
  text-align: center;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 18px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--bordeaux);
  border: 1px solid var(--bordeaux);
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bordeaux-deep), var(--bordeaux));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.submit-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(107, 39, 55, 0.3);
}
.submit-btn:hover::before {
  opacity: 1;
}
.submit-btn span {
  position: relative;
  z-index: 1;
}

.success-message {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.success-message.show {
  display: block;
  animation: fadeUp 0.6s ease;
}
.success-icon {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 20px;
}
.success-title {
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  color: var(--bordeaux);
  margin-bottom: 12px;
}
.success-text {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 70px 20px;
  text-align: center;
  background: var(--bordeaux-deep);
}

.footer-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(30px, 5vw, 44px);
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-msg {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.footer-ornament {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 10px;
  opacity: 0.5;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    padding: 24px 12px 0;
  }
  .hero-frame {
    width: 94vw;
  }
  .inline-nav {
    width: 94vw;
    gap: 18px;
    padding: 20px 10px;
  }
  .inline-nav a {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .sticky-nav {
    gap: 16px;
  }
  .sticky-nav a {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .sticky-nav .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(74, 26, 39, 0.97);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 18px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  }
  .sticky-nav .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .timeline-item {
    gap: 16px;
  }
  .radio-group {
    flex-direction: column;
    gap: 14px;
  }
}
