/* ============================================================
   MIDPOINT GOURMET BURGERS — DESIGN SYSTEM
   Bleecker × Burger & Beyond — Ghent Edition
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;500;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors */
  --black:          #0A0A0A;
  --carbon:         #111111;
  --surface:        #161616;
  --surface-raised: #1C1C1C;
  --border:         #242424;
  --border-light:   #2E2E2E;
  --bone:           #F0EDE8;
  --bone-dim:       #A8A39C;
  --bone-muted:     #5C5852;
  --flame:          #D4500A;
  --flame-hover:    #B84008;
  --flame-glow:     rgba(212, 80, 10, 0.15);
  --saffron:        #E8A020;
  --saffron-dim:    rgba(232, 160, 32, 0.12);
  --white:          #FFFFFF;

  /* Typography */
  --font-display:   'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body:      'Barlow', sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   8rem;
  --space-2xl:  12rem;

  /* Layout */
  --max-width:  1280px;
  --nav-height: 72px;

  /* Transitions */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--black);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip; /* clip instead of hidden — preserves position:fixed */
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Typography Scale --- */
.display {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
}

.heading {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subheading {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.body-lg {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
}

.body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-sm {
  padding: var(--space-lg) 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--flame);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid currentColor;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--bone);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--bone);
  color: var(--bone);
}

.btn-outline:hover {
  background: var(--bone);
  color: var(--black);
  transform: translateY(-1px);
}

.btn-outline-flame {
  background: transparent;
  border-color: var(--flame);
  color: var(--flame);
}

.btn-outline-flame:hover {
  background: var(--flame);
  color: var(--bone);
  transform: translateY(-1px);
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* --- Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 100; /* below popup z-index:9900 */
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Flame accent text --- */
.text-flame  { color: var(--flame); }
.text-saffron { color: var(--saffron); }
.text-dim    { color: var(--bone-dim); }
.text-muted  { color: var(--bone-dim); }
