/* ============================================================
   CHA CHA CHAI — chachachai.ae
   Locked brand: Chai Orange / Chai Crimson / Milk Cream / Masala
   Type: Poppins (body+display) · Caveat (script) · Tajawal (AR)
   Feel: warm · familial · nostalgic chai-wallah — NOT corporate
   ============================================================ */

:root {
  --orange: #E87722;
  --crimson: #9B2C2A;
  --crimson-deep: #7C201E;
  --cream: #F4E7D0;
  --cream-soft: #FAF3E3;
  --masala: #4B2B1E;
  --masala-soft: #6E4534;
  --ink: #332016;
  --font-body: "Poppins", sans-serif;
  --font-script: "Caveat", cursive;
  --font-arabic: "Tajawal", sans-serif;
  --maxw: 1140px;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(75, 43, 30, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(rgba(155, 44, 42, 0.045) 1.5px, transparent 1.5px),
    var(--cream-soft);
  background-size: 26px 26px, auto;
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--orange); color: #fff; }

/* ---------- Type helpers ---------- */

.script {
  font-family: var(--font-script);
  color: var(--orange);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  display: block;
  line-height: 1.2;
}

.title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  color: var(--crimson);
  text-transform: uppercase;
}

.title .alt { color: var(--orange); }

.lead { color: var(--masala-soft); font-weight: 400; max-width: 660px; font-size: clamp(1rem, 1.4vw, 1.12rem); }

.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
section[id], .menu-cat[id] { scroll-margin-top: 130px; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 14px auto 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 34px;
  border-radius: 60px;
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 10px 26px rgba(155, 44, 42, 0.32);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn:hover { transform: translateY(-3px); background: var(--crimson-deep); color: #fff; box-shadow: 0 16px 36px rgba(155, 44, 42, 0.4); }

.btn.orange { background: var(--orange); box-shadow: 0 10px 26px rgba(232, 119, 34, 0.35); }
.btn.orange:hover { background: #d3661a; }

.btn.ghost {
  background: transparent;
  color: var(--crimson);
  border: 2px solid var(--crimson);
  box-shadow: none;
}

.btn.ghost:hover { background: var(--crimson); color: #fff; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.35s ease, box-shadow 0.35s ease;
}

/* Glass layer on ::before — backdrop-filter on .nav itself would make the
   navbar the containing block for the fixed mobile menu and clip it */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 243, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav.scrolled {
  box-shadow: 0 6px 30px rgba(75, 43, 30, 0.12);
  padding: 10px 0;
}

.nav.scrolled::before { opacity: 1; }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--masala);
}

.nav-links a:hover { color: var(--crimson); }

.nav-cta {
  background: var(--crimson);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
}

.nav-cta:hover { background: var(--orange); }

.nav-burger { display: none; background: none; border: none; width: 40px; height: 40px; cursor: pointer; z-index: 110; }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--crimson); margin: 5px auto; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.hero .ar {
  font-family: var(--font-arabic);
  font-weight: 700;
  color: var(--orange);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 10px;
}

.hero h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(3rem, 8vw, 5.6rem);
  color: var(--crimson);
}

.hero h1 .alt { color: var(--orange); }

.hero .script { margin: 14px 0 6px; font-size: clamp(1.7rem, 3vw, 2.3rem); }

.hero .lead { margin: 18px 0 32px; }

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.hero-stats div { border-left: 3px solid var(--orange); padding-left: 14px; }

.hero-stats b { display: block; font-size: 1.45rem; font-weight: 800; color: var(--crimson); line-height: 1.15; }

.hero-stats span { font-size: 0.78rem; font-weight: 500; color: var(--masala-soft); text-transform: uppercase; letter-spacing: 0.08em; }

/* Chai glass illustration */

.chai-stage { position: relative; display: flex; justify-content: center; }

.chai-card {
  background: linear-gradient(160deg, var(--orange), var(--crimson) 115%);
  border-radius: 32px;
  padding: clamp(40px, 5vw, 70px) clamp(30px, 4vw, 60px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  width: min(420px, 100%);
}

.chai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.14) 2px, transparent 2px);
  background-size: 22px 22px;
}

.chai-svg { width: 100%; height: auto; display: block; position: relative; }

.steam {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 5;
  stroke-linecap: round;
  fill: none;
  animation: steam 3.2s ease-in-out infinite;
  opacity: 0;
}

.steam.s2 { animation-delay: 1.1s; }
.steam.s3 { animation-delay: 2.2s; }

@keyframes steam {
  0% { transform: translateY(8px); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: translateY(-26px); opacity: 0; }
}

.chai-card .tag {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-script);
  color: #fff;
  font-size: 1.7rem;
}

/* ---------- Marquee ---------- */

.marquee { background: var(--crimson); overflow: hidden; padding: 13px 0; }

.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 32s linear infinite; }

.marquee span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--cream);
  padding: 0 24px;
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Story ---------- */

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }

.story-copy p { color: var(--masala-soft); margin-bottom: 16px; }
.story-copy p b { color: var(--ink); }

.story-quote {
  background: #fff;
  border-radius: var(--radius);
  border: 2px dashed rgba(155, 44, 42, 0.3);
  padding: clamp(30px, 4vw, 50px);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.story-quote .script { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--crimson); line-height: 1.3; }

.story-quote .who { margin-top: 16px; font-weight: 600; font-size: 0.85rem; color: var(--masala-soft); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Menu ---------- */

.menu { background: linear-gradient(180deg, transparent, rgba(232, 119, 34, 0.07) 18%, rgba(232, 119, 34, 0.07) 82%, transparent); }

.menu-chips {
  position: sticky;
  top: 84px;
  z-index: 50;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 4px;
  margin-bottom: 34px;
  background: rgba(250, 243, 227, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 60px;
}

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

.menu-chips a {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 18px;
  border-radius: 40px;
  border: 2px solid rgba(155, 44, 42, 0.3);
  color: var(--crimson);
  background: #fff;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.menu-chips a:hover { background: var(--crimson); color: #fff; border-color: var(--crimson); }

.menu-cat { margin-bottom: 54px; }

.menu-cat-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

.menu-cat-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; text-transform: uppercase; color: var(--crimson); }

.menu-cat-head .script { font-size: 1.45rem; }

.menu-cat-sub { color: var(--masala-soft); font-size: 0.95rem; margin-bottom: 28px; }

.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 48px; }

.mi {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 18px;
  padding: 15px 0;
  border-bottom: 2px dotted rgba(155, 44, 42, 0.25);
  align-items: baseline;
}

.mi .name { font-weight: 700; color: var(--ink); font-size: 1.02rem; }

.mi .name .hot {
  background: var(--orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  vertical-align: 2px;
  margin-left: 8px;
  text-transform: uppercase;
}

.mi .price { font-weight: 800; color: var(--crimson); white-space: nowrap; }

.mi .desc { grid-column: 1 / -1; color: var(--masala-soft); font-size: 0.88rem; }

/* ---------- Flask band ---------- */

.flask {
  background: linear-gradient(140deg, var(--crimson), var(--crimson-deep));
  border-radius: var(--radius);
  color: var(--cream);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.flask::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(244, 231, 208, 0.08) 2px, transparent 2px);
  background-size: 26px 26px;
}

.flask-inner { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }

.flask h3 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; line-height: 1.06; margin-bottom: 14px; }

.flask h3 .alt { color: var(--orange); }

.flask p { color: rgba(244, 231, 208, 0.85); margin-bottom: 26px; max-width: 520px; }

.flask-prices { display: grid; gap: 14px; }

.flask-price {
  background: rgba(244, 231, 208, 0.1);
  border: 1px solid rgba(244, 231, 208, 0.25);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.flask-price b { font-size: 1.05rem; }
.flask-price span { font-weight: 800; font-size: 1.3rem; color: var(--orange); white-space: nowrap; }

/* ---------- Order ---------- */

.order { text-align: center; }

.platforms { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

.platform {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 34px;
  border-radius: 60px;
  border: 2px solid rgba(155, 44, 42, 0.35);
  color: var(--crimson);
  background: #fff;
  transition: all 0.3s ease;
}

.platform:hover { border-color: var(--crimson); background: var(--crimson); color: #fff; transform: translateY(-3px); }

.platform.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.platform.primary:hover { background: var(--crimson); border-color: var(--crimson); }

.order-note { margin-top: 22px; font-size: 0.88rem; color: var(--masala-soft); }

/* ---------- Locations ---------- */

.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.loc {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 8px 30px rgba(75, 43, 30, 0.08);
  border-top: 5px solid var(--orange);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.loc .pin { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 8px; }

.loc h4 { font-weight: 800; font-size: 1.15rem; color: var(--crimson); margin-bottom: 6px; }

.loc p { color: var(--masala-soft); font-size: 0.9rem; margin-bottom: 14px; }

.loc a { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

.loc-note { text-align: center; color: var(--masala-soft); font-size: 0.9rem; margin-top: 30px; }

/* ---------- Family band ---------- */

.family {
  background: var(--masala);
  color: var(--cream);
  text-align: center;
}

.family .title { color: var(--cream); }
.family .title .alt { color: var(--orange); }
.family .lead { color: rgba(244, 231, 208, 0.8); margin: 18px auto 30px; }

/* ---------- Footer ---------- */

footer { background: var(--crimson-deep); color: var(--cream); padding: 60px 0 0; }

.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }

.foot-grid .logo-tile { background: var(--cream); border-radius: 14px; padding: 12px 18px; display: inline-block; margin-bottom: 16px; }
.foot-grid .logo-tile img { height: 48px; width: auto; }

.foot-grid p { color: rgba(244, 231, 208, 0.78); font-size: 0.9rem; }

.foot-grid h5 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--orange); margin-bottom: 16px; }

.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid li a, .foot-grid li span { color: rgba(244, 231, 208, 0.85); font-size: 0.92rem; }
.foot-grid li a:hover { color: #fff; }

.foot-bottom {
  border-top: 1px solid rgba(244, 231, 208, 0.18);
  padding: 22px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(244, 231, 208, 0.55);
}

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { padding-top: 108px; }
  .hero-grid, .story-grid, .flask-inner { grid-template-columns: 1fr; }
  .chai-card { width: min(300px, 100%); padding: 28px 26px; margin: 0 auto; }
  .chai-card .tag { bottom: 12px; font-size: 1.4rem; }
  .hero-stats { gap: 18px 26px; margin-top: 34px; }
  .loc-grid { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: 1fr; }
  .menu-cat { margin-bottom: 40px; }
  .mi { padding: 13px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    z-index: 105;
    background: var(--cream-soft);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.15rem; }
  .nav-burger { display: block; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
