/**
 * SVD Menu — Light Theme Design System
 * "Precision Hospitality" — Apple meets Stripe meets restaurant tech
 * 
 * DESIGN PHILOSOPHY:
 * - No glassmorphism, no grid overlays, no glow effects
 * - Distinctive element: "ink-on-paper" precision + architectural spacing
 * - Accent #00f0a8 adapted via darker functional variants for WCAG on white
 * - Typography-driven hierarchy with generous whitespace
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Color Palette --- */
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;        /* Subtle warm gray for alternating sections */
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9f8;       /* Very subtle green-tinted hover */
  --bg-accent-subtle: #f0fdf9;    /* Ultra-light accent tint for badges/highlights */
  --bg-code: #f4f6f5;             /* For mono/code snippets */
  
  /* Text */
  --text-primary: #1a1d21;        /* Near-black with warmth, not pure #000 */
  --text-secondary: #4a5568;      /* Muted but readable (WCAG AA on white) */
  --text-tertiary: #8896a6;       /* Captions, meta, timestamps */
  --text-inverse: #ffffff;        /* On accent backgrounds */
  
  /* Accent — #00f0a8 family adapted for light theme */
  --accent: #00f0a8;              /* Brand accent — decorative/fills only on light bg */
  --accent-text: #008f63;         /* WCAG AA compliant for text on white (4.6:1) */
  --accent-hover: #007a54;        /* Darker for hover states */
  --accent-bg: #e6fbf3;           /* Accessible accent background */
  --accent-border: #b2f0d8;       /* Subtle accent borders */
  --accent-glow: rgba(0, 240, 168, 0.12); /* Minimal glow, used sparingly */
  
  /* Borders & Lines */
  --border-default: #e8eaed;
  --border-subtle: #f0f1f3;
  --border-strong: #d1d5db;
  --border-accent: var(--accent-border);
  
  /* Functional */
  --success: #008f63;
  --warning: #c47d00;
  --error: #d32f2f;
  --info: #1976d2;
  
  /* Shadows — layered, diffused, NO colored glows */
  --shadow-xs: 0 1px 2px rgba(26, 29, 33, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 29, 33, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 29, 33, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 29, 33, 0.10);
  --shadow-card: 0 1px 3px rgba(26, 29, 33, 0.04), 0 4px 12px rgba(26, 29, 33, 0.03);
  --shadow-card-hover: 0 2px 8px rgba(26, 29, 33, 0.06), 0 8px 24px rgba(26, 29, 33, 0.06);
  
  /* Spacing Scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 720px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}


/* ============================================================
   2. TYPOGRAPHY SYSTEM
   ============================================================ */

/* Font loading (same families, new usage) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  /* Type Scale — modular scale 1.25 */
  --text-xs: 0.75rem;     /* 12px — captions, meta */
  --text-sm: 0.8125rem;   /* 13px — secondary text */
  --text-base: 0.9375rem; /* 15px — body */
  --text-md: 1rem;        /* 16px — emphasized body */
  --text-lg: 1.125rem;    /* 18px — lead/intro */
  --text-xl: 1.375rem;    /* 22px — card titles */
  --text-2xl: 1.75rem;    /* 28px — section titles */
  --text-3xl: 2.25rem;    /* 36px — page titles */
  --text-4xl: 3rem;       /* 48px — hero */
  --text-5xl: 3.75rem;    /* 60px — hero large screens */
  
  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
  --tracking-mono: 0.02em;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

/* Headings — Space Grotesk, weight-driven hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl)); line-height: var(--leading-tight); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl)); line-height: var(--leading-snug); }
h3 { font-size: var(--text-xl); line-height: var(--leading-snug); font-weight: 500; }
h4 { font-size: var(--text-lg); line-height: var(--leading-snug); font-weight: 500; }

/* Mono elements — JetBrains Mono, restrained use */
.mono, code, .label-mono {
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-mono);
}

.label-mono {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-tertiary);
}

/* Selection */
::selection {
  background: var(--accent-bg);
  color: var(--accent-text);
}


/* ============================================================
   3. DISTINCTIVE ELEMENTS (not grid/glow/glassmorphism)
   ============================================================ */

/* 
 * SIGNATURE MOTIF: "The Rule Line"
 * A thin accent-colored horizontal rule that appears as a 
 * recurring structural element — like a ruler on an architect's blueprint.
 * Used under section headers, between menu categories, as card dividers.
 */
.rule-line {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border-default) 60%, transparent 100%);
  border: none;
  margin: var(--space-8) 0;
}

.rule-line--full {
  background: var(--border-default);
}

.rule-line--accent {
  background: var(--accent);
  height: 2px;
  width: 48px;
}

/* 
 * SIGNATURE MOTIF: "Section Numbers"
 * Large, ultra-light watermark numbers in the background.
 * Not tags/badges — architectural annotations.
 */
.section-number {
  position: absolute;
  top: -20px;
  right: 0;
  font-family: var(--font-body);
  font-size: clamp(120px, 15vw, 200px);
  font-weight: 700;
  line-height: 1;
  color: var(--border-subtle);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* 
 * SIGNATURE MOTIF: "Dot Markers"
 * Small accent-colored dots as list/bullet markers instead of 
 * standard bullets or dashes. Clean, precise, distinctive.
 */
.dot-list {
  list-style: none;
  padding: 0;
}
.dot-list li {
  position: relative;
  padding-left: var(--space-5);
}
.dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 
 * SIGNATURE MOTIF: "Ink Stamp" badges
 * Instead of pill badges or outlined tags, small square stamps
 * with accent fill and inverse text. Like a quality seal.
 */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: 3px;
  line-height: 1.4;
}

.stamp--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent-text);
}

.stamp--muted {
  background: var(--bg-code);
  color: var(--text-tertiary);
  border: 1px solid var(--border-default);
}

/* 
 * TEXTURE: Subtle paper grain (optional, very light)
 * Adds tactile quality without being skeuomorphic
 */
.texture-paper {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(var(--space-5), 4vw, var(--space-12));
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  position: relative;
  padding: clamp(var(--space-20), 12vh, var(--space-32)) 0;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}


/* ============================================================
   5. COMPONENTS
   ============================================================ */

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark svg {
  color: var(--accent-text);
}

.brand-name {
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.brand-name span {
  color: var(--accent-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
}

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

/* Underline animation on hover — NOT glow */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover::after {
  width: 100%;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--bg-accent-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-text);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--accent-hover);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}


/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

/* Top accent stripe — signature detail */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-6);
  right: var(--space-6);
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-accent-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  margin-bottom: var(--space-5);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}


/* --- Menu Item Card (restaurant.html) --- */
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-fast) ease;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: var(--bg-card-hover);
  margin: 0 calc(var(--space-4) * -1);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  border-radius: var(--radius-sm);
}

.menu-item-info h4 {
  font-size: var(--text-md);
  font-weight: 500;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.menu-item-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.menu-item-tags {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.menu-item-price {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  align-self: start;
  padding-top: 2px;
}

/* Dietary/allergen micro-badges */
.tag-diet {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-code);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

.tag-diet--veg { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.tag-diet--gf { background: #fefce8; color: #854d0e; border-color: #fef08a; }
.tag-diet--spicy { background: #fef2f2; color: #991b1b; border-color: #fecaca; }


/* --- Menu Section (category group) --- */
.menu-section {
  margin-bottom: var(--space-12);
}

.menu-section-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--text-primary);
}

.menu-section-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.menu-section-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wider);
}


/* --- Hero Section --- */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Decorative background shape — NOT a grid */
.hero-bg-shape {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-text);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Eyebrow dash instead of "//" or blinking cursor */
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 52ch;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: var(--space-16);
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-proof-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--accent-text);
}

.hero-proof-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}


/* --- Steps / Process --- */
.step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--bg-accent-subtle);
  color: var(--accent-text);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
}

.step-content h4 {
  margin-bottom: var(--space-2);
}

.step-content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}


/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-default);
  padding: var(--space-10) 0;
  background: var(--bg-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--accent-text);
}


/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }
  
  .hero-proof {
    gap: var(--space-6);
  }
  
  .nav-links {
    display: none; /* Mobile menu handled separately */
  }
  
  .menu-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  
  .menu-item-price {
    align-self: start;
  }
  
  .section-number {
    font-size: 80px;
    top: -10px;
  }
}


/* ============================================================
   7. ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--accent);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 500;
  z-index: 200;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}


/* ============================================================
   8. PRINT STYLES (restaurant menu use case!)
   ============================================================ */
@media print {
  .site-header, .hero-bg-shape, .btn, .site-footer { display: none; }
  
  body { 
    background: white; 
    color: black; 
    font-size: 11pt; 
  }
  
  .menu-section-header {
    border-bottom-color: black;
  }
  
  .menu-item {
    break-inside: avoid;
    border-bottom-color: #ccc;
  }
  
  .tag-diet {
    border: 1px solid #999;
    background: none;
    color: black;
  }
}
