/* =====================================================================
   Cover in the EverVow "Emerald Garden" style: painted peonies and leaves
   framing an ivory page, names in spaced capitals with a gold ampersand,
   a wide couple photo and a gold-ruled countdown.
   Loaded after styles.css, so these rules win.
   ===================================================================== */
body {
  position: relative;
}
/* Botanical strips down both page edges at the top of the page. */
body::before,
body::after {
  content: '';
  position: absolute;
  z-index: 30;
  top: 0;
  height: 1500px;
  width: clamp(26px, 4vw, 60px);
  pointer-events: none;
  background: url('images/botanicals.webp') no-repeat;
  background-size: max(100vw, 1200px) auto;
}
body::before {
  left: 0;
  background-position: left top;
}
body::after {
  right: 0;
  background-position: right top;
}

/* ---------- menu: links either side of a monogram in a ring ---------- */
.nav {
  position: relative;
  z-index: 25;
  justify-content: center;
  min-height: 88px;
  /* Links stay in the middle, between the two flower corners. */
  padding: 10px clamp(190px, 22vw, 400px);
  background: transparent;
  box-shadow: none;
}
/* Corner flowers, painted behind the menu so nothing cuts them off. */
.nav::before,
.nav::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  width: clamp(200px, 25vw, 380px);
  height: 340px;
  pointer-events: none;
  background: url('images/botanicals.webp') no-repeat;
  background-size: max(100vw, 1200px) auto;
}
.nav::before {
  left: 0;
  background-position: left top;
}
.nav::after {
  right: 0;
  background-position: right top;
}
/* Fade the flowers out softly towards the middle and the bottom, so no straight edge shows. */
.nav::before,
.nav::after {
  -webkit-mask-image: linear-gradient(var(--fade-x), #000 50%, transparent 98%), linear-gradient(to bottom, #000 55%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(var(--fade-x), #000 50%, transparent 98%), linear-gradient(to bottom, #000 55%, transparent 98%);
  mask-composite: intersect;
}
.nav::before {
  --fade-x: to right;
}
.nav::after {
  --fade-x: to left;
}
/* After the cover: a slim menu pinned to the top. */
.nav.pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 64px;
  padding: 6px clamp(70px, 9vw, 160px);
  background: rgb(250 248 241 / 0.97);
  box-shadow: 0 1px 0 rgb(185 152 78 / 0.3), 0 8px 24px rgb(23 60 42 / 0.06);
  animation: nav-in 0.3s ease both;
}
.nav.pinned::before,
.nav.pinned::after {
  display: none;
}
.nav.pinned .nav-monogram {
  width: 50px;
  height: 50px;
  font-size: 0.9rem !important;
}
@keyframes nav-in {
  from {
    transform: translateY(-100%);
  }
}
.nav-mark {
  display: none;
}
.nav-links {
  width: 100%;
  max-width: 1100px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}
.nav-monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgb(185 152 78 / 0.55) !important;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgb(23 60 42 / 0.25);
  font-family: var(--serif);
  font-size: 1.1rem !important;
  letter-spacing: 0.06em !important;
  color: var(--forest);
  padding: 0 !important;
}
.nav-monogram:hover {
  border-color: var(--gold) !important;
}
.nav-rsvp {
  padding: 9px 18px !important;
  border: 1px solid var(--gold) !important;
  color: #9a7a35 !important;
}
.nav-rsvp:hover {
  background: var(--gold);
  color: #fff !important;
}

/* ---------- the cover ---------- */
.cover {
  position: relative;
  padding: 0 clamp(34px, 4.7vw, 75px);
  background: transparent;
  overflow: visible;
}
.cover-title {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(26px, 4vw, 44px) 20px clamp(24px, 3vw, 34px);
}
.cover .names {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--forest);
}
.cover .names .amp {
  font-style: italic;
  font-size: 0.85em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}
.cover-date {
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #314939;
}
.cover-date > span[aria-hidden] {
  margin: 0 0.5em;
  color: var(--gold);
}
.cover-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 2.38 / 1;
  max-height: clamp(320px, 60vh, 620px);
  width: 100%;
  overflow: hidden;
  background: var(--mist-soft);
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Over the darker curtain on the left, clear of the couple. */
.cover-welcome {
  position: absolute;
  left: 3%;
  bottom: 8%;
  display: grid;
  gap: 4px;
  width: min(27%, 320px);
  padding: 16px 14px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.6);
  background: linear-gradient(90deg, transparent, rgb(5 42 37 / 0.34), transparent);
}
.cover-welcome strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.7vw, 2.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cover-welcome small {
  font-size: clamp(0.56rem, 0.8vw, 0.78rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- countdown band with flowers in its lower corners ---------- */
.countdown-band {
  position: relative;
  isolation: isolate;
  padding: 30px clamp(150px, 24vw, 400px) 44px;
  text-align: center;
  background: var(--paper);
  color: var(--forest);
  overflow: hidden;
}
.countdown-band::before,
.countdown-band::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 0;
  width: clamp(200px, 24vw, 360px);
  height: 100%;
  pointer-events: none;
  background: url('images/botanicals.webp') no-repeat;
  background-size: 1100px auto;
}
.countdown-band::before {
  left: 0;
  background-position: left bottom;
}
.countdown-band::after {
  right: 0;
  background-position: right bottom;
}
.countdown-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #314939;
}
.countdown-label::before,
.countdown-label::after {
  content: '';
  width: 72px;
  height: 1px;
  background: var(--gold);
}
.countdown-band .countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 640px;
  margin: 20px auto 26px;
}
.countdown-band .countdown div {
  min-width: 0;
  border-left: 1px solid rgb(185 152 78 / 0.55);
}
.countdown-band .countdown div:first-child {
  border-left: 0;
}
.countdown-band .countdown b {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  color: var(--forest);
}
.countdown-band .countdown small {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
}
.btn-gold {
  background: transparent;
  color: #8a6c2c;
  border: 1px solid var(--gold);
  border-radius: 0;
}
.btn-gold:hover {
  background: var(--gold);
  color: #fff;
}

/* ---------- welcome beside the garden photo ---------- */
.welcome {
  text-align: left;
}
.welcome-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.welcome-copy {
  display: grid;
  gap: 18px;
}
@media (min-width: 820px) {
  .welcome-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(40px, 6vw, 90px);
  }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .nav {
    justify-content: space-between;
    min-height: 72px;
    padding: 10px 26px;
  }
  .nav-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgb(185 152 78 / 0.55);
    font-size: 0.95rem;
  }
  .nav-toggle {
    order: 1;
  }
  .nav-monogram {
    display: none !important;
  }
  .nav-links {
    max-width: none;
    width: auto;
  }
  .nav-rsvp {
    border: 0 !important;
    padding: 14px 0 !important;
    color: var(--forest) !important;
  }
}
@media (max-width: 700px) {
  body::before,
  body::after {
    width: 14px;
    opacity: 0.85;
    background-size: 1000px auto;
  }
  .cover {
    padding: 0 18px;
  }
  .nav::before,
  .nav::after {
    width: 96px;
    height: 150px;
    background-size: 1000px auto;
  }
  .cover .names {
    flex-direction: column;
    gap: 0;
    font-size: clamp(2.3rem, 11vw, 3rem);
    letter-spacing: 0.06em;
  }
  .cover .names .amp {
    font-size: 0.8em;
    line-height: 1.1;
  }
  .cover-date {
    letter-spacing: 0.18em;
    line-height: 1.9;
  }
  /* Date and place on two lines. */
  .cover-date > span[aria-hidden] {
    display: block;
    height: 0;
    overflow: hidden;
  }
  .cover-photo {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
  .cover-welcome {
    right: 5%;
    bottom: 5%;
    width: 62%;
    padding: 12px 8px;
  }
  .countdown-band {
    padding: 24px 14px 30px;
  }
  .countdown-band::before,
  .countdown-band::after {
    width: 78px;
    background-size: 760px auto;
  }
  .countdown-label {
    gap: 9px;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }
  .countdown-label::before,
  .countdown-label::after {
    width: 24px;
  }
  .countdown-band .countdown {
    margin: 16px auto 20px;
  }
  .countdown-band .countdown b {
    font-size: 1.7rem;
  }
  .countdown-band .countdown small {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }
}

/* ---------- "She said yes": the engagement ring photos after the proposal ---------- */
.yes {
  display: grid;
  gap: 34px;
  align-items: center;
  margin: 10px auto 90px;
  max-width: 980px;
}
.yes-photos {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: end;
}
.yes-hands {
  margin-bottom: 40px;
}
.yes-copy {
  display: grid;
  gap: 12px;
  text-align: center;
}
.yes-copy .eyebrow {
  color: #9a7a35;
}
.yes-copy h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-style: italic;
  font-weight: 500;
}
@media (min-width: 820px) {
  .yes {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 56px;
  }
  .yes-copy {
    text-align: left;
  }
}

/* ---------- Q&A folded behind one button; compact rows ---------- */
.faq .section-head {
  margin-bottom: 30px;
}
.faq-all > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  margin: 0 auto;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  color: #8a6c2c;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.faq-all > summary::-webkit-details-marker {
  display: none;
}
.faq-all > summary small {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--muted);
}
.faq-all > summary::after {
  content: '+';
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s;
}
.faq-all[open] > summary::after {
  transform: rotate(45deg);
}
.faq-all > summary:hover {
  background: var(--gold);
  color: #fff;
}
.faq-all > summary:hover small {
  color: rgb(255 255 255 / 0.85);
}
.faq-all[open] > .faq-list {
  margin-top: 28px;
  animation: faq-open 0.3s ease both;
}
@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.faq-list summary {
  padding: 14px 2px;
  font-size: 1.12rem;
}
.faq-list summary::after {
  font-size: 1.15rem;
}
.faq-list details p {
  padding: 0 2px 16px;
  font-size: 0.95rem;
}

/* ---------- contacts: the last section ---------- */
.contacts {
  background: var(--paper);
  padding-top: clamp(60px, 8vw, 90px);
}
.contact-cards {
  display: grid;
  gap: 18px;
}
@media (min-width: 700px) {
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-card {
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: center;
  padding: 34px 26px;
  background: #fff;
  border: 1px solid rgb(185 152 78 / 0.35);
  box-shadow: 0 18px 40px rgb(23 60 42 / 0.06);
}
.contact-card .eyebrow {
  color: #9a7a35;
}
.contact-card h3 {
  font-size: 1.7rem;
}
.contact-names {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest);
}
.contact-phone {
  font-family: var(--serif);
  font-size: 1.35rem;
}
.small {
  font-size: 0.86rem;
}
.contact-tel {
  display: block;
  font-size: 1.05rem;
}
