/* ============================================
   Hillo Grill - Design System
   ============================================ */

:root {
  /* Brand Colors */
  --color-brand-1: #E11D2E;
  --color-brand-2: #FFB800;
  --color-base-ink: #0B0F14;
  --color-base-bg: #FFFFFF;
  --color-lettuce: #2BB673;
  --color-bun: #F2C283;

  /* Derived Colors */
  --color-text: var(--color-base-ink);
  --color-text-on-dark: #FFFFFF;
  --color-muted: #64748B;
  --color-border: rgba(0, 0, 0, 0.12);

  /* States */
  --color-focus: var(--color-brand-1);
  --color-link: var(--color-brand-1);

  /* Measurements */
  --radius: 14px;
  --shadow-1: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 2px 10px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-display: "Bebas Neue", "Anton", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Rubik", ui-sans-serif, system-ui, sans-serif;
  --lh-title: 1.1;
  --lh-body: 1.6;
}

/* ============================================
   Reset & Base
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: var(--lh-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-base-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================
   Typography
   ============================================ */

h1, .h1,
h2, .h2,
h3, .h3 {
  font-family: var(--font-display);
  line-height: var(--lh-title);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1, .h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2, .h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3, .h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.header {
  background: var(--color-base-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  text-decoration: none;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-brand-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.logo-text:hover .logo-name {
  color: var(--color-brand-2);
  text-shadow: 2px 2px 6px rgba(225, 29, 46, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--color-brand-1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 150px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(225, 29, 46, 0.1);
  color: var(--color-brand-1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--color-base-ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.btn-primary {
  --bg: var(--color-brand-1);
  --fg: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg);
  color: var(--fg);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: var(--shadow-1);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.06s ease, box-shadow 0.2s ease, opacity 0.2s;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-large {
  padding: 1.2rem 2rem;
  font-size: 1rem;
}

.btn-platform {
  min-width: 150px;
}

.platform-icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   Badges
   ============================================ */

.badge {
  display: inline-block;
  background: var(--color-brand-2);
  color: #111827;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge--new {
  background: var(--color-lettuce);
  color: #062B1B;
}

.badge--promo {
  background: var(--color-brand-2);
  color: var(--color-base-ink);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

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

.hero {
  background: var(--color-base-ink);
  color: var(--color-text-on-dark);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(225, 29, 46, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 184, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  margin-top: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
}

.hero-cta {
  margin-top: 1rem;
}

.order-platforms {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.platforms-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.platform-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.platform-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Menu Section
   ============================================ */

.menu {
  padding: 5rem 0;
  background: var(--color-base-bg);
}

.category-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 1rem;
}

.category-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: var(--font-display);
  position: relative;
}

.category-tab::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-brand-1);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.category-tab:hover {
  color: var(--color-brand-1);
  background: rgba(225, 29, 46, 0.05);
}

.category-tab.active {
  color: var(--color-brand-1);
}

.category-tab.active::after {
  transform: scaleX(1);
}

.category-content {
  display: none;
}

.category-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-subtitle {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 3rem 0 2rem 0;
  color: var(--color-base-ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* ============================================
   Product Cards
   ============================================ */

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card .badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
}

.card .thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  flex: 1;
}

.card .price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-brand-1);
  white-space: nowrap;
}

.card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.card footer {
  margin-top: auto;
}

.card--simple {
  padding: 1.5rem;
}

.card--simple .thumb {
  display: none;
}

.menu-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-top: 3rem;
  font-style: italic;
}

/* ============================================
   Promos Section
   ============================================ */

.promos {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(225, 29, 46, 0.05) 0%, rgba(255, 184, 0, 0.05) 100%);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.promo-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: var(--color-brand-1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.promo-card .badge {
  margin-bottom: 1rem;
}

.promo-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.promo-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-brand-1);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

/* ============================================
   Platforms Section
   ============================================ */

.platforms-section {
  padding: 5rem 0;
  background: var(--color-base-ink);
  color: var(--color-text-on-dark);
}

.platforms-section .section-title,
.platforms-section .section-description {
  color: var(--color-text-on-dark);
}

.platforms-section .section-description {
  opacity: 0.9;
}

.order-switch {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================
   Location Section
   ============================================ */

.location {
  padding: 5rem 0;
  background: var(--color-base-bg);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block {
  padding: 1.5rem;
  background: rgba(225, 29, 46, 0.05);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-brand-1);
}

.info-block p {
  color: var(--color-text);
  line-height: 1.8;
}

.location-cta {
  margin-top: 1rem;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  height: 100%;
  min-height: 400px;
}

.location-map iframe {
  height: 100%;
}

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

.footer {
  background: var(--color-base-ink);
  color: var(--color-text-on-dark);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-brand-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-brand-1);
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
  .nav {
    position: fixed;
    top: 81px;
    left: 0;
    right: 0;
    background: var(--color-base-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-2);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }

  .nav.mobile-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
  }

  .location-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .menu,
  .promos,
  .platforms-section,
  .location {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .category-tabs {
    gap: 0.5rem;
  }

  .category-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .order-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-platform {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .platform-buttons {
    flex-direction: column;
  }

  .platform-btn {
    width: 100%;
  }
}

/* ============================================
   Accessibility
   ============================================ */

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

/* Focus styles */
*:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

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