/* ============================================================
   EFE — Egypt Food Export · Landing
   Premium agricultural export house · cinematic, bilingual
   ============================================================ */

:root {
  /* base earth / dusk */
  --base:        #1a2417;
  --base-2:      #10160c;
  --ink:         #0c110a;

  /* citrus / nile / gold accents */
  --orange:      #e08a2b;
  --green:       #6f8f3a;
  --gold:        #d8b24a;
  --label:       var(--gold);   /* eyebrows / field labels — darkened in light mode */

  /* neutrals */
  --cream:       #f4ecd8;
  --sand:        #cdbf9d;
  --sand-dim:    rgba(205,191,157,.62);

  /* glass */
  --panel:       rgba(18,24,13,.46);
  --panel-2:     rgba(14,18,10,.58);
  --hair:        rgba(216,178,74,.22);
  --hair-soft:   rgba(244,236,216,.10);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-ar-display: 'Cairo', 'Manrope', sans-serif;
  --font-ar-body:    'Cairo', 'Manrope', sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--base-2);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Arabic typography */
body[dir="rtl"] { font-family: var(--font-ar-body); font-weight: 400; line-height: 1.8; }
body[dir="rtl"] .display,
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 { font-family: var(--font-ar-display); font-weight: 600; line-height: 1.22; letter-spacing: 0; }
body[dir="rtl"] .lead, body[dir="rtl"] .tagline { line-height: 1.85; }
/* Arabic is cursive — letter-spacing inserts gaps inside words, so remove it */
body[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* ---------- canvas background ---------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  z-index: 0;
  display: block;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, transparent 40%, rgba(8,11,7,.34) 100%),
    linear-gradient(180deg, rgba(8,11,7,.30) 0%, transparent 22%, transparent 62%, rgba(8,11,7,.46) 100%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.8rem) clamp(1.1rem, 4vw, 3rem);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

/* logo lockup */
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--cream);
}
.logo .mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: radial-gradient(120% 120% at 30% 25%, rgba(224,138,43,.30), rgba(14,18,10,.5));
  box-shadow: 0 0 0 1px rgba(8,11,7,.4) inset, 0 6px 20px rgba(0,0,0,.3);
  position: relative;
  overflow: hidden;
}
.logo .mark span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo .wm { display: flex; flex-direction: column; line-height: 1.05; }
.logo .wm b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .01em;
}
.logo .wm small {
  font-size: .60rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sand-dim);
}
body[dir="rtl"] .logo .wm small { letter-spacing: 0; }

.nav-right { display: flex; align-items: center; gap: .7rem; }

/* language switch */
.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--hair-soft);
  background: var(--panel-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sand-dim);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .04em;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s, background .3s;
}
.lang button.on {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--orange));
}
.lang button:nth-child(2) { font-family: var(--font-ar-display); font-size: .98rem; padding: 4px 13px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--cream);
  padding: .62rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--panel-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .3s, transform .3s, background .3s;
}
.nav-cta:hover { border-color: var(--gold); transform: translateY(-1px); }
@media (max-width: 720px) { .nav-cta { display: none; } }

/* ---------- progress rail ---------- */
.rail {
  position: fixed;
  top: 50%;
  inset-inline-end: clamp(.7rem, 2vw, 1.6rem);
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  align-items: center;
}
.rail button {
  appearance: none; border: 0; padding: 0; cursor: pointer;
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(244,236,216,.22);
  position: relative;
  transition: background .35s, transform .35s;
}
.rail button::after {
  content: attr(data-label);
  position: absolute;
  inset-inline-end: 20px;
  top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.rail button:hover::after { opacity: 1; }
.rail button.on {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  transform: scale(1.5);
}
@media (max-width: 720px) { .rail { display: none; } }

/* ---------- sections ---------- */
main { position: relative; z-index: 5; }
.section {
  min-height: 100svh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.2rem, 5vw, 3rem) clamp(2.5rem, 7vh, 4rem);
  position: relative;
}
.wrap { width: 100%; max-width: var(--maxw); }

/* eyebrow / labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--label), transparent);
}
body[dir="rtl"] .eyebrow::before { background: linear-gradient(270deg, var(--label), transparent); }

h1, h2, h3 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.02em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -.018em;
}
.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  line-height: 1.62;
  color: rgba(244,236,216,.84);
  font-weight: 350;
  max-width: 46ch;
  text-wrap: pretty;
}
.muted { color: var(--sand-dim); }
em.hl { font-style: normal; color: var(--orange); }

/* frosted panel */
.panel {
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
  border: 1px solid var(--hair-soft);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(244,236,216,.06) inset, 0 30px 70px -30px rgba(0,0,0,.6);
}

/* ---------- 1 · HERO ---------- */
.hero .wrap { max-width: 1000px; text-align: center; }
.hero .display {
  font-size: clamp(3.4rem, 11.5vw, 9.2rem);
}
.hero .display .l2 {
  display: block;
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold) 10%, var(--orange) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  color: var(--cream);
  margin: 1.3rem 0 .6rem;
}
.hero .positioning { margin: 0 auto; max-width: 38ch; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 2.1rem;
}
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: .92rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s;
}
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
body[dir="rtl"] .btn .arr { transform: scaleX(-1); }
body[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 10px 30px -10px rgba(224,138,43,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(224,138,43,.75); }
.btn-ghost {
  color: var(--cream);
  border-color: var(--hair);
  background: var(--panel-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); }

.scroll-hint {
  position: absolute;
  bottom: clamp(1.4rem, 4vh, 2.4rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand-dim);
}
.scroll-hint .dot {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drip 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip { 0%,100%{ transform: scaleY(.4); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ---------- 2 · STORY & VALUES ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.vcard {
  padding: 1.4rem 1.3rem;
  border-radius: 16px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--hair-soft);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--hair); background: var(--panel-2); }
.vcard .ic {
  width: 38px; height: 38px; margin-bottom: .9rem;
  color: var(--gold);
}
.vcard h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.16rem;
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.vcard p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--sand-dim); }

/* ---------- 3 · PRODUCTS ---------- */
.products-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 1.6rem; flex-wrap: wrap;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
.pcard {
  position: relative;
  padding: 1.25rem 1.2rem 1.3rem;
  min-height: 162px;
  border-radius: 16px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--hair-soft);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .4s var(--ease), border-color .4s;
}
.pcard::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 0;
  width: 100%; height: 100%;
  background: radial-gradient(80% 60% at 85% 0%, var(--glow, rgba(224,138,43,.18)), transparent 70%);
  opacity: .7;
  transition: opacity .4s;
}
.pcard:hover { transform: translateY(-5px); border-color: var(--hair); }
.pcard:hover::before { opacity: 1; }
.pcard .seed {
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--glow, var(--orange));
  filter: blur(.5px);
  box-shadow: 0 0 22px var(--glow, var(--orange));
  opacity: .9;
}
.pcard h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.14rem;
  letter-spacing: -.01em;
  position: relative;
}
.pcard p { margin: .3rem 0 0; font-size: .78rem; line-height: 1.45; color: var(--sand-dim); position: relative; }

/* ---------- 4 · ORIGIN ---------- */
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: center;
}
.regions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
.region {
  display: flex; align-items: baseline; gap: .9rem;
  padding: .85rem 1.1rem;
  border-radius: 13px;
  border: 1px solid var(--hair-soft);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), border-color .35s;
}
.region:hover { transform: translateX(6px); border-color: var(--hair); }
body[dir="rtl"] .region:hover { transform: translateX(-6px); }
.region b { font-family: var(--font-display); font-weight: 450; font-size: 1.05rem; }
.region span { font-size: .82rem; color: var(--sand-dim); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.7rem;
}
.stat .n {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .k {
  display: block; margin-top: .5rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand-dim);
}
body[dir="rtl"] .stat .k { letter-spacing: 0; }

/* ---------- 5 · PROCESS ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .8rem;
  margin-top: 2rem;
  position: relative;
}
.step {
  position: relative;
  padding: 1.5rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--hair-soft);
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.step:hover { transform: translateY(-5px); border-color: var(--hair); background: var(--panel-2); }
.step .num {
  font-family: var(--font-display);
  font-size: .82rem;
  color: var(--label);
  letter-spacing: .1em;
}
.step .ic { width: 34px; height: 34px; margin: .9rem 0; color: var(--cream); opacity: .9; }
.step h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}
.step p { margin: 0; font-size: .76rem; line-height: 1.45; color: var(--sand-dim); }
.step .conn {
  position: absolute;
  top: 50%; inset-inline-end: -.5rem;
  width: .8rem; height: 1px;
  background: var(--hair);
  z-index: 2;
}
.step:last-child .conn { display: none; }
body[dir="rtl"] .step .conn { transform: scaleX(-1); }

/* ---------- 6 · MARKETS ---------- */
.markets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: start;
}
.mk-col h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.3rem;
  margin-bottom: .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.mk-col h3 .pin { width: 8px; height: 8px; border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: .82rem;
  font-weight: 500;
  padding: .5rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--hair-soft);
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: rgba(244,236,216,.9);
  transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--cream); }

/* ---------- 7 · FOOTER ---------- */
.footer .wrap { max-width: 1000px; text-align: center; }
.footer .display { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.contact-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
  margin: 2rem 0 2.4rem;
}
.contact {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none;
  font-size: .9rem; font-weight: 500;
  color: var(--cream);
  padding: .8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--hair-soft);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .3s, border-color .3s;
}
.contact:hover { transform: translateY(-2px); border-color: var(--gold); }
.contact svg { width: 17px; height: 17px; color: var(--label); }
.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .02em;
}
.foot-meta {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair-soft);
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  font-size: .76rem; color: var(--sand-dim);
}

/* ---------- reveal animations ----------
   Base state is VISIBLE. The hidden-start entrance only engages once JS adds
   .reveal-on to <body> (which it does only after confirming the animation
   timeline is actually advancing) — so a throttled/offscreen frame still shows
   all content instead of a blank stage. */
body.reveal-on [data-rise] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
body.reveal-on [data-rise].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.reveal-on [data-rise] { opacity: 1 !important; transform: none !important; }
  .scroll-hint .dot { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .step .conn { display: none; }
}
@media (max-width: 860px) {
  html { scroll-snap-type: y proximity; }
  .story-grid, .origin-grid, .markets-grid { grid-template-columns: 1fr; }
  .story-grid .lead-col { order: -1; }
  .section { padding-top: clamp(6rem, 16vh, 8rem); }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.3rem; text-align: center; }
  .logo .wm small { display: none; }
  .hero .display { font-size: clamp(3rem, 16vw, 5rem); }
}

/* ---------- theme toggle (dark / light) ---------- */
.theme-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  appearance: none; cursor: pointer;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--label);
  border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  transition: color .3s, border-color .3s, transform .3s var(--ease), background .3s;
}
.theme-toggle:hover {
  color: var(--orange);
  border-color: var(--gold);
  transform: rotate(18deg) scale(1.08);
}
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
body[dir="rtl"] .theme-toggle { left: 16px; right: auto; }

/* ---------- Inquiry form ---------- */
.inquiry-form {
  width: 100%;
  padding: 2rem 2.2rem 2.2rem;
  margin-top: 2.4rem;
  text-align: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: .42rem;
}
/* spacing between fields below the grid */
.inquiry-form > .field { margin-top: 1rem; }
.inquiry-form label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}
.req { color: var(--orange); font-style: normal; }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(14,18,10,.55);
  border: 1px solid var(--hair-soft);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.5;
  padding: .74rem 1rem;
  width: 100%;
  outline: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder { color: rgba(205,191,157,.28); }
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: rgba(216,178,74,.65);
  background: rgba(14,18,10,.7);
  box-shadow: 0 0 0 3px rgba(216,178,74,.1);
}
/* select arrow */
.inquiry-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(205%2C191%2C157%2C.45)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
body[dir="rtl"] .inquiry-form select {
  background-position: left 14px center;
  padding-right: 1rem;
  padding-left: 36px;
}
.inquiry-form select option,
.inquiry-form select optgroup { background: #1a2417; color: var(--cream); }
.inquiry-form textarea { resize: vertical; min-height: 108px; }
/* product chips */
.product-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .15rem;
}
.chip-check {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .78rem;
  font-weight: 500;
  padding: .44rem .88rem;
  border-radius: 999px;
  border: 1px solid var(--hair-soft);
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: rgba(244,236,216,.65);
  cursor: pointer;
  transition: border-color .22s, color .22s, background .22s;
  user-select: none;
  position: relative;
}
.chip-check input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.chip-check:hover { border-color: var(--hair); color: var(--cream); }
.chip-check.on {
  border-color: var(--gold);
  color: var(--cream);
  background: rgba(216,178,74,.14);
}
/* submit row */
.form-foot {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.form-submit { min-width: 160px; justify-content: center; }
.form-submit[disabled] { opacity: .6; cursor: wait; }
.form-msg {
  flex: 1;
  margin: 0;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.5;
  min-height: 1.4em;
}
.form-msg.ok { color: #82c882; }
.form-msg.err { color: #e08a2b; }
@media (max-width: 680px) {
  .form-grid { grid-template-columns: 1fr; }
  .inquiry-form { padding: 1.5rem 1.3rem 1.6rem; }
}

/* ============================================================
   LIGHT MODE  —  [data-theme="light"]
   Warm-paper palette. Dark mode is the default (no canvas in light).
   ============================================================ */
:root[data-theme="light"] {
  --base:        #e9e1cf;
  --base-2:      #f5f0e6;   /* page background — warm paper */
  --ink:         #0c110a;   /* stays dark: text sits ON the gold buttons */

  --cream:       #25301d;   /* primary text → dark earth */
  --sand:        #5c6a48;
  --sand-dim:    rgba(40,52,30,.70);

  --panel:       rgba(255,255,255,.62);
  --panel-2:     rgba(255,255,255,.80);
  --hair:        rgba(40,52,30,.22);
  --hair-soft:   rgba(40,52,30,.12);

  --label:       #9a6312;   /* deep amber — readable on paper */
}

/* keep the cinematic canvas (it cross-fades to a daylight palette in background.js)
   but drop the dark scrim — its dark gradients would vignette the light scene */
[data-theme="light"] .scrim { display: none; }

/* hardcoded light-on-dark colors → light-mode equivalents */
[data-theme="light"] .lead { color: rgba(37,48,29,.86); }
[data-theme="light"] em.hl { color: #c2641a; }
[data-theme="light"] .chip { color: rgba(37,48,29,.90); }
[data-theme="light"] .chip-check { color: rgba(37,48,29,.62); }
[data-theme="light"] .rail button { background: rgba(40,52,30,.22); }
[data-theme="light"] .vcard .ic { color: var(--label); }

[data-theme="light"] .inquiry-form input,
[data-theme="light"] .inquiry-form select,
[data-theme="light"] .inquiry-form textarea {
  background: rgba(255,255,255,.72);
  color: var(--cream);
}
[data-theme="light"] .inquiry-form input:focus,
[data-theme="light"] .inquiry-form select:focus,
[data-theme="light"] .inquiry-form textarea:focus { background: #fff; }
[data-theme="light"] .inquiry-form input::placeholder,
[data-theme="light"] .inquiry-form textarea::placeholder { color: rgba(40,52,30,.42); }
[data-theme="light"] .inquiry-form select option,
[data-theme="light"] .inquiry-form select optgroup { background: #f5f0e6; color: var(--cream); }

/* gradient (transparent-fill) text needs richer stops on paper */
[data-theme="light"] .hero .display .l2,
[data-theme="light"] .stat .n {
  background: linear-gradient(135deg, #b07d16, #c2641a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* softer drop shadow on a light page */
[data-theme="light"] .panel {
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 24px 60px -34px rgba(40,52,30,.45);
}

/* darken success message green for contrast on paper */
[data-theme="light"] .form-msg.ok { color: #3f8a3f; }
