/* ============================================================
   Just Enough · Nantucket
   Design system
   ============================================================ */
:root {
  /* Primary CTA: classic Nantucket salmon — faded rose/reddish, New England coastal.
     Retained as --forest for CSS-diff compatibility across existing selectors. */
  --forest: #c85e4a;
  --forest-dark: #a24934;
  --salmon-soft: #eaa391;
  --salmon-pale: #fde1d4;
  --sand: #f5f2ea;
  --cream: #f9f7f0;
  --navy: #1a2e3b;
  --navy-glass: rgba(26, 46, 59, 0.88);
  --ink: #1a2e3b;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --nav-h: 64px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.22);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--ink);
  overscroll-behavior-y: none;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img, video, svg { display: block; max-width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--navy-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 10px 14px;
  min-height: 44px;
  color: rgba(249,247,240,0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-tab:hover { color: var(--cream); }
.nav-tab.active {
  color: var(--cream);
  background: rgba(249,247,240,0.12);
}

/* ============================================================
   PAGE / TRANSITIONS
   ============================================================ */
.page {
  display: none;
  position: relative;
  min-height: 100lvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  background: var(--navy);
}
.page.active {
  display: flex;
  flex-direction: column;
  animation: fadeSlide 260ms ease both;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HERO (SECTION 1)
   ============================================================ */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/just-enough-front-bw.jpg");
  background-size: cover;
  background-position: center;
  /* slightly desaturated B&W — softer, more inviting than stark */
  filter: grayscale(85%) contrast(1.08) brightness(0.82) sepia(0.08);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.6) 100%
  );
  z-index: 1;
}
.hero-overlay-thanks {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14vh 20px 8vh;
  gap: 24px;
  min-height: calc(100lvh - var(--nav-h));
}

/* Headline sits at the top, scallop CTA pushes to bottom via margin-top:auto */
.hero-headline {
  text-align: center;
  color: var(--cream);
  padding: 0 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  pointer-events: none;
}
.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 12vw, 120px);
  line-height: 1;
  margin: 0;
}

/* Reserve CTA — label above, small down arrow, salmon scallop shell as the button */
.scallop-cta {
  margin-top: auto;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), filter 0.3s ease;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.45));
}
.scallop-cta:hover { transform: translateY(-4px); filter: drop-shadow(0 18px 42px rgba(0,0,0,0.55)); }
.scallop-cta:active { transform: translateY(-1px); }
.scallop-cta:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 10px;
  border-radius: 16px;
}
.scallop-cta__label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 4.5vw, 30px);
  color: var(--cream);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  line-height: 1.1;
}
.scallop-cta__arrow {
  width: 18px;
  height: 34px;
  color: var(--salmon-soft);
  margin-bottom: -2px;
  opacity: 0.95;
}
.scallop-cta__shell {
  width: clamp(150px, 32vw, 210px);
  height: auto;
  display: block;
}

.bounce-arrow {
  color: rgba(249,247,240,0.9);
  font-size: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  animation: bounce 2.2s ease-in-out infinite;
  min-height: 44px;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================================
   HOUSE PHOTO BACKGROUNDS (Rooms / Form / Thanks)
   ============================================================ */
.house-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform-origin: center center;
  animation: kenBurns 28s ease-in-out infinite alternate;
}
.house-bg-back {
  background-image: url("../assets/just-enough-back.jpeg");
  /* vivid boost — greens pop, sky stays clean */
  filter: saturate(1.28) contrast(1.08) brightness(1.03);
}
.house-bg-front-color {
  background-image: url("../assets/just-enough-front-color.jpeg");
  /* vivid boost — hydrangeas really sing */
  filter: saturate(1.35) contrast(1.08) brightness(1.04);
  animation: kenBurnsSoft 32s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, -1.5%); }
}
@keyframes kenBurnsSoft {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.08) translate(1.5%, -1%); }
}
.navy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,46,59,0.35) 0%,
    rgba(26,46,59,0.55) 100%
  );
  z-index: 1;
}
.thanks-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0%,
    rgba(26,46,59,0.2) 50%,
    rgba(26,46,59,0.35) 100%
  );
  z-index: 1;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  text-align: center;
  color: var(--cream);
  margin: 16px 0 28px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(34px, 7.5vw, 56px);
  line-height: 1.1;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.25);
}

/* ============================================================
   ROOM CARDS
   ============================================================ */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
}
@media (max-width: 399px) {
  .rooms-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .rooms-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.room-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  /* glassmorphism — semi-transparent white over the beach video */
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px 48px;
  color: var(--cream);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  text-align: center;
}
.room-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.35);
}
.room-card.selected {
  outline: 2px solid #d9b765;
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.28);
}
/* Line-art SVG icon — gold tint, crisp strokes */
.room-icon {
  width: 40px;
  height: 40px;
  color: #e3c57a;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.room-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.05;
  z-index: 1;
}
.room-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  z-index: 1;
}
.room-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 10px;
  z-index: 2;
}
.room-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.room-dots .more {
  font-size: 10px;
  color: var(--cream);
  font-weight: 700;
  opacity: 0.9;
}

/* ============================================================
   DATE PICKER
   ============================================================ */
.date-picker {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 22px;
  padding: 20px;
  color: var(--cream);
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.22);
  animation: fadeSlide 280ms ease both;
}

.selected-room-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
}
.selected-room-banner strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
}
.change-room-link {
  color: rgba(249,247,240,0.8);
  text-decoration: underline;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 4px;
  min-height: 44px;
}
.change-room-link:hover { color: var(--cream); }

.date-picker-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 640px) {
  .date-picker-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .calendar-wrap { width: 300px; flex-shrink: 0; }
  .date-inputs { flex: 1; }
}

.calendar-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.calendar { min-width: 276px; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px;
}
.cal-nav-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--cream);
  background: rgba(255,255,255,0.08);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cal-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-dow {
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.65;
  padding: 6px 0;
}
.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 8px;
  background: transparent;
  color: var(--cream);
  transition: background 0.15s ease;
  padding: 4px 2px 8px;
}
.cal-cell:not(.empty):not(.past):hover { background: rgba(255,255,255,0.12); }
.cal-cell:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: -2px;
  background: rgba(255,255,255,0.16);
}
.cal-cell.empty { visibility: hidden; }
.cal-cell.past { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.cal-cell.today { box-shadow: inset 0 0 0 1px rgba(249,247,240,0.55); }
.cal-cell.selected { background: var(--forest); color: #fff; }
.cal-cell.in-range { background: rgba(200, 94, 74, 0.4); color: #fff; }

.cal-cell .day-num { line-height: 1; }
.cal-cell .day-dots {
  margin-top: 3px;
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: nowrap;
  max-width: 100%;
}
.cal-cell .day-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.cal-cell .day-dots .more {
  font-size: 8px;
  font-weight: 700;
  opacity: 0.9;
  line-height: 1;
}

/* ============================================================
   FIELDS / INPUTS
   ============================================================ */
.date-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.14);
  color: var(--cream);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(249,247,240,0.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cream);
  background: rgba(255,255,255,0.22);
  outline: none;
}
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.14);
  color: var(--cream);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--navy); color: var(--cream); }
.field textarea { resize: vertical; min-height: 84px; }

/* Guest form layout */
.guest-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.guest-form .btn-pill { align-self: center; margin-top: 6px; min-width: 240px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn-green {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 2px 6px rgba(0,0,0,0.18);
  border: 1px solid rgba(249,247,240,0.15);
}
.btn-green:hover {
  background: var(--forest-dark);
  box-shadow: 0 14px 32px rgba(0,0,0,0.38), 0 4px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.btn-green:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(0,0,0,0.22); }
.btn-ghost {
  background: rgba(255,255,255,0.16);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.26); }

#request-stay-btn,
#submit-request-btn {
  align-self: center;
  margin-top: 8px;
  min-width: 220px;
}

/* ============================================================
   NAV ARROWS (per-section)
   ============================================================ */
.nav-arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}
.arrow-btn {
  min-width: 52px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}
.arrow-btn:hover { background: rgba(255,255,255,0.28); }
.arrow-btn.arrow-forward {
  background: var(--forest);
  color: var(--cream);
  border-color: transparent;
}
.arrow-btn.arrow-forward:hover { background: var(--forest-dark); }

/* ============================================================
   SOUND TOGGLE
   ============================================================ */
.sound-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  min-height: 56px;
  padding: 10px 20px 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--navy-glass);
  color: var(--cream);
  border: 1.5px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.25s ease, background 0.2s ease;
}
.sound-toggle__icon { font-size: 22px; line-height: 1; }
.sound-toggle__label { white-space: nowrap; }
/* Toggle appears on interior pages (rooms + guest info) — hidden on hero and thanks. */
body.in-site .sound-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sound-toggle:hover { background: rgba(26,46,59,0.85); transform: translateY(-2px); }
.sound-toggle[aria-pressed="true"] {
  background: rgba(200, 94, 74, 0.35);
  border-color: rgba(255,255,255,0.5);
}

/* ============================================================
   GLASS CARD (SECTION 3)
   ============================================================ */
.glass-card {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 22px;
  padding: 28px 24px;
  color: var(--cream);
  box-shadow: 0 16px 44px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.22);
  margin: 24px auto;
  width: 100%;
  max-width: 520px;
}
.form-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.form-summary .dot-sep,
.form-summary .arrow-sep { opacity: 0.6; }

.request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay[hidden] { display: none; }
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,46,59,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(249,247,240,0.25);
  border-top-color: var(--cream);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   THANKS PAGE
   ============================================================ */
.thanks-inner {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  gap: 20px;
  min-height: calc(100dvh - var(--nav-h));
}
.thanks-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 22px;
  padding: 40px 32px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.2);
}
.thanks-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(34px, 7vw, 54px);
  margin: 0;
  line-height: 1.1;
}
.thanks-body {
  font-size: 16px;
  max-width: 420px;
  margin: 0;
  opacity: 0.95;
}

/* ============================================================
   GUEST INFO
   ============================================================ */
.page-light {
  background: var(--cream);
}
.guest-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 7vw, 52px);
  text-align: center;
  margin: 16px 0 28px;
  color: var(--navy);
}
.info-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .info-cards { grid-template-columns: 1fr 1fr; }
}
.info-card {
  background: #fff;
  border: 1px solid rgba(26,46,59,0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--forest);
  margin: 0 0 10px;
}
.info-card p {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   iOS / MOBILE SAFETY — safe-area insets + touch-target sizing
   Applies on top of desktop styles. Keeps desktop pristine.
   ============================================================ */

/* Notch / Dynamic Island: push fixed nav below the status bar. */
.nav {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}
/* Bump page content down to match taller nav on notched devices. */
.page {
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}

/* Home indicator: lift fixed bottom UI out of the swipe zone. */
.sound-toggle {
  bottom: max(20px, calc(20px + env(safe-area-inset-bottom, 0px)));
  right: max(20px, calc(20px + env(safe-area-inset-right, 0px)));
}
.toast {
  bottom: max(24px, calc(24px + env(safe-area-inset-bottom, 0px)));
}

/* Scallop CTA — guarantee a generous hit target even if layout shrinks. */
.scallop-cta {
  min-width: 120px;
  min-height: 120px;
}

/* Mobile-only tuning (≤640px) */
@media (max-width: 640px) {
  /* Calendar: enforce 44×44 day cells + bigger nav buttons per Apple HIG. */
  .calendar { min-width: 0; width: 100%; }
  .calendar-wrap { overflow-x: visible; }
  .cal-grid { gap: 3px; }
  .cal-cell {
    aspect-ratio: auto;
    min-height: 44px;
    font-size: 13px;
    padding: 4px 1px 6px;
  }
  .cal-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .cal-dow { font-size: 10px; padding: 4px 0; }
  .cal-cell .day-dots .dot { width: 4px; height: 4px; }

  /* Forms: inputs already 16px (no iOS zoom). Widen tap areas. */
  .field input,
  .field select,
  .field textarea { min-height: 48px; }

  /* Nav: let tabs scroll horizontally if they overflow on narrow screens. */
  .nav { gap: 8px; }
  .nav-logo { font-size: 18px; }
  .nav-tab { padding: 10px 12px; font-size: 11px; letter-spacing: 1.4px; }

  /* Hero: guard against scallop + title cramping on iPhone SE (667px tall). */
  .hero-inner { padding-top: 12vh; gap: 16px; }
  .scallop-cta__shell { width: clamp(140px, 42vw, 200px); }

  /* Page inner: trim side padding a hair for more room. */
  .page-inner { padding: 20px 16px 32px; }
}
