/* ============================================================
   SFAR-OLIVE — style.css
   Palette: deep grove green + gold + cream, terracotta accent
   ============================================================ */
:root {
  --ink: #14241a;
  --green: #1f3624;
  --green-2: #2c4a33;
  --green-soft: #3f6b3a;
  --gold: #c9a227;
  --gold-light: #e8c96a;
  --gold-deep: #9a7a1a;
  --cream: #f6f1e7;
  --cream-2: #efe7d6;
  --terra: #b0623a;
  --white: #fdfcf9;
  --shadow: 0 20px 60px rgba(14, 26, 18, .18);
  --radius: 18px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body, html[lang="ar"] body { font-family: 'Amiri', var(--font-sans); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: 'Amiri', var(--font-serif); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); color: var(--green); }
h2.light { color: var(--cream); }
h3 { font-size: 1.25rem; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.center { text-align: center; }

.kicker {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 1rem;
}
.section-sub { max-width: 640px; margin: 1.2rem auto 0; opacity: .82; }
.section-sub.center { text-align: center; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .95rem 2.1rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s;
  border: none; cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  background-size: 180% 180%; color: #241d05;
  box-shadow: 0 10px 30px rgba(201,162,39,.35);
}
.btn-gold:hover { background-position: 100% 100%; box-shadow: 0 16px 40px rgba(201,162,39,.5); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: var(--cream); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--gold-light); color: var(--gold-light); }
.btn-line { border: 1.5px solid var(--green-2); color: var(--green); }
.btn-line:hover { background: var(--green); color: var(--cream); }
.btn-wide { width: 100%; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--green);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; transition: opacity .7s ease, visibility .7s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-drop { width: 64px; }
.pre-fill { animation: fillDrop 1.6s ease-in-out forwards .2s; }
@keyframes fillDrop { to { transform: translateY(-100px); } }
.pre-word { color: var(--gold-light); letter-spacing: .5em; font-size: .8rem; font-weight: 600; animation: pulse 1.8s ease infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 clamp(1rem, 4vw, 3rem);
  transition: background .45s ease, box-shadow .45s ease, height .3s;
  color: var(--cream);
}
.nav.solid {
  background: rgba(20, 36, 26, .92); backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(10, 20, 14, .35);
}
.nav-logo img { height: 44px; width: auto; filter: brightness(0) invert(1) sepia(.15); }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav-links a {
  font-size: .92rem; font-weight: 500; opacity: .92; position: relative; padding: .3rem 0;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 0; height: 2px;
  background: var(--gold-light); transition: width .35s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1.5px solid var(--gold); color: var(--gold-light) !important;
  padding: .5rem 1.2rem !important; border-radius: 999px; transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--gold); color: #241d05 !important; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.28); color: var(--cream); border-radius: 999px;
  padding: .45rem 1rem; font-weight: 600; font-size: .85rem; cursor: pointer;
  transition: background .3s;
}
.lang-btn:hover { background: rgba(255,255,255,.2); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 150px;
  background: var(--white); color: var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .3s ease; z-index: 110;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { padding: .7rem 1.2rem; cursor: pointer; font-size: .92rem; transition: background .2s; }
.lang-menu li:hover { background: var(--cream-2); }
.lang-menu li.active { color: var(--gold-deep); font-weight: 700; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--cream); border-radius: 2px; transition: all .35s ease; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; color: var(--cream); text-align: center;
  padding: calc(var(--nav-h) + 3rem) 1rem 5rem;
}
.hero-bg {
  position: absolute; inset: -6%;
  background: url('/assets/grove.jpg') center 30%/cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,30,20,.72) 0%, rgba(16,30,20,.55) 45%, rgba(16,30,20,.88) 100%);
}
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.12) translateY(-1.6%); } }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-kicker {
  letter-spacing: .3em; text-transform: uppercase; font-size: .74rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 1.6rem;
}
.hero-title { font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 700; color: var(--white); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: inline-block; transform: translateY(110%); animation: riseUp 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-title .line:nth-child(2) span { animation-delay: .18s; }
.hero-title .line:nth-child(3) span { animation-delay: .36s; }
@keyframes riseUp { to { transform: none; } }
.hero-title .accent span {
  background: linear-gradient(100deg, var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: riseUp 1.1s cubic-bezier(.2,.7,.2,1) forwards .36s, shimmer 5s linear infinite 1.6s;
  font-style: italic; padding-inline-end: .12em;
}
@keyframes shimmer { to { background-position: 200%; } }
.hero-sub { max-width: 640px; margin: 1.8rem auto 0; font-size: 1.06rem; opacity: .92; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(1.4rem, 5vw, 4rem);
  margin-top: clamp(2.6rem, 6vh, 4.5rem); flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--gold-light); }
.stat-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .78; margin-top: .2rem; }

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 9px; margin-left: -2px;
  background: var(--gold-light); border-radius: 2px; animation: wheel 1.8s ease infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ============================================================
   SPLIT LAYOUT (heritage / global / contact)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split-text > p { margin-top: 1rem; opacity: .88; }

.frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame img { transition: transform .8s ease; }
.frame:hover img { transform: scale(1.05); }
.frame-badge {
  position: absolute; bottom: 1.2rem; inset-inline-start: 1.2rem;
  background: rgba(20,36,26,.88); backdrop-filter: blur(8px); color: var(--cream);
  border: 1px solid rgba(201,162,39,.4); border-radius: 14px;
  padding: .8rem 1.2rem; display: flex; align-items: center; gap: .8rem; max-width: 78%;
  font-size: .85rem; line-height: 1.35;
}
.frame-badge-num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--gold-light); }

.heritage-points { margin-top: 1.8rem; display: grid; gap: 1rem; }
.heritage-points li { padding-inline-start: 1.4rem; position: relative; }
.heritage-points li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.heritage-points strong { color: var(--green); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 3.5rem; perspective: 1400px;
}
.product-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.7rem;
  text-align: center; box-shadow: 0 8px 34px rgba(20,36,26,.09);
  transform-style: preserve-3d; transition: box-shadow .4s ease;
  position: relative; display: flex; flex-direction: column; align-items: center;
}
.product-card:hover { box-shadow: 0 26px 70px rgba(20,36,26,.2); }
.product-card.featured { border: 1.5px solid var(--gold); background: linear-gradient(170deg, #fffdf6, #fbf4e2); }
.product-flag {
  position: absolute; top: 1.1rem; inset-inline-end: 1.1rem;
  background: var(--gold); color: #241d05; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px;
}
.bottle-wrap { height: 210px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 1.4rem; transform: translateZ(46px); }
.bottle { height: 200px; filter: drop-shadow(0 16px 20px rgba(20,36,26,.28)); transition: transform .5s ease; }
.product-card:hover .bottle { transform: translateY(-8px) rotate(-2deg); }
.label-brand { font-family: var(--font-serif); font-weight: 700; font-size: 15px; letter-spacing: 2px; fill: #2c2c2c; }
.label-type { font-family: var(--font-sans); font-weight: 600; font-size: 9px; letter-spacing: 2.5px; }
.product-card h3 { color: var(--green); transform: translateZ(34px); }
.product-notes { font-size: .92rem; opacity: .8; margin: .7rem 0 1.2rem; transform: translateZ(26px); }
.product-specs { width: 100%; border-top: 1px dashed rgba(20,36,26,.18); margin-bottom: 1.4rem; transform: translateZ(20px); }
.product-specs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem .1rem; border-bottom: 1px dashed rgba(20,36,26,.18); font-size: .86rem;
}
.product-specs span { opacity: .65; }
.product-card .btn { margin-top: auto; transform: translateZ(30px); }
.products-bulk {
  margin: 3rem auto 0; max-width: 760px; text-align: center; font-size: .95rem;
  background: rgba(201,162,39,.1); border: 1px dashed var(--gold); border-radius: 14px; padding: 1.1rem 1.6rem;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--green); color: var(--cream); overflow: hidden; }
.process-bg {
  position: absolute; inset: 0; opacity: .13;
  background: url('/assets/olive-macro.jpg') center/cover fixed;
}
.process .kicker { color: var(--gold-light); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem); margin-top: 3.6rem; counter-reset: step; position: relative;
}
.step {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.8rem 1.4rem; position: relative;
  transition: transform .45s ease, background .45s ease, border-color .45s;
}
.step:hover { transform: translateY(-8px); background: rgba(255,255,255,.09); border-color: rgba(201,162,39,.5); }
.step-num { font-family: var(--font-serif); font-size: 2.4rem; color: rgba(232,201,106,.35); font-weight: 700; }
.step-icon { width: 42px; height: 42px; color: var(--gold-light); margin: .6rem 0 .8rem; }
.step h3 { color: var(--white); margin-bottom: .5rem; }
.step p { font-size: .9rem; opacity: .82; }

/* ============================================================
   BLOCKCHAIN
   ============================================================ */
.blockchain {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201,162,39,.14), transparent 60%),
    linear-gradient(180deg, #0f1d14, #14241a 60%, #0f1d14);
  color: var(--cream);
}
.blockchain .kicker { color: var(--gold-light); }
.bc-head { display: grid; grid-template-columns: 1.35fr .65fr; gap: 3rem; align-items: center; }
.bc-head .section-sub { margin-left: 0; }

/* rotating cube */
.bc-cube-wrap { display: flex; justify-content: center; perspective: 900px; }
.bc-cube { width: 130px; height: 130px; position: relative; transform-style: preserve-3d; animation: spinCube 14s linear infinite; }
@keyframes spinCube { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.bc-cube .face {
  position: absolute; inset: 0; border: 1.5px solid rgba(232,201,106,.75);
  background: rgba(201,162,39,.08); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.bc-cube .face::after { content: '⬡'; color: var(--gold-light); font-size: 2rem; opacity: .8; }
.f1 { transform: translateZ(65px); } .f2 { transform: rotateY(180deg) translateZ(65px); }
.f3 { transform: rotateY(90deg) translateZ(65px); } .f4 { transform: rotateY(-90deg) translateZ(65px); }
.f5 { transform: rotateX(90deg) translateZ(65px); } .f6 { transform: rotateX(-90deg) translateZ(65px); }

.bc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 3.6rem; }
.bc-feature {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; background: rgba(255,255,255,.04); transition: transform .4s, border-color .4s;
}
.bc-feature:hover { transform: translateY(-6px); border-color: rgba(232,201,106,.55); }
.bc-feature svg { width: 38px; height: 38px; fill: var(--gold-light); color: var(--gold-light); margin-bottom: 1rem; }
.bc-feature h3 { color: var(--white); margin-bottom: .5rem; }
.bc-feature p { font-size: .92rem; opacity: .82; }

/* demo */
.bc-demo {
  margin-top: 4rem; border: 1px solid rgba(232,201,106,.35); border-radius: 22px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background: linear-gradient(160deg, rgba(201,162,39,.09), rgba(255,255,255,.03));
}
.bc-demo-head h3 { color: var(--gold-light); font-size: 1.45rem; }
.bc-demo-head p { opacity: .8; font-size: .92rem; margin-top: .3rem; }
.bc-demo-form { display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.bc-demo-form input {
  flex: 1; min-width: 220px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; color: var(--gold-light); font-family: ui-monospace, monospace;
  padding: .9rem 1.4rem; font-size: .95rem; letter-spacing: .06em; outline: none; transition: border-color .3s;
}
.bc-demo-form input:focus { border-color: var(--gold); }

.bc-chain { display: flex; align-items: stretch; gap: 0; margin-top: 2.2rem; }
.bc-block {
  flex: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 14px;
  padding: 1.1rem .9rem; text-align: center; background: rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: .35rem; align-items: center;
  transition: border-color .5s, box-shadow .5s, transform .5s; min-width: 0;
}
.bc-block.pending { border-color: var(--gold); box-shadow: 0 0 24px rgba(201,162,39,.25); animation: blockPulse 1s ease infinite; }
.bc-block.ok { border-color: #67c97a; box-shadow: 0 0 22px rgba(103,201,122,.3); transform: translateY(-4px); }
@keyframes blockPulse { 50% { box-shadow: 0 0 40px rgba(201,162,39,.5); } }
.bc-block-icon { font-size: 1.5rem; }
.bc-block-title { font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.bc-hash { font-size: .62rem; color: rgba(232,201,106,.75); font-family: ui-monospace, monospace; word-break: break-all; min-height: 1.6em; }
.bc-link { width: clamp(14px, 3vw, 40px); align-self: center; height: 2px; background: rgba(255,255,255,.22); position: relative; flex-shrink: 0; }
.bc-link::after {
  content: ''; position: absolute; inset: 0; background: var(--gold-light);
  transform: scaleX(0); transform-origin: left; transition: transform .6s ease;
}
[dir="rtl"] .bc-link::after { transform-origin: right; }
.bc-link.on::after { transform: scaleX(1); }
.bc-verdict { margin-top: 1.6rem; font-size: .98rem; min-height: 1.8em; color: #8fe3a0; font-weight: 500; }
.bc-verdict.err { color: #e08585; }
.bc-block.idle { opacity: .4; }
.bc-trace-link {
  display: inline-block; margin-top: .4rem; color: var(--gold-light); font-weight: 600;
  border-bottom: 1px dashed rgba(232,201,106,.5); transition: color .3s;
}
.bc-trace-link:hover { color: var(--white); }
.bc-trace-link[hidden] { display: none; }

/* ============================================================
   GLOBAL
   ============================================================ */
.global { background: linear-gradient(180deg, #0f1d14, #182c1f); color: var(--cream); }
.global .kicker { color: var(--gold-light); }
.global-list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.global-list li {
  display: grid; gap: .15rem; border-inline-start: 3px solid var(--gold);
  padding-inline-start: 1.1rem;
}
.global-list strong { color: var(--gold-light); font-size: 1.02rem; }
.global-list span { font-size: .9rem; opacity: .82; }
#globe { width: min(100%, 520px); height: auto; margin: 0 auto; display: block; }

/* ============================================================
   CERTIFICATIONS + AWARDS
   ============================================================ */
.cert-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.4rem); margin-top: 3.2rem;
}
.cert { width: 128px; text-align: center; }
.cert-ring {
  width: 92px; height: 92px; margin: 0 auto; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: .95rem; line-height: 1.1;
  background: radial-gradient(circle at 30% 25%, #fffdf4, var(--cream-2));
  box-shadow: 0 8px 22px rgba(154,122,26,.22); transition: transform .4s ease, box-shadow .4s;
}
.cert:hover .cert-ring { transform: translateY(-6px) rotate(-4deg); box-shadow: 0 16px 34px rgba(154,122,26,.35); }
.cert p { font-size: .78rem; opacity: .72; margin-top: .7rem; line-height: 1.35; }

.awards-marquee {
  margin-top: 3.6rem; overflow: hidden; border-block: 1px solid rgba(20,36,26,.14); padding: 1.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.awards-track { display: inline-flex; gap: 3.5rem; white-space: nowrap; animation: marquee 28s linear infinite; will-change: transform; }
.awards-track span { font-family: var(--font-serif); font-size: 1.05rem; color: var(--green-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .awards-track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.voices { background: var(--cream-2); }
.quotes { position: relative; max-width: 780px; margin: 3rem auto 0; min-height: 210px; }
.quote {
  position: absolute; inset: 0; opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease; text-align: center; pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote p { font-family: var(--font-serif); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-style: italic; color: var(--green); line-height: 1.5; }
.quote footer { margin-top: 1.4rem; font-size: .92rem; opacity: .8; }
.quote-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.quote-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,36,26,.25); transition: background .3s, transform .3s;
}
.quote-dots button.active { background: var(--gold); transform: scale(1.3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { color: var(--cream); overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(15,29,20,.9), rgba(15,29,20,.94)), url('/assets/harvest.jpg') center/cover;
}
.contact .container { position: relative; }
.contact .kicker { color: var(--gold-light); }
.contact-info { margin-top: 1.8rem; display: grid; gap: .8rem; font-size: .98rem; }
.contact-info a { color: var(--gold-light); border-bottom: 1px dashed rgba(232,201,106,.4); }
.docs-center { margin-top: 2rem; border: 1px dashed rgba(232,201,106,.45); border-radius: 16px; padding: 1.2rem 1.4rem; }
.docs-center h3 { color: var(--gold-light); font-size: 1.1rem; }
.docs-center p { font-size: .86rem; opacity: .8; margin: .3rem 0 .8rem; }
.docs-center ul { display: grid; gap: .45rem; }
.docs-center li a { color: var(--cream); font-size: .92rem; border-bottom: 1px dashed rgba(246,241,231,.35); }
.docs-center li a:hover { color: var(--gold-light); }

.quote-form {
  background: rgba(253,252,249,.97); color: var(--ink); border-radius: 22px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.quote-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--green); }
.quote-form input, .quote-form select, .quote-form textarea {
  border: 1.5px solid rgba(20,36,26,.18); border-radius: 12px; padding: .8rem 1rem;
  font: inherit; font-size: .95rem; background: #fff; outline: none;
  transition: border-color .3s, box-shadow .3s; width: 100%;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.15);
}
.form-status { font-size: .92rem; min-height: 1.4em; font-weight: 500; }
.form-status.ok { color: #2e7d43; }
.form-status.err { color: #b03a3a; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0c1810; color: rgba(246,241,231,.82); padding: 3.5rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 2.5rem; align-items: start; }
.footer-logo { height: 42px; width: auto; filter: brightness(0) invert(1) sepia(.15); margin-bottom: 1rem; }
.footer p { font-size: .9rem; max-width: 320px; }
.footer nav { display: grid; gap: .6rem; }
.footer nav a { font-size: .92rem; opacity: .85; transition: color .3s, opacity .3s; }
.footer nav a:hover { color: var(--gold-light); opacity: 1; }
.footer-langs { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer-langs button {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); color: inherit;
  border-radius: 999px; padding: .45rem 1rem; font-size: .82rem; cursor: pointer; transition: all .3s;
}
.footer-langs button:hover, .footer-langs button.active { border-color: var(--gold); color: var(--gold-light); }
.footer-social { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.2rem; }
.footer-social a { font-size: .85rem; opacity: .7; border-bottom: 1px dashed rgba(232,201,106,.35); transition: color .3s, opacity .3s; }
.footer-social a:hover { color: var(--gold-light); opacity: 1; }
.footer-legal { text-align: center; font-size: .8rem; opacity: .55; margin-top: 2.8rem; }

#toTop {
  position: fixed; bottom: 1.6rem; inset-inline-end: 1.6rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: #241d05; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 10px 26px rgba(201,162,39,.4); opacity: 0; visibility: hidden;
  transform: translateY(14px); transition: all .4s ease;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { transform: translateY(-4px); }

/* ============================================================
   INQUIRY CART
   ============================================================ */
#cartFab {
  position: fixed; bottom: 1.6rem; inset-inline-start: 1.6rem; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--green); color: var(--cream); font-size: 1.4rem;
  box-shadow: 0 10px 26px rgba(20,36,26,.45); transition: transform .3s;
}
#cartFab:hover { transform: translateY(-3px); }
#cartBadge {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px;
  border-radius: 999px; background: var(--gold); color: #241d05; font-size: .75rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
#cartOverlay {
  position: fixed; inset: 0; background: rgba(10,18,12,.55); z-index: 108;
  opacity: 0; visibility: hidden; transition: opacity .35s;
}
#cartOverlay.show { opacity: 1; visibility: visible; }
#cartDrawer {
  position: fixed; top: 0; inset-inline-end: 0; height: 100dvh; width: min(92vw, 400px);
  background: var(--white); z-index: 109; padding: 1.4rem;
  display: flex; flex-direction: column; gap: 1rem;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.3,.7,.2,1);
  box-shadow: -18px 0 50px rgba(0,0,0,.3);
}
[dir="rtl"] #cartDrawer { transform: translateX(-100%); }
#cartDrawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { font-size: 1.3rem; color: var(--green); }
#cartClose { background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--ink); line-height: 1; padding: .2rem .5rem; }
.cart-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .9rem; }
.cart-empty { opacity: .65; font-size: .92rem; padding: 1rem 0; }
.cart-row { border: 1px solid rgba(20,36,26,.15); border-radius: 14px; padding: .9rem 1rem; }
.cart-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.cart-row-head strong { color: var(--green); }
.cart-remove { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #b03a3a; line-height: 1; }
.cart-row-controls { display: grid; grid-template-columns: 1fr 78px; gap: .6rem; }
.cart-row-controls select, .cart-row-controls input {
  border: 1.5px solid rgba(20,36,26,.2); border-radius: 10px; padding: .5rem .6rem;
  font: inherit; font-size: .88rem; background: #fff; width: 100%; min-width: 0;
}
.form-chip {
  background: rgba(201,162,39,.14); border: 1px dashed var(--gold);
  border-radius: 10px; padding: .55rem .9rem; font-size: .88rem; font-weight: 600; color: var(--green);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .nav-links {
    position: fixed; top: 0; inset-inline-end: 0; height: 100dvh; width: min(78vw, 340px);
    background: rgba(15, 29, 20, .97); backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center; gap: 2rem;
    transform: translateX(100%); transition: transform .45s cubic-bezier(.3,.7,.2,1);
    box-shadow: -20px 0 60px rgba(0,0,0,.4); z-index: 105;
  }
  [dir="rtl"] .nav-links { transform: translateX(-100%); }
  .nav-links.open { transform: none !important; }
  .nav-links a { font-size: 1.15rem; }
  .burger { display: flex; z-index: 110; }
  .bc-head { grid-template-columns: 1fr; }
  .bc-cube-wrap { order: -1; padding: 1rem 0 2rem; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bc-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .global .split-media { order: -1; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .bc-chain { flex-direction: column; gap: .7rem; }
  .bc-link { width: 2px; height: 22px; margin: 0 auto; }
  .bc-link::after { transform: scaleY(0); transform-origin: top; }
  .bc-link.on::after { transform: scaleY(1); }
  .hero-stats { gap: 1.3rem 2.2rem; }
  .frame-badge { max-width: 88%; padding: .6rem .9rem; }
  .quotes { min-height: 300px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line span { transform: none; }
}
