/* ================================================
   بُن — Specialty Coffee | style.css
   Identity: "Origin Stamp" — kraft/roast tones,
   moss green + roasted-gold, ink-stamp motif.
   ================================================ */

:root {
  --bg: #15100c;
  --bg-alt: #1c150f;
  --surface: #241a12;
  --surface-2: #2c2016;
  --cream: #f2e6d0;
  --cream-dim: #cabb9c;
  --cream-faint: #8f8067;
  --moss: #7c8f52;
  --moss-dim: rgba(124, 143, 82, 0.16);
  --moss-line: rgba(124, 143, 82, 0.4);
  --gold: #c9903f;
  --gold-dim: rgba(201, 144, 63, 0.15);
  --gold-line: rgba(201, 144, 63, 0.45);
  --stamp: #a8432f;
  --line: rgba(242, 230, 208, 0.1);
  --line-strong: rgba(242, 230, 208, 0.2);
  --radius: 4px;
  --radius-lg: 18px;
  --ease: 0.35s cubic-bezier(0.25, 0.8, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  line-height: 1.75;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(124,143,82,0.08), transparent),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(201,144,63,0.06), transparent);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.font-display {
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-line);
}

.section {
  padding: 96px 0;
  position: relative;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.3;
  margin-bottom: 18px;
}
.section-desc {
  color: var(--cream-dim);
  max-width: 620px;
  font-size: 1.02rem;
  margin-bottom: 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  transition: var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-fill {
  background: var(--gold);
  color: #15100c;
}
.btn-fill:hover { background: #dba354; transform: translateY(-2px); }
.btn-line {
  border-color: var(--line-strong);
  color: var(--cream);
}
.btn-line:hover { border-color: var(--gold-line); color: var(--gold); }
.btn-moss {
  background: var(--moss);
  color: #12140c;
}
.btn-moss:hover { background: #8ea15f; transform: translateY(-2px); }

/* ---------- Stamp signature element ---------- */
.stamp {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1.5px solid var(--moss-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-8deg);
  color: var(--moss);
  font-family: 'Almarai', sans-serif;
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px dashed var(--moss-line);
  border-radius: 50%;
}
.stamp-inner {
  text-align: center;
  line-height: 1.2;
}
.stamp-inner .s-top {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.stamp-inner .s-mid {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2px 0;
}
.stamp-inner .s-bot {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.stamp-gold { border-color: var(--gold-line); color: var(--gold); }
.stamp-gold::before { border-color: var(--gold-line); }

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--ease);
}
.navbar.scrolled {
  background: rgba(21, 16, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--cream);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}
.brand-sub {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  color: var(--cream-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream-dim);
  padding: 9px 16px;
  border-radius: var(--radius);
  transition: var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); background: var(--surface); }
.nav-cta {
  background: var(--gold) !important;
  color: #15100c !important;
  font-weight: 700 !important;
  margin-right: 4px;
}
.nav-cta:hover { background: #dba354 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; }

/* ================= HERO ================= */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 140px 0 60px;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 22px;
}
.hero-title .hl { color: var(--gold); }
.hero-sub {
  color: var(--cream-dim);
  font-size: 1.08rem;
  max-width: 460px;
  margin-bottom: 34px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-origins {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.origin-chip {
  font-family: 'Almarai', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  color: var(--cream-faint);
}
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-stamp-float {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--bg-alt);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.5);
}

/* ================= FEATURE STRIP ================= */
.feature-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.feature-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-num {
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.82rem; color: var(--cream-faint); }

/* ================= PRODUCT CARDS ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--moss-line);
  transform: translateY(-5px);
}
.product-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-2);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-stamp-mini {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(21,16,12,0.85);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  padding: 4px;
}
.stamp.stamp-sm { width: 62px; height: 62px; }
.stamp.stamp-sm .s-top { font-size: 0.42rem; }
.stamp.stamp-sm .s-mid { font-size: 0.85rem; margin: 0; }
.stamp.stamp-sm .s-bot { font-size: 0.38rem; }
.product-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-origin {
  font-family: 'Almarai', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 8px;
}
.product-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.product-body p { font-size: 0.88rem; color: var(--cream-faint); margin-bottom: 16px; flex: 1; }
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.product-price { font-family: 'Almarai', sans-serif; font-weight: 800; color: var(--gold); font-size: 1.1rem; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.product-tags span {
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  color: var(--cream-faint);
}

/* Filter tabs */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-tab {
  font-family: 'Almarai', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  color: var(--cream-dim);
  transition: var(--ease);
  background: transparent;
}
.filter-tab:hover { border-color: var(--gold-line); color: var(--gold); }
.filter-tab.active { background: var(--gold); border-color: var(--gold); color: #15100c; }

/* ================= ABOUT / PROCESS ================= */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-item { position: relative; padding-right: 26px; }
.process-item::before {
  content: '';
  position: absolute;
  right: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.process-item::after {
  content: '';
  position: absolute;
  right: 3px; top: 18px;
  bottom: -30px;
  width: 1px;
  background: var(--line-strong);
}
.process-row .process-item:last-child::after { display: none; }
.process-item h4 { font-size: 1.02rem; margin-bottom: 8px; }
.process-item p { font-size: 0.86rem; color: var(--cream-faint); }

.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-split img {
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--line);
}
.stat-row { display: flex; gap: 36px; margin-top: 32px; }
.stat-row .num { font-family: 'Almarai', sans-serif; font-weight: 800; font-size: 2rem; color: var(--gold); display: block; }
.stat-row .lbl { font-size: 0.8rem; color: var(--cream-faint); }

/* ================= FAQ ================= */
.faq-list { max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: right;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
}
.faq-q:hover { color: var(--gold); }
.faq-mark {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  transition: var(--ease);
}
.faq-item.open .faq-mark { transform: rotate(45deg); background: var(--gold); color: #15100c; border-color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding: 0 4px 24px; color: var(--cream-faint); font-size: 0.92rem; max-width: 640px; }

/* ================= ORDER FORM ================= */
.order-wrapper {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.order-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.order-info p { color: var(--cream-dim); margin-bottom: 28px; }
.order-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group label { font-size: 0.84rem; font-weight: 700; color: var(--cream-dim); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.92rem;
  direction: rtl;
  outline: none;
  transition: var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--cream-faint);
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--cream-faint); font-size: 0.86rem; margin-top: 14px; max-width: 320px; }
.footer h5 {
  font-family: 'Almarai', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--cream-dim); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--cream-faint);
}

/* ================= PAGE HEADER (inner pages) ================= */
.page-header {
  padding: 150px 0 60px;
  text-align: center;
}
.page-header .eyebrow { justify-content: center; display: flex; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .feature-strip .container { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .process-row { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .about-split { grid-template-columns: 1fr; }
  .order-wrapper { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: 260px;
    background: var(--bg-alt); flex-direction: column; align-items: flex-start;
    padding: 90px 22px 22px; transform: translateX(-100%); transition: transform .35s ease;
    border-left: 1px solid var(--line); z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .hamburger { display: flex; z-index: 1000; }
  .feature-strip .container { grid-template-columns: 1fr; gap: 28px; }
  .products-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}
