/* ═══════════════════════════════════════════════════
   FoodieFind — style.css
   Design System: Dark Glassmorphism + Orange Fire
   Fonts: Syne (display) + DM Sans (body)
═══════════════════════════════════════════════════ */

/* ── 1. CSS VARIABLES ───────────────────────────── */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a26;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,140,0,0.4);

  --primary: #ff6b00;
  --primary-2: #ff3d00;
  --accent: #ffb347;
  --grad: linear-gradient(135deg, #ff6b00, #ff3d00);
  --grad-text: linear-gradient(135deg, #ff9f43, #ff6b00, #ff3d00);
  --grad-glow: linear-gradient(135deg, rgba(255,107,0,0.3), rgba(255,61,0,0.1));

  --text: #f5f5f0;
  --text-2: rgba(245,245,240,0.65);
  --text-3: rgba(245,245,240,0.35);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-card: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-orange: 0 0 40px rgba(255,107,0,0.2);

  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --spring: 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

[data-theme="light"] {
  --bg: #faf9f6;
  --bg2: #f3f2ef;
  --bg3: #eae9e4;
  --surface: rgba(0,0,0,0.04);
  --surface-hover: rgba(0,0,0,0.07);
  --border: rgba(0,0,0,0.08);
  --text: #1a1a1a;
  --text-2: rgba(26,26,26,0.6);
  --text-3: rgba(26,26,26,0.35);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-card: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── 2. RESET & BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; border: none; background: none; }

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

/* ── 3. TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 540px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-sub { margin: 0 auto; }

/* ── 4. BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,0,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,107,0,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-hover);
}

/* ── 5. LOADER ─────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-logo {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  animation: pulse 1s ease infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 0 auto 16px;
}

.loader-fill {
  height: 100%;
  background: var(--grad);
  border-radius: var(--radius-pill);
  animation: loadFill 1.8s ease forwards;
}

.loader-text {
  color: var(--text-3);
  font-size: 0.85rem;
  animation: fadeInUp 0.5s ease 0.3s both;
}

@keyframes loadFill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── 6. NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250,249,246,0.85);
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nav-brand span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: rotate(20deg);
}

.theme-icon {
  position: absolute;
  transition: all var(--transition);
}
.theme-icon.sun { opacity: 1; transform: translateY(0); }
.theme-icon.moon { opacity: 0; transform: translateY(20px); }

[data-theme="light"] .theme-icon.sun { opacity: 0; transform: translateY(-20px); }
[data-theme="light"] .theme-icon.moon { opacity: 1; transform: translateY(0); }

.nav-cta { padding: 10px 22px; font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 7. HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.18), transparent 70%);
  top: -10%; right: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,61,0,0.12), transparent 70%);
  bottom: 5%; left: -5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,179,71,0.08), transparent 70%);
  top: 40%; left: 25%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -30px) scale(1.1); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
}

.typed-text { display: inline-block; min-width: 260px; }

.cursor {
  display: inline-block;
  color: var(--primary);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  margin-bottom: 44px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  width: 100%;
  max-width: 580px;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-wrap:focus-within {
  border-color: rgba(255,107,0,0.5);
  box-shadow: 0 0 0 4px rgba(255,107,0,0.1);
}

.search-icon { font-size: 1.1rem; flex-shrink: 0; }

.search-wrap input {
  flex: 1;
  font-size: 1rem;
  color: var(--text);
  background: none;
}

.search-wrap input::placeholder { color: var(--text-3); }

.search-btn { border-radius: var(--radius-pill) !important; padding: 10px 24px; }

.search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tag:hover {
  background: rgba(255,107,0,0.1);
  border-color: rgba(255,107,0,0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Floating cards */
.float-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  animation: floatUpDown 4s ease-in-out infinite;
}

[data-theme="light"] .float-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
}

.float-card img {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.float-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.float-card span {
  font-size: 0.75rem;
  color: var(--accent);
}

.fc-1 { top: 20%; left: 4%; animation-delay: 0s; }
.fc-2 { top: 55%; right: 4%; animation-delay: -1.5s; }
.fc-3 { bottom: 18%; left: 8%; animation-delay: -3s; }

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

.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-3);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ── 8. STATS ──────────────────────────────────── */
.stats {
  padding: 80px 0;
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255,107,0,0.03), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-item {
  background: var(--bg);
  padding: 48px 32px;
  text-align: center;
  transition: background var(--transition);
}

.stat-item:hover { background: var(--bg2); }

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ── 9. RESTAURANTS ────────────────────────────── */
.restaurants {
  padding: 120px 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 48px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  transition: border-color var(--transition);
}
.input-wrap:focus-within { border-color: rgba(255,107,0,0.4); }
.input-wrap input { flex: 1; color: var(--text); font-size: 0.9rem; }
.input-wrap input::placeholder { color: var(--text-3); }

select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
select:focus { border-color: rgba(255,107,0,0.4); outline: none; }

/* Restaurant Grid */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Skeleton */
.skeleton-card {
  height: 400px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Restaurant Card */
.restaurant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  animation: fadeInUp 0.5s ease both;
}

.restaurant-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,0,0.3);
  box-shadow: var(--shadow-card), var(--shadow-orange);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.restaurant-card:hover .card-image img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-fav {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  z-index: 2;
}
.card-fav:hover { background: rgba(255,107,0,0.4); transform: scale(1.1); }
.card-fav.active { background: rgba(255,107,0,0.7); }

.card-body { padding: 20px; }

.card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.restaurant-card:hover .card-name { color: var(--accent); }

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 12px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-weight: 600;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.card-tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-price { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.card-location { font-size: 0.8rem; color: var(--text-3); }

.card-open {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.card-open.open { background: rgba(34,197,94,0.15); color: #4ade80; }
.card-open.closed { background: rgba(239,68,68,0.15); color: #f87171; }

/* No results */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-2);
}
.no-results-icon { font-size: 4rem; margin-bottom: 20px; }
.no-results h3 { font-size: 1.5rem; margin-bottom: 8px; }

/* ── 10. TRENDING ──────────────────────────────── */
.trending {
  padding: 120px 0;
  background: var(--bg2);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.trending-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  animation: fadeInUp 0.5s ease both;
}

.trending-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.trending-card:hover img { transform: scale(1.1); }

.trending-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: all var(--transition);
}

.trending-rank {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,107,0,0.4);
  line-height: 1;
  margin-bottom: 8px;
}

.trending-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.trending-resto { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

.trending-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--grad);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── 11. TESTIMONIALS ──────────────────────────── */
.testimonials {
  padding: 120px 0;
}

.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 60px 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(12px);
}

.testimonial-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid rgba(255,107,0,0.4);
}

.testimonial-stars { font-size: 1.1rem; margin-bottom: 20px; letter-spacing: 2px; }

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 24px;
  font-style: italic;
}

.testimonial-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial-role { font-size: 0.82rem; color: var(--text-3); }

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}
.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ── 12. NEWSLETTER ────────────────────────────── */
.newsletter {
  padding: 120px 0;
  background: var(--bg2);
}

.newsletter-card {
  position: relative;
  text-align: center;
  padding: 80px 60px;
  background: var(--surface);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.newsletter-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.12), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.newsletter-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.newsletter-card > p:not(.newsletter-note) {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: rgba(255,107,0,0.4); }

.newsletter-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4ade80;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 16px;
  animation: fadeInUp 0.4s ease;
}

.newsletter-note { font-size: 0.78rem; color: var(--text-3); }

/* ── 13. FOOTER ────────────────────────────────── */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 16px 0 24px;
  max-width: 280px;
}

.social-links { display: flex; gap: 12px; }

.social {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social:hover {
  background: rgba(255,107,0,0.15);
  border-color: rgba(255,107,0,0.4);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { text-decoration: underline; }

/* ── 14. MODAL ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 28px;
  max-width: 780px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.4s var(--spring);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(239,68,68,0.2); color: #f87171; }

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.modal-body { padding: 36px; }

.modal-name {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-2);
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-section { margin-bottom: 28px; }
.modal-section h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 600;
}

.modal-desc {
  color: var(--text-2);
  line-height: 1.75;
  font-size: 0.95rem;
}

.modal-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-dish {
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.25);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.modal-gallery img {
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
}

.modal-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-contact span {
  font-size: 0.88rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 15. BACK TO TOP ───────────────────────────── */
.back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255,107,0,0.4);
  transition: all var(--transition);
  z-index: 999;
}
.back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,107,0,0.5);
}
.back-top.show { animation: fadeInUp 0.3s ease; }

/* ── 16. REVEAL ANIMATIONS ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── 17. UTILITIES ─────────────────────────────── */
.hidden { display: none !important; }

/* ── 18. RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-cards { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .navbar { padding: 0 20px; }
  .nav-cta { display: none; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .hamburger { display: flex; }

  .hero { padding: calc(var(--nav-h) + 40px) 20px 80px; }
  .hero-title { font-size: 2.6rem; }

  .restaurant-grid { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonial-slide { padding: 40px 24px; }

  .newsletter-form { flex-direction: column; }
  .newsletter-card { padding: 48px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .filters { flex-direction: column; }
  .filter-group { min-width: 100%; }

  .carousel-btn { display: none; }

  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .trending-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2rem; }
  .back-top { bottom: 20px; right: 20px; }
}
