/* ==========================================================================
   TECHNO FARM EST. — DESIGN SYSTEM & STYLESHEET
   --------------------------------------------------------------------------
   1.  Tokens (colour, type, spacing)
   2.  Base & reset
   3.  Layout primitives
   4.  Typography
   5.  Buttons & badges
   6.  Header & navigation
   7.  Hero
   8.  Sections & cards
   9.  Product catalog
   10. Forms
   11. Footer
   12. Arabic / RTL
   13. Responsive
   ========================================================================== */

/* ============================ 1. TOKENS ================================= */
:root {
  /* Brand greens, taken from the Techno Farm mark */
  --tf-green-950: #0C2418;
  --tf-green-900: #12351F;
  --tf-green-800: #17472A;
  --tf-green-700: #1E5B3B;
  --tf-green-600: #2A7049;
  --tf-green-500: #3D8A5C;
  --tf-green-400: #63A87C;
  --tf-green-300: #96C8A9;
  --tf-green-200: #C4E0CE;
  --tf-green-100: #E2F0E7;
  --tf-green-050: #F1F8F3;

  /* The Techno Farm brand green */
  --tf-brand-green: #033F23;

  /* Warm neutrals */
  --tf-cream:  #FBF8F1;
  --tf-ivory:  #F5EFE2;
  --tf-sand:   #EBE2CF;
  --tf-white:  #FFFFFF;

  --tf-ink:    #16211A;
  --tf-body:   #3E4C43;
  --tf-muted:  #6B7A70;
  --tf-line:   #E1DED2;
  --tf-line-soft: #EEEAE0;

  --tf-accent: #C4913C;   /* certification gold, used sparingly */

  /* Type */
  --tf-font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --tf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --tf-font-ar: 'Almarai', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  /* Space */
  --tf-gutter: clamp(20px, 5vw, 64px);
  --tf-max: 1240px;
  --tf-max-narrow: 820px;
  --tf-section: clamp(56px, 9vw, 116px);

  /* Radius & shadow */
  --tf-r-sm: 8px;
  --tf-r: 14px;
  --tf-r-lg: 22px;
  --tf-r-pill: 999px;
  --tf-shadow-sm: 0 1px 2px rgba(18, 53, 31, .06), 0 3px 10px rgba(18, 53, 31, .05);
  --tf-shadow: 0 2px 6px rgba(18, 53, 31, .06), 0 14px 34px rgba(18, 53, 31, .09);
  --tf-shadow-lg: 0 4px 12px rgba(18, 53, 31, .08), 0 28px 60px rgba(18, 53, 31, .14);
}

/* ========================== 2. BASE & RESET ============================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--tf-cream);
  color: var(--tf-body);
  font-family: var(--tf-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tf-green-700); text-decoration: none; }
a:hover { color: var(--tf-green-500); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--tf-green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.tf-skip {
  position: fixed; inset-inline-start: 12px; top: 0; z-index: 200;
  background: var(--tf-green-800); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--tf-r-sm) var(--tf-r-sm);
  transform: translateY(-140%);
  transition: transform .18s;
}
.tf-skip:focus { transform: translateY(0); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ======================= 3. LAYOUT PRIMITIVES =========================== */
.container {
  width: 100%; max-width: var(--tf-max);
  margin-inline: auto;
  padding-inline: var(--tf-gutter);
}
.container--narrow { max-width: var(--tf-max-narrow); }

.section { padding-block: var(--tf-section); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--cream { background: var(--tf-cream); }
.section--ivory { background: var(--tf-ivory); }
.section--white { background: var(--tf-white); }
.section--green {
  background: var(--tf-green-900);
  color: var(--tf-green-100);
}
.section--green h2, .section--green h3, .section--green .h2, .section--green .h3 { color: #fff; }
.section--green .eyebrow { color: var(--tf-green-300); }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-media { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
/* About page overview: text beside the founder card, both ending level */
.split--founder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }

.stack > * + * { margin-top: 1.1em; }

/* Long-form body copy (founder biography, company overview) is justified.
   Hyphenation keeps the word spacing even instead of opening up rivers. */
.stack p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
[dir="rtl"] .stack p { hyphens: none; -webkit-hyphens: none; }

/* ========================= 4. TYPOGRAPHY ================================ */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--tf-font-display);
  color: var(--tf-ink);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
}
.h1, h1 { font-size: clamp(2.15rem, 5.4vw, 4rem); line-height: 1.05; }
.h2, h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
.h3, h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.25; }
.h4, h4 { font-size: 1.05rem; line-height: 1.35; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--tf-font-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--tf-green-600);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; flex: none;
  background: currentColor; opacity: .55;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.62;
  color: var(--tf-body);
  max-width: 62ch;
}
.section--green .lead { color: var(--tf-green-200); }

.measure { max-width: 66ch; }
.text-center { text-align: center; }
.section-head { max-width: 68ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.text-center { margin-inline: auto; }

.rule { height: 1px; background: var(--tf-line); border: 0; margin: 0; }

/* ======================= 5. BUTTONS & BADGES ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--tf-r-pill);
  font-family: var(--tf-font-body);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--tf-green-700); color: #fff; box-shadow: var(--tf-shadow-sm); }
.btn--primary:hover { background: var(--tf-green-800); color: #fff; box-shadow: var(--tf-shadow); }

.btn--outline { background: transparent; color: var(--tf-green-800); border-color: var(--tf-green-300); }
.btn--outline:hover { background: var(--tf-green-050); border-color: var(--tf-green-500); color: var(--tf-green-800); }

.btn--light { background: #fff; color: var(--tf-green-800); box-shadow: var(--tf-shadow-sm); }
.btn--light:hover { background: var(--tf-green-050); color: var(--tf-green-900); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }

.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #178443; color: #fff; }

.btn--sm { padding: 11px 20px; font-size: .87rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: var(--tf-r-pill);
  font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  background: var(--tf-green-100); color: var(--tf-green-800);
  border: 1px solid var(--tf-green-200);
}
.badge--organic::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--tf-green-500); flex: none;
}
.badge--avail { background: #fff; color: var(--tf-green-700); border-color: var(--tf-green-200); }
.badge--out { background: var(--tf-ivory); color: var(--tf-muted); border-color: var(--tf-line); }
.badge--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }

/* ===================== 6. HEADER & NAVIGATION =========================== */
.tf-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--tf-line-soft);
}
.tf-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}
/* ---- Logo lock-up ----------------------------------------------------
   The supplied artwork, used as-is: the logo mark beside the bilingual
   wordmark. Reversed (cream) versions are used on dark grounds.
   -------------------------------------------------------------------- */
.tf-brand { display: flex; align-items: center; gap: 14px; flex: none; }
.tf-brand__mark { width: auto; height: 56px; }
.tf-brand__word { width: auto; height: 46px; }

.tf-nav { display: flex; align-items: center; gap: 4px; }
.tf-nav a {
  padding: 9px 13px; border-radius: var(--tf-r-sm);
  font-size: .92rem; font-weight: 500; color: var(--tf-body);
  white-space: nowrap;
}
.tf-nav a:hover { background: var(--tf-green-050); color: var(--tf-green-800); }
.tf-nav a[aria-current="page"] { color: var(--tf-green-800); font-weight: 650; }

.tf-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.tf-lang {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px;
  border: 1.5px solid var(--tf-green-200); border-radius: var(--tf-r-pill);
  background: #fff; color: var(--tf-green-800);
  font-size: .85rem; font-weight: 600; cursor: pointer;
}
.tf-lang:hover { border-color: var(--tf-green-500); background: var(--tf-green-050); }
.tf-lang svg { width: 15px; height: 15px; }

.tf-burger {
  display: none;
  width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1.5px solid var(--tf-green-200); border-radius: var(--tf-r-sm);
  background: #fff; cursor: pointer;
}
.tf-burger svg { width: 20px; height: 20px; }

.tf-drawer {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(12, 36, 24, .5);
  opacity: 0; pointer-events: none; transition: opacity .25s;
  overflow: hidden;              /* keeps the closed panel from widening the page */
}
.tf-drawer[data-open="true"] { opacity: 1; pointer-events: auto; }
.tf-drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(360px, 88vw);
  background: var(--tf-cream);
  padding: 26px var(--tf-gutter) 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 8px;
}
[dir="rtl"] .tf-drawer__panel { transform: translateX(-100%); }
.tf-drawer[data-open="true"] .tf-drawer__panel { transform: translateX(0); }
.tf-drawer__top { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.tf-drawer a {
  padding: 14px 4px; font-size: 1.06rem; font-weight: 500;
  color: var(--tf-green-900); border-bottom: 1px solid var(--tf-line-soft);
}
.tf-drawer a[aria-current="page"] { color: var(--tf-green-600); font-weight: 650; }
.tf-drawer__foot { margin-top: 22px; display: grid; gap: 12px; }

/* ============================ 7. HERO =================================== */
.hero { position: relative; background: var(--tf-green-950); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(12,36,24,.62) 0%, rgba(12,36,24,.42) 45%, rgba(12,36,24,.88) 100%),
    radial-gradient(120% 90% at 20% 15%, rgba(12,36,24,.15), rgba(12,36,24,.85));
}
.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(72px, 13vw, 148px);
  color: #fff;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tf-green-300);
  padding: 8px 16px; border-radius: var(--tf-r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  margin-bottom: 26px;
}
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: .38em; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 58ch; }
.hero .btn-row { margin-top: 34px; }

.hero--page .hero__inner { padding-block: clamp(58px, 9vw, 104px); }
.hero--page h1 { max-width: 20ch; }

.hero-stats {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-stats div {
  padding: 26px 8px 30px;
  border-inline-end: 1px solid rgba(255,255,255,.14);
  text-align: center;
}
.hero-stats div:last-child { border-inline-end: 0; }
.hero-stats b {
  display: block;
  font-family: var(--tf-font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); color: #fff; line-height: 1.05;
}
.hero-stats span {
  display: block; margin-top: 6px;
  font-size: .8rem; letter-spacing: .05em; color: var(--tf-green-300);
}

/* ====================== 8. SECTIONS & CARDS ============================= */
.media-frame {
  position: relative; border-radius: var(--tf-r-lg); overflow: hidden;
  background: var(--tf-ivory); box-shadow: var(--tf-shadow);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-stack { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.media-stack .media-frame:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }

.card {
  background: #fff;
  border: 1px solid var(--tf-line-soft);
  border-radius: var(--tf-r-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--tf-shadow-sm);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--tf-body); font-size: .97rem; }

.card--value { display: flex; flex-direction: column; gap: 4px; }
.card--num { position: relative; }
.card--num .card__num {
  display: block;
  font-family: var(--tf-font-display); font-size: 2.1rem; font-weight: 600;
  color: var(--tf-green-300); line-height: 1; margin-bottom: 16px;
}

.icon-badge {
  width: 52px; height: 52px; border-radius: var(--tf-r);
  display: grid; place-items: center;
  background: var(--tf-green-050); color: var(--tf-green-700);
  border: 1px solid var(--tf-green-100);
  margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }
.section--green .icon-badge {
  background: rgba(255,255,255,.1); color: var(--tf-green-300);
  border-color: rgba(255,255,255,.18);
}

.facts { display: grid; gap: 0; border-top: 1px solid var(--tf-line); }
.facts div {
  display: grid; grid-template-columns: minmax(120px, .5fr) 1fr;
  gap: 16px; padding: 17px 0;
  border-bottom: 1px solid var(--tf-line);
}
.facts dt, .facts .k {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tf-muted); margin: 0;
}
.facts dd, .facts .v { margin: 0; color: var(--tf-ink); font-weight: 500; }

/* "Farm in figures" — a single card, one horizontal row of stats divided
   by vertical rules (mirrors .hero-stats on the homepage, but light). */
.figures-bar {
  display: flex;
  background: #fff; border: 1px solid var(--tf-line-soft); border-radius: var(--tf-r-lg);
}
.figure-item {
  flex: 1 1 0; min-width: 160px;
  padding: 24px 18px;
  text-align: center;
  border-inline-end: 1px solid var(--tf-line-soft);
  display: flex; flex-direction: column; align-items: center;
}
.figure-item:last-child { border-inline-end: 0; }
.figure-item__value {
  display: flex; flex: 1 1 auto; align-items: center; justify-content: center;
  column-gap: .3em;   /* keeps the space between an ltr number span and the words beside it */
  font-family: var(--tf-font-display); font-weight: 700; color: var(--tf-brand-green);
  font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.3;
}
.figure-item__label {
  display: block; margin-top: 8px;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tf-muted);
}
@media (max-width: 900px) {
  .figures-bar { flex-direction: column; }
  .figure-item {
    border-inline-end: 0; border-bottom: 1px solid var(--tf-line-soft);
  }
  .figure-item:last-child { border-bottom: 0; }
}

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 13px; align-items: flex-start; }
.tick-list li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; background: var(--tf-green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5B3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.section--green .tick-list li::before { background-color: rgba(255,255,255,.16); }

/* B2B "supply partnership" — photo fills one half of the section edge to
   edge; a cream card overlaps it and carries the heading, the checklist and
   the call to action. Logical margins mirror it correctly in Arabic. */
.adv-section { padding-block: 0; overflow: hidden; }
.adv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
.adv__photo { position: relative; min-height: 100%; }
.adv__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adv__card {
  position: relative; z-index: 1; align-self: center;
  max-width: 620px;
  margin-block: clamp(48px, 6vw, 72px);
  margin-inline-start: -90px; margin-inline-end: var(--tf-gutter);
  padding: clamp(30px, 4vw, 48px);
  background: var(--tf-cream); color: var(--tf-body);
  border-radius: var(--tf-r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.section--green .adv__card h2 { color: var(--tf-ink); }
.section--green .adv__card .eyebrow { color: var(--tf-green-700); }
.adv-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 16px; }
/* Not flex: the item text can contain inline spans (e.g. an ltr "40+"),
   which flex would split into separate items with gaps between them. */
.adv-list li { position: relative; padding-inline-start: 40px; font-size: 1.02rem; line-height: 1.5; }
.adv-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; width: 26px; height: 26px;
  border-radius: 50%; background-color: var(--tf-green-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.adv__btn svg { width: 16px; height: 16px; }
[dir="rtl"] .adv__btn svg { transform: scaleX(-1); }
@media (max-width: 900px) {
  .adv { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .adv__photo { min-height: 0; height: 300px; }
  .adv__card { margin: -56px var(--tf-gutter) 48px; max-width: none; }
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding-inline-start: 34px; padding-bottom: 28px;
}
.timeline li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--tf-green-500); box-shadow: 0 0 0 4px var(--tf-green-100);
}
.timeline li::after {
  content: ''; position: absolute; inset-inline-start: 6px; top: 22px; bottom: 0;
  width: 1.5px; background: var(--tf-green-200);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; color: var(--tf-green-700); font-size: .88rem; letter-spacing: .04em; }

.quote {
  border-inline-start: 3px solid var(--tf-green-300);
  padding-inline-start: clamp(20px, 3vw, 32px);
  font-family: var(--tf-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45; color: var(--tf-ink); font-style: italic;
}
.section--green .quote { color: #fff; border-color: var(--tf-green-400); }

/* Client logos */
.logo-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 26px); align-items: stretch;
}
.logo-tile {
  background: #fff; border: 1px solid var(--tf-line-soft);
  border-radius: var(--tf-r); min-height: 116px;
  display: grid; place-items: center; padding: 22px 26px;
}
/* Client marks differ widely in proportion — each tile sets its own height
   so every logo reads at a similar optical size. */
.logo-tile img {
  max-height: var(--logo-h, 52px);
  max-width: 100%; width: auto; object-fit: contain;
}
/* Two-up when the strip sits beside body copy rather than full width */
.split .logo-strip { grid-template-columns: repeat(2, 1fr); }
.section--green .logo-tile { background: #fff; border-color: transparent; }

/* Auto-scrolling client logo carousel (home page "our clients" section) —
   two columns side by side, each its own track holding two copies of its
   logo set stacked vertically; a track scrolls up by exactly one set's
   height and loops seamlessly. The second column runs in reverse. */
.logo-marquee-group {
  display: flex; gap: clamp(14px, 2.4vw, 26px);
}
.logo-marquee {
  position: relative; overflow: hidden; flex: 1 1 0;
  height: clamp(260px, 34vw, 340px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.logo-track {
  display: flex; flex-direction: column; width: 100%; height: max-content;
  gap: clamp(14px, 2.4vw, 26px);
  animation: logo-scroll-y 22s linear infinite;
}
.logo-marquee--reverse .logo-track { animation-direction: reverse; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track .logo-tile { flex: 0 0 auto; width: 100%; }
@keyframes logo-scroll-y {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}
@media (max-width: 640px) {
  .logo-marquee { height: 220px; }
}

/* Horizontal variant (B2B "retail partners") — one full-width row that
   drifts sideways. Tiles are spaced with a trailing margin rather than a
   flex gap, so the two copies are exactly equal and -50% loops cleanly. */
.logo-marquee--x {
  height: auto; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.logo-marquee--x .logo-track {
  flex-direction: row; width: max-content; height: auto; gap: 0;
  animation: logo-scroll-x 38s linear infinite;
}
.logo-marquee--x .logo-tile { width: 220px; margin-right: 22px; }
@keyframes logo-scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee--x { overflow-x: auto; }
}
@media (max-width: 640px) {
  .logo-marquee--x { height: auto; }
  .logo-marquee--x .logo-tile { width: 168px; margin-right: 14px; min-height: 96px; }
}

/* Certification tiles */
.cert-tile {
  background: #fff; border: 1px solid var(--tf-line-soft);
  border-radius: var(--tf-r-lg); padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--tf-shadow-sm);
}
.cert-tile__mark {
  width: 96px; height: 96px; border-radius: var(--tf-r);
  background: var(--tf-cream); border: 1px solid var(--tf-line-soft);
  display: grid; place-items: center; padding: 12px; flex: none;
}
.cert-tile__mark img { max-height: 100%; width: auto; object-fit: contain; }

.upload-slot {
  border: 2px dashed var(--tf-green-200);
  border-radius: var(--tf-r); background: var(--tf-green-050);
  padding: 26px 22px; text-align: center;
  color: var(--tf-green-700); font-size: .88rem;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.upload-slot svg { width: 26px; height: 26px; opacity: .7; }

/* Founder card (about page) — name and role run across the top; below,
   three milestones fill the left and his cut-out portrait stands in the
   bottom corner, sized to the space left so nothing sits empty or overlaps.
   The card stretches to the height of the overview text beside it. */
.founder-col { display: flex; flex-direction: column; }
.founder-card {
  position: relative; overflow: hidden; flex: 1;
  border-radius: var(--tf-r-lg);
  background: var(--tf-green-900);
  background-image: radial-gradient(115% 130% at 100% 100%, rgba(99,168,124,.32), transparent 62%);
  display: grid; grid-template-rows: auto 1fr;
  color: var(--tf-green-200);
}
.founder-card__top { padding: 34px 32px 0; min-width: 0; }
.founder-card__eyebrow {
  display: block; font-size: .82rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tf-green-300); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14);
}
[dir="rtl"] .founder-card__eyebrow { letter-spacing: 0; text-transform: none; }
.founder-card__name {
  font-family: var(--tf-font-display); color: #fff;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 700; line-height: 1.25;
  margin: 0 0 8px; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[dir="rtl"] .founder-card__name { font-family: var(--tf-font-ar); font-weight: 700; }
.founder-card__role {
  font-size: .92rem; line-height: 1.5; color: var(--tf-green-300);
  margin: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.founder-card__bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px; min-height: 0;
}
.founder-card__body {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 26px 0 32px 32px; min-width: 0;
}
[dir="rtl"] .founder-card__body { padding: 26px 32px 32px 0; }
.founder-card__creds { list-style: none; margin: 0; padding: 0; }
.founder-card__creds li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .86rem; line-height: 1.45; color: var(--tf-green-200);
}
.founder-card__creds li:first-child { border-top: 0; padding-top: 0; }
.founder-card__creds b {
  font-family: var(--tf-font-display); font-weight: 600; font-size: 1rem;
  color: var(--tf-green-300);
}
.founder-card__link {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: .92rem; font-weight: 650; color: #fff;
}
.founder-card__link:hover { color: var(--tf-green-300); }
.founder-card__link svg { width: 15px; height: 15px; }
[dir="rtl"] .founder-card__link svg { transform: scaleX(-1); }

/* A disc of lighter green sits behind him, cropped by the card edge */
.founder-card__photo {
  position: relative; align-self: stretch;
  display: flex; align-items: flex-end;
}
.founder-card__photo::before {
  content: ''; position: absolute;
  inset-inline-start: -6%; bottom: -18%;
  width: 118%; aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.founder-card__photo img {
  position: relative;
  display: block; height: 100%; max-height: 360px; width: auto;
  /* The source photo cuts his shoulder at the frame edge — fade that edge
     into the green so it reads as intentional rather than a hard crop. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%);
          mask-image: linear-gradient(to right, transparent 0, #000 15%);
}
[dir="rtl"] .founder-card__photo img {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 15%);
          mask-image: linear-gradient(to left, transparent 0, #000 15%);
}

/* CTA band */
.cta-band {
  background: var(--tf-green-800);
  border-radius: var(--tf-r-lg);
  padding: clamp(34px, 5vw, 62px);
  color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(99,168,124,.28), transparent 60%);
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: var(--tf-green-200); margin: 0; }
.cta-band .btn-row {
  display: grid;
  grid-template-columns: max-content;   /* sized by the widest button */
  justify-content: end;                 /* both then stretch to match */
  gap: 14px;
}

/* ======================= 9. PRODUCT CATALOG ============================= */
/* Filter bar: stays in place above the products and scrolls with the page
   (not pinned), so nothing ever floats over the product grid.
   Row 1 = search + sort, row 2 = category chips. */
.catalog-toolbar {
  position: static; scroll-margin-top: 90px;   /* page jumps land below the fixed header */
  background: var(--tf-cream);
  border-block: 1px solid var(--tf-line-soft);
  padding-block: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.catalog-toolbar__row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.catalog-toolbar .chip-row {
  margin-top: 12px; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.catalog-toolbar .chip-row::-webkit-scrollbar { display: none; }
.catalog-toolbar .chip { flex: none; white-space: nowrap; }
.sort-field { display: flex; align-items: center; gap: 10px; flex: none; }
.sort-field label { font-size: .84rem; font-weight: 600; color: var(--tf-muted); white-space: nowrap; }

.search-field { position: relative; flex: 1 1 340px; min-width: 0; }  /* wide enough that the placeholder is never cut */
.search-field svg {
  position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--tf-muted); pointer-events: none;
}
.search-field input {
  width: 100%; padding: 14px 18px; padding-inline-start: 46px;
  border: 1.5px solid var(--tf-line); border-radius: var(--tf-r-pill);
  background: #fff; font: inherit; font-size: .95rem; color: var(--tf-ink);
}
.search-field input:focus { border-color: var(--tf-green-500); outline: none; box-shadow: 0 0 0 3px var(--tf-green-100); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 11px 18px; border-radius: var(--tf-r-pill);
  border: 1.5px solid var(--tf-line); background: #fff;
  font-size: .88rem; font-weight: 550; color: var(--tf-body); cursor: pointer;
  transition: all .18s;
}
.chip:hover { border-color: var(--tf-green-400); color: var(--tf-green-800); }
.chip[aria-pressed="true"] {
  background: var(--tf-green-700); border-color: var(--tf-green-700); color: #fff;
}
.chip small { opacity: .7; margin-inline-start: 6px; font-size: .85em; }
[dir="rtl"] .chip small { margin: 0 6px 0 0; }  /* the count is an ltr span, so logical margins would land on the wrong side */

.select-field { position: relative; }
.select-field select {
  appearance: none; -webkit-appearance: none;
  padding: 13px 42px 13px 18px;
  border: 1.5px solid var(--tf-line); border-radius: var(--tf-r-pill);
  background: #fff; font: inherit; font-size: .88rem; color: var(--tf-ink); cursor: pointer;
}
[dir="rtl"] .select-field select { padding: 13px 18px 13px 42px; }
.select-field::after {
  content: ''; position: absolute; inset-inline-end: 16px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--tf-muted); border-bottom: 2px solid var(--tf-muted);   /* physical sides: a down-chevron in both languages */
  transform: rotate(45deg);
}

.result-count { font-size: .88rem; color: var(--tf-muted); margin-bottom: 22px; }

.product-grid {
  display: grid; gap: clamp(16px, 2.2vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}

.product-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--tf-line-soft);
  border-radius: var(--tf-r-lg);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s, border-color .22s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow);
  border-color: var(--tf-green-200);
}
.product-card__media {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--tf-green-050);
  display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--tf-line-soft);
}
/* Product photos are packshots on white — show the whole pack, never crop it */
.product-card__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-card__media .tf-glyph {
  width: 58%; max-width: 128px; height: auto; color: var(--tf-green-600);
}
.product-card__media--herbs { background: #EDF6EE; }
.product-card__media--lettuce { background: #F0F7EC; }
.product-card__media--vegetables { background: #FAF4EA; }
.product-card__media--vegetables .tf-glyph { color: #A5702C; }

.product-card__flag {
  position: absolute; top: 12px; inset-inline-start: 12px;
  font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  background: rgba(255,255,255,.94); color: var(--tf-green-700);
  padding: 5px 10px; border-radius: var(--tf-r-pill);
  border: 1px solid var(--tf-green-100);
}

.product-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tf-green-600); margin-bottom: 8px;
}
.product-card__name {
  font-family: var(--tf-font-display); font-size: 1.14rem; font-weight: 600;
  color: var(--tf-ink); line-height: 1.2; margin: 0 0 3px;
}
.product-card__name-ar {
  font-family: var(--tf-font-ar); font-size: .96rem; color: var(--tf-muted);
  margin: 0 0 12px; direction: rtl; unicode-bidi: isolate;
}
[dir="rtl"] .product-card__name { font-family: var(--tf-font-ar); font-size: 1.1rem; }
[dir="rtl"] .product-card__name-ar { direction: ltr; font-family: var(--tf-font-body); }

.product-card__meta {
  font-size: .82rem; color: var(--tf-muted); margin-bottom: 14px;
}
.product-card__price {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tf-line-soft);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.price {
  font-family: var(--tf-font-display); font-size: 1.16rem; font-weight: 600; color: var(--tf-ink);
}
.price small { font-size: .68em; font-weight: 500; color: var(--tf-muted); margin-inline-start: 4px; }
.price--request {
  font-family: var(--tf-font-body); font-size: .88rem; font-weight: 600;
  color: var(--tf-green-700);
}
.product-card__link {
  font-size: .84rem; font-weight: 650; color: var(--tf-green-700);
  display: inline-flex; align-items: center; gap: 5px;
}
.product-card__link svg { width: 14px; height: 14px; }
[dir="rtl"] .product-card__link svg { transform: scaleX(-1); }

.empty-state {
  text-align: center; padding: clamp(50px, 8vw, 90px) 20px;
  border: 1px dashed var(--tf-line); border-radius: var(--tf-r-lg);
  background: #fff;
}

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pager button {
  min-width: 44px; padding: 10px 14px; border-radius: var(--tf-r-sm);
  border: 1.5px solid var(--tf-line); background: #fff; cursor: pointer;
  font-size: .9rem; font-weight: 550; color: var(--tf-body);
}
.pager button[aria-current="true"] { background: var(--tf-green-700); border-color: var(--tf-green-700); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* Product detail */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .84rem; color: var(--tf-muted); margin-bottom: 26px;
}
.breadcrumb a { color: var(--tf-muted); }
.breadcrumb a:hover { color: var(--tf-green-700); }
.breadcrumb > *:not(:last-child)::after {
  content: '/'; margin-inline-start: 8px; opacity: .5;
}
[dir="rtl"] .breadcrumb > *:not(:last-child)::after { content: '\\'; }
.breadcrumb strong { color: var(--tf-ink); font-weight: 600; }

.pd-layout {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.pd-media {
  aspect-ratio: 1 / 1; border-radius: var(--tf-r-lg);
  background: var(--tf-green-050);
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--tf-line-soft); position: relative;
}
.pd-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
/* Product photo gallery: large photo + thumbnails (closed pack / open pack) */
.pd-gallery { min-width: 0; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb {
  width: 84px; height: 84px; padding: 4px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--tf-line-soft);
  transition: border-color .18s, box-shadow .18s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb:hover { border-color: var(--tf-green-300); }
.pd-thumb.is-active { border-color: var(--tf-green-700); box-shadow: 0 0 0 3px var(--tf-green-100); }
.pd-media .tf-glyph { width: 54%; max-width: 260px; color: var(--tf-green-600); }
.pd-media--vegetables { background: #FAF4EA; }
.pd-media--vegetables .tf-glyph { color: #A5702C; }
.pd-media--herbs { background: #EDF6EE; }
.pd-media__note {
  position: absolute; bottom: 14px; inset-inline-start: 50%;
  transform: translateX(-50%); white-space: nowrap;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tf-muted); background: rgba(255,255,255,.85);
  padding: 5px 12px; border-radius: var(--tf-r-pill);
}
[dir="rtl"] .pd-media__note { transform: translateX(50%); }

.pd-title { margin-bottom: .1em; }
.pd-title-ar {
  font-family: var(--tf-font-ar); font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--tf-green-700); margin: 0 0 20px; direction: rtl; unicode-bidi: isolate;
  font-weight: 500;
}
[dir="rtl"] .pd-title { font-family: var(--tf-font-ar); }
[dir="rtl"] .pd-title-ar { direction: ltr; font-family: var(--tf-font-display); }

.pd-price-box {
  background: var(--tf-green-050); border: 1px solid var(--tf-green-100);
  border-radius: var(--tf-r); padding: 20px 24px; margin-block: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pd-price-box .price { font-size: 1.8rem; }
.pd-price-box .k { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tf-green-700); }
[dir="rtl"] .pd-price-box .k { letter-spacing: 0; text-transform: none; }
.pd-notice {
  font-size: .84rem; color: var(--tf-muted); margin-top: 8px;
}

/* ============================ 10. FORMS ================================= */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .85rem; font-weight: 600; color: var(--tf-ink);
  display: flex; gap: 6px; align-items: baseline;
}
.field label em {
  font-style: normal; font-size: .72rem; font-weight: 500; color: var(--tf-muted);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--tf-line); border-radius: var(--tf-r-sm);
  background: #fff; font: inherit; font-size: .95rem; color: var(--tf-ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--tf-green-500); outline: none; box-shadow: 0 0 0 3px var(--tf-green-100);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA79F; }
/* Very narrow phones: slightly smaller type and side padding in form fields
   so placeholder text fits inside the box instead of being cut off. */
@media (max-width: 400px) {
  .field input, .field select, .field textarea { font-size: .88rem; padding-inline: 12px; }
  .search-field input { font-size: .88rem; padding-inline-end: 12px; }
}
@media (max-width: 360px) {
  .field input, .field textarea, .search-field input { font-size: .82rem; }
}

.form-note { font-size: .82rem; color: var(--tf-muted); }

.alert {
  border-radius: var(--tf-r); padding: 20px 24px;
  border: 1px solid var(--tf-green-200); background: var(--tf-green-050);
}
.alert h3 { margin-bottom: .3em; font-size: 1.1rem; }
.alert p { margin: 0; font-size: .93rem; }
.alert--error { border-color: #E7C9B8; background: #FCF4EF; }

.contact-line {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 17px 0; border-bottom: 1px solid var(--tf-line-soft);
}
.contact-line:last-child { border-bottom: 0; }
.contact-line svg { width: 21px; height: 21px; flex: none; color: var(--tf-green-600); margin-top: 3px; }
.contact-line b {
  display: block; font-size: .76rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--tf-muted); margin-bottom: 2px;
}
.contact-line a, .contact-line span { color: var(--tf-ink); font-weight: 500; }
.contact-line a:hover { color: var(--tf-green-600); }

.map-frame {
  border-radius: var(--tf-r-lg); overflow: hidden;
  border: 1px solid var(--tf-line-soft); background: var(--tf-ivory);
  aspect-ratio: 16 / 9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================== 11. FOOTER ================================= */
.tf-footer {
  background: var(--tf-green-950); color: var(--tf-green-200);
  padding-block: clamp(50px, 7vw, 82px) 0;
}
.tf-footer__grid {
  display: grid; gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(36px, 5vw, 56px);
}
.tf-footer h4 {
  color: #fff; font-family: var(--tf-font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 18px;
}
.tf-footer p { font-size: .92rem; line-height: 1.65; color: var(--tf-green-200); }
.tf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tf-footer a { color: var(--tf-green-200); font-size: .92rem; }
.tf-footer a:hover { color: #fff; }
.tf-footer__brand { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.tf-footer__brand .tf-brand__mark { height: 62px; width: auto; }
.tf-footer__brand .tf-brand__word { height: 50px; width: auto; }
.tf-social { display: flex; gap: 10px; margin-top: 18px; }
.tf-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.tf-social a:hover { background: rgba(255,255,255,.16); }
.tf-social svg { width: 17px; height: 17px; }

.tf-footer__bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 24px 30px;
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  justify-content: space-between; align-items: center;
  font-size: .84rem; color: var(--tf-green-300);
}

/* Accreditation strip (footer) — marks on white chips + CR / VAT numbers */
.tf-trust {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center; justify-content: space-between;
}
.tf-trust__marks { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tf-trust__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tf-green-300); margin-inline-end: 6px;
}
[dir="rtl"] .tf-trust__label { letter-spacing: 0; text-transform: none; }
.tf-trust__mark {
  display: inline-grid; place-items: center;
  height: 54px; padding: 6px 10px; border-radius: 10px; background: #fff;
  transition: transform .2s ease;
}
.tf-trust__mark:hover { transform: translateY(-2px); }
.tf-trust__mark img { max-height: 42px; width: auto; }
.tf-trust__ids { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; color: var(--tf-green-200); }
.tf-trust__ids b { color: #fff; font-weight: 600; }
@media (max-width: 700px) {
  .tf-trust { flex-direction: column; align-items: flex-start; }
  .tf-trust__mark { height: 46px; } .tf-trust__mark img { max-height: 34px; }
}

.tf-ecom-note {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--tf-r-sm);
  padding: 13px 18px; font-size: .85rem; color: var(--tf-green-200);
  margin-bottom: 28px;
  display: flex; gap: 10px; align-items: flex-start;
}
.tf-ecom-note svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--tf-green-300); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1FA855; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(12,36,24,.3);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 27px; height: 27px; }

/* ======================= 12. ARABIC / RTL =============================== */
[dir="rtl"] {
  --tf-font-body: 'Almarai', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --tf-font-display: 'Almarai', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
[dir="rtl"] body { font-family: var(--tf-font-ar); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .h4 {
  font-family: var(--tf-font-ar);
  /* Almarai ships 300/400/700/800 — no 500/600, so use real weights */
  font-weight: 700; letter-spacing: 0; line-height: 1.35;
}
[dir="rtl"] .lead, [dir="rtl"] .eyebrow, [dir="rtl"] .badge,
[dir="rtl"] .btn, [dir="rtl"] .tf-nav a, [dir="rtl"] .chip,
[dir="rtl"] .field label, [dir="rtl"] .facts .k, [dir="rtl"] .contact-line b,
[dir="rtl"] .tf-footer h4, [dir="rtl"] .product-card__cat, [dir="rtl"] .figure-item__label {
  font-weight: 700;
}
[dir="rtl"] .lead, [dir="rtl"] p, [dir="rtl"] .card p { font-weight: 400; }
[dir="rtl"] .h1, [dir="rtl"] h1 { line-height: 1.25; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .badge, [dir="rtl"] .product-card__cat, [dir="rtl"] .tf-footer h4,
[dir="rtl"] .facts dt, [dir="rtl"] .facts .k, [dir="rtl"] .contact-line b,
[dir="rtl"] .hero__eyebrow, [dir="rtl"] .product-card__flag, [dir="rtl"] .figure-item__label {
  letter-spacing: 0; text-transform: none;
}
[dir="rtl"] .lead { line-height: 1.8; }
[dir="rtl"] p { line-height: 1.85; }
[dir="rtl"] .quote { font-style: normal; }
[dir="rtl"] .price { font-family: var(--tf-font-ar); }
[dir="rtl"] .tf-brand__name, [dir="rtl"] .tf-footer__brand strong { font-family: var(--tf-font-ar); }

/* Numbers and Latin fragments stay LTR inside Arabic text */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* A figure value that is also .ltr (e.g. "2005") must stay a centred flex
   box like its neighbours, not fall back to inline-block and sit at the top. */
.figure-item__value.ltr { display: flex; }

/* ========================= 13. RESPONSIVE =============================== */
@media (max-width: 1080px) {
  .tf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
  .tf-nav { display: none; }
  .tf-burger { display: inline-flex; }
  .tf-header__bar { min-height: 70px; }
  .split, .split--wide-text, .split--wide-media, .split--founder, .pd-layout { grid-template-columns: minmax(0, 1fr); }
  .split--reverse-mobile > *:first-child { order: 2; }
  /* Stacked layout: the card no longer stretches to a column height, so
     the portrait takes a fixed height instead of filling the space. */
  .founder-card__photo { align-self: end; }
  .founder-card__photo img { height: 300px; max-height: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band .btn-row { justify-content: start; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(2) { border-inline-end: 0; }
  .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .stack p { text-align: start; hyphens: none; -webkit-hyphens: none; }
  .founder-card__top { padding: 26px 20px 0; }
  .founder-card__body { padding: 20px 0 24px 20px; }
  [dir="rtl"] .founder-card__body { padding: 20px 20px 24px 0; }
  .founder-card__name { font-size: 1.1rem; }
  .founder-card__role { font-size: .8rem; }
  .founder-card__creds li { grid-template-columns: 42px minmax(0, 1fr); gap: 8px; font-size: .8rem; }
  .founder-card__creds b { font-size: .9rem; }
  .founder-card__photo img { height: 220px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tf-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
  .product-card__body { padding: 15px 15px 17px; }
  .product-card__name { font-size: 1.02rem; }
  .media-stack { grid-template-columns: 1fr; }
  .media-stack .media-frame:first-child { grid-column: auto; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .btn { padding: 14px 22px; }
  .btn-row .btn { flex: 1 1 auto; }
  .tf-brand { gap: 10px; }
  .tf-brand__mark { height: 44px; }
  .tf-brand__word { height: 36px; }
  .tf-header__cta { display: none; }
  .tf-lang span { display: none; }
  .tf-lang { padding: 12px 14px; }
  .cta-band .btn-row { grid-template-columns: 1fr; }
  .wa-float { width: 50px; height: 50px; inset-block-end: 16px; inset-inline-end: 16px; }
  .wa-float svg { width: 24px; height: 24px; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Print */
@media print {
  .tf-header, .tf-footer, .wa-float, .catalog-toolbar, .btn { display: none !important; }
  body { background: #fff; }
}

/* Category card icons (Products page) */
.cat-icon{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;background:var(--tf-green-100);color:var(--tf-green-700);margin-bottom:22px}
.cat-icon svg{display:block}
@media (max-width:700px){.cat-icon{width:92px;height:92px}.cat-icon svg{width:62px;height:62px}}
