/* ============================================
   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);
}

/* ========== 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%;
  max-height: 55vh;
  overflow: hidden;
  position: relative;
}

.story-photo {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: contrast(1.02) saturate(1.05);
}

.story-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(253, 248, 240, 0.6) 80%,
    var(--cream) 100%
  );
}

.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(--text-dark);
  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(--text-muted);
}

/* ========== 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;
}

/* ========== 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;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .timeline-item {
    gap: 16px;
  }
}
