/* ============================================================
   Morgane & Paul — Wedding Website
   Elegant, minimal, fully responsive.
   ============================================================ */

:root {
  --cream: #fbf3e7;
  --cream-deep: #f0e1cf;
  --ink: #2b171b;
  --ink-soft: #614a4f;
  --sage: #7f1734;
  --sage-deep: #5c1027;
  --gold: var(--sage-deep);
  --champagne: #d9ac67;
  --line: #dfc7b4;
  --white: #fffaf4;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 10vw, 128px) 0; }
.section:nth-of-type(even) { background: var(--cream-deep); }

.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  text-align: center;
  line-height: 1.1;
  margin-bottom: clamp(36px, 6vw, 64px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.btn--dark { background: var(--sage-deep); color: #fff; }
.btn--dark:hover { background: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: calc(22px + env(safe-area-inset-top, 0px)) 0 22px;
}
.nav--scrolled {
  background: rgba(251, 243, 231, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 0 14px;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: #fff;
  transition: color .4s var(--ease);
}
.nav__brand span { color: var(--gold); }
.nav--scrolled .nav__brand { color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  transition: color .3s var(--ease);
}
.nav--scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  border: 1px solid rgba(255,255,255,.7);
  padding: 9px 22px;
  border-radius: var(--radius);
}
.nav--scrolled .nav__cta { border-color: var(--sage-deep); color: var(--sage-deep) !important; }
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.nav--scrolled .language-toggle,
.nav--open .language-toggle {
  border-color: var(--line);
  color: var(--ink-soft);
  background: rgba(255,250,244,.66);
}
.language-toggle__btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 6px 9px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.language-toggle__btn.is-active {
  background: var(--gold);
  color: #fff;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: #fff;
  transition: transform .35s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}
.nav--scrolled .nav__toggle span { background: var(--ink); }
.nav--open .nav__toggle span { background: var(--ink); }
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../assets/hart-house-watercolor.png") center/cover no-repeat;
  filter: saturate(.82) brightness(.82) contrast(.96);
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1.15); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 55% at 50% 46%, rgba(38,10,20,.62) 0%, rgba(38,10,20,.30) 55%, rgba(38,10,20,0) 100%),
    linear-gradient(180deg, rgba(38,10,20,.42) 0%, rgba(38,10,20,.30) 45%, rgba(38,10,20,.60) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 24px; }
.hero__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: .92;
  text-shadow: 0 2px 12px rgba(0,0,0,.32);
}
.hero__names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(38,10,20,.45), 0 8px 40px rgba(38,10,20,.35);
}
.hero__names span { display: inline-block; color: var(--champagne); font-style: italic; margin: 0 .1em; }
.hero__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: 8px;
  opacity: .95;
  text-shadow: 0 2px 14px rgba(0,0,0,.28);
}
.hero__meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.28);
}
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 5vw, 44px);
  margin: 40px 0 36px;
}
.countdown__item { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.countdown__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 16px rgba(0,0,0,.28);
}
.countdown__label {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: .85;
  text-shadow: 0 2px 10px rgba(0,0,0,.24);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%;
  width: 3px; height: 7px; border-radius: 3px;
  background: #fff;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* ============================================================
   SWAN MARK (small crest only — never a page graphic)
   ============================================================ */
.swan-mark {
  display: block;
  width: 28px;
  height: 24px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../assets/swans.svg") center / contain no-repeat;
  mask: url("../assets/swans.svg") center / contain no-repeat;
}
.nav__mark { color: var(--gold); }
.nav--scrolled .nav__mark,
.nav--open .nav__mark { color: var(--sage); }
.footer__mark {
  width: 40px;
  height: 34px;
  margin: 0 auto 16px;
  color: var(--white);
}

/* ============================================================
   STORY
   ============================================================ */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.story__img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 28px 64px rgba(43,23,27,.20);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.story__text .section__eyebrow,
.story__text .section__title { text-align: left; }
.story__text .section__title { margin-bottom: 20px; }
.story__text p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1.05rem; }
.story__text .story__lead {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 22px;
}
.story__sign { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); }

/* ============================================================
   CARDS (Details / Travel)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.travel__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,.10); }
.card__icon {
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.card__lead { font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.card p { color: var(--ink-soft); }
.card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.card__link:hover { border-color: var(--sage-deep); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 18px 0;
  align-items: baseline;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px; top: 26px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--cream);
}
.section:nth-of-type(even) .timeline__item::before { box-shadow: 0 0 0 4px var(--cream-deep); }
.timeline__time {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--sage-deep);
  font-weight: 500;
}
.timeline__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 6px; }
.timeline__body p { color: var(--ink-soft); margin-bottom: 8px; }
.timeline__body p:last-child { margin-bottom: 0; }
.timeline__note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  opacity: .8;
  position: relative;
  padding-left: 14px;
}
.timeline__note::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .7;
}

/* ============================================================
   LIVE STREAM & RSVP (centered CTA blocks)
   ============================================================ */
.livestream__inner, .rsvp__inner { max-width: 640px; text-align: center; }
.livestream__inner p, .rsvp__inner p { color: var(--ink-soft); margin-bottom: 28px; }
.rsvp__contact { margin-top: 26px; font-size: 0.95rem; overflow-wrap: anywhere; }
.rsvp__contact a { color: var(--sage-deep); border-bottom: 1px solid var(--line); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(0deg, rgba(43,23,27,.85) 0%, rgba(43,23,27,0) 100%);
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-within .gallery__caption { opacity: 1; transform: none; }
.gallery__cta { text-align: center; margin-top: 44px; }
.gallery__cta p { color: var(--ink-soft); margin-bottom: 22px; }

/* ============================================================
   FAQ / ACCORDION
   ============================================================ */
.faq__container { max-width: 940px; }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: start;
}
.accordion__item {
  border-bottom: 1px solid var(--line);
  padding: 2px 0;
}
.accordion__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  position: relative;
  transition: color .3s var(--ease);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform .3s var(--ease);
}
.accordion__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion__item summary:hover { color: var(--sage-deep); }
.accordion__item p {
  padding: 0 36px 18px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.accordion__item p a { color: var(--sage-deep); border-bottom: 1px solid var(--line); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--sage-deep);
  color: var(--cream);
  text-align: center;
  padding: clamp(48px, 8vw, 64px) 0 calc(48px + env(safe-area-inset-bottom, 0px));
}
.footer__names { font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 2.2rem); }
.footer__names span { color: var(--white); font-style: italic; }
.footer__date {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 2.5vw, 0.82rem);
  margin: 12px 0 20px;
  opacity: .8;
  line-height: 1.5;
}
.footer__credit { font-style: italic; font-family: var(--serif); font-size: clamp(1rem, 3.5vw, 1.1rem); opacity: .85; }
.footer__contact {
  margin-top: 18px;
  font-size: 0.92rem;
  opacity: .85;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.footer__contact a { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .45); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav__toggle { display: flex; }
  .nav__right { gap: 10px; }
  .nav__brand { font-size: 1.35rem; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh; height: 100svh;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    box-shadow: -12px 0 40px rgba(0,0,0,.12);
  }
  .nav--open .nav__links { transform: translateX(0); }
  .nav__links a { color: var(--ink) !important; font-size: 1rem; }
  .nav__cta { border-color: var(--sage-deep); color: var(--sage-deep) !important; }

  .cards,
  .travel__cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  /* 9 photos leaves a lone last photo on its own row in a 2-column
     grid — hide it here so mobile/tablet ends on a full row of 2.
     Desktop keeps all 9 in its 3-column grid. */
  .gallery__item:last-child { display: none; }

  .story__grid { grid-template-columns: 1fr; }
  .story__img { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: clamp(52px, 9vw, 96px) 0; }
  .section__eyebrow { letter-spacing: 0.28em; }
  .card { padding: 32px 24px; }
  .timeline { padding-left: 22px; }
  .timeline__item { grid-template-columns: 108px 1fr; gap: 16px; }
  .faq__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section__eyebrow { letter-spacing: 0.22em; font-size: 0.72rem; }
  .hero__content { padding: 0 16px calc(72px + env(safe-area-inset-bottom, 0px)); }
  .hero__meta { font-size: 0.72rem; gap: 8px; letter-spacing: 0.12em; }
  .countdown { gap: 10px; margin: 32px 0 28px; }
  .countdown__item { min-width: 0; }
  .countdown__label { letter-spacing: 0.16em; font-size: 0.6rem; }
  .timeline { padding-left: 0; }
  .timeline::before { left: 3px; }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0 16px 20px;
  }
  .timeline__item::before {
    left: -1px;
    top: 22px;
  }
  .timeline__time { font-size: 1.05rem; }
  .timeline__body h3 { font-size: 1.2rem; }
  .btn {
    padding: 15px 28px;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  .livestream__inner .btn,
  .rsvp__inner .btn { display: block; margin: 0 auto; }
  .gallery__grid { gap: 10px; }
  .nav__inner { padding: 0 16px; }
  .nav__brand { font-size: 1.25rem; gap: 8px; }
}

@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
  .gallery__item:hover img { transform: none; }
}

/* ==========================================================================
   Petals — a continuous drift of blossom over the whole page
   ========================================================================== */
.petals {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petals--back { z-index: 4; }
.petals--front { z-index: 5; }

.petal {
  position: absolute;
  top: var(--top, -14vmin);
  width: var(--size);
  will-change: transform, opacity;
  animation: petal-fall var(--dur) cubic-bezier(0.3, 0.1, 0.5, 0.95) var(--delay) both;
}

.petal svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
  animation: petal-sway var(--sway) ease-in-out var(--delay) infinite alternate;
}

@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  4% { opacity: var(--peak); }
  80% { opacity: var(--peak); }
  100% { transform: translate3d(var(--drift), 128vh, 0) rotate(var(--spin)); opacity: 0; }
}

@keyframes petal-sway {
  from { transform: translateX(-1.1em) rotate(-16deg) scaleX(0.82); }
  to { transform: translateX(1.1em) rotate(18deg) scaleX(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
