/* SABER — single-origin roastery. Bright, precise, editorial. */
:root {
  --paper: #F7F4EF; --espresso: #1A1512; --amber: #C8853F; --green: #2E4034;
  --dim: rgba(26, 21, 18, 0.6); --line: rgba(26, 21, 18, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--espresso); font-family: "Inter", sans-serif; line-height: 1.65; overflow-x: hidden; }
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 4rem); }
.dark { color: var(--espresso); }
.amber { color: var(--amber); }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between;
  align-items: center; padding: 1.2rem clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(to bottom, rgba(247, 244, 239, 0.92), transparent); }
.logo { font-family: "Archivo Black", sans-serif; font-size: 1.15rem; letter-spacing: 0.06em; }
.logo span { color: var(--amber); }
[dir="rtl"] .logo { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; }
.topbar-right { display: flex; gap: 0.8rem; align-items: center; }
.lang-toggle { font-family: "IBM Plex Sans Arabic", sans-serif; border: 1px solid var(--line); padding: 0.4rem 0.9rem; border-radius: 999px; }
.lang-toggle:hover { border-color: var(--amber); color: var(--amber); }
.btn-order { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; background: var(--espresso); color: var(--paper);
  padding: 0.55rem 1.3rem; border-radius: 999px; transition: background 0.25s; }
.btn-order:hover { background: var(--amber); }

/* HERO */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 4.5rem; }
.hero-img { overflow: hidden; margin: 0 clamp(1rem, 3vw, 2.5rem); border-radius: 4px; }
.hero-img img, .hero-img video { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 5vw, 4rem); }
.kicker { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--amber); font-weight: 600; margin-bottom: 0.9rem; }
.hero-title { font-family: "Archivo Black", sans-serif; font-size: clamp(2.6rem, 8vw, 7rem); line-height: 0.95;
  letter-spacing: -0.01em; text-transform: uppercase; }
[dir="rtl"] .hero-title { font-family: "IBM Plex Sans Arabic", sans-serif; line-height: 1.15; }
.hero-sub { color: var(--dim); margin-top: 1rem; max-width: 46ch; }

/* CHAPTERS */
.chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.chapter.alt { background: #F1ECE3; }
.ch-index { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--dim); font-weight: 600; }
.ch-title { font-family: "Archivo Black", sans-serif; font-size: clamp(3rem, 11vw, 10rem); line-height: 0.92;
  text-transform: uppercase; margin: 0.6rem 0 1.2rem; }
[dir="rtl"] .ch-title { font-family: "IBM Plex Sans Arabic", sans-serif; line-height: 1.1; }
.ch-title span { display: inline-block; opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.chapter.in .ch-title span { opacity: 1; transform: none; }
.chapter.in .ch-title span:nth-child(2) { transition-delay: 0.12s; }
.ch-body { color: var(--dim); max-width: 52ch; font-size: 1.08rem; }

/* SHOP */
.shop { padding-block: clamp(5rem, 12vh, 9rem); border-top: 1px solid var(--line); }
.sec-title { font-family: "Archivo Black", sans-serif; font-size: clamp(2.2rem, 6vw, 4.5rem); text-transform: uppercase; line-height: 0.95; }
[dir="rtl"] .sec-title { font-family: "IBM Plex Sans Arabic", sans-serif; line-height: 1.15; }
.shop-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.bag { border: 1px solid var(--line); border-radius: 4px; padding: 2rem; background: #FFFDF9;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; }
.bag:hover { border-color: var(--amber); transform: translateY(-6px); box-shadow: 0 18px 40px rgba(26, 21, 18, 0.08); }
.bag h3 { font-family: "Archivo Black", sans-serif; font-size: 1.05rem; letter-spacing: 0.04em; }
.bag-notes { color: var(--dim); font-size: 0.9rem; margin: 0.6rem 0 1.4rem; }
.bag-price { font-weight: 600; color: var(--amber); }
.subscribe { margin-top: 3rem; background: var(--green); color: #EDF2EE; border-radius: 4px;
  padding: clamp(2rem, 4vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.subscribe h3 { font-family: "Archivo Black", sans-serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
[dir="rtl"] .subscribe h3, [dir="rtl"] .bag h3 { font-family: "IBM Plex Sans Arabic", sans-serif; }
.subscribe p { color: rgba(237, 242, 238, 0.75); max-width: 52ch; }
.btn-amber { display: inline-block; background: var(--amber); color: #FFF; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.1em; padding: 1rem 2.2rem; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
  transition: background 0.25s, transform 0.3s var(--ease); }
.btn-amber:hover { background: var(--espresso); transform: translateY(-2px); }

/* VISIT */
.visit { padding-block: clamp(5rem, 12vh, 9rem); border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.visit-p { color: var(--dim); margin: 1.2rem 0 2rem; max-width: 44ch; }
.hours p { color: var(--dim); }
.hours .loc { color: var(--espresso); font-weight: 500; margin-top: 0.6rem; }
.hours { margin-bottom: 2rem; }
.visit-map { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; min-height: 380px; }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

.footer { border-top: 1px solid var(--line); padding: 3rem clamp(1.5rem, 5vw, 4rem); display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer p { color: var(--dim); font-size: 0.85rem; }

.nexa-badge { position: fixed; bottom: 1rem; inset-inline-start: 1rem; z-index: 60;
  background: rgba(247, 244, 239, 0.9); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-size: 0.72rem; color: var(--dim); padding: 0.5rem 0.9rem; border-radius: 999px;
  transition: color 0.25s, border-color 0.25s; }
.nexa-badge:hover { color: var(--amber); border-color: var(--amber); }

@media (max-width: 820px) {
  .shop-grid, .visit-grid { grid-template-columns: 1fr; }
  .chapter { min-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
  .ch-title span { opacity: 1; transform: none; }
}
