/* ============================================================
   BugBites Sweets & Snacks — Design Tokens
   Palette derived from the brand mascot: sky-blue caterpillar,
   golden wordmark, warm wood sign, green leaves, cream backdrop.
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — warm cream / cottage kitchen */
  --color-bg: #fff9f0;
  --color-surface: #ffffff;
  --color-surface-2: #fffdf8;
  --color-surface-offset: #fcf1de;
  --color-surface-offset-2: #f6e6c8;
  --color-surface-dynamic: #f0dcb4;
  --color-divider: #ecdfc0;
  --color-border: #e2d1a4;

  /* Text — warm near-black */
  --color-text: #2c2519;
  --color-text-muted: #6c6252;
  --color-text-faint: #a89b81;
  --color-text-inverse: #fffaf0;

  /* Primary accent — caterpillar sky-blue (deepened for AA contrast) */
  --color-primary: #1c7fa0;
  --color-primary-hover: #146a87;
  --color-primary-active: #0f5468;
  --color-primary-highlight: #d7eef6;

  /* Gold accent — from the wordmark, used sparingly */
  --color-gold: #d99a00;
  --color-gold-hover: #b98000;
  --color-gold-active: #916500;
  --color-gold-highlight: #fbe9bd;

  /* Leaf green — cottage/fresh accents */
  --color-success: #4f8a35;
  --color-success-hover: #3d6c28;
  --color-success-active: #2e531e;
  --color-success-highlight: #dcecd0;

  /* Wood brown — footer / grounding tone */
  --color-wood: #7a5230;
  --color-wood-dark: #5a3b22;

  /* Error / notification — kept neutral maroon, minimal use */
  --color-error: #a3324a;
  --color-error-highlight: #f1d9de;

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px oklch(0.35 0.05 60 / 0.1);
  --shadow-md: 0 6px 16px oklch(0.35 0.05 60 / 0.12);
  --shadow-lg: 0 16px 40px oklch(0.35 0.05 60 / 0.16);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1220px;
  --content-full: 100%;

  --font-display: 'Baloo 2', 'Chillax', system-ui, sans-serif;
  --font-body: 'Nunito', 'General Sans', system-ui, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #1c1712;
  --color-surface: #241e16;
  --color-surface-2: #292219;
  --color-surface-offset: #2f271b;
  --color-surface-offset-2: #382e1f;
  --color-surface-dynamic: #423523;
  --color-divider: #3a2f21;
  --color-border: #4a3c27;

  --color-text: #f3ecdc;
  --color-text-muted: #bcae92;
  --color-text-faint: #8a7c62;
  --color-text-inverse: #241e16;

  --color-primary: #6fc4e2;
  --color-primary-hover: #8fd3ea;
  --color-primary-active: #aadeef;
  --color-primary-highlight: #2a4450;

  --color-gold: #f0bd3e;
  --color-gold-hover: #f6cd63;
  --color-gold-active: #f9db8c;
  --color-gold-highlight: #4a3c1e;

  --color-success: #8bbf62;
  --color-success-hover: #a2cd7d;
  --color-success-active: #b9da9a;
  --color-success-highlight: #33421f;

  --color-wood: #c99a67;
  --color-wood-dark: #8a6541;

  --color-error: #d9748c;
  --color-error-highlight: #4a2530;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.36);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow {
  max-width: var(--content-narrow);
}
.container--default {
  max-width: var(--content-default);
}

main {
  overflow-x: clip;
}

section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.hero-section {
  padding-block: 0;
}

.section-tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--color-bg);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.6);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--color-surface-offset);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-word {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-word span {
  color: var(--color-gold);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  line-height: 1;
}
@media (max-width: 360px) {
  .brand-sub {
    font-size: 0.58rem;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-primary);
}
.nav-links a[aria-current='page'] {
  color: var(--color-text);
}
.nav-links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: transparent;
}
.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--color-surface-offset);
  color: var(--color-primary);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-8) var(--space-6);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    gap: var(--space-1);
  }
  .nav-links a {
    display: block;
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-divider);
  }
  .header-actions {
    margin-top: var(--space-8);
    justify-content: space-between;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-sm);
  text-decoration: none;
  min-height: 44px;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--color-gold);
  color: #2c2519;
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--color-gold-hover);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-success);
  background: var(--color-success-highlight);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.hero-eyebrow svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}
.hero p.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero-art {
  position: relative;
  justify-self: center;
}
.hero-art img {
  width: min(100%, 380px);
  height: auto;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 20px 40px oklch(0.35 0.05 60 / 0.18));
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 8% 6%;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle,
    var(--color-primary-highlight) 0%,
    transparent 72%
  );
  z-index: -1;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-block: var(--space-8);
  }
  .hero-art {
    order: -1;
    justify-self: center;
    width: 100%;
  }
  .hero-art img {
    max-width: 220px;
  }
}

/* ============================================================
   Full-bleed image band
   ============================================================ */

.bleed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .bleed {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
  }
}

/* ============================================================
   Section headers
   ============================================================ */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
}
.section-head .kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}
.section-head p {
  color: var(--color-text-muted);
  max-width: 48ch;
}

.page-hero {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-6);
}
.page-hero .kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ============================================================
   Product preview / cards
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.7);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card .thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}
.product-card .name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}
.product-card .tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}
.product-card .price {
  margin-top: var(--space-3);
  font-weight: 800;
  color: var(--color-primary);
  font-size: var(--text-base);
}

/* Full menu items — alternating editorial rows */
.menu-item {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-10);
  align-items: center;
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-item:nth-child(even) .menu-photo {
  order: 2;
}
.menu-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.4;
}
.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-copy .name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}
.menu-copy h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.menu-copy .price-tag {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  white-space: nowrap;
}
.menu-copy .portion {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-success);
  background: var(--color-success-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.menu-copy p {
  color: var(--color-text-muted);
}
.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-3) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
}
.size-list .size-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.size-list .size-row .size-label {
  color: var(--color-text-muted);
}
.size-list .size-row .size-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 760px) {
  .menu-item,
  .menu-item:nth-child(even) .menu-photo {
    grid-template-columns: 1fr;
    order: initial;
  }
  .menu-item {
    grid-template-columns: 1fr;
  }
  .menu-photo {
    max-width: 320px;
  }
}

/* ============================================================
   About page
   ============================================================ */

.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-14);
  align-items: center;
}
.story-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-photo img {
  width: 100%;
  aspect-ratio: 4/3.2;
  object-fit: cover;
}
.story-copy h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}
.story-copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}
.story-copy p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.pull-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  padding-left: var(--space-8);
  border-left: none;
  margin-block: var(--space-4);
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.15em;
  font-family: var(--font-display);
  font-size: 1.6em;
  color: var(--color-gold);
}

.values-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-4);
}
.value-line {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-5);
  align-items: baseline;
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.value-line:first-child {
  border-top: none;
}
.value-line .num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
}
.value-line h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.value-line p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   Callouts / notices
   ============================================================ */

.callout {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.callout svg {
  width: 28px;
  height: 28px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}
.callout h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.callout p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.legal-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 68ch;
}

/* ============================================================
   Empty state (Where to Find Us)
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-16) var(--space-10);
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  max-width: 640px;
}
.empty-state .empty-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 46ch;
}

/* ============================================================
   Contact page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-14);
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-item .label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}
.contact-item a,
.contact-item span {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
}
.contact-item a:hover {
  color: var(--color-primary);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.field {
  margin-bottom: var(--space-5);
}
.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-base);
  min-height: 44px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}
.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-success);
  display: none;
}
.form-status.is-visible {
  display: block;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-wood-dark);
  color: #f3ecdc;
  padding-block: var(--space-16) var(--space-10);
}
[data-theme='dark'] .site-footer {
  background: #14100b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fff9f0;
}
.footer-tagline {
  color: #d9c9ab;
  font-size: var(--text-sm);
  max-width: 34ch;
}
.footer-heading {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9c9ab;
  margin-bottom: var(--space-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  color: #f3ecdc;
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-links a:hover {
  color: var(--color-gold);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.08);
  color: #f3ecdc;
}
.footer-social a:hover {
  background: var(--color-gold);
  color: #2c2519;
}
.footer-social svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.12);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: #b7a789;
  max-width: 60ch;
}

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-2);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
