:root {
  --teal: #649e93;
  --teal-dark: #1e7b67;
  --ink: #575757;
  --pale: #f2fbf9;
  --white: #fff;
  --script: "Great Vibes", cursive;
  --sans: "Dosis", sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover, a:focus-visible { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 30px), var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader-heart {
  color: var(--teal);
  font-size: 84px;
  line-height: 1;
  animation: heartbeat 1s ease-in-out infinite;
}
@keyframes heartbeat { 0%,100% { transform: scale(.82); } 45% { transform: scale(1); } }

.site-header {
  position: absolute;
  top: 0; left: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.navigation {
  min-height: 100px;
  background: rgba(255,255,255,.06);
  transition: background .45s ease, box-shadow .45s ease, min-height .45s ease;
}
.site-header.is-sticky {
  position: fixed;
  border: 0;
  animation: navDrop .75s both;
}
.site-header.is-sticky .navigation {
  min-height: 78px;
  background: var(--teal-dark);
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
}
@keyframes navDrop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-container {
  width: min(calc(100% - 30px), var(--container));
  min-height: inherit;
  margin: auto;
  display: flex;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: var(--script);
  font-size: 35px;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,.6);
  white-space: nowrap;
}
.brand:hover, .brand:focus-visible { color: #fff; }
.brand-heart { margin: 0 .22em; font-family: serif; font-size: .72em; }
.menu-panel { margin-left: auto; }
.menu-list { display: flex; align-items: center; gap: 38px; margin: 0; padding: 0; list-style: none; }
.menu-list a { display: block; color: #fff; font-weight: 500; font-size: 18px; }
.menu-list a:hover, .menu-list a:focus-visible { color: #dff4ef; }
.menu-toggle, .menu-close { display: none; }
.site-search { position: relative; margin-left: 28px; }
.search-toggle {
  display: grid;
  place-items: center;
  width: 36px; height: 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.search-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.search-form {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .25s ease;
}
.search-form.is-open { opacity: 1; visibility: visible; transform: none; }
.search-form input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #ddd; outline-color: var(--teal); }

.hero { position: relative; height: 100vh; min-height: 850px; overflow: hidden; background: #243b36; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1);
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; animation: kenBurns 8s linear forwards; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.045); } }
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,.57); }
.hero-content { position: relative; z-index: 2; height: 100%; display: grid; place-items: center; padding-top: 75px; }
.heart-panel {
  width: min(610px, 58vw);
  aspect-ratio: 547 / 466;
  padding: 25% 12% 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("../assets/images/cercle.png") center / contain no-repeat;
  color: #fff;
  text-align: center;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,.18));
}
.heart-panel p { margin: 0 0 5px; font-size: 28px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.heart-panel h1 { margin: 0; font-family: var(--script); font-size: clamp(54px, 4vw, 76px); line-height: 1.14; font-weight: 400; }
.heart-panel time { font-size: 30px; }
.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(127,214,195,.3);
  border: 5px solid transparent;
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transform: translateY(-50%);
  transition: background .25s, opacity .25s;
}
.hero-arrow:hover { background: rgba(100,158,147,.85); opacity: 1; }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots { display: none; }

.section-pad-top { padding-top: 100px; }
.countdown-inner {
  width: min(calc(100% - 30px), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
  color: #fff;
  background: var(--teal);
  background-image: linear-gradient(rgba(94,154,141,.9), rgba(94,154,141,.9)), url("../assets/images/coundown-bg.jpg");
  background-position: center;
  background-size: cover;
}
.countdown-title { display: grid; place-items: center; padding: 16px 20px; text-align: center; }
.countdown-title h2 { margin: 0; font-family: var(--script); font-size: 45px; line-height: 1; font-weight: 400; }
.countdown-title h2 span { display: block; margin-bottom: .55em; font-family: var(--sans); font-size: 24px; }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2%; padding: 14px 20px 20px; background: rgba(57,126,113,.28); }
.clock-box { display: grid; place-content: center; min-height: 138px; border: 1px solid rgba(255,255,255,.25); text-align: center; }
.clock-box strong { font-family: var(--script); font-size: 60px; line-height: 1; font-weight: 600; }
.clock-box span { font-size: 14px; text-transform: uppercase; }

.couple-section { padding: 100px 0; }
.section-title { text-align: center; }
.section-title h2 {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 48px;
  color: var(--teal);
  font-family: var(--script);
  font-size: 55px;
  line-height: 1.2;
  font-weight: 400;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%;
  width: 230px; height: 59px;
  background: url("../assets/images/title-bg.png") center / contain no-repeat;
  transform: translateX(-50%);
}
.couple-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 30px; padding-top: 20px; }
.person-card, .couple-portrait { margin: 0; overflow: hidden; }
.person-card { margin-top: 30px; background: var(--pale); text-align: center; }
.person-card > img { width: 100%; aspect-ratio: 1 / .96; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.person-card:hover > img { transform: scale(1.035); }
.person-copy { padding: 12px 18px 20px; }
.person-copy h3 { margin: 0; color: #5e9a8e; font-size: 21px; font-weight: 500; }
.person-copy p { margin: 5px 0 10px; line-height: 1.65; }
.social-link {
  display: inline-grid; place-items: center;
  width: 29px; height: 29px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 14px; font-weight: 700;
}
.couple-portrait img { width: 100%; height: 595px; object-fit: cover; object-position: center top; }

.parallax-section { position: relative; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }
.welcome-section { min-height: 535px; padding: 70px 0 90px; background-image: url("../assets/images/imagenew.jpg"); }
.welcome-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.81), rgba(69,110,102,.89)); }
.welcome-content { position: relative; color: #fff; text-align: center; }
.welcome-content h2 { margin: 0; font-family: var(--script); font-size: 55px; font-weight: 400; line-height: 1.2; }
.welcome-content p { max-width: 700px; margin: 0 auto; padding: 20px 20px 30px; font-size: 18px; }
.button-row { display: flex; justify-content: center; gap: 24px; }
.pill-button { min-width: 220px; padding: 10px 38px; color: var(--teal); background: #fff; border-radius: 50px; font-size: 18px; font-weight: 600; transition: .3s; }
.pill-button:hover { color: #fff; background: #3f7267; }

.event-section { min-height: 797px; padding: 110px 0 60px; }
.event-card { display: grid; grid-template-columns: 1fr 1fr; margin-top: 42px; background: #f5fbfb; }
.event-image img { width: 100%; height: 100%; min-height: 425px; object-fit: cover; }
.event-copy { padding: 44px 38px; }
.event-copy h2 { margin: 0 0 15px; color: var(--teal); font-size: 25px; font-weight: 500; }
.event-copy p { margin: 10px 0 18px; }
.event-line { margin: 3px 0 !important; font-size: 16px; }
.event-line span { display: inline-block; min-width: 20px; color: #9cc5be; }
.text-link { font-size: 18px; font-weight: 600; }

.rsvp-section { min-height: 982px; padding: 100px 15px; background-image: url("../assets/images/contact-bg.jpg"); }
.rsvp-overlay { position: absolute; inset: 0; background: rgba(100,158,147,.62); }
.rsvp-card { position: relative; width: min(745px, 100%); margin: 0 auto; padding: 60px 70px 70px; background: rgba(255,255,255,.91); }
.contact-title { text-align: center; }
.contact-title h2 { margin: 0 0 25px; color: var(--teal); font-family: var(--script); font-size: 50px; line-height: 1.2; font-weight: 400; }
.contact-title p { margin: 0 0 28px; color: #5a5858; font-size: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  margin-top: 20px;
  color: #666;
  background: #fff;
  border: 0;
  border-radius: 5px;
  outline: 2px solid transparent;
  transition: outline-color .2s;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { outline-color: rgba(100,158,147,.55); }
.rsvp-form input, .rsvp-form select { height: 50px; padding: 0 12px; }
.rsvp-form select { appearance: none; background: #fff url("../assets/images/select-icon.png") no-repeat calc(100% - 15px) center; }
.rsvp-form textarea { height: 170px; padding: 12px; resize: vertical; }
.submit-button { display: block; margin: 42px auto 0; padding: 9px 21px; color: #fff; background: var(--teal); border: 0; border-radius: 5px; font-weight: 600; cursor: pointer; transition: .3s; }
.submit-button:hover { background: #18826b; }
.form-status { min-height: 1.7em; margin: 16px 0 0; color: var(--teal-dark); text-align: center; font-weight: 600; }

.gift-section { min-height: 690px; padding: 100px 0 55px; text-align: center; }
.gift-copy { max-width: 900px; margin: -10px auto 0; }
.gift-copy p { margin: 22px auto; }
.gift-copy .ampersands { margin: 28px auto; font-size: 20px; }
.gift-logos { display: grid; grid-template-columns: repeat(3, 150px); justify-content: center; align-items: center; gap: 42px; margin-top: 62px; }
.gift-logos a { display: grid; place-items: center; height: 70px; }
.gift-logos img { max-width: 130px; max-height: 58px; width: auto; filter: grayscale(1); opacity: .75; transition: .3s; }
.gift-logos a:hover img { filter: grayscale(0); opacity: 1; }

.thanks-section { min-height: 454px; display: grid; place-items: center; padding: 100px 15px; background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("../assets/images/blog-2.jpg") center / auto repeat; }
.thanks-card { position: relative; padding: 42px 80px; color: #fff; background: rgba(94,154,142,.58); text-align: center; }
.thanks-card::before { content: ""; position: absolute; inset: -7px -9px; border: 1px solid rgba(255,255,255,.45); }
.thanks-card h2 { position: relative; margin: 0; font-family: var(--script); font-size: 80px; line-height: 1.15; font-weight: 400; }
.thanks-card p { position: relative; margin: 5px 0 0; font-size: 24px; }
.site-footer { min-height: 1px; }
.back-to-top {
  position: fixed;
  right: 15px; bottom: 14px;
  z-index: 50;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 3px;
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}
.back-to-top.is-visible { opacity: .9; visibility: visible; }
.back-to-top:hover { color: #fff; background: var(--teal-dark); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .parallax-section { background-attachment: scroll; }
}

@media (max-width: 991px) {
  .site-header { position: absolute; border: 0; background: #fff; }
  .site-header.is-sticky { position: fixed; }
  .navigation, .site-header.is-sticky .navigation { min-height: 80px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
  .brand { margin: auto; color: var(--teal); font-size: 32px; text-shadow: none; }
  .brand:hover, .brand:focus-visible { color: var(--teal); }
  .menu-toggle {
    position: absolute;
    right: 15px; top: 20px;
    display: block;
    width: 42px; height: 42px;
    padding: 11px 10px;
    background: var(--teal);
    border: 0; border-radius: 50%;
    cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; margin: 4px 0; background: #fff; }
  .menu-panel {
    position: fixed;
    top: 0; right: -310px;
    z-index: 1100;
    width: 280px; height: 100vh;
    padding-top: 58px;
    background: #fff;
    border-left: 1px solid #ccc;
    transition: right .45s ease;
  }
  .menu-panel.is-open { right: 0; box-shadow: -12px 0 30px rgba(0,0,0,.12); }
  .menu-list { display: block; }
  .menu-list li { border-bottom: 1px solid #f2f2f2; }
  .menu-list a { padding: 12px 20px 12px 35px; color: #111; font-size: 14px; font-weight: 600; }
  .menu-close {
    position: absolute;
    top: 10px; left: -18px;
    display: grid; place-items: center;
    width: 36px; height: 36px;
    color: #fff; background: var(--teal);
    border: 0; border-radius: 50%;
    font-size: 25px; line-height: 1; cursor: pointer;
  }
  .site-search { display: none; }
  .hero, .hero-slide { min-height: 600px; }
  .hero { margin-top: 80px; height: calc(100vh - 80px); }
  .hero-content { padding-top: 0; }
  .heart-panel { width: min(560px, 68vw); }
  .heart-panel p { font-size: 21px; }
  .heart-panel h1 { font-size: 58px; }
  .heart-panel time { font-size: 25px; }
  .countdown-inner { grid-template-columns: 1fr; }
  .countdown-title { min-height: 150px; }
  .couple-grid { grid-template-columns: 1fr 1fr; }
  .couple-portrait { display: none; }
  .event-section { padding-top: 80px; }
  .parallax-section { background-attachment: scroll; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { width: min(calc(100% - 38px), var(--container)); }
  .brand { font-size: 32px; }
  .hero { min-height: 600px; height: calc(100vh - 80px); }
  .hero-slide { min-height: 600px; }
  .hero-slide:first-child { background-position: 55% center; }
  .heart-panel { width: min(360px, 92vw); padding-inline: 10%; }
  .heart-panel p { font-size: 18px; }
  .heart-panel h1 { font-size: 48px; }
  .heart-panel time { font-size: 22px; }
  .hero-arrow { display: none; }
  .hero-dots { position: absolute; z-index: 3; bottom: 17px; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
  .hero-dots button { width: 8px; height: 8px; padding: 0; background: rgba(255,255,255,.55); border: 0; border-radius: 50%; }
  .hero-dots button.is-active { background: #fff; }
  .section-pad-top { padding-top: 80px; }
  .countdown-inner { width: calc(100% - 38px); }
  .countdown-title h2 { font-size: 42px; }
  .clock { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .clock-box { min-height: 112px; }
  .clock-box strong { font-size: 46px; }
  .couple-section { padding: 80px 0; }
  .section-title h2 { font-size: 44px; }
  .couple-grid { grid-template-columns: 1fr; gap: 35px; }
  .person-card { margin-top: 0; }
  .person-card > img { aspect-ratio: auto; }
  .welcome-section { padding: 70px 0; }
  .welcome-content h2 { font-size: 44px; }
  .welcome-content p { padding-inline: 0; font-size: 16px; }
  .button-row { flex-direction: column; align-items: center; gap: 14px; }
  .pill-button { min-width: 235px; }
  .event-section { min-height: 0; padding: 80px 0 40px; }
  .event-card { grid-template-columns: 1fr; margin-top: 30px; }
  .event-image img { min-height: 0; aspect-ratio: 1.42 / 1; }
  .event-copy { padding: 28px 24px 36px; }
  .event-copy h2 { font-size: 22px; }
  .rsvp-section { min-height: 0; padding: 80px 19px; }
  .rsvp-card { padding: 55px 24px 50px; }
  .contact-title h2 { font-size: 42px; }
  .contact-title p { font-size: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .rsvp-form textarea { height: 150px; }
  .gift-section { padding: 80px 0 45px; }
  .gift-logos { grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 45px; }
  .gift-logos img { max-width: 92px; max-height: 45px; }
  .thanks-section { min-height: 410px; padding-inline: 26px; }
  .thanks-card { width: 100%; padding: 38px 20px; }
  .thanks-card h2 { font-size: 58px; }
  .thanks-card p { font-size: 18px; }
}

@media (max-width: 420px) {
  .heart-panel { width: 354px; max-width: 96vw; }
  .heart-panel p { font-size: 17px; }
  .heart-panel h1 { font-size: 45px; }
  .section-title h2 { font-size: 42px; }
}
