/* ===== Fonts ===== */
@font-face {
  font-family: 'Glum';
  src: url('../fonts/glum.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Base ===== */
:root {
  --ivory: #faf7f2;
  --cream: #f3ede3;
  --charcoal: #3a3733;
  --gold: #b89f6a;
  --gold-soft: #d6c69d;
  --rose: #c9a9a6;
  --font-script: 'Glum', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

/* ===== Shared ===== */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.serif-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.script-heading {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  color: var(--charcoal);
}

.script-heading .weds {
  font-size: 0.55em;
  color: var(--gold);
}

.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto;
  color: var(--gold);
}

.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  width: min(90px, 20vw);
  background: var(--gold-soft);
}

.flourish.light { color: #fff; }
.flourish.light::before,
.flourish.light::after { background: rgba(255, 255, 255, 0.6); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline {
  color: var(--charcoal);
  border: 1px solid var(--gold);
  background: transparent;
}

.btn-outline:hover { background: var(--gold); color: #fff; }

.btn-solid {
  color: #fff;
  background: var(--gold);
  border: 1px solid var(--gold);
}

.btn-solid:hover { background: var(--charcoal); border-color: var(--charcoal); }

/* ===== Hero ===== */
.hero-media {
  position: relative;
  max-width: 1800px;
  margin: 0 auto;
}

.hero-media img {
  width: 100%;
  height: min(92vh, 1100px);
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 22, 30, 0.25), rgba(20, 22, 30, 0.55));
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 1.5rem;
}

.hero-kicker {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-para {
  max-width: 560px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.btn-hero {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(20, 22, 30, 0.25);
  backdrop-filter: blur(4px);
}

.btn-hero:hover { background: var(--gold); border-color: var(--gold); }

/* ===== Date section ===== */
.date-section { padding-bottom: 3rem; }

.big-date {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* ===== Countdown ===== */
.countdown-section {
  background: var(--cream);
  max-width: none;
}

.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  margin-top: 2rem;
}

.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
}

.count-num {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1;
  color: var(--charcoal);
}

.count-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

.count-sep {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold-soft);
}

.countdown-note {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c766c;
}

/* ===== Our Story ===== */
.story-section { max-width: 1000px; }

.story-chapter {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  text-align: left;
  margin-top: 3.5rem;
}

.story-chapter.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
.story-chapter.reverse .story-photo { order: 2; }
.story-chapter.reverse .story-text { order: 1; }

.story-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
  box-shadow: 0 14px 40px rgba(58, 55, 51, 0.18);
}

/* Framing tweaks so faces sit well inside the square crop */
.story-photo.focus-low img { object-position: center 72%; }
.story-photo.focus-high img { object-position: center 32%; }

.chapter-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.chapter-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.chapter-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-soft);
  margin-top: 0.9rem;
  margin-bottom: 1.3rem;
}

.story-text p + p { margin-top: 1rem; }

/* ===== Details ===== */
.details-section {
  background: var(--cream);
  max-width: none;
}

.details-date {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.detail-card {
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  padding: 2.2rem 1.8rem;
}

.detail-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.detail-venue {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
}

.detail-area { color: #7c766c; letter-spacing: 0.08em; }

.detail-address { margin-top: 0.4rem; color: #7c766c; font-size: 0.85rem; line-height: 1.5; }

.detail-time { margin: 0.9rem 0 1.4rem; font-style: italic; font-family: var(--font-serif); font-size: 1.05rem; }

.details-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-note {
  font-size: 0.72em;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.details-notice {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #9a938a;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 2.2rem;
}

.footer-date {
  font-family: var(--font-serif);
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 0.3rem;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 28, 25, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay[hidden] { display: none; }

.modal-overlay.open { opacity: 1; }

.modal {
  position: relative;
  background: var(--ivory);
  border-radius: 4px;
  max-width: 430px;
  width: 100%;
  padding: 3rem 2.2rem 2.6rem;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(14px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal .serif-heading { font-size: 1.5rem; }

.modal p + p { margin-top: 0.6rem; }

.modal-subtitle {
  margin-top: 0.35rem !important;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-contacts {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.modal-contacts li + li { margin-top: 0.9rem; }

.contact-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a938a;
}

.contact-tel {
  display: inline-block;
  margin-top: 0.15rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--gold);
  text-decoration: none;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #9a938a;
  cursor: pointer;
}

.modal-close:hover { color: var(--charcoal); }

/* ===== Fade-in on scroll ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .section { padding: 3.5rem 1.25rem; }

  .story-chapter,
  .story-chapter.reverse {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
    margin-top: 3rem;
  }

  .story-chapter.reverse .story-photo { order: 0; }
  .story-chapter.reverse .story-text { order: 0; }

  .story-photo { max-width: 340px; margin: 0 auto; }

  .chapter-title::after { margin-left: auto; margin-right: auto; }

  .hero-media img { height: 78vh; }
}
