/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-background: #0f172a; /* deep navy, modern backdrop */
  --color-surface: #020617; /* darker surface for contrast sections */
  --color-surface-alt: #111827; /* mid surface for cards */
  --color-text: #f9fafb; /* near-white text */
  --color-text-muted: #9ca3af; /* muted copy */
  --color-border-subtle: #1f2937;

  /* Brand & accents (appetizing, modern) */
  --color-primary: #f97316; /* warm orange for call-to-actions */
  --color-primary-soft: rgba(249, 115, 22, 0.12);
  --color-primary-strong: #ea580c;
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-danger: #ef4444;

  /* Neutral grays (UI elements) */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-heading: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-full: 9999px;  /* pill */

  /* Shadows (soft, appetizing highlights) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.15);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.35);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.55);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease;

  /* Layout */
  --container-max-width: 1200px;
  --container-padding-x: var(--space-4);

  /* Z-index */
  --z-header: 20;
  --z-overlay: 40;
  --z-modal: 50;
}

@media (min-width: 768px) {
  :root {
    --container-padding-x: var(--space-6);
  }
}

/* ==========================================================================
   Reset / Normalize
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Remove default focus outlines; re-add with :focus-visible below */
:focus {
  outline: none;
}

/* ==========================================================================
   Base styles
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-strong);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

strong,
 b {
  font-weight: 600;
}

code,
 pre {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-6) 0;
}

/* ==========================================================================
   Accessibility & Motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

/* Layout container */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--alt {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 55%),
    var(--color-surface);
}

/* Flex helpers */

.flex {
  display: flex;
}

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

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */

.grid {
  display: grid;
}

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

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

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

/* Alignment & spacing utilities */

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

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Screen reader only */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Badges & pills (useful for tags like "Fast", "Popular") */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge--primary {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge--success {
  background-color: rgba(34, 197, 94, 0.12);
  color: var(--color-success);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #0b1120;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: #0b1120;
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

.btn--outline:hover {
  border-color: var(--color-primary);
  background-color: rgba(15, 23, 42, 0.85);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 3px;
}

/* Inputs & form controls */

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--gray-500);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft);
  outline: 2px solid transparent;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-3);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--gray-400);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card (for featured meals, ordering steps, testimonials) */

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

.card--highlight {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.45);
}

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

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

/* Simple tag for prices & ordering cues */

.price-tag {
  font-weight: 600;
  color: var(--color-primary);
}

/* Header shell (for speedy nav styling) */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-logo span {
  color: var(--color-primary);
}

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

.nav a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gray-50);
}

/* Hero & key layout helpers for appetizing, fast-feel intro */

.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray-400);
  margin-bottom: var(--space-2);
}

.hero__headline {
  font-size: clamp(2.5rem, 4.5vw, 3.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

.hero__subcopy {
  max-width: 32rem;
}

.hero__actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Testimonials (for social proof) */

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.testimonial-quote {
  font-style: italic;
  color: var(--gray-100);
}

.testimonial-author {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}

/* Contact details block (phone, email, address) */

.contact-list {
  display: grid;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
}

.contact-list a {
  color: var(--gray-100);
}

.contact-list a:hover {
  color: var(--color-primary);
}

/* Ordering steps (simple numbered list styling) */

.steps {
  counter-reset: step-counter;
  display: grid;
  gap: var(--space-4);
}

.step {
  position: relative;
  padding-left: 2.4rem;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 0%, #fed7aa, var(--color-primary));
  color: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.step-body {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}

/* Footer shell */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  background-color: #020617;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}

.site-footer a {
  color: var(--gray-300);
}

.site-footer a:hover {
  color: var(--color-primary);
}

.site-footer__bottom {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--font-size-xs);
}

/* Small screens tweaks */

@media (max-width: 639px) {
  .site-header__inner {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .hero {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}
