/*
 * HERE Specialty Coffee Truck — styles (brand refresh).
 * Palette drawn from the supplied brand artwork:
 *  - slate blue + copper dunes from the "HERE / BEYOND THE DUNE" square
 *  - ivory/greige from the logo cards, orchid pink from the هير shadow
 * Prices are unified in deep copper (owner feedback).
 */
:root {
  --slate: #6b7f9e;
  --slate-deep: #57698a;
  --slate-dark: #46536e;
  --copper: #c9906b;
  --copper-soft: #d8a984;
  --copper-deep: #9c5f33;
  --ivory: #f4f1ea;
  --card: #fdfcf8;
  --card-border: #e5dfd3;
  --sweet-card: #fdf6f6;
  --sweet-border: #eeddde;
  --greige: #c7c1b9;
  --pink: #b76fa6;
  --ink: #24211d;
  --ink-soft: #4a453e;
  --ink-muted: #5c564e;
  --stone: #9a938a;
  --dark: #221f1c;
  --display: 'Marcellus', 'Aref Ruqaa', serif;
  --sans: 'Archivo', 'Cairo', system-ui, sans-serif;
}

html[lang="ar"] body { font-family: 'Cairo', var(--sans); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .category-head h3 { font-family: 'Aref Ruqaa', var(--display); }

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.col {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.25;
}

.kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--copper-deep);
  font-weight: 600;
}

html[lang="ar"] .kicker { letter-spacing: .08em; }

.rule {
  height: 1px;
  border: none;
  background: #ddd6cb;
  margin: 0 0 56px;
}

.btn {
  display: inline-block;
  cursor: pointer;
  border: none;
  background: var(--slate-deep);
  color: #f7f5ef;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(87, 105, 138, .32);
  transition: background .2s ease;
}

html[lang="ar"] .btn { letter-spacing: .02em; font-size: 15px; }

.btn:hover { background: var(--slate-dark); }

/* ============ Language switch ============ */
.lang-bar {
  position: fixed;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 50;
  display: flex;
  gap: 4px;
  background: rgba(244, 241, 234, .22);
  border: 1px solid rgba(244, 241, 234, .45);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.lang-btn.active { background: var(--ivory); color: var(--slate-dark); }

body.scrolled .lang-bar {
  background: rgba(107, 127, 158, .12);
  border-color: rgba(107, 127, 158, .3);
}

body.scrolled .lang-btn { color: var(--slate-dark); }
body.scrolled .lang-btn.active { background: var(--slate-deep); color: var(--ivory); }

/* ============ Hero: animated brand lockup ============ */
.hero-brand {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--slate) 0%, var(--slate-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-lockup {
  text-align: center;
  padding: 0 24px;
  transform: translateY(-6vh);
}

.brand-name {
  margin: 0;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand-name .mark {
  display: block;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(26px);
  animation: markIn .8s cubic-bezier(.2, .7, .2, 1) forwards;
}

.brand-name .mark-en {
  width: clamp(220px, 42vw, 520px);
  animation-delay: .2s;
}

.brand-name .mark-ar {
  width: clamp(120px, 22vw, 260px);
  margin-top: 14px;
  animation-delay: .8s;
}

@keyframes markIn {
  to { opacity: 1; transform: translateY(0); }
}

.brand-kicker {
  color: var(--ivory);
  opacity: 0;
  margin-top: 22px;
  animation: fadeUp .9s ease 1.4s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: .92; transform: translateY(0); }
}

.dunes {
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  pointer-events: none;
}

.dunes svg { display: block; width: 100%; height: clamp(120px, 26vw, 300px); }

.dune.d1 { fill: var(--copper-soft); opacity: .55; }
.dune.d2 { fill: var(--copper); opacity: .75; }
.dune.d3 { fill: var(--copper-deep); opacity: .8; }

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: 0;
  animation: hintPulse 2.2s ease 2s infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: .85; transform: translate(-50%, -6px); }
}

/* ============ Truck drive-in + story ============ */
.drive {
  position: relative;
  height: 260vh;
  background: var(--ivory);
}

.drive-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
}

.truck {
  width: min(560px, 88vw);
  mix-blend-mode: multiply;
  transform: translateX(120vw);
  will-change: transform;
}

.story {
  max-width: 560px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

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

.body-copy {
  margin: 8px auto 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-muted);
}

/* ============ Menu ============ */
.menu {
  background: var(--ivory);
  padding: 24px 24px 80px;
}

.menu-toggle { font-size: 14px; padding: 18px 40px; }

.menu-chips {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 32px -24px 0;
  padding: 12px 24px;
  background: rgba(244, 241, 234, .94);
  backdrop-filter: blur(6px);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.menu-chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.chip:hover, .chip.active {
  background: var(--slate-deep);
  border-color: var(--slate-deep);
  color: #f7f5ef;
}

.menu-panel {
  margin-top: 24px;
  text-align: start;
  animation: menuIn .45s ease both;
}

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

.category { padding-top: 24px; }

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}

.category-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .02em;
}

.category-note {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
}

html[lang="ar"] .category-note { letter-spacing: .04em; }

.category.sweet .category-note { color: var(--pink); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category.sweet .card {
  background: var(--sweet-card);
  border-color: var(--sweet-border);
}

.card-photo {
  aspect-ratio: 1 / 1;
  background: #e9e4db;
  position: relative;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-photo .no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--stone);
}

.badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: rgba(156, 95, 51, .92);
  color: #f7f5ef;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

html[lang="ar"] .badge { letter-spacing: 0; }

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

/* Unified price color across all categories (owner feedback) */
.card-price {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--copper-deep);
  white-space: nowrap;
}

.card-price .dh {
  width: .72em;
  height: .72em;
  fill: currentColor;
  align-self: center;
}

.menu-note {
  margin: 28px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--stone);
  text-align: center;
}

/* ============ Footer ============ */
.footer {
  background: var(--slate-dark);
  color: var(--ivory);
  padding: 56px 24px 48px;
}

.footer .col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo { width: 200px; display: block; }

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 6px;
  font-size: 13.5px;
  letter-spacing: .04em;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
  text-decoration: none;
}

.footer-contacts a:hover { color: var(--copper-soft); }

.footer-contacts .ic { width: 17px; height: 17px; }

.footer-location { margin: 0; font-size: 13px; color: #c3cad9; }

.footer-note {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9aa5bb;
}

html[lang="ar"] .footer-note { letter-spacing: .04em; }

/* ============ Wide screens ============ */
@media (min-width: 1024px) {
  .menu .col.menu-panel { max-width: 880px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-panel { animation: none; }
  .btn { transition: none; }
  .brand-name .mark, .brand-kicker {
    animation: none; opacity: 1; transform: none;
  }
  .scroll-hint { animation: none; opacity: .7; }
  .drive { height: auto; }
  .drive-sticky { position: static; height: auto; padding: 80px 24px; }
  .truck { transform: none; }
  .story { opacity: 1; transform: none; }
}
