/* =========================================================
   Cafe Manus — design tokens
   ========================================================= */
:root {
  --bg: #14100c;
  --bg-card: #1e1712;
  --bg-elevated: #241b14;
  --line: rgba(243, 232, 216, 0.09);
  --gold: #c99a52;
  --gold-soft: rgba(201, 154, 82, 0.16);
  --rust: #9c4a2e;
  --cream: #f3e8d8;
  --muted: #a89a86;

  --font-en-display: "Fraunces", serif;
  --font-en-body: "Inter", sans-serif;
  --font-fa: "Vazirmatn", sans-serif;

  --container: 1120px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(
      ellipse 900px 500px at 12% -10%,
      rgba(201, 154, 82, 0.1),
      transparent 60%
    ),
    radial-gradient(
      ellipse 700px 500px at 100% 10%,
      rgba(156, 74, 46, 0.12),
      transparent 55%
    );
  color: var(--cream);
  font-family: var(--font-fa);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.lang-en {
  font-family: var(--font-en-body);
}
body.lang-fa {
  font-family: var(--font-fa);
}

/* English uses the display serif on headings; Persian keeps Vazirmatn everywhere (no good FA serif pairing) */
body.lang-en h1,
body.lang-en h2,
body.lang-en .brand__en {
  font-family: var(--font-en-display);
}
body.lang-fa h1,
body.lang-fa h2 {
  font-family: var(--font-fa);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}

/* language visibility swap */
[data-en][data-fa] {
}
body.lang-fa [data-en-only] {
  display: none !important;
}
body.lang-en [data-fa-only] {
  display: none !important;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 600;
}
body.lang-fa .eyebrow {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), #a97c3a);
  color: #1a1209;
  box-shadow: 0 10px 30px -10px rgba(201, 154, 82, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(201, 154, 82, 0.65);
}

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 16, 12, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 12px;
  flex-shrink: 0;
}
.brand__mark svg {
  width: 24px;
  height: 24px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__en {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.brand__fa {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
}
body.lang-en .brand__fa {
  font-family: var(--font-en-display);
}

.topnav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}
.topnav a {
  transition: color 0.15s ease;
}
.topnav a:hover {
  color: var(--gold);
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  width: 92px;
  height: 38px;
  cursor: pointer;
}
.lang-switch__opt {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.lang-switch__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  left: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #a97c3a);
  transition: transform 0.28s cubic-bezier(0.65, 0, 0.35, 1);
}
body.lang-en .lang-switch__pill {
  transform: translateX(0);
}
body.lang-fa .lang-switch__pill {
  transform: translateX(100%);
}
html[dir="rtl"] body.lang-en .lang-switch__pill {
  transform: translateX(0);
}
html[dir="ltr"] body.lang-fa .lang-switch__pill {
  transform: translateX(-100%);
}
.lang-switch__opt[data-val="en"] {
  order: 1;
}
.lang-switch__opt[data-val="fa"] {
  order: 2;
}
html[dir="rtl"] .lang-switch__opt[data-val="fa"] {
  order: 1;
}
html[dir="rtl"] .lang-switch__opt[data-val="en"] {
  order: 2;
}
body.lang-en .lang-switch__opt[data-val="en"],
body.lang-fa .lang-switch__opt[data-val="fa"] {
  color: #1a1209;
}

/* =========================================================
   Hero
   ========================================================= */
/* .hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px 88px;
  overflow: hidden;
}
.hero__inner { max-width: 640px; position: relative; z-index: 2; }
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
}
.hero__title span { display: block; }
.hero__title--accent { color: var(--gold); font-style: italic; }
body.lang-fa .hero__title--accent { font-style: normal; }
.hero__desc { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 0 34px; }

.hero__steam {
  position: absolute;
  inset-inline-end: -20px;
  top: -30px;
  width: 260px;
  height: 340px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}
.steam-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.55;
  stroke-dasharray: 260;
  stroke-dashoffset: 0;
  animation: rise 7s ease-in-out infinite;
}
.s2 { animation-delay: 1.4s; opacity: 0.35; }
.s3 { animation-delay: 2.8s; opacity: 0.25; }
@keyframes rise {
  0%   { transform: translateY(0);   opacity: 0; }
  15%  { opacity: 0.5; }
  85%  { opacity: 0.15; }
  100% { transform: translateY(-40px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .steam-line { animation: none; opacity: 0.3; }
} */

.hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 80px;
}

/* ---- text side ---- */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
}
.hero__title span {
  display: block;
}
.hero__title--accent {
  color: var(--gold);
  font-style: italic;
}
body.lang-fa .hero__title--accent {
  font-style: normal;
}
.hero__desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 0 34px;
} 

/* ---- visual side ---- */
 .hero__visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 6 / 6;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__steam {
  position: absolute;
  inset-inline-end: 100px;
  top: -60px;
  width: 220px;
  height: 300px;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
  display: none;
}

.steam-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.8;
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  animation: rise 7s ease-in-out infinite;
}
.s2 {
  animation-delay: 1.4s;
  opacity: 0.35;
}
.s3 {
  animation-delay: 2.8s;
  opacity: 0.25;
}
@keyframes rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  85% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-40px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .steam-line {
    animation: none;
    opacity: 0.3;
  }
}

/* =========================================================
   Responsive — tablet
   ========================================================= */
@media (max-width: 960px) {
  .hero__inner {
    gap: 32px;
  }
  .hero__visual {
    aspect-ratio: 16 / 11;
  }
}

/* =========================================================
   Responsive — mobile
   ========================================================= */
 @media (max-width: 768px) {
  .hero {
    padding: 0 20px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 56px 0 48px;
    gap: 28px;
  }

  .hero__content {
    order: 1;
    text-align: center;
    max-width: none;
  }
  .hero__desc {
    margin-inline: auto;
  }

  .hero__visual {
    order: 2;
    aspect-ratio: 14 / 12;
    border-radius: 20px;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero__steam {
    width: 120px;
    height: 160px;
    opacity: 0.35;
    inset-inline-end: 70px;
    left: 50%;
    top: -100px;

    
display: none;
  }

.btn--primary {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero__steam {
    display: none;
} extra-small screens: skip decorative steam entirely
}

/* =========================================================
   Menu + category slider (signature element)
   ========================================================= */
.menu {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.menu__head {
  margin-bottom: 34px;
}
.menu__head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.category-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
}
.category-track-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.category-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 14px;
  position: relative;
  z-index: 2;
}
.category-track::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.category-pill.is-active {
	color: var(--cream);
	border-color: transparent;
	background: var(--gold);
}
.category-pill:hover:not(.is-active) {
  color: var(--cream);
  border-color: rgba(201, 154, 82, 0.4);
}

/* the "pour" indicator: a liquid pill that slides under the active category,
   with a thin trailing line evoking a coffee stream */
.category-indicator {
  position: absolute;
  bottom: 14px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #a97c3a);
  box-shadow: 0 8px 22px -8px rgba(201, 154, 82, 0.6);
  transition:
    transform 0.38s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.38s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
  top: 0;
  display: none;
}

.slider-arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.slider-arrow:hover {
  background: var(--gold-soft);
  transform: scale(1.05);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.4s ease both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.menu-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.menu-card__name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--cream);
}
body.lang-en .menu-card__name {
  font-family: var(--font-en-display);
}
.menu-card__price {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.menu-card__desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* =========================================================
   About
   ========================================================= */
.about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 100px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.about__art {
  color: var(--gold);
}
.about__text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.about__text p {
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}
.footer__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.brand--footer {
  margin-bottom: 12px;
}
.footer__col p {
  color: var(--muted);
  margin: 4px 0;
  font-size: 0.92rem;
}
.footer__col h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: var(--cream);
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 760px) {
  .topnav {
    display: none;
  }
  .hero {
    padding: 64px 20px 56px;
  }
  .hero__steam {
    width: 160px;
    opacity: 0.35;
  }
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__art {
    justify-self: center;
    width: 120px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
