/* ============================================
   MASA LUNA — Design Tokens
   ============================================ */

:root {
  /* Fluid type scale */
  --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.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.5rem, 0.9rem + 5vw, 5.25rem);

  /* Spacing (4px base) */
  --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;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

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

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1180px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Boska', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   Colors — warm marigold & masa-cream palette,
   inferred from Salvadoran/Mexican diner identity
   ============================================ */

:root,
[data-theme='light'] {
  --color-bg: #fbf2e4;
  --color-surface: #fffcf6;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f4e6cd;
  --color-surface-offset-2: #eeddbe;
  --color-surface-dynamic: #e8d5ac;
  --color-divider: #e8d9bb;
  --color-border: #ddc9a2;

  --color-text: #2c1c10;
  --color-text-muted: #6f5a45;
  --color-text-faint: #ab9679;
  --color-text-inverse: #fdf5e8;

  --color-primary: #c15a1a;
  --color-primary-hover: #9c4712;
  --color-primary-active: #7a380d;
  --color-primary-highlight: #f2ddc4;

  --color-accent-green: #4f6b39;
  --color-accent-green-highlight: #dfe6cf;

  --color-warning: #9c5a1f;
  --color-error: #a1352f;
  --color-error-highlight: #e6cfc9;
  --color-success: #4f6b39;
  --color-success-highlight: #dfe6cf;

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 40 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.25 0.03 40 / 0.12);
  --shadow-lg: 0 18px 40px oklch(0.25 0.03 40 / 0.18);
}

[data-theme='dark'] {
  --color-bg: #1c130b;
  --color-surface: #24190e;
  --color-surface-2: #2b1e11;
  --color-surface-offset: #331f13;
  --color-surface-offset-2: #3d2716;
  --color-surface-dynamic: #47301c;
  --color-divider: #3a281a;
  --color-border: #4d3722;

  --color-text: #f4e6d3;
  --color-text-muted: #c2ab8c;
  --color-text-faint: #8a7458;
  --color-text-inverse: #2c1c10;

  --color-primary: #e88a41;
  --color-primary-hover: #f2a15f;
  --color-primary-active: #f6b578;
  --color-primary-highlight: #4a3520;

  --color-accent-green: #8fae72;
  --color-accent-green-highlight: #364226;

  --color-warning: #d68a4a;
  --color-error: #dd8177;
  --color-error-highlight: #4a2e29;
  --color-success: #8fae72;
  --color-success-highlight: #364226;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 18px 40px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1c130b;
    --color-surface: #24190e;
    --color-surface-2: #2b1e11;
    --color-surface-offset: #331f13;
    --color-surface-offset-2: #3d2716;
    --color-surface-dynamic: #47301c;
    --color-divider: #3a281a;
    --color-border: #4d3722;
    --color-text: #f4e6d3;
    --color-text-muted: #c2ab8c;
    --color-text-faint: #8a7458;
    --color-text-inverse: #2c1c10;
    --color-primary: #e88a41;
    --color-primary-hover: #f2a15f;
    --color-primary-active: #f6b578;
    --color-primary-highlight: #4a3520;
    --color-accent-green: #8fae72;
    --color-accent-green-highlight: #364226;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 6px 16px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 18px 40px oklch(0 0 0 / 0.55);
  }
}

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

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

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 600;
}
h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  margin-block: var(--space-3) var(--space-6);
}
h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-surface-offset-2);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}
.brand svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-block: var(--space-2);
  position: relative;
}
.nav-links a:hover,
.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: -2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
}
.theme-toggle:hover {
  color: var(--color-primary);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

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

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--color-bg);
    padding: var(--space-6) var(--space-5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--transition-interactive),
      transform var(--transition-interactive),
      visibility var(--transition-interactive);
    overflow-y: auto;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    width: 100%;
    padding-block: var(--space-4);
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-divider);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
}

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

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(88vh, 900px);
  padding-block: var(--space-16);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--color-bg) 15%, transparent) 0%,
    color-mix(in oklab, #1c130b 78%, transparent) 100%
  );
}
[data-theme='light'] .hero-bg::after {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, #1c130b 8%, transparent) 0%,
    color-mix(in oklab, #1c130b 72%, transparent) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fdf5e8;
  max-width: 760px;
}
.hero .eyebrow {
  color: #f2c893;
}
.hero .eyebrow::before {
  background: #f2c893;
}
.hero h1 {
  font-size: var(--text-hero);
  margin-block: var(--space-4) var(--space-5);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero p {
  font-size: var(--text-lg);
  color: #ecdcc0;
  max-width: 56ch;
  margin-bottom: var(--space-8);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.hero-ctas .btn-secondary {
  border-color: rgba(253, 245, 232, 0.4);
  color: #fdf5e8;
}
.hero-ctas .btn-secondary:hover {
  border-color: #f2c893;
  color: #f2c893;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: #ecdcc0;
}
.hero-info span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-info svg {
  width: 16px;
  height: 16px;
  color: #f2c893;
  flex-shrink: 0;
}

/* ============================================
   Info strip
   ============================================ */

.info-strip {
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.info-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: center;
}
.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.info-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.info-item strong {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  font-weight: 600;
}
.info-item a {
  color: var(--color-text);
  text-decoration: none;
}
.info-item a:hover {
  color: var(--color-primary);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.section-head .lede {
  margin-top: var(--space-2);
}

/* ============================================
   Menu category cards (home)
   ============================================ */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-card:hover img {
  transform: scale(1.06);
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 12, 6, 0.88) 100%);
}
.category-card-label {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 1;
  color: #fdf5e8;
}
.category-card-label .h3 {
  color: #fdf5e8;
  margin-bottom: var(--space-1);
}
.category-card-label span {
  font-size: var(--text-xs);
  color: #e2c9a4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Story / Why visit — asymmetric split
   ============================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split.split--reverse .split-media {
  order: 2;
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.split-copy p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}
.quote-block {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-5);
  margin-block: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
}
.quote-block cite {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .split.split--reverse .split-media {
    order: 0;
  }
}

/* ============================================
   Feature list (why visit chips)
   ============================================ */

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.feature-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.feature-item svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.feature-item h3 {
  margin-bottom: var(--space-2);
}
.feature-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

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

/* ============================================
   Testimonials
   ============================================ */

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
.stars svg {
  width: 15px;
  height: 15px;
}
.testimonial p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.testimonial cite {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  font-style: normal;
}
.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--color-text-faint);
  margin-top: 2px;
}

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

/* ============================================
   Visit / map section
   ============================================ */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: stretch;
}
.visit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.visit-card + .visit-card {
  margin-top: var(--space-6);
}
.hours-table {
  width: 100%;
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}
.hours-table tr {
  border-bottom: 1px solid var(--color-divider);
}
.hours-table tr:last-child {
  border-bottom: none;
}
.hours-table td {
  padding-block: var(--space-3);
}
.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}
.hours-table tr.is-today td {
  color: var(--color-primary);
  font-weight: 600;
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  min-height: 320px;
  height: 100%;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

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

/* ============================================
   CTA banner
   ============================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-active));
  color: #fdf5e8;
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-10);
  text-align: center;
}
.cta-banner h2 {
  color: #fdf5e8;
}
.cta-banner p {
  color: #f6e4cc;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-banner .btn-primary {
  background: #fdf5e8;
  color: var(--color-primary-active);
}
.cta-banner .btn-primary:hover {
  background: #fff;
}
.cta-banner .btn-secondary {
  border-color: rgba(253, 245, 232, 0.5);
  color: #fdf5e8;
}
.cta-banner .btn-secondary:hover {
  border-color: #fdf5e8;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ============================================
   Menu page
   ============================================ */

.menu-page-hero {
  padding-block: var(--space-16) var(--space-10);
  text-align: center;
}
.menu-page-hero h1 {
  font-size: var(--text-3xl);
}
.menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  padding-block: var(--space-6);
  position: sticky;
  top: 72px;
  z-index: 40;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
.menu-nav a {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  text-decoration: none;
  background: var(--color-surface-offset);
}
.menu-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset-2);
}

.menu-section {
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
  scroll-margin-top: 140px;
}
.menu-section:last-of-type {
  border-bottom: none;
}
.menu-section-head {
  margin-bottom: var(--space-8);
}
.menu-section-head p {
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.menu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-10);
}
.menu-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px dashed var(--color-divider);
}
.menu-item-name {
  font-weight: 600;
  color: var(--color-text);
}
.menu-item-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 2px;
}
.menu-item-price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}
.menu-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-green);
  background: var(--color-accent-green-highlight);
  border-radius: var(--radius-sm);
  padding: 1px var(--space-2);
  margin-left: var(--space-2);
  vertical-align: middle;
}

@media (max-width: 720px) {
  .menu-list {
    grid-template-columns: 1fr;
  }
}

.menu-note {
  margin-top: var(--space-16);
  padding: var(--space-6);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

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

.about-hero {
  padding-block: var(--space-16) var(--space-8);
}
.timeline {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}
.timeline-item:last-child {
  border-bottom: none;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
}
@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

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

.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  text-decoration: none;
}
.footer-brand svg {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}
.footer-col p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer-col ul {
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-primary);
}
.social-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
}
.social-row a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.social-row svg {
  width: 17px;
  height: 17px;
}
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Scroll reveal
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

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