/* Mihbaj, a specialty coffee roaster. One stylesheet for English (ltr) and
   Arabic (rtl). Logical properties do the mirroring; [dir="rtl"] rules only
   swap the Arabic face and a couple of text treatments. */

:root {
  --cream: #F1E7D3;
  --oat: #E6D7BC;
  --paper: #FAF4E8;
  --espresso: #2A1E14;
  --espresso-2: #3C2C1E;
  --terra: #BC5E2E;
  --terra-deep: #9C4A22;
  --slate: #6B5A45;
  --line: rgba(42,30,20,0.14);
  --line-2: rgba(42,30,20,0.06);
  --line-dark: rgba(241,231,211,0.16);
  --line-dark-2: rgba(241,231,211,0.08);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ar: "Rubik", "Figtree", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 66px);
  --gut: clamp(52px, 8.5vw, 140px);
}

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

body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
[dir="rtl"] body { font-family: var(--ar); line-height: 1.9; }
body.noscroll { overflow: hidden; }

img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--terra); color: var(--paper); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--ar); letter-spacing: 0; font-weight: 700; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gut); }
.section--dark { background: var(--espresso); color: var(--cream); }

.kicker { display: inline-flex; align-items: center; gap: .7em; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--terra-deep); }
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
[dir="rtl"] .kicker { font-family: var(--ar); letter-spacing: 0; text-transform: none; font-size: .94rem; }
.section--dark .kicker { color: #E89968; }

.display { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.14; font-weight: 700; padding-block-end: .04em; }
[dir="rtl"] .display { line-height: 1.3; }
.lat { direction: ltr; unicode-bidi: isolate; }
.num { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum" 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--sans); font-weight: 600; font-size: .92rem; padding: .9em 1.7em; background: var(--espresso); color: var(--paper); border: 1px solid var(--espresso); border-radius: 100px; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
[dir="rtl"] .btn { font-family: var(--ar); }
.btn:hover { background: var(--terra-deep); border-color: var(--terra-deep); }
.btn--ghost { background: transparent; color: var(--espresso); border-color: var(--line); }
.btn--ghost:hover { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.section--dark .btn { background: var(--terra); border-color: var(--terra); color: var(--paper); }
.section--dark .btn:hover { background: var(--paper); color: var(--espresso); border-color: var(--paper); }
.section--dark .btn--ghost, .hero .btn--ghost { color: var(--cream); border-color: rgba(241,231,211,.4); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.d2 { transition-delay: .1s; }
html.js .reveal.d3 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60; display: flex; align-items: center; gap: 18px; padding: 16px var(--pad); transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease); }
.nav::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 200%; background: linear-gradient(to bottom, rgba(28,18,10,.72), rgba(28,18,10,0)); z-index: -1; pointer-events: none; }
.nav.scrolled { background: rgba(241,231,211,.94); padding-block: 11px; box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav.scrolled .nav-links a, .nav.scrolled .brand-name, .nav.scrolled .cart-toggle, .nav.scrolled .nav-toggle span { color: var(--espresso); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 30px; height: 30px; flex: none; color: var(--terra); }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; color: var(--cream); transition: color .4s; }
[dir="rtl"] .brand-name { font-family: var(--ar); }
.nav.scrolled .brand-name { color: var(--espresso); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(15px, 2.2vw, 30px); }
.nav-links { display: flex; align-items: center; gap: clamp(15px, 2.2vw, 30px); }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--cream); transition: color .3s; }
.nav-links a:hover { color: #E89968; }
.nav.scrolled .nav-links a:hover { color: var(--terra); }
.nav-links .lang { letter-spacing: 0; text-transform: none; }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang .globe { width: 16px; height: 16px; }
.lang .globe svg { width: 100%; height: 100%; display: block; }
.cart-toggle { position: relative; width: 38px; height: 38px; display: grid; place-items: center; background: transparent; border: 0; color: var(--cream); transition: color .4s; }
.cart-toggle svg { width: 22px; height: 22px; }
.cart-count { position: absolute; inset-block-start: 0; inset-inline-end: -2px; min-width: 17px; height: 17px; padding: 0 4px; background: var(--terra-deep); color: var(--paper); font-family: var(--sans); font-size: .66rem; font-weight: 700; border-radius: 9px; display: grid; place-items: center; }
.cart-count[hidden] { display: none !important; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); transition: transform .4s var(--ease), opacity .3s, background .4s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; color: var(--cream); }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18,11,6,.9) 0%, rgba(18,11,6,.8) 46%, rgba(18,11,6,.4) 66%, rgba(18,11,6,.12) 82%, rgba(18,11,6,.46) 100%); }
.hero-inner { padding: 0 var(--pad) clamp(54px, 9vh, 110px); max-width: 1280px; margin-inline: auto; width: 100%; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: 1.07; font-weight: 800; color: var(--paper); max-width: 16ch; padding-block-end: .04em; }
.hero h1 .t { color: #E89968; }
[dir="rtl"] .hero h1 { line-height: 1.28; }
.hero-tag { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(241,231,211,.92); margin-block: 22px 0; max-width: 40ch; }
.hero-inner [lang="ar"], .hero .kicker, .hero h1, .hero-tag { text-shadow: 0 1px 2px rgba(8,4,2,.45), 0 0 20px rgba(12,7,3,.32); }
/* the desktop hero is tall, so the copy floats higher over the bright bean zone.
   deepen the scrim through that band there, without darkening the shorter mobile hero. */
@media (min-width: 821px) {
  .hero::after { background: linear-gradient(to top, rgba(18,11,6,.9) 0%, rgba(18,11,6,.82) 52%, rgba(18,11,6,.62) 70%, rgba(18,11,6,.16) 86%, rgba(18,11,6,.48) 100%); }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 30px; }
.hero-scroll { position: absolute; inset-inline-end: var(--pad); inset-block-end: 28px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(241,231,211,.6); writing-mode: vertical-rl; }
[dir="rtl"] .hero-scroll { transform: rotate(180deg); letter-spacing: 0; text-transform: none; }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-copy .display { margin-block: 18px 0; max-width: 15ch; }
.about-copy p { color: var(--slate); margin-block: 1.2em 0; max-width: 48ch; }
.about-copy p.lead { color: var(--espresso); font-size: 1.16rem; line-height: 1.5; }
.about-img { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 14px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- shop */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-block-end: clamp(28px, 4vw, 48px); }
.head-row .display { margin-block-start: 14px; max-width: 18ch; }
.coffees { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.coffee { display: grid; grid-template-columns: 40% 1fr; gap: clamp(16px, 2vw, 26px); background: var(--paper); color: var(--espresso); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.coffee:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(42,30,20,.4); border-color: transparent; }
.coffee:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.coffee-photo { overflow: hidden; }
.coffee-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform 1.1s var(--ease); }
.coffee:hover .coffee-photo img { transform: scale(1.05); }
.coffee-body { padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px) 0; display: flex; flex-direction: column; }
[dir="rtl"] .coffee-body { padding-inline: 0 clamp(18px, 2vw, 26px); }
.coffee .roast { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra-deep); }
[dir="rtl"] .coffee .roast { letter-spacing: 0; text-transform: none; }
.coffee h3 { font-size: 1.5rem; margin-block: 6px 0; }
.coffee .origin { font-size: .9rem; color: var(--slate); margin-block-start: 2px; }
.coffee .notes { font-size: .92rem; color: var(--espresso); margin-block: 12px 0; }
.coffee-foot { margin-block-start: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block-start: 16px; }
.coffee-price { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.coffee-price .from { font-family: var(--sans); font-weight: 400; font-size: .82rem; color: var(--slate); }
.coffee .pick { font-size: .82rem; font-weight: 600; color: var(--terra-deep); }
.coffee-data { display: none; }

/* product detail panel */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(20,14,8,.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.panel { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 95; width: min(500px, 100%); background: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s var(--ease); display: flex; flex-direction: column; box-shadow: -30px 0 60px -40px rgba(0,0,0,.4); }
[dir="rtl"] .panel { transform: translateX(-100%); }
.panel.open { transform: none; visibility: visible; }
.panel-close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(250,244,232,.9); border: 0; display: grid; place-items: center; color: var(--espresso); z-index: 3; }
.panel-close svg { width: 19px; height: 19px; }
.panel-scroll { overflow-y: auto; flex: 1; }
.sheet-photo { aspect-ratio: 16 / 11; overflow: hidden; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: clamp(24px, 4vw, 38px); }
.sheet-body .roast { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra-deep); }
[dir="rtl"] .sheet-body .roast { letter-spacing: 0; text-transform: none; }
.sheet-body h3 { font-size: 2rem; margin-block: 6px 0; }
.sheet-body .origin { color: var(--slate); margin-block-start: 2px; }
.sheet-body .desc { color: var(--espresso); margin-block-start: 14px; }
.specs { margin-block-start: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.specs .chip { font-size: .8rem; background: var(--oat); color: var(--espresso); padding: .4em .9em; border-radius: 100px; }
.opt { margin-block-start: 22px; }
.opt .lbl { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-block-end: 10px; }
[dir="rtl"] .opt .lbl { letter-spacing: 0; text-transform: none; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn { border: 1px solid var(--line); background: transparent; padding: .65em 1em; border-radius: 100px; font-size: .9rem; color: var(--espresso); display: inline-flex; gap: .5em; align-items: baseline; transition: border-color .3s, background .3s; }
.opt-btn .pr { font-size: .82rem; color: var(--slate); }
.opt-btn.sel { border-color: var(--terra); background: rgba(188,94,46,.08); }
.opt-btn:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.sub-toggle { margin-block-start: 22px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.sub-toggle input { margin-block-start: 3px; accent-color: var(--terra); width: 18px; height: 18px; }
.sub-toggle .st-body strong { display: block; }
.sub-toggle .st-body span { font-size: .88rem; color: var(--slate); }
.sub-freq { margin-block-start: 12px; }
.sheet-foot { padding: clamp(18px, 3vw, 26px) clamp(24px, 4vw, 38px); border-block-start: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.sheet-foot .price-now { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.sheet-foot .btn { margin-inline-start: auto; }
[dir="rtl"] .sheet-foot .btn { margin-inline-start: 0; margin-inline-end: auto; }

/* cart drawer */
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(22px, 3vw, 30px); border-block-end: 1px solid var(--line); }
.cart-head h3 { font-size: 1.5rem; }
.cart-items { flex: 1; overflow-y: auto; padding: clamp(14px, 2vw, 22px) clamp(22px, 3vw, 30px); }
.cart-empty { color: var(--slate); text-align: center; padding-block: 30px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 16px; border-block-end: 1px solid var(--line-2); }
.cart-line .l-name { font-family: var(--display); font-weight: 700; font-size: 1.06rem; }
.cart-line .l-opt { font-size: .82rem; color: var(--slate); grid-column: 1; }
.cart-line .l-total { font-weight: 600; text-align: end; }
.cart-line .l-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-block-start: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; }
.qty-btn { width: 30px; height: 30px; border: 0; background: transparent; font-size: 1.1rem; color: var(--espresso); display: grid; place-items: center; }
.qty-val { min-width: 26px; text-align: center; font-size: .9rem; }
.cart-remove { background: transparent; border: 0; color: var(--terra-deep); font-size: .82rem; text-decoration: underline; }
.cart-foot { padding: clamp(18px, 3vw, 26px) clamp(22px, 3vw, 30px); border-block-start: 1px solid var(--line); }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; margin-block-end: 16px; }
.cart-total-row .t-label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
[dir="rtl"] .cart-total-row .t-label { letter-spacing: 0; text-transform: none; }
.cart-total-row .t-val { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.cart-foot .btn { width: 100%; }

/* ---------------------------------------------------------------- band */
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--cream); }
.band .bg { position: absolute; inset: 0; z-index: -2; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28,18,10,.66); }
.band .wrap { padding-block: clamp(70px, 12vw, 150px); }
.band-text { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.16; max-width: 22ch; letter-spacing: -.02em; }
[dir="rtl"] .band-text { font-family: var(--ar); letter-spacing: 0; line-height: 1.4; max-width: 26ch; }
.band-text .t { color: #E89968; }
.band-sub { margin-block-start: 20px; color: rgba(241,231,211,.7); max-width: 44ch; }

/* ---------------------------------------------------------------- brew guides */
.brew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.brew-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; position: sticky; top: 100px; }
.brew-img img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: 6px; border-block-end: 1px solid var(--line); margin-block-end: 24px; }
.tab { font-family: var(--sans); font-size: .94rem; font-weight: 600; color: var(--slate); background: transparent; border: 0; padding: .6em .9em; position: relative; }
[dir="rtl"] .tab { font-family: var(--ar); }
.tab::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--terra); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab.active { color: var(--espresso); }
.tab.active::after { transform: scaleX(1); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
html:not(.js) .tab-panel { display: block; margin-block-end: 26px; }
html:not(.js) .tabs { display: none; }
.tab-panel .ratio { font-size: .9rem; color: var(--terra-deep); font-weight: 600; margin-block-end: 16px; }
.brew-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.brew-steps li { counter-increment: s; padding: 14px 0 14px 44px; border-block-end: 1px solid var(--line-2); position: relative; color: var(--slate); }
[dir="rtl"] .brew-steps li { padding: 14px 44px 14px 0; }
.brew-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--oat); color: var(--espresso); font-family: var(--display); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.brew-steps li b { color: var(--espresso); }

/* ---------------------------------------------------------------- cafe / visit */
.cafe-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.cafe-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; }
.cafe-img img { width: 100%; height: 100%; object-fit: cover; }
.cafe-copy .display { margin-block: 16px 0; }
.cafe-copy > p { color: var(--slate); margin-block: 16px 0; max-width: 42ch; }
.cafe-info { margin-block-start: 26px; display: grid; gap: 18px; }
.cafe-info .info-h { font-family: var(--display); font-size: .92rem; font-weight: 700; margin: 0 0 4px; }
.cafe-info p, .cafe-info .row { margin: 0; color: var(--slate); }
.cafe-info .row { display: flex; justify-content: space-between; gap: 14px; max-width: 320px; padding-block: 4px; border-block-end: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--espresso); color: var(--cream); padding-block: clamp(54px, 7vw, 86px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.footer .brand-name { color: var(--cream); }
.footer-blurb { color: rgba(241,231,211,.64); margin: 18px 0 20px; max-width: 38ch; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--cream); transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--terra); color: var(--paper); border-color: var(--terra); }
.socials svg { width: 18px; height: 18px; }
.footer-col .col-h { font-family: var(--display); font-size: .92rem; color: #E89968; margin: 0 0 14px; font-weight: 700; }
[dir="rtl"] .footer-col .col-h { font-family: var(--ar); }
.footer-col a, .footer-col span { display: block; color: rgba(241,231,211,.74); font-size: .94rem; padding-block: 5px; transition: color .3s; }
.footer-col a:hover { color: #E89968; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: clamp(40px, 6vw, 62px); padding-block-start: 24px; border-block-start: 1px solid var(--line-dark); font-size: .84rem; color: rgba(241,231,211,.55); }
.credit { display: inline-flex; align-items: center; gap: 12px; }
.credit-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(241,231,211,.6); }
[dir="rtl"] .credit-label { letter-spacing: 0; text-transform: none; font-size: .92rem; font-family: var(--ar); }
.wlogo { display: inline-flex; align-items: center; gap: 11px; opacity: .9; transition: opacity .4s var(--ease); }
.wlogo:hover { opacity: 1; }
.wlogo-mark { height: 38px; width: auto; display: block; }
.wlogo-word { height: 26px; width: auto; display: block; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,14,8,.72); }
.modal-card { position: relative; background: var(--paper); max-width: 460px; width: 100%; padding: clamp(30px, 4vw, 46px); text-align: center; border-radius: 18px; }
.modal-card .mark { width: 40px; height: 40px; color: var(--terra); margin: 0 auto 16px; }
.modal-card .mark svg { width: 100%; height: 100%; }
.modal-card h3 { font-size: 1.6rem; }
.modal-card p { color: var(--slate); margin: 12px 0 0; font-size: .98rem; }
.modal-summary { text-align: start; border: 1px solid var(--line); border-radius: 12px; margin-block-start: 18px; overflow: hidden; }
.modal-summary .row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; font-size: .9rem; }
.modal-summary .row:not(:last-child) { border-block-end: 1px solid var(--line-2); }
.modal-summary .row .k { color: var(--slate); }
.modal-ref { font-size: .86rem; color: var(--slate); margin-block-start: 14px; }
.modal-ref .code { font-family: var(--display); font-weight: 700; color: var(--espresso); letter-spacing: .04em; }
.modal-close { margin-block-start: 22px; background: var(--espresso); color: var(--paper); border: 0; padding: .8em 2em; border-radius: 100px; font-weight: 600; font-size: .9rem; transition: background .3s; }
.modal-close:hover { background: var(--terra); }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--terra-deep); color: var(--paper); padding: 10px 16px; z-index: 200; border-radius: 6px; }
.skip:focus { inset-inline-start: 12px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } .coffees { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { background: rgba(241,231,211,.94); box-shadow: 0 1px 0 var(--line); }
  .nav .brand-name, .nav .nav-links a, .nav .cart-toggle, .nav .nav-toggle span { color: var(--espresso); }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 22px; background: var(--cream); transform: translateX(100%); transition: transform .5s var(--ease); pointer-events: none; }
  [dir="rtl"] .nav-links { transform: translateX(-100%); }
  body.menu-open .nav-links { transform: none; pointer-events: auto; }
  /* .nav.scrolled adds backdrop-filter, which turns the header into the containing block
     for the fixed full-screen menu and collapses inset:0 into the header strip. the bar is
     already 94% opaque on mobile so the blur reads the same. drop it here so the overlay
     keeps mapping to the viewport through the open and close transitions. */
  .nav.scrolled { backdrop-filter: none; }
  /* keep the bar (and the close button it holds) above the overlay so it stays tappable */
  .nav .brand, .cart-toggle, .nav-toggle { position: relative; z-index: 60; }
  /* mobile bar and the open overlay are both cream, so the default cream bars vanish.
     the color rules miss them (bars are drawn with background), so darken the background. */
  .nav-toggle span { background: var(--espresso); }
  .nav-links a { font-size: 1.3rem; }
  body.menu-open .nav-links a:hover { color: var(--terra-deep); }
  .about-grid, .brew-grid, .cafe-grid { grid-template-columns: 1fr; }
  .about-img, .cafe-img { order: -1; aspect-ratio: 4 / 3; }
  .brew-img { position: static; aspect-ratio: 16 / 10; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-scroll { display: none; }
}
@media (max-width: 480px) { .coffee { grid-template-columns: 1fr; } .coffee-photo img { min-height: 180px; } .coffee-body { padding: 0 clamp(18px,4vw,22px) clamp(18px,4vw,22px); } }
