/* ============================================================
   Victoria & André — casamento
   Linguagem visual: orastudio.ca
   ============================================================ */

:root {
  --ink: #242424;
  --black: #0d0d0d;
  --white: #ffffff;
  --paper: #f0f0f0;
  --grey: #6b6b6b;
  --line: #dadada;
  --line-dark: rgba(255, 255, 255, 0.28);
  --text-soft: #4a4a4a;
  --text-soft-dark: rgba(255, 255, 255, 0.78);
  --error: #b3261e;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Figtree", Helvetica, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.34, 0.7, 0.27, 1);
  --gutter: 20px;
  --max: 1600px;
}

@media (min-width: 768px) { :root { --gutter: 30px; } }
@media (min-width: 1200px) { :root { --gutter: 50px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scrollbar-color: #5a5a5a var(--ink); }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.js body.is-loading, body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
em { font-style: italic; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--ink); color: var(--white); }
.moments ::selection, .program ::selection, .gifts ::selection, .faq ::selection { background: var(--white); color: var(--ink); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 4000;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.4s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Tags, buttons, arrows ---------- */

/* Ora "tag": small rounded label used as an action or annotation */
.tag {
  display: inline-block;
  width: fit-content;
  font-size: 14px;
  line-height: 1.4;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.hero__tag { background: transparent; color: var(--white); border: 1px solid var(--white); }
.tag--dark { background: var(--ink); color: var(--white); }
a.tag { padding: 8px 12px; }
a.tag:hover { background: var(--paper); }
a.tag--dark:hover { background: #000; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), opacity 0.3s;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--dark[disabled] { opacity: 0.55; cursor: progress; }
.btn--outline { border: 1px solid var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--ink); }
.btn--outline-dark { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: var(--white); }
.btn--disabled { border: 1px dashed var(--line-dark); color: var(--text-soft-dark); cursor: default; }

.arrow {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.arrow--left { transform: scaleX(-1); }

/* Ora signature: thin vertical arrow dropping into a tag */
.drop {
  position: relative;
  display: block;
  width: 1px;
  height: 100px;
  margin: 30px auto 24px;
  background: currentColor;
}
.drop::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.drop--dark { color: var(--ink); }

/* ---------- Motion (only when JS is running) ---------- */

.js [data-words] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.26em;
  margin-bottom: -0.26em;
}
.js [data-words] .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
.js [data-words].is-in .word > span { transform: none; }

.js .reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js [data-words] .word > span { opacity: 1; transform: none; transition: none; }
  .js .hero__image { transform: none !important; transition: none !important; }
}

/* ---------- Preloader ---------- */

.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: transform 1.2s var(--ease);
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.preloader__mark {
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 180px);
  line-height: 1;
  animation: preIn 1.1s var(--ease) both;
}
.preloader__mark em { font-size: 0.7em; margin: 0 0.05em; }
.preloader__date {
  font-size: 14px;
  letter-spacing: 0.3em;
  opacity: 0.7;
  animation: preIn 1.1s 0.15s var(--ease) both;
}
.js body.is-loaded .preloader { transform: translateY(-100%); }

@keyframes preIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  color: var(--white);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.header.is-solid { background: var(--white); color: var(--ink); }

.header__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__links { display: none; }
.header__link {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  margin-right: 15px;
  position: relative;
}
.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}
.header__logo em { font-size: 0.72em; margin: 0 0.04em; }

.header__right { display: flex; align-items: center; gap: 8px; }
.header__right .header__link { display: none; }
.header__cta {
  display: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.header__cta:hover { background: var(--white); color: var(--ink); }
.header__cta--short { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; }
.header.is-solid .header__cta { background: transparent; color: var(--ink); border-color: var(--ink); }
.header.is-solid .header__cta:hover { background: var(--ink); color: var(--white); }
.menu-open .header__cta--short { visibility: hidden; }

.header__burger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
}
.header__burger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.header__burger span:last-child { transform: translateX(5px) scaleX(0.64); }
.menu-open .header__burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .header__burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu-open .header { color: var(--white); background: transparent; }

@media (min-width: 1024px) {
  .header__container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .header.is-solid .header__container { padding-top: 12px; padding-bottom: 12px; }
  .header__links { display: flex; }
  .header__right { justify-content: flex-end; gap: 0; }
  .header__right .header__link { display: block; margin-right: 24px; }
  .header__cta { display: inline-block; }
  .header__cta--short, .header__burger { display: none; }
  .header__logo { font-size: 46px; }
}

/* ---------- Mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: var(--ink);
  color: var(--white);
  padding: 110px var(--gutter) 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease), visibility 0s 0.9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease); }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__link {
  font-family: var(--serif);
  font-size: clamp(44px, 12vw, 72px);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.menu-open .menu__link { opacity: 1; transform: none; }
.menu-open .menu__link:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu__link:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu__link:nth-child(4) { transition-delay: 0.15s; }
.menu-open .menu__link:nth-child(5) { transition-delay: 0.2s; }
.menu-open .menu__link:nth-child(6) { transition-delay: 0.25s; }
.menu__link--cta { font-style: italic; }
.menu__foot { font-size: 14px; opacity: 0.75; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 240px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 75%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.86) 100%);
  pointer-events: none;
}
.hero__media { position: absolute; inset: 0; }
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}
.js .hero__image {
  transform: scale(1.15);
  transition: transform 2.4s var(--ease);
  will-change: transform;
}
.js body.is-loaded .hero__image { transform: scale(1.02); }

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) calc(15vh + 40px);
  display: grid;
  gap: 8px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(56px, 6.2vw, 100px);
  line-height: 0.98;
  margin-bottom: 20px;
}
.hero__tag { margin-bottom: 20px; }
.hero__paragraph { font-size: 17px; line-height: 1.5; max-width: 680px; }

.js .hero__tag,
.js .hero__paragraph {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js body.is-loaded .hero__tag { opacity: 1; transform: none; transition-delay: 0.9s; }
.js body.is-loaded .hero__paragraph { opacity: 1; transform: none; transition-delay: 1.05s; }

@media (min-width: 1024px) {
  .hero { height: 120vh; height: 120svh; min-height: 1000px; }
  .hero__container {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 30px;
    align-items: end;
    padding-bottom: calc(20vh + 70px);
  }
  .hero__left { grid-column: 1 / 7; }
  .hero__paragraph { grid-column: 7 / 13; font-size: 18px; line-height: 25px; margin-bottom: 72px; }
}

/* ---------- About (white card overlapping hero) ---------- */

.about {
  position: relative;
  z-index: 3;
  margin-top: -15vh;
  padding: 0 var(--gutter);
}
.about__container {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
}
.about__main { display: flex; flex-direction: column; align-items: flex-start; }
.about__title {
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.12;
}
.about__tag { margin: 24px 0 36px; }
.about__image-principal,
.about__image-secondary {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.about__image-principal { aspect-ratio: 4 / 3; object-position: center 30%; }
.about__image-secondary { display: none; }
.about__paragraph { font-size: 17px; line-height: 1.5; letter-spacing: 0.01em; color: var(--text-soft); max-width: 42ch; }
.js .about__paragraph { transition-delay: 0.1s; }
.js .about__image-principal { transition-delay: 0.2s; }

@media (min-width: 768px) {
  .about__container { padding: 60px 50px; }
}

@media (min-width: 1200px) {
  .about__container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 30px;
    padding: 170px 100px 200px;
  }
  .about__aside { grid-column: 1 / 4; }
  .about__main { grid-column: 5 / 13; }
  .about__image-secondary { display: block; aspect-ratio: 2 / 3; margin-bottom: 30px; }
  .about__image-principal { aspect-ratio: 16 / 11; }
}

/* ---------- Moments (fan carousel) ---------- */

.moments { padding: 160px 0 120px; overflow: hidden; }
.moments__container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.moments__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.05;
  margin-bottom: 30px;
}
.moments__paragraph { font-size: 16px; font-weight: 500; line-height: 1.45; max-width: 500px; }
.moments__tag { margin-bottom: 50px; }

.carousel__track {
  position: relative;
  width: min(84vw, 750px);
  aspect-ratio: 3 / 2;
  margin: 0 auto;
}
.carousel__item {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  cursor: pointer;
}
.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  border-radius: var(--radius);
}
.carousel__item.is-selected { cursor: default; }

.carousel__arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--white);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.carousel__btn:hover { background: var(--white); color: var(--ink); }

/* ---------- Program (Ora "Réalisations") ---------- */

.program { padding: 80px 0 160px; }
.program__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.program__title {
  font-family: var(--serif);
  font-size: clamp(72px, 18vw, 290px);
  line-height: 0.8;
  text-align: center;
}
.program__countdown {
  text-align: center;
  font-size: 16px;
  color: var(--text-soft-dark);
  margin: 40px 0 80px;
  font-variant-numeric: tabular-nums;
}

.program__list { display: flex; flex-direction: column; gap: 60px; }

.entry__head {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white);
  font-size: 15px;
  font-weight: 500;
}
.entry__meta { color: rgba(255, 255, 255, 0.6); }

.entry__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 25px;
}
.entry__title {
  font-family: var(--serif);
  font-size: clamp(28px, 2.3vw, 32px);
  line-height: 1.1;
  margin: 20px 0;
  max-width: 20ch;
}
.entry__description {
  font-size: 15px;
  font-weight: 500;
  line-height: 23px;
  max-width: 60ch;
  max-height: calc(23px * 5);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.entry__description p + p { margin-top: 12px; }
.entry__description.is-open,
html:not(.js) .entry__description { max-height: 600px; -webkit-mask-image: none; mask-image: none; }
html:not(.js) [data-expand] { display: none; }
.entry__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (min-width: 1024px) {
  .entry__content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 30px;
    align-items: start;
  }
  .entry__image { grid-column: 1 / 5; }
  .entry__title { grid-column: 5 / 8; margin: 25px 0 0 20px; }
  .entry__text { grid-column: 9 / 13; padding-top: 25px; }
}

/* ---------- RSVP (white card) ---------- */

.rsvp { padding: 0 var(--gutter); }
.rsvp__container {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px 20px;
  display: grid;
  gap: 40px;
}
.rsvp__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.rsvp__title {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.9;
}
.rsvp__paragraph { font-size: 18px; line-height: 1.45; max-width: 400px; color: var(--text-soft); }
.rsvp__paragraph strong { color: var(--ink); font-weight: 600; }
.rsvp__image { display: none; }

.form { display: flex; flex-direction: column; gap: 26px; }
.form__row { display: grid; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.field > label, .field legend { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); }
.field__optional { text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 12px;
  outline: none;
  caret-color: var(--ink);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field select option { background: var(--white); color: var(--ink); }
.field__hint { font-size: 14px; color: var(--grey); }
.field__error { font-size: 14px; color: var(--error); }
.field__error:empty { display: none; }
.field.is-invalid input { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }

.field--choice { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.field--choice legend { width: 100%; margin-bottom: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.choice input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

[data-if-attending][hidden] { display: none; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 8px; }
.form__note { font-size: 14px; color: var(--grey); }
.form__status { font-size: 15px; color: var(--error); }
.form__status:empty { display: none; }

.confirm { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; outline: none; }
.confirm[hidden], .form[hidden] { display: none; }
.confirm__title { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 52px); line-height: 1.02; max-width: 16ch; }
.confirm__list { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 16px; width: 100%; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confirm__list dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); padding-top: 3px; }
.confirm__list dd { overflow-wrap: anywhere; }

@media (min-width: 768px) {
  .rsvp__container { padding: 60px 50px; }
  .form__row { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (min-width: 1200px) {
  .rsvp__container {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 30px;
    padding: 120px 100px;
  }
  .rsvp__intro { grid-column: 1 / 6; }
  .rsvp__image {
    display: block;
    width: 62%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    margin-top: 18px;
  }
  .rsvp__body { grid-column: 7 / 13; align-self: center; }
}

/* ---------- Gifts (dark, list rows) ---------- */

.gifts { padding: 160px 0; }
.gifts__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.gifts__intro { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 80px; }
.gifts__title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1;
  max-width: 820px;
  margin-bottom: 28px;
}
.gifts__paragraph { font-size: 16px; font-weight: 500; line-height: 1.45; max-width: 500px; }

.gifts__list { border-top: 1px solid var(--white); }
.gift {
  display: grid;
  gap: 12px 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: center;
}
.gift__title { font-family: var(--serif); font-size: clamp(34px, 3vw, 48px); line-height: 1; }
.gift__text { font-size: 16px; color: var(--text-soft-dark); max-width: 48ch; }
.gift__key { color: var(--white); overflow-wrap: anywhere; }
.gift .btn { justify-self: start; }

@media (min-width: 900px) {
  .gift { grid-template-columns: repeat(12, 1fr); padding: 36px 0; }
  .gift__title { grid-column: 1 / 5; }
  .gift__text { grid-column: 5 / 10; }
  .gift .btn { grid-column: 10 / 13; justify-self: end; }
}

/* ---------- Stay (white card, list) ---------- */

.stay { padding: 0 var(--gutter); }
.stay__container {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px 20px;
  display: grid;
  gap: 50px;
}
.stay__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.stay__title {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 80px);
  line-height: 0.95;
}
.stay__paragraph { font-size: 17px; line-height: 1.5; max-width: 420px; color: var(--text-soft); }

.code {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
  width: 100%;
  max-width: 420px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.code__label { grid-column: 1; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); }
.code__value { grid-column: 1; font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: 0.02em; }
.code .btn { grid-column: 2; grid-row: 1 / 3; }

.stay__list { border-top: 1px solid var(--ink); }
.place { padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.place__head { display: flex; gap: 15px; font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.place__meta { color: var(--grey); }
.place__title { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; margin-bottom: 8px; }
.place__text { font-size: 16px; color: var(--text-soft); max-width: 52ch; }

@media (min-width: 768px) { .stay__container { padding: 60px 50px; } }
@media (min-width: 1200px) {
  .stay__container {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 30px;
    padding: 120px 100px;
  }
  .stay__aside { grid-column: 1 / 6; }
  .stay__list { grid-column: 7 / 13; }
}

/* ---------- FAQ ---------- */

.faq { padding: 160px 0; }
.faq__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 50px;
}
.faq__title {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 80px);
  line-height: 0.95;
}
.faq__item { border-top: 1px solid var(--line-dark); }
.faq__item:last-child { border-bottom: 1px solid var(--line-dark); }
.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { font-size: 16px; line-height: 1.55; color: var(--text-soft-dark); max-width: 60ch; padding-bottom: 26px; }
.plus { position: relative; flex: none; width: 18px; height: 18px; }
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.plus::after { transform: rotate(90deg); }
.faq__item[open] .plus::after { transform: rotate(0); }

@media (min-width: 1024px) {
  .faq__container { grid-template-columns: repeat(12, 1fr); column-gap: 30px; }
  .faq__title { grid-column: 1 / 5; }
  .faq__list { grid-column: 6 / 13; }
}

/* ---------- Footer (white card over photo) ---------- */

.footer { position: relative; }
.footer__card {
  position: relative;
  z-index: 2;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 var(--gutter);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 90px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer__title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.02;
  max-width: 850px;
}
.footer__contact {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 70px;
  text-align: left;
  font-size: 15px;
}
.footer__col { display: flex; flex-direction: column; }
.footer__col a, .footer__place { display: inline-flex; align-items: center; min-height: 44px; }
.footer__col a { text-underline-offset: 3px; }
.footer__col a:hover { text-decoration: underline; }
.footer__col--right { text-align: right; align-items: flex-end; }
.footer__place { font-size: 17px; }

.footer__photo {
  position: relative;
  margin-top: -100px;
  height: 70vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
  background: var(--black);
}
.footer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.55);
}
.footer__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.65) 100%);
}
.footer__bottom {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
}
.footer__mark { font-family: var(--serif); font-size: 64px; line-height: 1; }
.footer__mark em { font-size: 0.72em; }
.footer__legal { font-size: 13px; font-weight: 500; text-align: right; color: rgba(255, 255, 255, 0.85); }

@media (min-width: 768px) {
  .footer__card { padding: 120px 50px 40px; }
}
@media (min-width: 1700px) {
  .footer__card { margin: 0 auto; }
}
