@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --sage-green: #929a88;
  --sage-mist: #c7c8bb;
  --ivory: #f0e5d3;
  --champagne: #d5c09d;
  --warm-beige: #d8c3b2;
  --olive: var(--sage-green);
  --olive-dark: #596151;
  --paper: #f6efeb;
  --ink: #4b5146;
  --muted-ink: #74786e;
  --white: #fffaf3;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Montserrat", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font-sans); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: var(--sage-mist);
  color: var(--olive-dark);
}

.hero-media,
.hero-photo,
.photo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -2; }
.hero-photo {
  display: block;
  z-index: -2;
  object-fit: cover;
  object-position: center;
}
.photo-overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(246, 239, 235, .88) 0%, rgba(240, 229, 211, .5) 24%, transparent 49%),
    linear-gradient(0deg, rgba(75, 81, 70, .48) 0%, transparent 23%);
}

.language-switcher {
  position: absolute;
  top: 1.7rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  direction: ltr;
  gap: .4rem;
}
.language-switcher button {
  min-width: 2.25rem;
  padding: .4rem .25rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .61rem;
  letter-spacing: .1em;
  opacity: .55;
}
.language-switcher button[aria-pressed="true"] { border-color: currentColor; opacity: 1; }
.language-switcher button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.hero-content {
  width: min(940px, 90vw);
  align-self: start;
  padding-top: clamp(4.25rem, 6.5vh, 5.5rem);
  text-align: center;
  text-shadow: 0 1px 18px rgba(255, 255, 255, .45);
  animation: reveal 1.1s ease both;
}
.eyebrow {
  margin: 0 0 .85rem;
  font-size: clamp(.62rem, 1vw, .76rem);
  letter-spacing: .42em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.55rem, 1.5vw, 1.2rem);
  font: 400 clamp(3rem, 6.1vw, 6.35rem)/.84 var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero h1 i { color: #a88f69; font-size: .62em; font-weight: 400; }
.marriage-line {
  margin: 1rem 0 0;
  font-size: clamp(.62rem, 1vw, .76rem);
  letter-spacing: .38em;
  text-transform: uppercase;
}
.event-details { margin-top: .9rem; }
.event-details p {
  margin: 0;
  font: 400 clamp(1.45rem, 2.7vw, 2.1rem)/1 var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.event-details span {
  display: block;
  margin-top: .9rem;
  font: 500 .86rem/1 var(--font-display);
  letter-spacing: .12em;
}
.primary-link {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  min-width: 190px;
  justify-content: center;
  padding: 1rem 1.45rem;
  border: 1px solid rgba(240, 229, 211, .78);
  border-radius: .8rem;
  background: rgba(89, 97, 81, .92);
  color: var(--white);
  text-decoration: none;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: color .2s, background .2s, transform .2s;
}
.primary-link:hover { color: var(--olive-dark); background: white; transform: translate(-50%, -3px); }
.primary-link:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.side-note {
  position: absolute;
  right: 1.8rem;
  bottom: 3.4rem;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: .54rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RSVP */
.rsvp-page { min-height: 100vh; padding: 0 2rem 3rem; background: var(--paper); color: var(--ink); }
.details-page { min-height: 100vh; padding: 0 2rem 4rem; background: var(--paper); color: var(--ink); }
.rsvp-header {
  min-height: 82px;
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(89, 97, 81, .23);
}
.rsvp-header .language-switcher { position: static; justify-self: end; color: var(--ink); }
.back-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-size: .61rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.back-link b { font-weight: 700; }
.monogram { direction: ltr; font: 500 .8rem/1 var(--font-display); letter-spacing: .28em; }
.monogram b { color: var(--olive); font-weight: 400; }
.form-intro { width: min(690px, 100%); margin: 4.5rem auto 3rem; text-align: center; }
.form-intro .eyebrow { margin-bottom: 1.8rem; color: var(--olive); }
.form-intro h1 { margin: 0; font: 400 clamp(3.4rem, 7vw, 6rem)/.95 var(--font-display); letter-spacing: -.025em; }
.form-intro h1 em { color: var(--olive); font-weight: 400; }
.form-intro > p:last-child { max-width: 520px; margin: 1.6rem auto 0; color: var(--muted-ink); font: 400 1.05rem/1.65 var(--font-display); }
.rsvp-form,
.success-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3.4rem);
  border: 1px solid rgba(89, 97, 81, .24);
  background: rgba(240, 229, 211, .2);
}
.rsvp-form > label,
.form-grid > label {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.55rem;
  color: var(--olive-dark);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.form-grid { display: grid; gap: 1.4rem; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.address-columns { grid-template-columns: .72fr 1.28fr 1fr; }
.guest-selector {
  margin-bottom: 2.4rem;
  padding: 0 0 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(89, 97, 81, .24);
}
.field-label,
.guest-list legend {
  margin: 0;
  color: var(--olive-dark);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.field-help { margin: .45rem 0 0; color: var(--muted-ink); font: 400 .95rem/1.5 var(--font-display); }
.guest-counter {
  width: 148px;
  flex: 0 0 148px;
  min-height: 44px;
  display: grid;
  grid-template-columns: 46px 56px 46px;
  align-items: center;
  border: 1px solid var(--olive-dark);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sage-mist);
}
.guest-counter button {
  width: 100%;
  height: 44px;
  border: 0;
  background: var(--olive-dark);
  color: var(--white);
  cursor: pointer;
  font: 400 1.4rem/1 var(--font-display);
}
.guest-counter button:hover:not(:disabled) { background: var(--ink); }
.guest-counter button:focus-visible { outline: 2px solid var(--champagne); outline-offset: -4px; }
.guest-counter button:disabled { cursor: default; opacity: .55; }
.guest-counter output {
  height: 44px;
  display: grid;
  place-items: center;
  border-inline: 1px solid rgba(89, 97, 81, .38);
  background: var(--sage-mist);
  color: var(--olive-dark);
  font: 500 1.15rem/1 var(--font-display);
}
.guest-list { min-width: 0; margin: 0 0 1.2rem; padding: 0; border: 0; }
.guest-list legend { margin-bottom: 1.15rem; }
.guest-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: end;
}
.guest-row + .guest-row { margin-top: .35rem; padding-top: 1.25rem; border-top: 1px solid rgba(89, 97, 81, .13); }
.guest-number { align-self: center; color: var(--olive); font: italic 400 1rem/1.2 var(--font-display); }
.guest-row label {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.55rem;
  color: var(--olive-dark);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.common-contact-fields { margin-top: .7rem; }
.message-field { width: 100%; }
input, select, textarea {
  width: 100%;
  padding: .65rem .1rem .8rem;
  border: 0;
  border-bottom: 1px solid rgba(89, 97, 81, .4);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  text-align: start;
  font: 400 1.08rem/1.4 var(--font-display);
}
input:focus, select:focus, textarea:focus { border-color: var(--olive); }
textarea { resize: vertical; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: .75rem !important;
  margin: .7rem 0 1.8rem !important;
  font-size: .76rem !important;
  font-weight: 400 !important;
  line-height: 1.5;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.consent input { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--olive); }
.submit-button {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: .8rem;
  background: var(--olive);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.submit-button:hover:not(:disabled) { background: var(--olive-dark); }
.submit-button:disabled { cursor: wait; opacity: .65; }
.form-message { margin: 0 0 1rem; padding: .7rem .9rem; border-inline-start: 2px solid #913d31; color: #913d31; font-size: .8rem; line-height: 1.5; }
.success-card { max-width: 680px; padding-block: clamp(3rem, 8vw, 6rem); text-align: center; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 1.6rem; border-radius: 50%; background: var(--olive); color: white; }
.success-card .eyebrow { margin: 0; color: var(--olive); }
.success-card h2 { margin: .8rem 0; font: 400 clamp(3rem, 7vw, 5rem)/1 var(--font-display); }
.success-card > p:not(.eyebrow) { max-width: 470px; margin: 1rem auto 2rem; color: var(--muted-ink); font: 400 1.05rem/1.65 var(--font-display); }
.text-button { padding: .2rem; border: 0; border-bottom: 1px solid; background: transparent; color: var(--olive); cursor: pointer; font-weight: 700; }
.rsvp-page footer { padding: 2.4rem 1rem 0; text-align: center; color: var(--muted-ink); font: 400 .9rem/1.5 var(--font-display); }

/* Informations */
.details-main { width: min(1100px, 100%); margin: 0 auto; }
.details-intro { width: min(780px, 100%); margin: 5rem auto 4rem; text-align: center; }
.details-intro .eyebrow { margin-bottom: 1.8rem; color: var(--olive); }
.details-intro h1 { margin: 0; font: 400 clamp(2.8rem, 6vw, 5.6rem)/1.02 var(--font-display); letter-spacing: -.025em; }
.details-intro > p:last-child { max-width: 540px; margin: 1.7rem auto 0; color: var(--muted-ink); font: 400 1.1rem/1.65 var(--font-display); }
.information-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(89, 97, 81, .25); border-left: 1px solid rgba(89, 97, 81, .25); }
.information-card { position: relative; min-height: 300px; padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-right: 1px solid rgba(89, 97, 81, .25); border-bottom: 1px solid rgba(89, 97, 81, .25); }
.information-card:nth-child(1) { background: rgba(199, 200, 187, .22); }
.information-card:nth-child(2) { background: rgba(216, 195, 178, .18); }
.information-card:nth-child(3) { background: rgba(213, 192, 157, .16); }
.information-card p { max-width: 520px; margin: 0 auto 1.1rem; color: var(--muted-ink); font: 400 1.08rem/1.6 var(--font-display); }
.information-card h2 { max-width: 600px; margin: 0 auto; color: var(--olive-dark); font: 600 clamp(1.8rem, 3vw, 3rem)/1.08 var(--font-display); text-transform: none; letter-spacing: .02em; }
.card-number { position: absolute; top: 1.5rem; inset-inline-end: 1.7rem; color: var(--olive); font-size: .6rem; letter-spacing: .15em; }
.planning-card { grid-column: 1 / -1; min-height: 260px; }
.details-cta { width: min(460px, 100%); min-height: 62px; margin: 3rem auto 0; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 2rem; border-radius: .8rem; background: var(--olive); color: white; text-decoration: none; text-transform: uppercase; font-size: .62rem; font-weight: 700; letter-spacing: .19em; transition: background .2s; }
.details-cta:hover { background: var(--olive-dark); }
.details-cta:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }

html[dir="rtl"] .back-link span { transform: scaleX(-1); }
html[dir="rtl"] .side-note { right: auto; left: 1.8rem; }
html[lang="he"] { --font-display: "Times New Roman", serif; --font-sans: Arial, Helvetica, sans-serif; }

@media (min-width: 701px) and (min-aspect-ratio: 16 / 9) {
  .hero-photo { object-position: center top; }
  .hero-content { padding-top: clamp(2.7rem, 5vh, 3.8rem); }
  .hero h1 { font-size: clamp(2.9rem, 5vw, 5.4rem); }
  .hero-content .eyebrow { margin-bottom: .55rem; }
  .hero-content .marriage-line { margin-top: .7rem; }
  .hero-content .event-details { margin-top: .65rem; }
}

@media (max-width: 700px) {
  .language-switcher { top: 1rem; right: 1rem; }
  .photo-overlay {
    background:
      linear-gradient(180deg, rgba(246, 239, 235, .92) 0%, rgba(240, 229, 211, .6) 25%, transparent 43%),
      linear-gradient(0deg, rgba(75, 81, 70, .5) 0%, transparent 22%);
  }
  .hero-content { width: 96vw; padding-top: clamp(4.5rem, 7vh, 5.5rem); }
  .hero h1 { gap: .35rem; font-size: clamp(2rem, 9.2vw, 3rem); }
  .eyebrow { margin-bottom: .9rem; }
  .marriage-line { margin-top: .9rem; }
  .event-details { margin-top: .85rem; }
  .event-details p { font-size: clamp(1.1rem, 5.5vw, 1.5rem); }
  .event-details span { margin-top: .45rem; }
  .primary-link { bottom: 1.6rem; }
  .side-note { display: none; }
  .rsvp-page { padding-inline: 1rem; }
  .details-page { padding-inline: 1rem; }
  .rsvp-header { min-height: 70px; }
  .rsvp-header .language-switcher { gap: .1rem; }
  .monogram { display: none; }
  .rsvp-header { grid-template-columns: 1fr auto; }
  .form-intro { margin: 3.2rem auto 2.5rem; }
  .details-intro { margin: 3.2rem auto 2.8rem; }
  .information-grid { grid-template-columns: 1fr; }
  .information-card { min-height: 245px; }
  .planning-card { grid-column: auto; }
  .two-columns, .address-columns { grid-template-columns: 1fr; }
  .form-grid { gap: 0; }
  .guest-selector { align-items: flex-start; gap: 1.2rem; }
  .guest-counter { width: 144px; flex-basis: 144px; grid-template-columns: 44px 56px 44px; }
  .guest-row { grid-template-columns: 1fr; gap: 0; }
  .guest-number { margin-bottom: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
