:root {
  --bg: #FCF9F7;
  --text: #2B1105;
  --accent: #C6754D;
  --error: #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Montaga, -apple-system, Roboto, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 80px 0;
  height: 128px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(43,17,5,0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 40px;
  font-size: 22px;
  line-height: 32px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-logo { padding: 0 40px; flex-shrink: 0; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding-top: 89px;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 0 80px;
}

.hero-subtitle {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.hero-names {
  color: var(--text);
  font-size: clamp(48px, 7vw, 101px);
  line-height: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.hero-meta-divider {
  width: 16px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-photo {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.hero-photo img {
  width: 77.8%;
  max-width: 1121px;
  height: auto;
  display: block;
}

/* ── OUR STORY ───────────────────────────────────────── */
.our-story {
  background: var(--accent);
  width: 100%;
  padding: 80px 113px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 80px;
  align-items: center;
  min-height: 645px;
}

.story-heading {
  color: var(--bg);
  font-size: clamp(56px, 7vw, 101px);
  line-height: 1;
}

.story-body {
  color: var(--bg);
  font-size: 18px;
  line-height: 1.6;
}

.story-body p + p { margin-top: 1.5em; }

/* ── FULL-WIDTH PHOTO ────────────────────────────────── */
.full-photo {
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
}

.full-photo img {
  width: 100%;
  height: 810px;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: -105px;
  left: 0;
}

/* ── VENUE ───────────────────────────────────────────── */
.venue {
  background: var(--bg);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 80px;
  min-height: 598px;
}

.venue-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 539px;
}

.venue-label {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.venue-name {
  color: var(--text);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
}

.venue-desc {
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.8;
}

.venue-photos {
  position: relative;
  width: 497px;
  height: 460px;
  flex-shrink: 0;
}

.venue-photos img {
  width: 497px;
  height: 373px;
  object-fit: cover;
  position: absolute;
}

.venue-photos .photo-back  { transform: rotate(-6deg); top: 0; left: 0; }
.venue-photos .photo-mid   { transform: rotate(6deg);  top: 0; left: 0; }
.venue-photos .photo-front { top: 26px; left: 19px; }

/* ── DIVIDER ─────────────────────────────────────────── */
.leaf-divider {
  width: 100%;
  height: 4px;
  opacity: 0.6;
  display: block;
}

/* ── HOTELS ──────────────────────────────────────────── */
.hotels {
  background: var(--bg);
  padding: 96px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.hotels-grid {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  width: 100%;
}

.hotel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  flex: 1;
}

.hotel-name {
  color: var(--text);
  font-size: 43px;
  line-height: 1;
}

.hotel-desc {
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.8;
}

.btn-outline {
  display: inline-block;
  padding: 18px 26px;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  font-family: Montaga, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover { background: var(--accent); color: var(--bg); }

/* ── BRIDAL PARTY ────────────────────────────────────── */
.bridal-party {
  background: var(--bg);
  padding: 96px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.section-heading {
  color: var(--text);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  text-align: center;
}

.party-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.party-row {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.party-role {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  width: 140px;
  padding-top: 8px;
  flex-shrink: 0;
}

.party-members {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.party-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.party-member-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 2px;
}

.party-member-name {
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

.flourish {
  display: flex;
  justify-content: center;
  opacity: 0.5;
}

/* ── ITINERARY ───────────────────────────────────────── */
.itinerary {
  background: var(--bg);
  padding: 96px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.itinerary-days {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.itinerary-day { display: flex; flex-direction: column; gap: 40px; }

.itinerary-date-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.itinerary-date {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.itinerary-date-accent { color: var(--accent); }

.itinerary-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.itinerary-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
}

.itinerary-time {
  color: var(--accent);
  font-size: 18px;
  line-height: 1.6;
}

.itinerary-event-title {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

.itinerary-event-desc {
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.8;
}

/* ── REGISTRY ────────────────────────────────────────── */
.registry {
  background: var(--bg);
  padding: 96px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.registry-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.registry-heading-left { text-align: left; }

.registry-desc {
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.8;
}

.registry-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.registry-logos a { display: flex; align-items: center; }
.registry-logos svg { max-width: 100%; height: auto; }

/* ── RSVP ────────────────────────────────────────────── */
.rsvp {
  background: var(--bg);
  padding: 96px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.rsvp-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.rsvp-desc {
  max-width: 800px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.8;
}

.rsvp-form {
  width: 600px;
  display: flex;
  flex-direction: column;
}

.form-row { display: flex; gap: 32px; }

.form-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 20px;
}

.form-field.full { flex: none; width: 100%; }

.field-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 4px;
}

.field-label .required { color: var(--accent); opacity: 0.8; }

.field-input {
  padding: 12px 16px;
  border: 1px solid var(--text);
  background: var(--bg);
  font-family: Montaga, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.field-input:focus { border-color: var(--accent); }

.field-input.invalid { border-color: var(--error); }

.field-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  min-height: 18px;
}

.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 4px;
  padding-bottom: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.radio-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  min-height: 18px;
}

.select-group {
  display: flex;
  gap: 32px;
  padding-bottom: 20px;
}

.select-wrapper { flex: 1; }

.select-input {
  padding: 12px 16px;
  border: 1px solid var(--text);
  background: var(--bg);
  font-family: Montaga, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text);
  outline: none;
  appearance: none;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s;
}

.select-input:focus { border-color: var(--accent); }

.btn-primary {
  display: inline-block;
  padding: 18px 26px;
  background: var(--accent);
  color: var(--bg);
  font-family: Montaga, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 24px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
  margin-top: 16px;
  align-self: center;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 48px 0;
}

.form-success.visible { display: flex; }

.form-success-icon {
  font-size: 48px;
  color: var(--accent);
}

.form-success-message {
  font-size: 24px;
  color: var(--text);
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  padding: 48px 80px;
  border-top: 1px solid rgba(43,17,5,0.12);
}

.footer-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-nav a {
  padding: 8px 32px;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

.footer-credit {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  opacity: 0.5;
}

/* ── RESPONSIVE — TABLET ─────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav { padding: 16px 40px 0; height: 80px; }
  .nav-links a { padding: 8px 20px; font-size: 18px; }
  .nav-logo { padding: 0 20px; }

  .our-story { grid-template-columns: 1fr; padding: 60px 40px; gap: 40px; min-height: auto; }
  .venue { grid-template-columns: 1fr; padding: 60px 40px; }
  .venue-photos { width: 100%; height: 400px; }
  .venue-photos img { width: 100%; }

  .hotels-grid { flex-direction: column; gap: 48px; }
  .registry { grid-template-columns: 1fr; }
  .rsvp-form { width: 100%; }
  .form-row { flex-direction: column; gap: 0; }
  .select-group { flex-direction: column; }
}

/* ── RESPONSIVE — MOBILE ─────────────────────────────── */
@media (max-width: 768px) {
  /* Nav — hamburger mode */
  .site-nav {
    padding: 0 24px;
    height: 64px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .nav-logo { order: -1; padding: 0; }
  .nav-logo svg { width: 48px; height: 48px; }

  .nav-toggle { display: flex; order: 1; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0 24px;
    border-bottom: 1px solid rgba(43,17,5,0.12);
    box-shadow: 0 8px 24px rgba(43,17,5,0.08);
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; font-size: 20px; opacity: 0.8; }
  .nav-links a:hover { opacity: 1; background: rgba(198,117,77,0.06); }

  /* Sections */
  .hero { padding-top: 48px; }
  .hero-text { padding: 0 24px; }
  .hero-names { font-size: 40px; }
  .hero-subtitle { font-size: 18px; }
  .hero-meta { font-size: 18px; }

  .our-story { padding: 48px 24px; gap: 32px; }
  .story-heading { font-size: 56px; }
  .story-body { font-size: 16px; }

  .full-photo { height: 280px; }
  .full-photo img { height: 400px; top: -60px; }

  .venue { padding: 48px 24px; gap: 40px; }
  .venue-photos { height: 320px; }

  .hotels { padding: 60px 24px; }
  .hotel-name { font-size: 32px; }

  .bridal-party { padding: 60px 24px; }
  .party-row { flex-direction: column; gap: 20px; }
  .party-role { width: auto; }
  .party-members { gap: 24px; }

  .itinerary { padding: 60px 24px; }
  .itinerary-item { grid-template-columns: 56px 1fr; gap: 16px; }

  .registry { padding: 60px 24px; }
  .registry-logos { grid-template-columns: 1fr 1fr; gap: 32px; }

  .rsvp { padding: 60px 24px; }

  .site-footer { padding: 32px 24px; }
  .footer-nav a { padding: 6px 16px; font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-names { font-size: 32px; }
  .story-heading { font-size: 44px; }
  .party-members { gap: 16px; }
  .party-member-photo { width: 96px; height: 96px; }
  .registry-logos { grid-template-columns: 1fr; }
  .select-group { flex-direction: column; }
}
