@import url("fonts/fonts.css");

/* ==========================================================================
   Thamarat — design system v3 "Field System"
   Deep green + gold + cream, editorial spacing, bilingual RTL/LTR.
   All spacing uses logical properties so the same rules serve ar and en.
   ========================================================================== */

:root{
  /* brand */
  --ink:#0B2418;
  --ink-2:#41564A;
  --ink-3:#71837A;
  --green-900:#0C3524;
  --green-800:#10402C;
  --green-700:#14563A;
  --green-600:#1B6A47;
  --green-500:#24845A;
  --gold:#C8A45C;
  --gold-2:#E4CB94;
  --gold-ink:#6B5209;
  --cream:#FAF6EC;
  --sand:#F2EADA;
  --white:#FFFFFF;
  --line:rgba(11,36,24,.10);
  --line-soft:rgba(11,36,24,.06);
  --line-inv:rgba(255,255,255,.14);

  --shadow-s:0 1px 2px rgba(11,36,24,.06);
  --shadow-m:0 2px 6px rgba(11,36,24,.06), 0 18px 40px -18px rgba(11,36,24,.28);
  --shadow-l:0 4px 10px rgba(11,36,24,.07), 0 40px 80px -30px rgba(11,36,24,.35);

  --r-xl:28px; --r-lg:20px; --r-md:14px; --r-sm:10px; --r-pill:999px;
  --wrap:1200px;
  --pad:clamp(18px,4vw,40px);

  --font-text:"IBM Plex Sans Arabic",-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;
  --font-display:"Alexandria","IBM Plex Sans Arabic",-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;

  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:var(--font-text);font-size:1.0625rem;line-height:1.85;
  font-weight:400;text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:700;line-height:1.25;margin:0;letter-spacing:-.01em;text-wrap:balance}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3{letter-spacing:0;line-height:1.35}
p{margin:0}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:6px}
::selection{background:var(--gold-2);color:var(--ink)}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--pad)}
.section{padding-block:clamp(52px,7vw,104px)}
.section--tight{padding-block:clamp(36px,4.5vw,64px)}
.section--white{background:var(--white)}
.section--sand{background:var(--sand)}
.section--dark{background:var(--green-900);color:#F4F0E4}
.section--dark h2,.section--dark h3{color:#FBF7EC}

/* ---------- typography ---------- */
.display{font-family:var(--font-display);font-weight:700;font-size:clamp(2.1rem,5.4vw,4rem);line-height:1.12;letter-spacing:-.025em}
[dir="rtl"] .display{line-height:1.28;letter-spacing:0}
.h2{font-size:clamp(1.6rem,3.2vw,2.6rem);line-height:1.2}
[dir="rtl"] .h2{line-height:1.35}
.h3{font-size:clamp(1.15rem,1.7vw,1.35rem)}
.lead{font-size:clamp(1rem,1.35vw,1.15rem);line-height:1.9;color:var(--ink-2);max-width:62ch}
.section--dark .lead{color:rgba(251,247,236,.78)}
.muted{color:var(--ink-3)}
.gold{color:var(--gold-ink)}
.section--dark .gold{color:var(--gold-2)}

.eyebrow{
  display:inline-flex;align-items:center;gap:12px;
  font-size:.8125rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold-ink);
}
[dir="rtl"] .eyebrow{letter-spacing:0;font-size:.875rem}
.eyebrow::before{content:"";width:32px;height:1px;background:var(--gold);flex:none}
.section--dark .eyebrow{color:var(--gold-2)}

.sec-head{display:flex;flex-direction:column;gap:14px;max-width:70ch;margin-bottom:clamp(28px,4vw,48px)}
.sec-head .lead{margin-top:2px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:52px;padding:0 26px;border-radius:var(--r-pill);
  font-weight:600;font-size:1rem;line-height:1;
  border:1px solid transparent;transition:transform .18s var(--ease),background .18s,color .18s,border-color .18s,box-shadow .18s;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn--gold{background:var(--gold);color:#20180A;box-shadow:0 10px 24px -12px rgba(200,164,92,.9)}
.btn--gold:hover{background:var(--gold-2)}
.btn--green{background:var(--green-700);color:#FBF7EC;box-shadow:0 12px 26px -14px rgba(20,86,58,.9)}
.btn--green:hover{background:var(--green-600)}
.btn--ghost{border-color:rgba(251,247,236,.42);color:#FBF7EC}
.btn--ghost:hover{border-color:var(--gold);color:var(--gold-2)}
.btn--ghost-dark{border-color:var(--line);color:var(--ink)}
.btn--ghost-dark:hover{border-color:var(--green-700);color:var(--green-700)}
.btn--sm{min-height:44px;padding:0 18px;font-size:.9375rem}
.btn svg{width:19px;height:19px;flex:none}

.link-arrow{
  display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--green-700);
  border-bottom:1px solid transparent;padding-bottom:2px;transition:border-color .18s,gap .18s;
}
.link-arrow:hover{border-color:currentColor;gap:12px}
.link-arrow svg{width:16px;height:16px}
[dir="ltr"] .link-arrow svg.flip{transform:scaleX(-1)}

/* ==========================================================================
   Header
   ========================================================================== */
.site-head{
  position:sticky;top:0;z-index:60;
  background:var(--green-900);
  border-bottom:1px solid rgba(200,164,92,.35);
}
.site-head__in{
  display:flex;align-items:center;gap:clamp(12px,2vw,28px);
  min-height:72px;
}
.brand{display:inline-flex;align-items:center;gap:12px;flex:none;padding-block:10px}
.brand img{width:42px;height:42px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px rgba(200,164,92,.75)}
.brand__txt{display:flex;flex-direction:column;line-height:1.15}
.brand__name{font-family:var(--font-display);font-weight:700;font-size:1.125rem;color:#FBF7EC}
.brand__sub{font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:rgba(251,247,236,.6)}
[dir="rtl"] .brand__sub{letter-spacing:0;font-size:.75rem}

.nav{display:none;flex:1;justify-content:center;gap:4px}
.nav a{
  position:relative;padding:9px 14px;border-radius:var(--r-pill);
  font-size:.9375rem;font-weight:500;color:rgba(251,247,236,.82);
  transition:color .16s,background .16s;white-space:nowrap;
}
.nav a:hover{color:#fff;background:rgba(251,247,236,.08)}
.nav a[aria-current="page"]{color:#0C3524;background:var(--gold);font-weight:600}

.head-actions{display:flex;align-items:center;gap:10px;margin-inline-start:auto}

/* language switch */
.lang{
  display:inline-flex;align-items:center;padding:3px;border-radius:var(--r-pill);
  border:1px solid rgba(251,247,236,.28);background:rgba(251,247,236,.06);
}
.lang a,.lang span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:46px;height:34px;padding:0 12px;border-radius:var(--r-pill);
  font-size:.8125rem;font-weight:600;color:rgba(251,247,236,.75);letter-spacing:.02em;
}
.lang [aria-current="true"]{background:var(--gold);color:#20180A}
.lang a:hover{color:#fff}

.burger{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:12px;border:1px solid rgba(251,247,236,.28);color:#FBF7EC;
}
.burger svg{width:22px;height:22px}
.head-cta{display:none}

/* drawer */
.drawer{
  position:fixed;inset:0;z-index:80;display:none;
  background:rgba(6,26,16,.55);backdrop-filter:blur(2px);
}
.drawer[data-open="true"]{display:block}
.drawer__panel{
  position:absolute;inset-block:0;inset-inline-end:0;
  width:min(88vw,360px);background:var(--green-900);color:#FBF7EC;
  padding:22px;display:flex;flex-direction:column;gap:6px;overflow:auto;
  box-shadow:var(--shadow-l);
}
.drawer__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.drawer a{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 12px;border-radius:12px;font-size:1.0625rem;font-weight:500;
  border-bottom:1px solid rgba(251,247,236,.08);
}
.drawer a[aria-current="page"]{color:var(--gold-2)}
.drawer__cta{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.drawer .lang{margin-top:6px;align-self:flex-start}

/* ==========================================================================
   Urgent reports rail (top of home, per Sherif's spec)
   ========================================================================== */
.urgent{background:var(--green-800);color:#FBF7EC;border-bottom:1px solid rgba(200,164,92,.22)}
.urgent__in{display:flex;align-items:center;gap:clamp(12px,2vw,24px);padding-block:14px}
.urgent__label{display:flex;align-items:center;gap:10px;flex:none}
.badge-hot{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--gold);color:#20180A;font-size:.75rem;font-weight:700;
  padding:5px 10px;border-radius:6px;letter-spacing:.02em;
}
.urgent__title{font-family:var(--font-display);font-weight:600;font-size:.9375rem;color:#FBF7EC}
.urgent__rail{
  display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:4px;scrollbar-width:none;
}
.urgent__rail::-webkit-scrollbar{display:none}
.urgent__card{
  flex:0 0 auto;scroll-snap-align:start;min-width:min(74vw,300px);
  display:flex;flex-direction:column;gap:2px;
  padding:10px 14px;border-radius:12px;border:1px solid rgba(251,247,236,.16);
  background:rgba(251,247,236,.05);transition:border-color .18s,background .18s;
}
.urgent__card:hover{border-color:var(--gold);background:rgba(251,247,236,.1)}
.urgent__card time{font-size:.75rem;color:var(--gold-2);letter-spacing:.02em}
.urgent__card b{font-weight:600;font-size:.9375rem;color:#FBF7EC;line-height:1.5}
.urgent__more{flex:none;font-size:.875rem;font-weight:600;color:var(--gold-2)}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{position:relative;isolation:isolate;color:#FBF7EC;overflow:hidden;background:var(--green-900)}
.hero__bg{position:absolute;inset:0;z-index:-2}
.hero__bg img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero__bg::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(to top,rgba(6,26,16,.92) 0%,rgba(6,26,16,.55) 45%,rgba(6,26,16,.35) 100%),
    linear-gradient(to left,rgba(9,38,25,.94) 0%,rgba(9,38,25,.72) 45%,rgba(9,38,25,.15) 78%);
}
[dir="ltr"] .hero__bg::after{
  background:
    linear-gradient(to top,rgba(6,26,16,.92) 0%,rgba(6,26,16,.55) 45%,rgba(6,26,16,.35) 100%),
    linear-gradient(to right,rgba(9,38,25,.94) 0%,rgba(9,38,25,.72) 45%,rgba(9,38,25,.15) 78%);
}
.hero__in{
  display:flex;flex-direction:column;justify-content:flex-end;gap:26px;
  min-height:clamp(520px,72vh,700px);padding-block:clamp(40px,7vw,84px) clamp(36px,5vw,64px);
}
.hero__body{max-width:640px;display:flex;flex-direction:column;gap:20px}
.hero__kicker{
  display:inline-flex;align-items:center;gap:12px;
  font-size:.8125rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-2);
}
[dir="rtl"] .hero__kicker{letter-spacing:0;font-size:.875rem}
.hero__kicker::before{content:"";width:36px;height:1px;background:var(--gold)}
.hero h1{font-size:clamp(2.3rem,6vw,4.2rem);line-height:1.1;letter-spacing:-.03em;color:#FCF9F0}
[dir="rtl"] .hero h1{line-height:1.24;letter-spacing:0}
.hero h1 em{font-style:normal;color:var(--gold-2)}
.hero__sub{font-size:clamp(1rem,1.5vw,1.1875rem);line-height:1.9;color:rgba(252,249,240,.86);max-width:52ch}
.hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.hero__foot{
  display:flex;flex-wrap:wrap;gap:clamp(16px,3vw,40px);align-items:center;
  padding-top:22px;border-top:1px solid rgba(251,247,236,.16);
  font-size:.875rem;color:rgba(251,247,236,.72);
}
.hero__foot span{display:inline-flex;align-items:center;gap:8px}
.hero__foot svg{width:17px;height:17px;color:var(--gold)}

/* ==========================================================================
   Values
   ========================================================================== */
.values{display:grid;gap:clamp(18px,3vw,28px)}
.value{
  display:flex;flex-direction:column;gap:12px;padding:clamp(20px,2.6vw,30px);
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow-s);transition:box-shadow .25s var(--ease),transform .25s var(--ease),border-color .25s;
}
.value:hover{box-shadow:var(--shadow-m);transform:translateY(-2px);border-color:rgba(200,164,92,.6)}
.value__ic{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:var(--sand);color:var(--green-700);border:1px solid rgba(200,164,92,.45);
}
.value__ic svg{width:23px;height:23px}
.value h3{font-size:1.125rem;font-weight:600}
.value p{font-size:.9688rem;line-height:1.85;color:var(--ink-2)}

/* ==========================================================================
   Products
   ========================================================================== */
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:clamp(20px,3vw,32px)}
.tab{
  min-height:44px;padding:0 18px;border-radius:var(--r-pill);
  border:1px solid var(--line);background:transparent;color:var(--ink-2);
  font-size:.9375rem;font-weight:600;transition:all .18s;
}
.tab[aria-selected="true"]{background:var(--green-700);border-color:var(--green-700);color:#FBF7EC}
.tab:hover{border-color:var(--green-700);color:var(--green-700)}
.tab[aria-selected="true"]:hover{color:#FBF7EC}

.grid-products{display:grid;gap:clamp(14px,2vw,24px);grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.pcard{
  position:relative;display:flex;flex-direction:column;
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;transition:box-shadow .25s var(--ease),transform .25s var(--ease),border-color .25s;
}
.pcard:hover{box-shadow:var(--shadow-m);transform:translateY(-3px);border-color:rgba(200,164,92,.55)}
.pcard__media{position:relative;aspect-ratio:1/1;background:var(--sand);overflow:hidden}
.pcard__media img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .5s var(--ease)}
.pcard:hover .pcard__media img{transform:scale(1.04)}
.pcard__size{
  position:absolute;inset-block-end:12px;inset-inline-start:12px;
  background:rgba(12,53,36,.9);color:var(--gold-2);font-size:.75rem;font-weight:600;
  padding:5px 10px;border-radius:var(--r-pill);backdrop-filter:blur(4px);
}
.pcard__body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px;flex:1}
.pcard__cat{font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
[dir="rtl"] .pcard__cat{letter-spacing:0;font-size:.8125rem}
.pcard__name{font-family:var(--font-display);font-weight:600;font-size:1.0625rem;color:var(--ink)}
.pcard__benefit{font-size:.9rem;line-height:1.75;color:var(--ink-2)}
.pcard__order{
  margin-top:auto;padding-top:10px;display:inline-flex;align-items:center;gap:8px;
  font-size:.9rem;font-weight:600;color:var(--green-700);
}
.pcard__order svg{width:17px;height:17px}
.pcard__order:hover{color:var(--green-500)}

.price-ask{
  margin-top:clamp(24px,3.4vw,40px);display:flex;flex-wrap:wrap;align-items:center;gap:16px;
  padding:clamp(18px,2.4vw,26px);border-radius:var(--r-lg);
  background:var(--sand);border:1px solid rgba(200,164,92,.4);
}
.price-ask__txt{flex:1 1 260px;display:flex;flex-direction:column;gap:4px}
.price-ask__txt b{font-family:var(--font-display);font-size:1.0625rem;font-weight:600}
.price-ask__txt span{font-size:.9rem;color:var(--ink-2)}
.roles{display:flex;gap:8px;flex-wrap:wrap}
.role{
  min-height:40px;padding:0 14px;border-radius:var(--r-pill);border:1px dashed rgba(11,36,24,.25);
  font-size:.875rem;font-weight:600;color:var(--ink-2);background:rgba(255,255,255,.6);
}
.role:hover{border-style:solid;border-color:var(--green-700);color:var(--green-700)}

/* ==========================================================================
   Crops
   ========================================================================== */
.grid-crops{display:grid;gap:clamp(12px,1.8vw,18px);grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.ccard{
  position:relative;display:block;border-radius:var(--r-md);overflow:hidden;
  aspect-ratio:1/1;background:var(--green-800);isolation:isolate;
}
.ccard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease);z-index:0}
.ccard::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(to top,rgba(6,26,16,.88) 0%,rgba(6,26,16,.35) 45%,rgba(6,26,16,0) 75%);
}
.ccard:hover img{transform:scale(1.06)}
.ccard__txt{position:absolute;inset-block-end:0;inset-inline:0;z-index:2;padding:12px 14px;display:flex;flex-direction:column;gap:1px}
.ccard__name{font-family:var(--font-display);font-weight:600;font-size:1rem;color:#FCF9F0}
.ccard__stage{font-size:.75rem;color:rgba(252,249,240,.72)}
.crops-note{
  margin-top:22px;display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;
  font-size:.875rem;color:var(--ink-2);
}
.crops-note b{font-weight:600;color:var(--ink)}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps{display:grid;gap:clamp(16px,2.4vw,26px);counter-reset:step}
.step{
  display:flex;gap:16px;padding:clamp(18px,2.4vw,26px);
  border-radius:var(--r-lg);background:rgba(251,247,236,.06);
  border:1px solid rgba(251,247,236,.14);
}
.step__n{
  flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:var(--gold);color:#20180A;font-family:var(--font-display);font-weight:700;font-size:1rem;
}
.step h3{font-size:1.0625rem;font-weight:600;margin-bottom:2px;color:#FBF7EC}
.step p{font-size:.9375rem;color:rgba(251,247,236,.75);line-height:1.8}

.support-card{
  display:flex;flex-direction:column;gap:14px;justify-content:center;
  padding:clamp(24px,3vw,36px);border-radius:var(--r-xl);
  background:linear-gradient(160deg,var(--green-700),var(--green-900));
  border:1px solid rgba(200,164,92,.4);color:#FBF7EC;
}
.support-card__phone{
  font-family:var(--font-display);font-weight:700;font-size:clamp(1.5rem,3vw,2rem);
  color:var(--gold-2);letter-spacing:.02em;direction:ltr;text-align:start;
}
.support-card__note{font-size:.875rem;color:rgba(251,247,236,.7)}

/* ==========================================================================
   Tools strip
   ========================================================================== */
.tools{display:grid;gap:clamp(12px,1.8vw,18px);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.tool{
  display:flex;flex-direction:column;gap:8px;padding:clamp(18px,2.2vw,24px);
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
  transition:border-color .2s,box-shadow .2s,transform .2s;
}
.tool:hover{border-color:rgba(200,164,92,.6);box-shadow:var(--shadow-m);transform:translateY(-2px)}
.tool__ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--sand);color:var(--green-700)}
.tool__ic svg{width:20px;height:20px}
.tool b{font-family:var(--font-display);font-weight:600;font-size:1rem}
.tool span{font-size:.875rem;color:var(--ink-2);line-height:1.7}

/* ==========================================================================
   Contact page pieces
   ========================================================================== */
.cards-3{display:grid;gap:clamp(16px,2.2vw,24px);grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.info-card{
  display:flex;flex-direction:column;gap:10px;padding:clamp(22px,2.6vw,30px);
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
}
.info-card h3{font-size:1.125rem}
.info-card p{font-size:.9688rem;color:var(--ink-2);line-height:1.85}
.contact-band{
  display:grid;gap:clamp(18px,3vw,36px);align-items:center;
  padding:clamp(24px,4vw,44px);border-radius:var(--r-xl);
  background:var(--green-900);color:#FBF7EC;
}
.contact-band__row{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.page-head{padding-block:clamp(34px,5vw,64px) clamp(22px,3vw,34px);background:var(--sand);border-bottom:1px solid var(--line)}
.page-head__in{display:flex;flex-direction:column;gap:14px;max-width:72ch}
.page-head h1{font-size:clamp(1.9rem,4.2vw,3rem);line-height:1.2}
[dir="rtl"] .page-head h1{line-height:1.32}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot{background:var(--green-900);color:rgba(251,247,236,.72);padding-block:clamp(40px,5vw,64px) 28px}
.foot-grid{display:grid;gap:clamp(26px,4vw,48px);grid-template-columns:1fr}
.foot-brand{display:flex;flex-direction:column;gap:14px;max-width:34ch}
.foot-brand p{font-size:.9rem;line-height:1.85}
.foot-col h4{font-size:.8125rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-2);margin-bottom:12px}
[dir="rtl"] .foot-col h4{letter-spacing:0;font-size:.875rem}
.foot-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.foot-col a{font-size:.9375rem;color:rgba(251,247,236,.78);transition:color .16s}
.foot-col a:hover{color:var(--gold-2)}
.social{display:flex;gap:10px;margin-top:4px}
.social a{
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
  border:1px solid rgba(251,247,236,.2);color:#FBF7EC;transition:all .18s;
}
.social a:hover{border-color:var(--gold);color:var(--gold-2);transform:translateY(-2px)}
.social svg{width:20px;height:20px}
.foot-phone{font-family:var(--font-display);font-weight:600;font-size:1.0625rem;color:#FBF7EC;direction:ltr}
.foot-bar{
  margin-top:clamp(28px,4vw,44px);padding-top:18px;border-top:1px solid rgba(251,247,236,.14);
  display:flex;flex-wrap:wrap;gap:10px 22px;justify-content:space-between;font-size:.8125rem;
}

/* mobile sticky action bar */
.mobile-bar{
  position:fixed;inset-inline:0;inset-block-end:0;z-index:55;
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(12,53,36,.97);border-top:1px solid rgba(200,164,92,.4);
  backdrop-filter:blur(8px);
}
.mobile-bar .btn{min-height:48px;width:100%}
body{padding-bottom:76px}

/* ==========================================================================
   Reveal (only when JS is on, so content is never hidden without it)
   ========================================================================== */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js .reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
  .btn:hover,.value:hover,.pcard:hover,.tool:hover,.ccard:hover img{transform:none}
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width:640px){
  .values{grid-template-columns:repeat(3,1fr)}
  .grid-crops{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
  .foot-grid{grid-template-columns:1.4fr 1fr 1fr}
  .contact-band{grid-template-columns:1.2fr .8fr}
}
@media (min-width:900px){
  .mobile-bar{display:none}
  body{padding-bottom:0}
  .nav{display:flex}
  .burger{display:none}
  .head-cta{display:inline-flex}
  .steps{grid-template-columns:repeat(3,1fr)}
  .foot-grid{grid-template-columns:1.5fr 1fr 1fr 1fr}
  .hero__in{justify-content:center}
}
@media (min-width:1100px){
  .grid-products{grid-template-columns:repeat(4,1fr)}
}

/* language-availability tag on cards that still open an Arabic page */
.ccard__lang{
  position:absolute;inset-block-start:10px;inset-inline-end:10px;z-index:2;
  background:rgba(12,53,36,.86);color:var(--gold-2);
  font-size:.6875rem;font-weight:700;letter-spacing:.06em;
  padding:3px 7px;border-radius:6px;border:1px solid rgba(200,164,92,.5);
}
.badge-hot svg{width:14px;height:14px}
.pcard__media .ccard__lang{inset-block-start:12px}

/* ---------- mobile refinements ---------- */
@media (max-width:639px){
  /* urgent rail: label row on top, full-bleed swipe rail below */
  .urgent__in{flex-wrap:wrap;gap:10px 12px}
  .urgent__label{order:1}
  .urgent__more{order:2;margin-inline-start:auto;font-size:.8125rem}
  .urgent__rail{
    order:3;flex-basis:100%;
    margin-inline:calc(var(--pad) * -1);padding-inline:var(--pad);
  }
  .urgent__card{min-width:76vw}
  /* products: two per row so the page is not a 12,000px scroll */
  .grid-products{grid-template-columns:repeat(2,1fr);gap:12px}
  .pcard__body{padding:12px 12px 14px;gap:4px}
  .pcard__name{font-size:.9375rem}
  .pcard__benefit{font-size:.8125rem;line-height:1.6}
  .pcard__cat{font-size:.6875rem}
  .pcard__order{font-size:.8125rem;margin-top:6px}
  .pcard__size{font-size:.6875rem;padding:4px 8px}
  .grid-crops{grid-template-columns:repeat(2,1fr)}
  .hero__in{min-height:clamp(460px,64vh,600px)}
  .section{padding-block:clamp(40px,9vw,60px)}
  .price-ask{padding:16px}
  .btn{min-height:50px;padding:0 20px}
  .foot-grid{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1/-1}
}

/* soften the cut edge of the urgent rail */
.urgent__rail{
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);
  mask-image:linear-gradient(to right,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);
}

/* ---------- narrow phones: keep the header inside the viewport ---------- */
.brand{min-width:0}
.brand__txt{min-width:0;overflow:hidden}
.brand__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.head-actions{flex:none}
@media (max-width:479px){
  .site-head__in{gap:8px;min-height:64px}
  .brand{gap:9px}
  .brand img{width:36px;height:36px}
  .brand__sub{display:none}
  .brand__name{font-size:1rem}
  .lang a,.lang span{min-width:40px;height:30px;padding:0 9px;font-size:.75rem}
  .burger{width:40px;height:40px}
}
html,body{overflow-x:clip}

/* filtered grids: the hidden attribute must actually hide a card (see .pcard display rules above) */
.pcard[hidden], .ccard[hidden], .syspanel[hidden], [data-cat][hidden] { display: none !important; }

/* per-line source note on Thamarat recommendation lines (crop programmes) */
.th-srcline{display:inline-block;margin-inline-start:6px;margin-top:2px;padding:0 8px;border-radius:999px;background:#F6F2E6;border:1px solid rgba(201,162,74,.55);color:#6B5B33;font-size:11.5px;line-height:1.9;white-space:normal;max-width:100%;vertical-align:middle;font-weight:600}
li:has(> .th-srcline){flex-wrap:wrap}

/* responsive images: let <picture> disappear from layout so existing img rules still apply */
picture{display:contents}

/* readability floor: no body text below 14px (audit item 8) */
.eyebrow,
.brand__sub,
[dir="rtl"] .brand__sub,
.lang a,.lang span,
.badge-hot,
.urgent__card time,
.hero__kicker,
.pcard__size,
.pcard__cat,
[dir="rtl"] .pcard__cat,
.ccard__stage,
.foot-col h4,
/* language-availability tag on cards that still open an Arabic page */ .ccard__lang,
.urgent__more,
.pcard__benefit,
.pcard__order,
/* per-line source note on Thamarat recommendation lines (crop programmes) */ .th-srcline,
.ui-eyebrow,
.ui-sec-h p,
.ui-fact,
.ui-nav a,
.wx-strip .wxs-title,
.wx-strip .wxs-area,
.wx-strip .wxs-adv,
.wx-strip .wxs-flag,
.th-rbadge,
.th-rnote,
.ui-stagechips a,
.ui-st-m,
.ui-nowbadge,
.ui-row-h small,
.th-tag,
.ui-items > li.ui-photo .th-credit,
/* ---------- المشاكل ---------- */ .ui-count,
.ui-prob-h h3 .th-latin,
.ui-timing,
.ui-prob-photo .th-credit,
.ui-prob-lab,
.ui-prob-block li .th-credit,
.ui-table caption,
.ui-table th,
.ui-table .ui-td-page,
.ui-table td::before,
.ui-src li,
.ui-src .ui-src-note,
.th-chipl,
.file-closing,
.ui-count,
.ui-quick summary,
.ui-card-stage,
.ui-card-meta,
.th-imgcred,
/* ---------- ملاحظة القسم (نص المنهجية كما هو) ---------- */ .ui-note,
#deficiency > .th-credit,
#deficiency .th-tag,
#deficiency .th-credit,
.file-group-label,
/* ---------- تذييل ---------- */ .file-closing,
.th-field label,
/* ---------- شارة/عدّاد ---------- */ .ui-badge,
.th-chip,
.th-order,
.th-prow .th-credit,
.th-tablewrap th,
.th-src,
.wx-day b,
.wx-flag,
.wx-note,
.wx-src,
.th-root .ui-eyebrow, .th-root .file-group-label, .th-root .ui-count,
.th-root .ui-hero-in .th-chip,
.th-root .th-phero .th-chip,
.th-root .ui-card-stage,
.th-root .ui-card-meta,
.th-root .th-pnote,
.th-root .th-tag,
.th-root .wx-strip .wxs-link,
.th-root .wq-hero .wq-chip,
/* ---------- روابط ورجوع ---------- */ .th-root .th-back,
/* ---------- خاتمة ---------- */ .th-root .file-closing,
.th-root .th-pd > summary > .th-pd-sum,
.text-sizeSm,
.text-sm,
.text-xs{font-size:.875rem}

/* touch targets: interactive controls at least 44px (audit item 7) */
.lang a,.lang button,.burger,.btn,.head-cta,.urgent__more,.social a,.foot-bar a,.th-actions a,.th-more,.mobile-bar a,.mobile-bar button{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
.urgent__more,.th-more{padding-inline:10px}

.th-chips a,.pcard__order,.ccard a[href],.th-actions a,.th-crop a,.th-order,.foot-col a{min-height:44px;display:inline-flex;align-items:center}
.pcard__order,.th-order{justify-content:center;width:100%}

/* crop photo credit: keep the LTR caption inside its card instead of running off the edge */
.th-pphoto{max-width:100%;overflow:hidden}
.th-pphoto img{max-width:100%;height:auto;display:block;border-radius:12px}
.th-credit{display:block;direction:ltr;unicode-bidi:isolate;text-align:start;white-space:normal;overflow-wrap:anywhere;max-width:100%;margin-top:6px}

/* header fit fix: the tap-target rule above forced display on the header CTA and burger,
   which overrode their responsive display rules and pushed the header row past the viewport */
.head-cta{display:none}
.burger{display:inline-flex}
@media (min-width:900px){.head-cta{display:inline-flex}.burger{display:none}}
/* header row must never exceed the viewport, whatever the text size */
.site-head__in{flex-wrap:nowrap;max-width:100%;overflow:hidden}
.head-actions{min-width:0}

.brand{flex:0 1 auto;min-width:0}
.brand__txt{min-width:0;overflow:hidden}
.brand__name{font-size:min(1rem,17px)}

/* report-card fit: the card grew with its text past the rail, so its left edge was clipped */
.urgent__card{max-width:100%;overflow:hidden}
.urgent__card b{white-space:normal;overflow-wrap:anywhere}
.urgent__rail{min-width:0}

/* fit: footer columns and wide content tables */
.foot-grid{grid-template-columns:1fr;min-width:0}
.foot-grid>*{min-width:0}
.foot-brand,.foot-col{min-width:0}
.foot-col a,.foot-brand p,.foot-bar a,.foot-col li{overflow-wrap:anywhere}
@media (min-width:640px){.foot-grid{grid-template-columns:1.4fr 1fr 1fr}}
.th-report table{display:block;overflow-x:auto;max-width:100%}
.hb-inline{overflow-x:auto;min-width:0}

/* narrow screens: keep the wordmark whole next to the language switch */
@media (max-width:430px){
  .site-head .lang a,.site-head .lang span{padding:0 6px;font-size:.6875rem}
  .site-head .brand__name{font-size:.9375rem}
  .site-head__in{gap:6px}
}

/* neutral product tile used where no English-labelled pack artwork exists */
.pack-ph{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;width:100%;border-radius:var(--r-md);background:linear-gradient(160deg,#0f4a32,#123c2a);color:#FBF7EC;padding:18px;text-align:center}
.pack-ph__n{font-family:var(--font-display);font-weight:700;font-size:1.05rem;line-height:1.3}
