/* Chai Mkhadar — landing page
   Palette comes from the product and the brand's own app:
   milk page, white hero (so the pour video's white blends), the tea's amber,
   deep-steep brown for display text, tea-leaf green for the footer. */

:root {
  --milk: #FBF6EE;
  --glass: #FFFFFF;
  --amber: #A33E0E;
  --amber-deep: #7E2E08;
  --steep: #4A1C0A;
  --leaf: #1D4A3B;
  --leaf-deep: #15372C;
  --saffron: #E0A93A;
  --ink: #2A1A12;
  --ink-soft: #6E5A4E;
  --line: rgba(74, 28, 10, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Reem Kufi", "Noto Kufi Arabic", sans-serif;

  --r-hero: 28px;
  --r-photo: 14px;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 34rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
dl, dd, dt, h1, h2, h3, p, figure { margin: 0; }

[lang="ar"] { font-family: var(--font-arabic); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- type scale (Elements of Typographic Style ratios) ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--steep);
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--steep);
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: var(--steep);
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.section-lede {
  max-width: var(--measure);
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

/* ---------- hero ---------- */

.hero {
  margin: clamp(10px, 1.6vw, 20px);
  background: var(--glass);
  border-radius: var(--r-hero);
  box-shadow: 0 30px 60px -40px rgba(74, 28, 10, 0.35);
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--steep);
}

.brand-mark {
  width: 34px;
  height: 44px;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(74, 28, 10, 0.22));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.005em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--amber); }

.nav-arabic {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0 var(--gutter) clamp(2rem, 5vw, 4rem);
}

.pour {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-radius: 18px;
  background: var(--glass);
}

.pour-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 50%;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  padding-right: clamp(0px, 2vw, 24px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--steep);
}
.btn-ghost:hover { border-color: var(--steep); }

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-inner {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* The tea */
.tea-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.tea-intro p {
  max-width: var(--measure);
  margin-top: 1rem;
  color: var(--ink-soft);
}

.price-list {
  border-top: 1px solid var(--line);
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.price-row dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--steep);
}
.price-row dt [lang="ar"] {
  margin-left: 0.6rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.price-row dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  white-space: nowrap;
}

/* Breakfast */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.dish img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-photo);
  background: #EFE6DA;
}
.dish-tall img { aspect-ratio: 3 / 4; }

.dish-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.1rem 0;
}
.dish-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--steep);
}
.dish-price {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--amber);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

/* Majlis */
.majlis {
  background: var(--glass);
}
.majlis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.majlis-copy p {
  max-width: 28rem;
  margin-top: 1rem;
  color: var(--ink-soft);
}
.majlis-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* Cafés */
.cafe-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.cafe {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--steep);
  margin-top: -1px;
}
.cafe h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--steep);
}
.cafe p { color: var(--ink-soft); margin-top: 0.25rem; }
.cafe a {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}

/* Order */
.order { padding-top: 0; }
.order-inner {
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  background: var(--glass);
  border-radius: var(--r-hero);
  text-align: center;
}
.order-inner .section-lede { margin-inline: auto; }
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.partners li {
  padding: 0.7rem 1.4rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  color: var(--steep);
}

/* ---------- footer ---------- */

.footer {
  margin: 0 clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px);
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--leaf);
  color: #F3EDE2;
  border-radius: var(--r-hero);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.footer-logo { width: clamp(140px, 18vw, 220px); height: auto; }
.footer-tag {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: #FFF8EC;
}
.footer-meta {
  margin-top: 0.6rem;
  color: rgba(243, 237, 226, 0.72);
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .menu-grid, .majlis-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .majlis-grid, .tea-grid, .sets { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav-links { display: none; }
  .hero-body { grid-template-columns: 1fr; gap: 1.25rem; }
  .pour { aspect-ratio: 4 / 3; border-radius: 14px; }
  .pour-video { object-position: 30% 50%; }
  .hero-copy { padding-right: 0; }
  .display { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .price-row dt [lang="ar"] { display: block; margin: 0.15rem 0 0; }
  .cafe-list { grid-template-columns: 1fr; gap: 0; }
  .cafe { padding-bottom: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .menu-grid, .majlis-items { grid-template-columns: 1fr 1fr; gap: 0.9rem 0.75rem; }
  .dish-caption { flex-direction: column; gap: 0.15rem; }
  .btn { width: 100%; }
}

/* reduced motion: show the finished cup, don't animate the pour */
@media (prefers-reduced-motion: reduce) {
  .pour-video { display: none; }
  .pour { background: var(--glass) url("media/poster.jpg") center / cover no-repeat; }
}
