/* ============================================================
   Sophia & Mino — Wedding Website
   Colour one  #c08982  headings / titles / menus / graphics  (locked)
   Colour two  #4a5d3a  body copy                             (locked)
   Fonts: Monsieur La Doulaise (script) + EB Garamond — self-hosted
   ============================================================ */

/* ---------------- Fonts ---------------- */

@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('EBGaramond-Regular.ttf') format('truetype'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('EBGaramond-Bold.ttf') format('truetype'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('EBGaramond-Italic.ttf') format('truetype'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 700; font-display: swap; src: url('EBGaramond-BoldItalic.ttf') format('truetype'); }

@font-face { font-family: 'Monsieur La Doulaise'; font-style: normal; font-weight: 400; font-display: swap; src: url('MonsieurLaDoulaise-Regular.ttf') format('truetype'); }

:root {
  --white: #ffffff;

  /* Colour one — locked */
  --heading:       #c08982;
  --heading-dark:  #9d706b;
  --heading-soft:  rgba(192, 137, 130, 0.32);
  --heading-faint: rgba(192, 137, 130, 0.16);

  /* Colour two — locked */
  --text:      #4a5d3a;
  --text-dark: #3d4c30;

  --line: rgba(192, 137, 130, 0.28);

  --font-serif:  'EB Garamond', 'Garamond', Georgia, 'Times New Roman', serif;
  --font-script: 'Monsieur La Doulaise', 'Snell Roundhand', cursive;

  --max-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   TYPOGRAPHY SYSTEM
   H1 script · colour one      T1 Garamond · colour two
   H2 bold · colour one         T2 italic · colour two
   H3 bold · colour one         T3 italic bold · colour one
                                T4 Garamond · colour one (large)
   ============================================================ */

.h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(58px, 8.5vw, 96px);
  line-height: 1.15;
  color: var(--heading);
  margin: 0;
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--heading);
  margin: 0 0 20px;
}

.h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 23px);
  line-height: 1.3;
  color: var(--heading);
  margin: 0;
}

.t1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

.t2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.t3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.55;
  color: var(--heading);
  margin: 0;
}

.t4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--heading);
  margin: 0;
}

.t1 strong { font-weight: 700; }

/* ---------------- Navigation (unchanged) ---------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  padding: 14px 40px;
  box-shadow: 0 2px 14px rgba(192, 137, 130, 0.12);
  border-bottom: 1px solid var(--line);
}

.nav__monogram {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 28px;
  color: var(--heading);
}

.nav__links { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }

.nav__links a {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading);
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--heading);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav-link--lang { border: 1px solid var(--heading); padding: 4px 10px !important; letter-spacing: 1px !important; }
.nav-link--lang::after { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav__toggle span { width: 26px; height: 1.5px; background: var(--heading); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- Big header + band (unchanged) ---------------- */

.hero { text-align: center; padding: 200px 24px 64px; }

.hero__names {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--heading);
  margin: 0;
  line-height: 1.1;
}
.hero__names .name { display: block; font-size: clamp(64px, 12vw, 128px); }
.hero__names .amp  { display: block; font-size: clamp(32px, 5.5vw, 52px); margin: 4px 0; }

.band-separator { width: 100%; height: auto; display: block; margin: 0 auto; }

/* ---------------- Invitation block (under band) ---------------- */

.hero-info {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.hero-info__names { margin: 34px 0 22px; }

.hero-info__date { margin: 0 0 36px; }
.hero-info__date .sep { color: var(--heading-soft); margin: 0 12px; }

.hero-info__venue .h3 { margin-bottom: 2px; }
.hero-info__arrivals { margin-top: 14px; }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 40px auto 0;
  cursor: pointer;
  width: fit-content;
}
.scroll-cue svg { width: 14px; height: 22px; color: var(--heading); animation: bob 2.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------------- Gate (language + password) ---------------- */

.gate { max-width: 380px; margin: 0 auto; padding: 56px 24px 120px; text-align: center; }

.gate__lang { display: inline-flex; border: 1px solid var(--heading); margin-bottom: 40px; }

.gate__lang-btn {
  background: none;
  border: none;
  padding: 9px 22px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--heading);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.gate__lang-btn.is-active { background: var(--heading); color: var(--white); }

.gate__prompt { font-style: italic; font-size: 16px; color: var(--text); margin: 0 0 28px; }
.gate__form .field { text-align: left; margin-bottom: 22px; }
.gate__error { margin: 18px 0 0; font-size: 14px; color: var(--text-dark); font-style: italic; }

/* ---------------- Chapter dividers ---------------- */

.chapter-divider { display: flex; align-items: center; justify-content: center; padding: 50px 24px; background: var(--white); }
.chapter-divider img { height: clamp(144px, 22vw, 260px); width: auto; }

/* ---------------- Sections ---------------- */

section { position: relative; z-index: 1; }

.section { padding: 100px 24px; background: var(--white); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head .t2 { margin-bottom: 8px; }
.section__head .h2 { margin-bottom: 20px; }

.divider { width: 200px; height: 26px; margin: 0 auto; color: var(--heading); opacity: 0.8; }

.section__intro { text-align: center; max-width: 620px; margin: -20px auto 70px; }

/* ---------------- Timeline ---------------- */

.timeline { max-width: 560px; margin: 0 auto; position: relative; padding-left: 44px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--heading-faint), var(--heading), var(--heading-faint));
}

.timeline__item { position: relative; padding-bottom: 44px; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -44px; top: 5px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--heading);
}

.timeline__item .t3 { margin-bottom: 2px; }
.timeline__item .h3 { margin-bottom: 4px; }

/* ---------------- Detail cards (Dress Code / Venue) ---------------- */

.detail-cards {
  max-width: 900px;
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 30px 36px;
  text-align: center;
}

.detail-card__img {
  height: 240px;
  width: auto;
  margin: 0 auto 24px;
}

.detail-card .h3 { margin-bottom: 8px; }
.detail-card .t1 { margin-bottom: 14px; }

.btn-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--heading);
  border-bottom: 1px solid var(--heading);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-link:hover { color: var(--heading-dark); border-color: var(--heading-dark); }

/* ---------------- RSVP ---------------- */

.rsvp { max-width: 560px; margin: 0 auto; }
.rsvp__intro { text-align: center; margin: -20px 0 46px; }

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 8px;
}

.field .hint {
  display: inline;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  color: var(--text);
  opacity: 0.75;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23c08982' d='M5 7l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  cursor: pointer;
}

.field textarea { min-height: 100px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--heading);
  box-shadow: 0 0 0 3px var(--heading-faint);
}

.field-row { display: none; }
.field-row.show { display: block; animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 15px 20px;
  background: var(--heading);
  color: var(--white);
  border: none;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn:hover { background: var(--heading-dark); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: default; }

.rsvp__confirm { display: none; text-align: center; padding: 50px 20px; }
.rsvp__confirm.show { display: block; animation: fadeIn 0.5s ease; }
.rsvp__confirm svg { width: 46px; height: 54px; margin: 0 auto 20px; color: var(--heading); }
.rsvp__confirm .h3 { font-size: 26px; margin-bottom: 10px; }

.rsvp__note { text-align: center; margin-top: 40px; font-size: 14px; font-style: italic; color: var(--text-dark); }

/* ---------------- FAQ ---------------- */

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 4px;
  cursor: pointer;
}

.faq-item__q .plus { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.faq-item__q .plus::before,
.faq-item__q .plus::after {
  content: "";
  position: absolute;
  background: var(--heading);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-item__q .plus::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-item__q .plus::after  { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item__inner { padding: 0 4px 26px; max-width: 620px; }
.faq-item__inner .t1 + .t1 { margin-top: 14px; }

.faq-item__inner a,
.inline-link { color: var(--heading); border-bottom: 1px solid currentColor; }

/* ---------------- London section ---------------- */

.london-cards {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.london-card {
  border: 1px solid var(--line);
  padding: 44px 44px;
}

.london-card__tag { margin-bottom: 6px; }
.london-card .h3 { margin-bottom: 14px; }
.london-card .t1 + .t1 { margin-top: 12px; }

/* get-together: text left, details right */
.london-card--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.london-card--split .info-list { margin-top: 0; }

.london-card__intro { max-width: 640px; }

/* hotels in a 2 × 2 grid */
.hotel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  margin-top: 8px;
}

.info-list { margin: 26px 0 24px; border-top: 1px solid var(--line); }

.info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.info-row .t3 { font-size: 16px; }
.info-row .t1 { font-size: 17px; }

.hotel {
  margin: 26px 0 22px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.hotel .t4 { margin: 4px 0 6px; }
.hotel .t1 { font-size: 17px; }
.hotel .t2 { margin-top: 10px; }

.link-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; }

.london-card__more { margin-top: 8px; }

/* ---------------- Footer ---------------- */

.footer { padding: 70px 24px 40px; text-align: center; background: var(--white); border-top: 1px solid var(--line); }
.footer__monogram { font-family: var(--font-script); font-weight: 400; font-size: 40px; color: var(--heading); margin: 0 0 10px; }
.footer__date { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); margin: 0 0 26px; }
.footer__hash { font-size: 13px; letter-spacing: 1px; color: var(--text); opacity: 0.7; margin: 0; }

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .detail-cards,
  .london-card--split,
  .hotel-grid { grid-template-columns: 1fr; }
  .london-card--split { gap: 8px; }
  .london-card--split .info-list { margin-top: 26px; }
}

@media (max-width: 720px) {
  .nav { padding: 18px 22px; }
  .nav.scrolled { padding: 12px 22px; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -8px 0 30px rgba(192, 137, 130, 0.15);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: flex; }
  .hero { padding: 150px 16px 50px; }
  .section { padding: 70px 18px; }
  .chapter-divider { padding: 34px 24px; }
  .london-card { padding: 32px 24px; }
  .info-row { grid-template-columns: 80px 1fr; gap: 12px; }
  .detail-card__img { height: 200px; }
}
