/* ============================
   THEME VARIABLES
   ============================ */
:root {
  /* Light mode defaults */
  --bg-page: #f8f5f0;
  --bg-alt: #f2ece3;
  /* Unified, lighter overlay used in BOTH themes */
  --bg-hero-overlay-top: rgba(0, 0, 0, 0.28);
  --bg-hero-overlay-bottom: rgba(0, 0, 0, 0.65);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-footer: #101010;

  --card-border: rgba(0, 0, 0, 0.14);
  --card-blur: 18px;

  --text-main: #181818;
  --text-muted: #666666;
  --text-invert: #f5f5f5;

  --nav-bg: rgba(248, 245, 240, 0.96);

  --border-soft: rgba(0, 0, 0, 0.12);

  /* ONE sans-serif + ONE serif */
  --font-body: system-ui, sans-serif;
  --font-heading: "Georgia", serif;

  /* Toggle colors (light mode) */
  --toggle-border: rgba(0, 0, 0, 0.9);
  --toggle-icon: #111111;
}

html[data-theme="dark"] {
  --bg-page: #050505;
  --bg-alt: #0e0e0e;
  /* Same overlay as light mode for consistent intensity */
  --bg-hero-overlay-top: rgba(0, 0, 0, 0.28);
  --bg-hero-overlay-bottom: rgba(0, 0, 0, 0.65);
  --bg-card: rgba(9, 9, 9, 0.82);
  --bg-footer: #000000;

  --card-border: rgba(255, 255, 255, 0.12);
  --card-blur: 22px;

  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  --text-invert: #ffffff;

  --nav-bg: rgba(0, 0, 0, 0.9);

  --border-soft: rgba(255, 255, 255, 0.18);

  /* Toggle colors (dark mode) */
  --toggle-border: rgba(255, 255, 255, 0.9);
  --toggle-icon: #f5f5f5;
}

/* ============================
   RESET & BASE
   ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout helpers */
.inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  position: relative;       /* anchor mobile dropdown */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;       /* equal left/right padding */
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* EST. 2023 line – base styles (desktop hidden) */
.brand-subtext {
  display: none;             /* hidden by default (desktop) */
  color: #C58D25;            /* light-mode color */
  font-weight: 400;          /* unbolded */
  font-size: 10px;           /* smaller than main line */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Dark mode override */
html[data-theme="dark"] .brand-subtext {
  color: #C58D25;            /* dark-mode color */
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.brand-monogram circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5;
}

html[data-theme="light"] .brand-monogram circle {
  stroke: rgba(0, 0, 0, 0.8);
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--text-main);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-main);
  opacity: 0.8;
  padding: 6px 8px;
  border-radius: 3.60px;
  transition:
    opacity 160ms ease-out,
    background-color 160ms ease-out,
    color 160ms ease-out,
    transform 120ms ease-out;
}

html[data-theme="dark"] .site-nav a {
  color: var(--text-invert);
}

.site-nav a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

html[data-theme="light"] .site-nav a:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.nav-rsvp {
  border: 1px solid currentColor;
  padding: 6px 16px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border-radius: 3.60px;
  border: 1px solid var(--toggle-border);  /* changed */
  width: 40px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-toggle-bar {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--toggle-icon);          /* changed */
  border-radius: 3.60px;
  transition:
    transform 140ms ease-out,
    opacity 140ms ease-out,
    top 140ms ease-out,
    bottom 140ms ease-out;
}

/* === Theme toggle – outer circle + Lucide sun / circle === */

.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--toggle-border);
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;      /* centers icon vertically */
  justify-content: center;  /* centers icon horizontally */
  line-height: 0;
  cursor: pointer;
  outline: none;
  transition:
    border-color 150ms ease-out,
    transform 150ms ease-out;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  stroke: var(--toggle-icon);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* No extra transforms: both sun and circle are naturally centered */
.icon-sun,
.icon-circle {
  transform: translate(0, 0);
}

/* Show sun in light mode, circle in dark mode */
.icon-sun {
  display: inline-block;
}

.icon-circle {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-circle {
  display: inline-block;
}

.nav-toggle-bar:nth-child(1) { top: 11px; }
.nav-toggle-bar:nth-child(2) { top: 17px; }
.nav-toggle-bar:nth-child(3) { top: 23px; }

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  top: 17px;
  transform: rotate(-45deg);
}

/* ============================
   SECTIONS
   ============================ */
.section {
  padding: 90px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

/* Hero */
.hero-countdown {
  margin-top: auto;             /* pushes countdown + buttons to bottom */
  margin-bottom: 18px;
  font-size: clamp(12px, 1.6vw, 16px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Hero */
.hero {
  position: relative;
  height: calc(100vh - 84px);   /* fill viewport minus sticky header */
  min-height: auto;
  color: var(--text-invert);

  display: flex;
  justify-content: center;      /* center the inner block horizontally */
  align-items: stretch;         /* let inner take full height */

  /* less top padding so text hugs the top of the image more */
  padding: 32px 20px 24px;
  overflow: hidden;             /* keep scaled bg clipped */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.jpg"); /* fixed path */
  background-size: cover;
  background-position: center;
  z-index: 0;

  /* Parallax/zoom base state */
  transform: scale(1.08) translateY(0);
  transform-origin: center center;
  will-change: transform;

  /* NEW: fade-in on load */
  opacity: 0;
  animation: heroBgFadeIn 900ms ease-out forwards;
}

/* NEW: fade-in keyframes */
@keyframes heroBgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-hero-overlay-top),
    var(--bg-hero-overlay-bottom)
  );
  z-index: 1;
}

/* Date line */
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: clamp(11px, 1.6vw, 16px);
  opacity: 0.95;
  margin-bottom: 4.5px;
  white-space: nowrap;
  transition:
    font-size 180ms ease-out,
    letter-spacing 180ms ease-out;
}

/* "Naviya & Ashish" */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  text-align: center;

  display: flex;
  flex-direction: column;       /* stack hero content vertically */
  align-items: center;
  height: 100%;                 /* needed so auto margins work */
}

/* "Naviya & Ashish" */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 4.5vw, 56px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  transition:
    font-size 180ms ease-out,
    letter-spacing 180ms ease-out;
}

.hero-subtitle {
  margin: 4.5px auto 0;
  max-width: 540px;
  font-size: 15px;
  opacity: 0.94;
}

.hero-actions {
  display: flex;
  margin-bottom: 27px;
  justify-content: center;
  gap: 12px;
}

/* === Responsive tweaks to keep everything visible and readable === */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    height: calc(100vh - 72px);
    padding: 24px 20px 24px;
  }

  .hero-inner {
    padding-bottom: 20px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 20px 10px;
    min-height: auto;
  }

  .brand {
    justify-content: center;
    margin-bottom: 2px;
  }

  .brand-mark {
    display: none;
  }

  .brand-text {
    text-align: center;
  }

  .header-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

@media (max-width: 600px) {
  .hero {
    /* Take up the full viewport minus sticky header */
    height: calc(100vh - 64px);
    padding: 20px 20px 24px;
    min-height: auto;            /* no extra min-height fighting us */
    padding: 72px 20px 24px;     /* some space from top, small bottom */
    justify-content: flex-start; /* <-- stop vertical centering */
    align-items: stretch;        /* let inner fill vertically */
  }

  .hero-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;                /* so auto margins have room */
  }

  .hero-kicker {
    letter-spacing: 0.18em;
  }

  .hero-title {
    letter-spacing: 0.18em;
  }

  /* Big gap between subtitle block and countdown/buttons */
  .hero-countdown {
    margin-top: auto;            /* pushes countdown + buttons down */
    margin-bottom: 27px;         /* small space above buttons */
  }

  .hero-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 3.60px;
  border: 1px solid transparent;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out,
    transform 120ms ease-out;
  box-shadow: none; /* no shadows on any buttons */
}

.btn.primary {
  background-color: #f5f5f5;
  border-color: #f5f5f5;
  color: #111111;
}

.btn.primary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

html[data-theme="light"] .btn.primary {
  background-color: #111111;
  border-color: #111111;
  color: #f5f5f5;
}

html[data-theme="light"] .btn.primary:hover {
  background-color: #000000;
  border-color: #000000;
}

.btn.ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text-invert);
}

.btn.ghost:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

/* Smaller variant for subtle actions like "RSVP for my party" */
.btn-small {
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* Section headings */
.section-heading {
  text-align: left;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 4.5vw, 56px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-intro {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards & glass effect */
.card {
  border-radius: 3.60px;
  padding: 20px 20px 18px;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.card-heading-with-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-heading-with-step h3 {
  margin: 0;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--bg-alt);
  color: var(--text-main);
}

html[data-theme="dark"] .step-icon {
  background-color: rgba(0, 0, 0, 0.6);
}

.glass {
  background-color: var(--bg-card);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 17px;
}

.card p {
  margin-top: 4px;
  margin-bottom: 10px;
}

.muted {
  font-size: 13px;
  color: var(--text-muted);
}

/* Lists */
.list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}

.list li {
  margin-bottom: 6px;
}

/* Gallery */
/* Desktop / tablet mosaic: small, big, small, big (clockwise)
   with shallower rows so narrow images are more widescreen */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Fixed-ish row height so items don't get overly tall */
  grid-auto-rows: 180px; /* tweak between 160–220px to taste */
  gap: 8px;
}

/* Make sure each child behaves as a grid item with proper clipping */
.gallery > * {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

/* 1: small (top-left) */
.gallery > *:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

/* 2: big (top-right, spans two columns) */
.gallery > *:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

/* 3: small (bottom-right) */
.gallery > *:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

/* 4: big (bottom-left, spans two columns) */
.gallery > *:nth-child(4) {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

/* Mobile: simpler layout so nothing feels cramped */
@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .gallery > *:nth-child(1),
  .gallery > *:nth-child(2),
  .gallery > *:nth-child(3),
  .gallery > *:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 3.60px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(100%); */
  transform: scale(1.02);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

.gallery-item img:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

.gallery-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* FAQ */
.faq-block dl {
  margin: 0;
}

.faq-block dt {
  font-weight: 600;
  margin-top: 10px;
  font-size: 14px;
}

.faq-block dd {
  margin: 2px 0 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* RSVP layout */
.section-rsvp {
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.96)
  );
}

html[data-theme="light"] .section-rsvp {
  background: radial-gradient(circle at top, #f2ece3, #f8f5f0);
}

.rsvp-grid {
  align-items: flex-start;
}

/* Form basics */
.rsvp-lookup,
.rsvp-form {
  margin-top: 10px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.single {
  grid-template-columns: minmax(0, 1fr);
}

label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  font: inherit;
  border-radius: 3.60px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 11px;
  background-color: rgba(0, 0, 0, 0.45);
  color: var(--text-invert);
  transition:
    border-color 130ms ease-out,
    background-color 130ms ease-out;
}

html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background-color: #f9f9f9;
  color: #111111;
  border-color: rgba(0, 0, 0, 0.16);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ffffff;
  background-color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: #111111;
  background-color: #ffffff;
}

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

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 4px;
}

.checkbox-group label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* RSVP search results – "Find your card" side */
.rsvp-search-result {
  margin-top: 14px;
  font-size: 14px;
}

.rsvp-search-result p {
  margin: 0 0 6px;
}

.guest-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.guest-card {
  width: 100%;
  border-radius: 3.60px;
  border: 1px solid var(--card-border);
  background-color: var(--bg-card);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-main);
  transition:
    background-color 140ms ease-out,
    transform 120ms ease-out,
    border-color 140ms ease-out;
}

/* Hover states stay theme-aware */
.guest-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

html[data-theme="light"] .guest-card:hover {
  background-color: #f4f4f4;
}

/* Selected state still pops for both themes */
.guest-card.is-selected {
  border-width: 2px;
  border-color: #ffffff;
}

html[data-theme="light"] .guest-card.is-selected {
  border-color: #111111;
}

/* Party member list – style to match guest-card */
.party-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.party-member {
  width: 100%;
  border-radius: 3.60px;
  border: 1px solid var(--card-border);
  background-color: var(--bg-card);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-main);
  font-size: 14px;
  transition:
    background-color 140ms ease-out,
    transform 120ms ease-out,
    border-color 140ms ease-out;
}

/* Hover/selected mirror guest-card */
.party-member:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

html[data-theme="light"] .party-member:hover {
  background-color: #f4f4f4;
}

.party-member.is-selected {
  border-width: 2px;
  border-color: #ffffff;
}

html[data-theme="light"] .party-member.is-selected {
  border-color: #111111;
}

/* Party card text */
.guest-name {
  font-weight: 600;
  color: var(--text-main);
}

.guest-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Form footnote + status */
.form-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.form-status {
  margin-top: 8px;
  font-size: 13px;
}

/* Extra spacing between Submit button and footnote */
.form-actions {
  margin-bottom: 1.25rem;
}

/* Hover states stay theme-aware */
.guest-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

html[data-theme="light"] .guest-card:hover {
  background-color: #f4f4f4;
}

/* Selected state still pops for both themes */
.guest-card.is-selected {
  border-width: 2px;
  border-color: #ffffff;
}

html[data-theme="light"] .guest-card.is-selected {
  border-color: #111111;
}

/* Party card text */
.guest-name {
  font-weight: 600;
  color: var(--text-main);
}

.guest-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Form footnote + status */
.form-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.form-status {
  margin-top: 8px;
  font-size: 13px;
}

.form-actions {
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-invert);
  padding: 22px 0 18px;
  font-size: 13px;
}

.site-footer .inner {
  text-align: center;
  opacity: 0.86;
}

/* Thank-you page */
.thankyou {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: radial-gradient(circle at top, #111111, #000000);
}

.thankyou-card {
  max-width: 500px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 3.60px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5f5f5;
}

.thankyou-card h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0;
}

.thankyou-card p {
  margin: 8px 0;
}

/* ============================
   MEDIA QUERIES
   ============================ */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 80px;
  }

  .hero-inner {
    padding-bottom: 20px;
  }

  /* Header: stack brand above nav/controls */
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 20px 10px;  /* equal left/right */
    min-height: auto;
  }

  .brand {
    justify-content: center;
    margin-bottom: 2px;
  }

  .brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
  }

  .brand-text {
    text-align: center;
  }

  .brand-subtext {
    display: block;              /* forces it onto its own line */
    color: #C58D25;
    font-weight: 400;            /* unbolded */
    font-size: 10px;             /* smaller than main line */
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
  }


  .header-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

@media (max-width: 768px) {
  /* Brand stays on top row, full-width */
  .header-inner {
    align-items: stretch;
    padding: 14px 20px 10px;   /* keep equal padding on both sides */
  }

  .header-right {
    justify-content: flex-end;
  }

  /* Mobile dropdown: below the header, never over the brand */
  .site-nav {
    position: absolute;
    right: 16px;
    top: 100%;           /* directly under .header-inner */
    margin-top: 8px;
    background-color: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: 3.60px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      opacity 150ms ease-out,
      transform 150ms ease-out;
  }

  html[data-theme="light"] .site-nav {
    background-color: rgba(255, 255, 255, 0.98);
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }
}
