/* ============================================================
   ROAST × Cha Cha Chai — right-to-left layer for the Arabic pages (/ar/)
   Loaded after style.css and enrich.css, on the Arabic pages only.
   Scope: right-to-left flow, Cairo type, no tracking / capitals, and the mirrored
   paddings, bullets, tables, forms, bars and bubbles of the components those pages use.
   ============================================================ */

:root {
  --font-display: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-script: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-arabic: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- Type: Cairo everywhere, no letter-spacing, no capitals ---------- */
html[lang="ar"] body { font-family: var(--font-body); font-size: 17px; line-height: 1.85; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5 { font-family: var(--font-display); line-height: 1.4; }
html[lang="ar"] .eyebrow { font-family: var(--font-script); font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.5; }
html[lang="ar"] .title, html[lang="ar"] .ar-h1, html[lang="ar"] .ar-h2, html[lang="ar"] .enquire .lead h2 { text-wrap: balance; }
html[lang="ar"] .title { font-weight: 700; font-size: clamp(1.75rem, 4.4vw, 2.7rem); line-height: 1.4; }
html[lang="ar"] .lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.95; }
html[lang="ar"] .btn { font-size: 1rem; font-weight: 700; padding: 14px 30px; line-height: 1.5; text-align: center; }
html[lang="ar"] .cart-tiers .tier .btn { font-size: .95rem; padding: 13px 22px; }
a.btn.wa { text-decoration: none; }

/* Latin names, prices and numbers sit in <bdi dir="ltr"> isolates; short ones never break across lines */
html[lang="ar"] bdi.nb, html[lang="ar"] span.nb { white-space: nowrap; }
/* the one long phrase (the group name) may wrap inside a card instead of widening a 320 px screen */
html[lang="ar"] bdi.nb.nbw { white-space: normal; }
html[lang="ar"] .feat, html[lang="ar"] .way, html[lang="ar"] .loc { min-width: 0; }

/* ---------- Nav ---------- */
html[lang="ar"] .nav-links a { font-size: .95rem; font-weight: 600; }
html[lang="ar"] .nav-links .nav-cta { font-size: .92rem; font-weight: 700; padding: 10px 22px; }
html[lang="ar"] .nav-links .nav-tel a { font-size: .9rem; direction: ltr; }
html[lang="ar"] .nav-links { gap: 20px; }
/* desktop: every nav label stays on one line (a flex item would otherwise wrap its words while fonts load or when a label is long) */
@media (min-width: 881px) { html[lang="ar"] .nav-links a { white-space: nowrap; } }
/* 881-1100 px: the eight links (longest label: قائمة الطعام) must stay on one row */
@media (min-width: 881px) and (max-width: 1100px) {
  html[lang="ar"] .nav-links { gap: 10px; }
  html[lang="ar"] .nav-links a { font-size: .86rem; }
  html[lang="ar"] .nav-links .nav-cta { font-size: .84rem; padding: 9px 14px; }
}
@media (max-width: 880px) {
  html[lang="ar"] .nav-links { transform: translateX(-100%); }
  html[lang="ar"] .nav-links.open { transform: none; }
  html[lang="ar"] .nav-links a { font-size: 1.15rem; }
  html[lang="ar"] .nav-links .nav-contact a { font-size: .95rem; gap: .4em; }
  html[lang="ar"] .nav-links .nav-contact a + a { box-shadow: 1px 0 0 rgba(242, 228, 205, .22); }
}
@media (max-width: 359px) { html[lang="ar"] .nav-links .nav-contact a + a { box-shadow: none; } }

/* tap targets: logo, burger, breadcrumb link, footer social pills */
html[lang="ar"] .nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
html[lang="ar"] .nav-burger { width: 44px; height: 44px; }
html[lang="ar"] .crumbs a { display: inline-block; padding: 8px 0; margin: -8px 0; }
html[lang="ar"] .foot-social a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Hero, breadcrumbs ---------- */
html[lang="ar"] .ar-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.35; max-width: 900px; margin: 6px 0 16px; color: var(--cream); }
html[lang="ar"] .page-hero .lead { max-width: 760px; }
html[lang="ar"] .page-hero .ar-lead2 { margin-top: 12px; font-size: 1rem; }
html[lang="ar"] .crumbs { font-size: 1rem; opacity: .85; margin-bottom: 10px; }
@media (max-width: 768px) { html[lang="ar"] .page-hero { padding-top: 120px; padding-bottom: 60px; } }

/* ---------- Sections, text blocks ---------- */
.ar-sec { padding: clamp(46px, 7vw, 88px) 0; }
.ar-narrow { max-width: 860px; margin-inline: auto; }
.ar-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .ar-cols { grid-template-columns: 1fr; } }
.ar-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.45; margin: 0 0 12px; color: var(--cream); }
.ar-h2 .grad { background: linear-gradient(100deg, var(--copper) 10%, var(--copper-light) 45%, var(--cream) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-p { color: var(--cream-soft); font-weight: 400; font-size: 1.02rem; line-height: 1.9; margin: 0 0 14px; }
.ar-link { color: var(--copper-light); display: inline-block; padding: 12px 0; text-decoration: underline; text-underline-offset: 4px; }
.ar-link:hover { color: var(--cream); }
/* two form links under the contact buttons: stacked on phones, no stray separator */
@media (max-width: 640px) { .ar-links .ar-sep { display: none; } .ar-links .ar-link { display: block; padding: 10px 0; } }
.ar-tag { text-align: center; font-family: var(--font-arabic); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--copper-light); margin-top: 38px; }
.ar-price { margin-top: 14px; color: var(--copper-light); font-weight: 600; font-size: .95rem; line-height: 1.7; }
.ar-center { justify-content: center; }
.ar-list { list-style: none; margin: 6px 0 16px; padding: 0; }
.ar-list li { position: relative; padding: 6px 28px 6px 0; color: var(--cream-soft); line-height: 1.85; }
.ar-list li::before { content: "✦"; position: absolute; right: 0; top: 6px; color: var(--copper-light); }
.ar-list li strong { color: var(--cream); font-weight: 600; }
.ar-steps { list-style: none; margin: 6px 0 16px; padding: 0; counter-reset: arstep; }
.ar-steps li { counter-increment: arstep; position: relative; padding: 8px 46px 8px 0; color: var(--cream-soft); line-height: 1.85; }
.ar-steps li::before { content: counter(arstep); position: absolute; right: 0; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--copper); color: var(--copper-light); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }
.ar-box { border: 1px solid rgba(242, 228, 205, .18); border-radius: 14px; padding: 18px 22px; margin-top: 30px; background: rgba(184, 120, 99, .06); }
.ar-box strong { color: var(--cream); font-size: 1.1rem; }
.ar-box .ar-list { margin: 10px 0 0; }
@media (min-width: 881px) { .ar-box .ar-list { columns: 2; column-gap: 44px; } .ar-box .ar-list li { break-inside: avoid; } }
.ar-faq { display: grid; gap: 22px; }
.ar-q h3 { font-size: 1.1rem; font-weight: 700; color: var(--cream); margin-bottom: 6px; line-height: 1.6; }
.ar-q p { color: var(--cream-soft); line-height: 1.95; margin: 0; }
.ar-q p a { color: var(--copper-light); text-decoration: underline; text-underline-offset: 3px; }
.ar-moresec { padding-top: clamp(30px, 5vw, 56px); padding-bottom: clamp(44px, 6vw, 70px); }
.ar-more-h { text-align: center; color: var(--copper-light); font-weight: 700; margin-bottom: 12px; }
.ar-more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ar-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(184, 120, 99, .35); border-radius: 50px; color: var(--cream); font-size: .92rem; }
.ar-more a:hover { border-color: var(--copper); background: rgba(184, 120, 99, .1); }

/* ---------- Cards ---------- */
html[lang="ar"] .feat h4 { font-size: 1.15rem; line-height: 1.5; font-weight: 700; }
html[lang="ar"] .feat p { font-size: .98rem; line-height: 1.9; font-weight: 400; }
html[lang="ar"] .way h4 { font-size: 1.15rem; line-height: 1.5; font-weight: 700; }
html[lang="ar"] .way p { font-size: .98rem; line-height: 1.85; font-weight: 400; }
html[lang="ar"] .way a { font-size: .98rem; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.ar-ways4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .ar-ways4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 880px) { html[lang="ar"] .ways { grid-template-columns: 1fr; } .ar-ways4 { grid-template-columns: 1fr; } }
@media (min-width: 881px) and (max-width: 1020px) { html[lang="ar"] .ways:not(.ar-ways4) { grid-template-columns: 1fr 1fr; } }

/* ---------- Packages and tables ---------- */
html[lang="ar"] .tier h3 { font-size: 1.25rem; line-height: 1.5; font-weight: 700; }
html[lang="ar"] .tier .from { font-size: 1.05rem; font-weight: 600; }
html[lang="ar"] .tier h3 { margin-bottom: 0; }
.ar-dur { color: var(--cream-soft); font-size: .92rem; margin: 0 0 10px; }
html[lang="ar"] .tier li { padding: 7px 26px 7px 0; font-size: .98rem; line-height: 1.75; }
html[lang="ar"] .tier li::before { left: auto; right: 0; }
.ar-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.ar-actions .btn { align-self: stretch; margin-top: 0; }
html[lang="ar"] .cart-subhead { font-size: 1.2rem; font-weight: 700; }
html[lang="ar"] .pax-table th, html[lang="ar"] .pax-table td { text-align: right; font-weight: 400; font-size: 1rem; }
html[lang="ar"] .pax-table thead th { font-size: .9rem; font-weight: 600; }
html[lang="ar"] .pax-table tbody td { white-space: normal; }

/* ---------- Café cards ---------- */
html[lang="ar"] .loc .pin { font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
html[lang="ar"] .loc .pin.hours { font-size: .92rem; line-height: 1.75; font-weight: 500; }
html[lang="ar"] .loc h4 { font-size: 1.2rem; line-height: 1.5; font-weight: 700; }
html[lang="ar"] .loc p { font-size: .96rem; line-height: 1.8; font-weight: 400; }
html[lang="ar"] .loc .loc-actions a { font-size: .92rem; font-weight: 600; gap: .4em; }
@media (min-width: 1021px) {
  html[lang="ar"] .loc-grid { grid-template-columns: repeat(6, 1fr); }
  html[lang="ar"] .loc-grid .loc { grid-column: span 2; }
  html[lang="ar"] .loc-grid .loc:nth-child(4) { grid-column: 2 / span 2; }
  html[lang="ar"] .loc-grid .loc:nth-child(5) { grid-column: 4 / span 2; }
}
html[lang="ar"] .loc-note { font-size: .95rem; line-height: 1.9; }

/* ---------- Enquiry band and form ---------- */
html[lang="ar"] .enquire .lead h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.45; font-weight: 700; }
html[lang="ar"] .enquire .lead p { font-weight: 400; }
@media (min-width: 881px) {
  html[lang="ar"] .enquire-inner { align-items: start; }
  html[lang="ar"] .enquire-inner > .lead { position: sticky; top: 110px; }
}
html[lang="ar"] .enquire .quick, html[lang="ar"] .quick { font-size: .95rem; font-weight: 600; }
html[lang="ar"] .enquiry-form label { font-size: .92rem; font-weight: 600; line-height: 1.55; }
html[lang="ar"] .enquiry-form input, html[lang="ar"] .enquiry-form select, html[lang="ar"] .enquiry-form textarea { font-size: 1rem; line-height: 1.6; }
html[lang="ar"] .enquiry-form input[type="email"], html[lang="ar"] .enquiry-form input[type="tel"], html[lang="ar"] .enquiry-form input[type="date"],
html[lang="ar"] .enquiry-form input[type="time"], html[lang="ar"] .enquiry-form input[type="number"] { direction: ltr; text-align: right; }
html[lang="ar"] .enquiry-form select {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D9A78F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}
html[lang="ar"] .ef-honey { left: auto; right: -9999px; }
/* the WhatsApp button main.js injects beside Submit: enrich.css gives it a left margin, which in right-to-left lands on the outer edge */
html[lang="ar"] .enquiry-form > .btn + .btn.wa[data-ef-wa] { margin-left: 0; margin-right: 12px; }
@media (max-width: 520px) { html[lang="ar"] .enquiry-form > .btn + .btn.wa[data-ef-wa] { margin: 12px 0 0; } }
html[lang="ar"] .ef-actions > label { flex: 1 1 240px; margin-bottom: 0; }
html[lang="ar"] .form-note { font-size: .86rem; line-height: 1.8; font-weight: 400; }

/* ---------- Footer ---------- */
html[lang="ar"] .foot-grid h5 { font-size: 1rem; font-weight: 700; }
html[lang="ar"] .foot-grid p { font-size: .95rem; line-height: 1.85; font-weight: 400; }
html[lang="ar"] .foot-grid li a, html[lang="ar"] .foot-grid li span { font-size: .96rem; }
html[lang="ar"] .foot-social a { font-size: .85rem; }
html[lang="ar"] .foot-bottom { font-size: .88rem; line-height: 1.8; }
/* the Missan Group link is one unbroken line now: keep a 44 px tap area without stretching the text line */
html[lang="ar"] .foot-bottom a { display: inline-block; padding: 12px 2px; margin: -12px 0; }

/* ---------- Sticky bar and WhatsApp bubble ---------- */
@media (max-width: 768px) {
  html[lang="ar"] .sticky-cta a { font-size: .95rem; font-weight: 700; padding: 15px 6px; }
}
html[lang="ar"] .wa-fab { right: auto; left: 18px; }
@media (max-width: 520px) { html[lang="ar"] .wa-fab { right: auto; left: 14px; } }
@media (min-width: 1024px) {
  /* label is Arabic ("واتساب" + the number inside bidi isolates), so it reads right-to-left */
  html[lang="ar"] .wa-fab[data-label]::after { right: auto; left: 70px; direction: rtl; }
}
