/* EatKSA — Main Stylesheet */
/* Palette: charcoal #1A1A1A | sand #F5EDD6 | gold #D4A017 | terracotta #C4622D | white #FFF */

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

:root {
  --charcoal: #1A1A1A;
  --sand: #F5EDD6;
  --sand-dark: #EDE0C4;
  --gold: #D4A017;
  --gold-light: #F0C040;
  --terracotta: #C4622D;
  --terracotta-light: #E07848;
  --white: #FFFFFF;
  --gray-50: #F9F7F4;
  --gray-100: #F0ECE4;
  --gray-400: #9A8F80;
  --gray-600: #5C5346;
  --gray-800: #2E2820;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(26,26,26,0.08);
  --shadow-md: 0 4px 16px rgba(26,26,26,0.10);
  --shadow-lg: 0 8px 32px rgba(26,26,26,0.14);
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--gray-600); line-height: 1.75; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ── HEADER / NAV ───────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 20px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  flex-shrink: 0;
}

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

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--gray-600);
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--charcoal); background: var(--gray-100); }
.site-nav a.active { color: var(--terracotta); }

.nav-cta {
  background: var(--terracotta) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--terracotta-light) !important; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--charcoal);
}

/* ── HERO ───────────────────────────────────── */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 80px 20px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,160,23,0.15) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(196,98,45,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-arabic {
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(6rem, 15vw, 14rem);
  font-family: 'Noto Naskh Arabic', serif;
  color: rgba(255,255,255,0.04);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .eyebrow { color: var(--gold-light); margin-bottom: 20px; }

.hero h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--terracotta-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 500; font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }

/* ── CITY GRID ──────────────────────────────── */
.cities-section {
  background: var(--sand);
  padding: 72px 20px;
}

.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 480px; margin: 0 auto; }

.city-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.city-card {
  background: var(--white);
  border-radius: 6px;
  padding: 28px 20px 24px;
  text-align: center;
  border: 1.5px solid var(--sand-dark);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.city-card:hover {
  border-color: var(--terracotta);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.city-arabic {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
  font-family: 'Noto Naskh Arabic', serif;
}

.city-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.city-count { font-size: 0.8rem; color: var(--gray-400); }

/* ── SECTION: FEATURED ──────────────────────── */
.featured-section { padding: 80px 20px; background: var(--white); }
.featured-inner { max-width: var(--max-width); margin: 0 auto; }

.featured-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.restaurant-card {
  border: 1.5px solid var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}
.restaurant-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.restaurant-card.is-featured { border-color: var(--gold); }

.card-thumb {
  height: 200px;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.card-thumb-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.card-body { padding: 20px; }
.card-city-tag {
  font-size: 0.72rem; font-weight: 600; color: var(--terracotta);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.card-body h3 { margin-bottom: 8px; color: var(--charcoal); }
.card-body p { font-size: 0.9rem; margin-bottom: 16px; color: var(--gray-600); }

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.card-location {
  font-size: 0.8rem; color: var(--gray-400);
  display: flex; align-items: center; gap: 4px;
}
.card-link {
  font-size: 0.82rem; font-weight: 600; color: var(--terracotta);
  display: flex; align-items: center; gap: 4px;
}
.card-link:hover { color: var(--terracotta-light); }

/* ── WHY VISIT TAGS ─────────────────────────── */
.why-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.why-tag {
  font-size: 0.72rem; font-weight: 500;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  color: var(--gray-600);
  padding: 3px 10px; border-radius: 20px;
}

/* ── SPONSORED SLOT ─────────────────────────── */
.sponsored-slot {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2E2820 100%);
  border-radius: 6px;
  padding: 32px;
  color: var(--white);
  display: flex; align-items: center; gap: 24px;
  margin: 40px 0;
  border: 1.5px solid rgba(212,160,23,0.3);
  position: relative;
  overflow: hidden;
}
.sponsored-slot::before {
  content: 'SPONSORED';
  position: absolute; top: 12px; right: 14px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}
.sponsored-icon { font-size: 3rem; flex-shrink: 0; }
.sponsored-text h3 { color: var(--gold); margin-bottom: 6px; font-size: 1.2rem; }
.sponsored-text p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.sponsored-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.82rem; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius);
  transition: background 0.15s;
}
.sponsored-cta:hover { background: var(--gold-light); }

/* ── CITY PAGE HERO ─────────────────────────── */
.city-hero {
  background: var(--charcoal);
  padding: 64px 20px 56px;
  position: relative;
  overflow: hidden;
}
.city-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(212,160,23,0.12) 0%, transparent 60%);
}
.city-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative; z-index: 1;
}
.city-hero-arabic {
  font-size: clamp(3rem, 10vw, 7rem);
  font-family: 'Noto Naskh Arabic', serif;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.85;
}
.city-hero h1 { color: var(--white); margin-bottom: 14px; }
.city-hero p { color: rgba(255,255,255,0.7); max-width: 560px; font-size: 1.05rem; }

/* ── BREADCRUMB ─────────────────────────────── */
.breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 10px 20px;
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--gray-400);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb-inner a { color: var(--terracotta); }
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ── CITY FILTER BAR ────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 14px 20px;
  position: sticky; top: 64px; z-index: 90;
}
.filter-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  font-size: 0.82rem; font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-100);
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(196,98,45,0.05);
}

/* ── RESTAURANT DETAIL ──────────────────────── */
.restaurant-hero {
  background: var(--charcoal);
  padding: 56px 20px 48px;
}
.restaurant-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.restaurant-hero .eyebrow { color: var(--gold-light); margin-bottom: 16px; }
.restaurant-hero h1 { color: var(--white); margin-bottom: 16px; }
.restaurant-hero p { color: rgba(255,255,255,0.7); max-width: 600px; font-size: 1.05rem; }

.restaurant-body { padding: 56px 20px; }
.restaurant-body-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.restaurant-section { margin-bottom: 36px; }
.restaurant-section h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--charcoal); }
.restaurant-section p { font-size: 0.95rem; }

.info-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: 6px;
  padding: 24px;
  position: sticky; top: 120px;
}
.info-row {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: var(--charcoal); min-width: 90px; }
.info-value { color: var(--gray-600); }

/* ── SEO SECTION ────────────────────────────── */
.seo-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: 56px 20px;
}
.seo-inner { max-width: var(--max-width); margin: 0 auto; }
.seo-inner h2 { margin-bottom: 16px; font-size: 1.5rem; }
.seo-inner p { font-size: 0.95rem; margin-bottom: 12px; max-width: 780px; }

/* ── CITIES STRIP ───────────────────────────── */
.cities-strip {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 48px 20px;
}
.cities-strip-inner { max-width: var(--max-width); margin: 0 auto; }
.cities-strip h2 { font-size: 1.4rem; margin-bottom: 24px; }
.cities-strip-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.city-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--gray-100);
  border-radius: 30px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--charcoal);
  transition: all 0.15s;
}
.city-pill:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(196,98,45,0.05);
}
.city-pill-arabic { font-family: 'Noto Naskh Arabic', serif; color: var(--gold); font-size: 1.1rem; }

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 56px 20px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── STATS BAR ──────────────────────────────── */
.stats-bar {
  background: var(--terracotta);
  padding: 32px 20px;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ── MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 12px;
    gap: 2px;
  }
  .site-nav.open a { padding: 10px 14px; border-radius: var(--radius); }
  .menu-toggle { display: flex; }

  .hero { padding: 52px 20px 48px; }
  .hero-arabic { display: none; }

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

  .restaurant-grid { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .restaurant-body-inner { grid-template-columns: 1fr; }
  .info-card { position: static; }

  .sponsored-slot { flex-direction: column; text-align: center; }

  .city-hero-arabic { font-size: 3.5rem; }
}

@media (max-width: 480px) {
  .city-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
