/* ========================================
   Wedding Site — Shared Styles
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;700&family=Pinyon+Script&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-subhead);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select { font: inherit; }

/* ── Typography Utilities ── */
.font-script {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
}

.font-funk {
  font-family: Optima, 'Trebuchet MS', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.font-funk-caps {
  font-family: Optima, 'Trebuchet MS', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.font-serif {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
}

/* ── Figma-aligned type scales (responsive) ── */
.type-subhead {
  font-size: 21px;
  line-height: 24px;
  letter-spacing: 0.01em;
}

.type-title-script {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 80px;
  line-height: 100px;
}

.type-p1 {
  font-size: 21px;
  line-height: 32px;
}

.type-p2 {
  font-size: 16px;
  line-height: 24px;
}

.type-strong {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--neutral-900);
}

/* ── Color Tokens ── */
:root {
  /* Cream */
  --cream-100: #fffcf9;
  --cream-og: #fefaf6;
  --cream-200: #fef2e3;

  /* Neutral */
  --white: #ffffff;
  --neutral-100: #fcfcfc;
  --neutral-200: #e2e2e2;
  --neutral-500: #a0a0a0;
  --neutral-700: #6e6e6e;
  --neutral-900: #1c1010;
  --neutral-1000: #000000;

  /* Rose */
  --rose-200: #f6e6e4;
  --rose-300: #ffb7b7;
  --rose-500: #ef563e;
  --rose-800: #3b2222;
  --rose-900: #2a1919;

  /* Green */
  --green-200: #edfaef;
  --green-300: #bdebc4;
  --green-500: #00a651;
  --green-800: #183930;
  --green-900: #0f241e;

  /* ── Semantic (Figma Wedding-2027) ── */
  --text-subhead: var(--green-800);
  --text-link-resting: var(--rose-300);
  --text-link-active: var(--green-300);
  --text-contrast-medium: var(--cream-200);
  --background-contrast-high: var(--green-900);
  /* Primary fills (RSVP nav, primary CTAs, mobile menu IconButton) */
  --background-button-primary-resting: var(--green-800);

  /* Star divider: wing lines (graphic color is per-asset SVG) */
  --star-rule-color: var(--green-300);

  /* Event / Travel inner + hero star rail (aligned width) */
  --content-rail: 840px;

  /* Icon / default — use on light backgrounds (inherits on most of the page) */
  --icon-default-on-light: var(--green-800);
  /* Icon / default — on dark surfaces (nav, contrast bars, etc.) */
  --icon-default-on-dark: var(--green-300);
  --icon-default: var(--icon-default-on-light);

  /* Motion (quiet luxury) */
  --motion-fast: 140ms;
  --motion-standard: 200ms;
  --motion-enter: 260ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--motion-enter) var(--ease-standard), transform var(--motion-enter) var(--ease-standard);
  will-change: opacity, transform;
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-nav {
  background: var(--background-contrast-high);
  --icon-default: var(--icon-default-on-dark);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav.grain {
  position: sticky;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-left: 80px;
}

.nav-links a {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-link-resting);
  position: relative;
  transition: color var(--motion-standard) var(--ease-standard);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform var(--motion-standard) var(--ease-standard), opacity var(--motion-standard) var(--ease-standard);
}

.nav-links a:hover {
  color: var(--text-link-active);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-links a.active {
  color: var(--text-link-active);
}

.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--background-button-primary-resting);
  border: 1px solid var(--background-button-primary-resting);
  border-radius: 8px;
  height: 44px;
  padding: 0 16px;
  color: var(--text-contrast-medium);
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nav-rsvp:hover {
  opacity: 0.85;
}

/* Mobile menu trigger — IconButton (Figma 76:2221 dark on nav 122:4433) */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  flex-shrink: 0;
}

/* Full-screen mobile sheet (Figma Navigation / mobile menu) */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 101;
  background: var(--background-contrast-high);
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--motion-enter) var(--ease-emphasis), transform var(--motion-enter) var(--ease-emphasis);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transform: none;
    transition: none;
  }
}

/* One IconButton: menu and close share the same 18×18 slot; crossfade on open/close */
.hamburger-icons {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hamburger-icons svg {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  width: 18px;
  height: 18px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hamburger .nav-menu-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.hamburger .nav-close-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.85);
  pointer-events: none;
}

.hamburger[aria-expanded="true"] .nav-menu-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.85);
  pointer-events: none;
}

.hamburger[aria-expanded="true"] .nav-close-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hamburger-icons .nav-menu-icon,
  .hamburger-icons .nav-close-icon {
    transition: none !important;
    transform: none !important;
  }
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  width: 100%;
  padding: 40px 24px;
  box-sizing: border-box;
}

.mobile-menu-links a {
  font-family: Optima, 'Trebuchet MS', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(36px, 12vw, 48px);
  line-height: 1.08;
  color: var(--text-link-resting);
  text-decoration: none;
  text-align: center;
  position: relative;
  transition: color var(--motion-standard) var(--ease-standard);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform var(--motion-standard) var(--ease-standard), opacity var(--motion-standard) var(--ease-standard);
}

.mobile-menu-links a:visited:not(.active) {
  color: var(--text-link-resting);
}

.mobile-menu-links a:visited:not(.active)::after {
  transform: scaleX(0);
  opacity: 0;
}

/* Touch: avoid sticky :hover; keyboard/mouse: show hover + focus ring */
@media (hover: hover) {
  .mobile-menu-links a:hover,
  .mobile-menu-links a:focus-visible {
    color: var(--text-link-active);
    outline: none;
  }

  .mobile-menu-links a:hover::after,
  .mobile-menu-links a:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
  }
}

.mobile-menu-links a:focus:not(:focus-visible):not(.active) {
  color: var(--text-link-resting);
}

.mobile-menu-links a:focus:not(:focus-visible):not(.active)::after {
  transform: scaleX(0);
  opacity: 0;
}

.mobile-menu-links a:active:not(.active) {
  color: var(--text-link-active);
}

.mobile-menu-links a.active {
  color: var(--text-link-active);
}

.mobile-menu-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after,
  .mobile-menu-links a::after {
    transition: none;
  }
}


/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--cream-100);
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-gators {
  width: 164px;
  height: 158px;
}

/* ========================================
   STAR DIVIDER
   ======================================== */
.star-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
  --star-rule-color: var(--green-300);
}

.star-divider .line {
  flex: 1;
  height: 1px;
  background: var(--star-rule-color);
}

.hero .star-divider {
  /* Wing lines use same token as images/illustration/star.svg */
  --star-rule-color: var(--green-500);
  /* Match Event / Travel star rail width */
  max-width: var(--content-rail);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.travel-wrapper .star-divider {
  --star-rule-color: var(--green-500);
}

.event-wrapper .star-divider {
  --star-rule-color: var(--green-500);
}

.star-divider .star-divider-mark {
  flex-shrink: 0;
  width: 77px;
  height: 24px;
  display: block;
}

.star-divider--spaced {
  margin-top: 48px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: none;
  white-space: nowrap;
}

/* Secondary — resting */
.btn-secondary {
  background: var(--white);
  border: 1px solid var(--green-300);
  color: var(--green-800);
}

/* Secondary — hovered */
.btn-secondary:hover {
  background: var(--green-200);
  border-color: var(--green-500);
}

/* Secondary — pressed */
.btn-secondary:active {
  background: var(--green-300);
  border-color: var(--green-800);
}

/* Secondary — disabled */
.btn-secondary:disabled {
  background: var(--neutral-200);
  border-color: var(--neutral-200);
  color: var(--neutral-500);
  cursor: default;
}

/* Primary — resting */
.btn-primary {
  background: var(--background-button-primary-resting);
  color: var(--cream-100);
}

/* Primary — hovered */
.btn-primary:hover {
  background: var(--green-900);
}

/* Primary — pressed */
.btn-primary:active {
  background: var(--green-900);
}

/* Primary — disabled */
.btn-primary:disabled {
  background: var(--neutral-500);
  color: var(--neutral-200);
  cursor: default;
}

/* ========================================
   FORM STYLES (RSVP)
   ======================================== */
.rsvp-section {
  background: var(--white);
  padding: 64px 40px;
}

.rsvp-card {
  max-width: 560px;
  min-width: 290px;
  margin: 0 auto;
  background: var(--cream-100);
  border-radius: 8px;
  box-shadow:
    0 8px 24px rgba(10, 33, 8, 0.12),
    0 2px 6px rgba(10, 33, 8, 0.08);
  padding: 24px;
}

.rsvp-card h2 {
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--neutral-1000);
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--green-300);
  border-radius: 8px;
  padding: 0 16px;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--neutral-700);
  background: var(--cream-100);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group select {
  padding-left: 16px;
  padding-right: 32px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23183930' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); /* green-800 */
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

/* Input — hovered */
.form-group input:hover,
.form-group select:hover {
  border-color: var(--green-500);
  color: var(--green-800);
}

/* Input — focused / selected */
.form-group input:focus,
.form-group select:focus {
  border-color: var(--green-800);
  color: var(--green-800);
  background: var(--cream-100);
}

/* Input — filled */
.form-group input:not(:placeholder-shown) {
  border-color: var(--green-800);
  color: var(--green-800);
  background: var(--cream-100);
}

.form-group select.filled {
  border-color: var(--green-800);
  color: var(--green-800);
  background-color: var(--cream-100);
}

/* ── Autocomplete ── */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--green-300);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.autocomplete-item {
  padding: 8px 16px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  color: var(--green-800);
  cursor: pointer;
  transition: background 0.15s;
}

.autocomplete-item:hover {
  background: var(--green-200);
}

.autocomplete-item strong {
  font-weight: 700;
}

/* ── Validation ── */
.form-group input.invalid,
.form-group select.invalid {
  border-color: var(--rose-500);
  background: var(--rose-200);
}

.field-error {
  font-size: 12px;
  color: var(--rose-500);
  margin: 4px 0 0;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

/* ── Guest entry ── */
.guest-entry {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.guest-entry + .guest-entry {
  border-top: 1px solid var(--green-300);
  padding-top: 12px;
  margin-top: 4px;
}

.guest-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.guest-entry-label {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-800);
}

.btn-remove-guest {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--neutral-500);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.btn-remove-guest:hover {
  color: var(--rose-500);
}

.btn-add-guest {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--green-300);
  border-radius: 8px;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--green-800);
  cursor: pointer;
  justify-content: center;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.btn-add-guest:hover { opacity: 0.85; }

.btn-continue {
  width: 100%;
  height: 44px;
  background: var(--green-800);
  border: none;
  border-radius: 8px;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--cream-100);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-continue:hover { opacity: 0.85; }

/* ========================================
   FILM GRAIN TEXTURE
   ======================================== */
.grain {
  position: relative;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  z-index: 0;
}

.grain > * {
  position: relative;
  z-index: 1;
}

.grain-light::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
}

/* ========================================
   HOME — HERO
   ======================================== */
.hero {
  background: var(--background-contrast-high);
  padding: 64px 24px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.hero .subheading {
  color: var(--rose-500);
  margin-top: 24px;
  margin-bottom: 24px;
}

.hero .script-name {
  color: var(--rose-300);
  margin: 0;
}

.hero .heart-icon {
  display: inline-block;
  margin: 0;
}

.hero .heart-icon img {
  display: block;
  width: 30px;
  height: auto;
}

/* ========================================
   HOME — DETAILS
   ======================================== */
.details-section {
  background: var(--rose-200);
  padding: 48px 80px;
}

.details-grid {
  display: flex;
  gap: 40px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: flex-start;
}

.details-left,
.details-right {
  width: 290px;
  flex-shrink: 0;
}

.details-right {
  text-align: right;
}

.details-center {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Earlier stacking to keep the photo-booth image from shrinking too far */
@media (max-width: 1100px) {
  .details-section {
    padding: 40px 24px;
  }

  .details-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .details-grid > * {
    width: 100%;
    text-align: center;
  }

  .details-center { order: 1; }
  .details-left   { order: 2; }
  .details-right  { order: 3; text-align: center; }
}

.details-address {
  color: var(--green-800);
}

.details-time {
  margin-top: 8px;
}

.details-date {
  color: var(--rose-500);
  margin-bottom: 16px;
}

.photo-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 400 / 536;
  background: var(--green-300);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
  font-size: 18px;
  margin: 16px 0;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-palm {
  display: block;
  margin: 12px auto 0;
  width: 48px;
  height: auto;
  max-height: 100px;
}

.details-date-accent {
  color: var(--rose-500);
}

.details-time-accent {
  margin-top: 12px;
  color: var(--rose-500);
}

.rsvp-heading {
  color: var(--text-subhead);
}

/* ========================================
   EVENT PAGE (aligned with Travel layout + Figma)
   ======================================== */
.event-wrapper {
  background: var(--green-200);
  padding: 64px 80px 120px;
}

.event-schedule-slot-time {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--neutral-900);
  margin: 0;
}

.event-schedule-slot-title {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--text-subhead);
  margin: 0;
}

.event-schedule-cell {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--text-subhead);
  margin: 0;
}

.church-illustration {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding: 0;
}

.church-illustration img {
  max-width: 100%;
  height: auto;
}

.church-illustration--compact img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

/* Dress code & notes: no star, centered, dividers only */
.event-extra {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  margin-top: 48px;
}

.event-extra-block {
  border-top: 1px solid var(--green-300);
  padding-top: 12px;
  text-align: center;
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--text-subhead);
}

.event-extra-block strong {
  display: block;
  color: var(--neutral-900);
  margin-bottom: 0;
}

.event-extra-block p {
  margin: 0;
}


/* ========================================
   TRAVEL PAGE
   ======================================== */
.travel-wrapper {
  background: var(--cream-100);
  padding: 64px 80px 120px;
}

.travel-inner {
  max-width: var(--content-rail);
  margin: 0 auto;
}

.travel-section-heading {
  color: var(--green-500);
  margin: 24px 0 16px;
  text-align: center;
  width: 100%;
}

.travel-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--green-300);
  padding: 12px 0 24px;
}

/* Travel type is applied via type-* utility classes in travel.html */

.hotel-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid var(--green-300);
  padding: 12px 0 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.hotel-info {
  flex: 1;
  min-width: 200px;
}

/* Hotel type is applied via type-* utility classes in travel.html */

.hotel-info .hotel-address:last-child { font-weight: 700; }

.hotel-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

/* Small tablet: avoid cramped side-by-side actions */
@media (max-width: 980px) {
  .travel-wrapper .hotel-row {
    flex-direction: column;
    align-items: stretch;
  }

  .travel-wrapper .hotel-buttons {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .travel-wrapper .hotel-buttons .btn {
    width: 100%;
  }
}

.favs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--green-300);
  padding: 12px 0 24px;
}

.favs-category h4 {
  margin-bottom: 4px;
}

/* Local favs type is applied via type-* utility classes in travel.html */

/* ========================================
   REGISTRY PAGE
   ======================================== */
.registry-wrapper {
  background: var(--background-contrast-high);
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 64px 24px 80px;
}

.registry-wrapper .star-divider {
  max-width: var(--content-rail);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  --star-rule-color: var(--green-500);
}

.registry-wrapper .coming-soon {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 80px;
  color: var(--rose-300);
  text-align: center;
  margin-top: 24px;
}

/* ========================================
   RESPONSIVE — MOBILE (<768px)
   ======================================== */
@media (max-width: 767px) {
  /* Type scale utilities (mobile) */
  .type-subhead {
    font-size: 18px;
    line-height: 24px;
  }

  .type-title-script {
    font-size: 48px;
    line-height: 56px;
  }

  .type-p1 {
    font-size: 19px;
    line-height: 28px;
  }

  .type-p2 {
    font-size: 14px;
    line-height: 21px;
  }

  .type-strong {
    font-size: 16px;
    line-height: 21px;
  }

  /* Nav stays above overlay; menu icon top-right */
  .site-nav {
    height: 64px;
    padding: 0 24px;
    z-index: 102;
    justify-content: flex-end;
  }

  .nav-links {
    display: none;
  }

  /* Sheet below bar — bar + hamburger / RSVP remain visible when open */
  .mobile-menu {
    inset: auto 0 0 0;
    top: 64px;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-menu-links {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 24px max(24px, env(safe-area-inset-right, 0px)) max(40px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    max-width: 100%;
    min-height: calc(100dvh - 64px);
  }

  .hamburger {
    display: inline-flex;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 9999px;
    background: var(--background-button-primary-resting);
    border: 1px solid var(--background-button-primary-resting);
    /* SVG strokes use currentColor — theme token so nav icons read light on dark */
    color: var(--icon-default);
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  }

  .hamburger:hover {
    opacity: 0.92;
    border-color: var(--green-500);
  }

  .hamburger:active {
    background: var(--green-900);
    border-color: var(--green-500);
  }

  .hamburger:focus-visible {
    outline: 2px solid var(--green-300);
    outline-offset: 2px;
  }

  /* Icon stack sizing lives on .hamburger-icons (single visual control) */

  /* Base font size */
  body {
    font-size: 16px;
  }

  /* Hero */
  .hero {
    padding: 40px 20px 60px;
  }

  /* Details */
  .details-section {
    padding: 32px 20px;
  }

  .details-grid {
    flex-direction: column;
    align-items: center;
  }

  .details-grid > * {
    order: 2;
    width: 100%;
    text-align: center;
  }

  .details-center { order: 1; }
  .details-left   { order: 2; }
  .details-right  { order: 3; text-align: center; }

  /* Home type now comes from type-* utilities */

  /* RSVP */
  .rsvp-section {
    padding: 40px 16px;
  }

  /* Event */
  .event-wrapper {
    padding: 40px 20px 80px;
  }

  .church-illustration {
    margin-top: 32px;
  }

  .event-extra {
    margin-top: 32px;
  }

  /* Mobile: more space between schedule boxes */
  .event-wrapper .travel-row {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .event-wrapper .travel-row:last-of-type {
    margin-bottom: 0;
  }

  /* Event type now comes from type-* utilities */

  /* Event schedule: single column — centered; venue + address lines flush */
  .event-wrapper .travel-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .event-wrapper .travel-row > div {
    width: 100%;
  }

  .event-wrapper .travel-row > div:first-child {
    margin-bottom: 12px;
  }

  .event-wrapper .travel-row > div:nth-child(3) .event-schedule-cell {
    line-height: 1.3;
  }

  /* Travel */
  .travel-wrapper {
    padding: 40px 20px 80px;
  }

  .travel-wrapper,
  .travel-wrapper .travel-inner {
    text-align: center;
  }

  .travel-row,
  .favs-row {
    grid-template-columns: 1fr;
  }

  .travel-row > div,
  .favs-category {
    text-align: center;
  }

  /* Travel type now comes from type-* utilities */

  .hotel-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hotel-info {
    min-width: 0;
    width: 100%;
  }

  .hotel-buttons {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hotel-buttons .btn {
    flex: none;
    width: 100%;
  }

  /* Registry */
  .registry-wrapper {
    min-height: calc(100vh - 64px);
  }

  .registry-wrapper .coming-soon {
    font-size: 42px;
  }

  /* Footer */
  .site-footer {
    padding: 48px 24px;
  }
}

/* ========================================
   RSVP — temporarily hidden
   Delete this block to restore nav link + form.
   ======================================== */
.nav-rsvp,
.rsvp-section {
  display: none !important;
}
