/* =====================================================================
   Alaheen (العهين) — website stylesheet
   Brand source: Alaheen Design System (deep-green / sand / olive,
   Readex Pro 400 + 600, square corners, circles only as accents).
   ===================================================================== */

/* ---------- Fonts (Readex Pro, OFL) ---------- */
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/readex-pro-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/readex-pro-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/readex-pro-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/readex-pro-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --deep: #011611;          /* primary  · CMYK 80/61/69/81 */
  --deep-2: #0c241d;        /* raised surface on deep */
  --deep-3: #16332a;        /* hover on deep */
  --sand: #ddcc9e;          /* secondary · CMYK 14/16/42/0 */
  --sand-2: #e9dcb9;        /* hover on sand */
  --olive: #707f56;         /* accent · CMYK 57/35/74/15 */
  --olive-ink: #64714d;     /* olive for small text: 5.2:1 on white, 4.6:1 on tint (WCAG AA) */
  --tint: #f4efe1;          /* sand at ~30% on white (screen only) */
  --tint-2: #faf7ef;
  --white: #ffffff;
  --ink: rgba(0, 0, 0, .84);
  --ink-soft: rgba(0, 0, 0, .64);
  --on-dark: rgba(255, 255, 255, .80);
  --on-dark-soft: rgba(255, 255, 255, .62);
  --line: rgba(1, 22, 17, .14);
  --line-dark: rgba(221, 204, 158, .20);

  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 10vw, 144px);
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.smooth { scroll-behavior: smooth; } /* added after load, so arriving at /ar/#pumps jumps straight to the section */
body {
  margin: 0; font-family: var(--font); font-weight: 400;
  font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 600; }
h1, h2, h3 { font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -.015em; color: var(--deep); }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--sand); }
[hidden] { display: none !important; }
section[id], #grains { scroll-margin-top: calc(var(--header-h) - 8px); }
#main { scroll-margin-top: var(--header-h); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.paper { background: var(--white); }
.tint { background: var(--tint); }
.dark { background: var(--deep); color: var(--on-dark); }
.dark :is(h1, h2, h3) { color: var(--sand); }

.skip { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 100; transform: translateY(calc(-100% - 24px)); background: var(--sand); color: var(--deep); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { transform: none; }

/* ---------- Type helpers ---------- */
.label, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-ink);
}
.label::before, .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
html[lang="ar"] :is(.label, .eyebrow) { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.dark :is(.label, .eyebrow) { color: var(--sand); opacity: .85; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 20ch; }
html[lang="ar"] h2 { max-width: 22ch; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.split { display: grid; gap: 24px 64px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .sec-head.split { grid-template-columns: 1.15fr 1fr; } }
.sec-intro, .lead-dark { font-size: 1.1875rem; color: var(--ink); margin: 0; }
.lead-dark { margin-bottom: 1em; }
.dark .sec-intro { color: var(--on-dark); }
.num, .idx { font-size: .8125rem; font-weight: 600; color: var(--olive-ink); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.dark .idx { color: var(--sand); opacity: .7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border: 1.5px solid transparent; border-radius: 0;
  font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .875rem; }
.btn-lg { min-height: 58px; padding-inline: 34px; }
.btn-sand { background: var(--sand); color: var(--deep); }
.btn-sand:hover { background: var(--sand-2); }
.btn-ghost { border-color: rgba(221, 204, 158, .5); color: var(--sand); }
.btn-ghost:hover { background: rgba(221, 204, 158, .1); border-color: var(--sand); }
.btn-deep { background: var(--deep); color: var(--sand); }
.btn-deep:hover { background: var(--deep-3); }
.btn-outline { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn-outline:hover { background: var(--deep); color: var(--sand); }
.btn-text { background: none; border: 0; color: var(--deep); text-decoration: underline; text-underline-offset: 4px; padding-inline: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow { display: inline-block; width: 18px; height: 10px; position: relative; transition: transform .25s var(--ease); }
.arrow::before { content: ""; position: absolute; inset-inline: 0 2px; top: 4.25px; height: 1.5px; background: currentColor; }
.arrow::after { content: ""; position: absolute; inset-inline-end: 1px; top: 1px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: rotate(45deg); }
[dir="rtl"] .arrow::after { transform: rotate(-45deg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .3s var(--ease); }
.brand { flex: none; display: block; }
.brand img { height: 66px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 72px; }
.site-header.scrolled .brand img { height: 52px; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { position: relative; padding: 10px 11px; font-size: .9375rem; text-decoration: none; color: var(--on-dark); transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1.5px; background: var(--sand); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--sand); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang-switch { display: inline-flex; border: 1px solid rgba(221, 204, 158, .35); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; color: var(--sand); font-size: .875rem; font-weight: 600; line-height: 1; text-decoration: none; transition: background-color .2s, color .2s; }
.lang-switch a + a { border-inline-start: 1px solid rgba(221, 204, 158, .35); }
.lang-switch a:hover { background: rgba(221, 204, 158, .1); }
.lang-switch a[aria-current] { background: var(--sand); color: var(--deep); cursor: default; }
.header-cta { display: none; }
.menu-btn { width: 46px; height: 44px; display: grid; place-content: center; gap: 7px; background: none; border: 1px solid rgba(221, 204, 158, .35); }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--sand); transition: transform .3s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
/* em breakpoints: identical at default text size (720px / 1260px), and they follow the visitor's text-size setting */
@media (min-width: 45em) { .header-cta { display: inline-flex; } }
@media (min-width: 78.75em) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .nav + .header-actions { margin-inline-start: 12px; }
}

.drawer { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--deep); padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.site-header.scrolled ~ .drawer { inset-block-start: 72px; }
.drawer-nav { display: grid; }
.drawer-nav a { color: var(--sand); text-decoration: none; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
[dir="rtl"] .drawer-nav a[dir="ltr"] { text-align: right; }
.drawer-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: 32px 72px; grid-template-columns: 1fr; align-items: end; padding-bottom: clamp(44px, 6vw, 80px); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.55fr 1fr; } }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 6.1rem); line-height: .98; letter-spacing: -.035em; color: var(--sand); }
html[lang="ar"] .hero h1 { font-size: clamp(2.9rem, 7vw, 6.4rem); line-height: 1.18; letter-spacing: 0; }
.hero .lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--on-dark); margin-bottom: 28px; max-width: 46ch; }
.hero-media { position: relative; }
.hero-media .slot { aspect-ratio: 21 / 9; min-height: 340px; max-height: 76vh; width: 100%; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.hero-facts li { display: flex; }
.hero-facts li > a { flex: 1; display: flex; gap: 14px; color: inherit; text-decoration: none; transition: background-color .2s; align-items: baseline; min-width: 0; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; padding: 22px var(--gutter); color: var(--white); font-size: .9875rem; font-weight: 600; border-bottom: 1px solid var(--line-dark); }
.hero-facts li:nth-child(odd) { border-inline-end: 1px solid var(--line-dark); }
.hero-facts .idx { flex: none; overflow-wrap: normal; white-space: nowrap; }
@media (min-width: 900px) {
  .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: max(calc((100% - var(--wrap)) / 2), var(--gutter)); }
  .hero-facts li { border-bottom: 0; border-inline-end: 1px solid var(--line-dark); }
  .hero-facts li > a { padding: 26px 24px; }
  .hero-facts li:first-child > a { padding-inline-start: 0; }
  .hero-facts li:last-child { border-inline-end: 0; }
}

/* ---------- Pattern bands ---------- */
.band { background-repeat: repeat-x; background-position: center; }
.band-line { height: 64px; background-image: url("../brand/pattern-band-line-sand.svg"); background-size: auto 64px; opacity: .9; }
.band-color { height: 44px; background-image: url("../brand/pattern-band-color.svg"); background-size: auto 44px; }

/* ---------- Image slots (placeholders until real photos land) ---------- */
.slot { position: relative; overflow: hidden; background: var(--deep-2); isolation: isolate; }
.slot > .ph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .6s, transform 1.2s var(--ease); }
.js .slot:not(.loaded) > img { opacity: 0; }
.slot.loaded > .ph, .slot.loaded > .chip { display: none; }
.slot > .chip {
  position: absolute; z-index: 2; inset-inline-start: 12px; top: 12px; max-width: calc(100% - 24px);
  font: 600 11px/1.3 var(--font); letter-spacing: .04em; color: var(--sand); background: rgba(1, 22, 17, .86);
  padding: 6px 9px; direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 48px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pillar .slot { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.pillar .num { margin-bottom: 10px; }
.pillar h3 { font-size: 1.375rem; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; color: var(--deep); }
.pillar:hover .slot > img, .pillar:hover .slot > .ph { transform: scale(1.04); }
.pillar .slot > .ph { transition: transform 1.2s var(--ease); }
.pillar:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .pillar:hover .arrow { transform: translateX(-4px); }
.pillar:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px 88px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 5fr 6fr; } }
.about-media { aspect-ratio: 4 / 5; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.label):not(.lead-dark) { color: var(--ink-soft); }
.values { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.values h3 { font-size: 1.125rem; margin-bottom: 4px; }
.values p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* Geometric glyphs drawn from the pattern band vocabulary */
.glyph { flex: none; width: 40px; height: 40px; position: relative; display: block; }
.g-ring { border: 2px solid var(--olive); border-radius: 50%; }
.g-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--olive); }
.g-quarter { background: var(--olive); border-start-start-radius: 100%; }
.g-cross { border: 2px solid var(--olive); border-radius: 50%; }
.g-cross::before, .g-cross::after { content: ""; position: absolute; background: var(--olive); }
.g-cross::before { inset-inline: -6px; top: 50%; height: 2px; margin-top: -1px; }
.g-cross::after { inset-block: -6px; left: 50%; width: 2px; margin-left: -1px; }

/* ---------- Farming ---------- */
.mosaic { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: clamp(56px, 8vw, 96px); }
.mosaic .m-a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.mosaic .m-b, .mosaic .m-c { aspect-ratio: 1; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .mosaic .m-a { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; min-height: 100%; }
}
.steps { display: grid; gap: 36px 28px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(6, 1fr); gap: 28px 20px; } }
.steps li { position: relative; padding-top: 30px; border-top: 1.5px solid var(--deep); }
.steps li::before { content: ""; position: absolute; top: -8px; inset-inline-start: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--deep); }
.steps li:first-child::before { background: var(--olive); border-color: var(--olive); }
.steps .step-n { display: block; font-size: .8125rem; font-weight: 600; color: var(--olive-ink); margin-bottom: 8px; }
.steps h3 { font-size: 1.125rem; margin-bottom: 6px; }
.steps p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }
.facts { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--tint); padding: 32px clamp(24px, 3vw, 40px); }
.fact .label { margin-bottom: 10px; }
.fact-text { font-size: 1.3125rem; font-weight: 600; color: var(--deep); margin: 0; line-height: 1.45; }

/* ---------- PLANTIX ---------- */
.plantix-grid { display: grid; gap: 56px 88px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .plantix-grid { grid-template-columns: 6fr 5fr; } }
.logo-slot.plantix-logo { height: auto; min-width: 0; margin: 4px 0 24px; }
.logo-slot.plantix-logo img { height: clamp(116px, 11vw, 150px); max-width: none; }
.logo-slot.plantix-logo .brand-word { font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: .06em; color: var(--olive); }
.plantix-copy h2 { margin-bottom: 18px; }
.range { margin: 28px 0 34px; border-top: 1px solid var(--line); }
.range li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.range h3 { font-size: 1.125rem; margin-bottom: 2px; }
.range p { margin: 0; color: var(--ink-soft); font-size: .9875rem; }
.plantix-media .slot { aspect-ratio: 4 / 5; }

/* jute strip: echoes the PLANTIX print on a natural jute sack */
.sack-spec {
  display: grid; gap: 28px 64px; grid-template-columns: 1fr; margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 3.6vw, 52px);
  color: #10140f; background-color: #d8c597;
  background-image: repeating-linear-gradient(0deg, rgba(1, 22, 17, .07) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(1, 22, 17, .06) 0 1px, transparent 1px 5px);
}
@media (min-width: 1024px) { .sack-spec { grid-template-columns: 1.15fr 1fr; } .spec-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; } }
.sack-title { font-weight: 600; font-size: 1.125rem; margin: 0; }
.sack-note { margin: 0; font-size: .875rem; color: rgba(1, 22, 17, .72); }
.spec-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.spec-fields div { padding: 16px 0; border-top: 1.5px solid rgba(1, 22, 17, .28); }
.spec-fields div:nth-child(3) { grid-column: 1 / -1; }
.spec-fields dt { font-size: .875rem; color: rgba(1, 22, 17, .72); margin-bottom: 4px; }
.spec-fields dd { margin: 0; font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: .06em; line-height: 1.3; }
[dir="rtl"] .spec-fields dd { text-align: right; }
.spec-fields .spec-more { margin-top: 4px; font-size: .8125rem; font-weight: 400; letter-spacing: 0; line-height: 1.7; color: rgba(1, 22, 17, .72); }
.calibres { border-top: 1.5px solid rgba(1, 22, 17, .28); padding-top: 16px; }
@media (min-width: 1024px) { .calibres { border-top: 0; padding-top: 0; border-inline-start: 1.5px solid rgba(1, 22, 17, .28); padding-inline-start: 48px; } }
.cal-title { font-weight: 600; margin: 0 0 18px; }
.cal-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(14px, 2.4vw, 28px); margin-bottom: 22px; }
[dir="rtl"] .cal-row { justify-content: flex-end; }
.cal-row li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cal-dot { display: block; width: calc(var(--d) * 1.45px); height: calc(var(--d) * 1.45px); border-radius: 50%; border: 2px solid #10140f; background: radial-gradient(circle, transparent 54%, rgba(1, 22, 17, .12) 55%); }
.cal-row b { font-size: .9375rem; font-weight: 600; letter-spacing: .04em; }
.cal-note { margin: 0 0 6px; font-size: .9375rem; line-height: 1.6; }

/* ---------- Grains ---------- */
.grains { padding-bottom: var(--section); overflow: hidden; }
.grains-media { aspect-ratio: 2 / 1; min-height: 380px; max-height: 82vh; width: 100%; }
.grains-panel { position: relative; z-index: 2; background: var(--deep); max-width: 700px; margin-top: clamp(-240px, -15vw, -64px); padding: clamp(32px, 4vw, 60px) clamp(24px, 4vw, 64px) 0 0; padding-inline: 0 clamp(24px, 4vw, 64px); }
.grains-panel::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 100%; width: 100vw; background: var(--deep); }
.grains-panel h2 { margin-bottom: 20px; }
.ticks { display: grid; gap: 12px; margin: 26px 0 32px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); }
.dark-ticks li::before { background: var(--olive); }
html[lang="ar"] .ticks li::before { top: .85em; }

/* ---------- Pumps ---------- */
.brands { display: grid; gap: 20px 48px; grid-template-columns: 1fr; align-items: center; padding-block: 28px; margin-bottom: 48px; border-block: 1px solid var(--line); }
@media (min-width: 900px) { .brands { grid-template-columns: auto 1fr 1fr; } }
.brands > .label { margin: 0; }
.brand-cell { display: flex; align-items: center; gap: 22px; }
.logo-slot { flex: none; display: flex; align-items: center; min-width: 150px; height: 64px; }
.logo-slot img { height: 56px; width: auto; max-width: 170px; object-fit: contain; }
.js .logo-slot img { display: none; }
.logo-slot.loaded img { display: block; }
.logo-slot.loaded .brand-word, html:not(.js) .logo-slot .brand-word { display: none; }
.brand-word { font-size: 1.75rem; font-weight: 600; letter-spacing: .01em; color: var(--deep); line-height: 1; }
.brand-cell p { margin: 0; font-size: .9375rem; color: var(--ink-soft); line-height: 1.6; }
.brand-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: -12px 0 24px; font-size: .9375rem; color: var(--ink-soft); }
.brand-line b { color: var(--deep); font-size: 1rem; }
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 40px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: 1 0 auto; display: flex; align-items: baseline; gap: 12px; padding: 18px 22px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 1.0625rem; font-weight: 600; color: var(--ink-soft); text-align: start; transition: color .2s, border-color .2s, background-color .2s; }
.tabs [role="tab"]:hover { color: var(--deep); background: var(--tint-2); }
.tabs [role="tab"][aria-selected="true"] { color: var(--deep); border-bottom-color: var(--deep); }
.panel { display: grid; gap: 40px 72px; grid-template-columns: 1fr; align-items: center; animation: fade .5s var(--ease); }
@media (min-width: 900px) { .panel { grid-template-columns: 1fr 1fr; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.product { aspect-ratio: 1; background: var(--sand); }
.panel-copy h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 18px; }
.panel-copy > p:not(.label) { font-size: 1.125rem; margin-bottom: 28px; }
.panel-copy .label { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); background: var(--tint-2); font-size: .9375rem; color: var(--deep); }
.service { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; margin-top: clamp(56px, 7vw, 88px); padding: 28px clamp(24px, 3vw, 40px); background: var(--deep); color: var(--sand); }
.service-title { margin: 0; font-weight: 600; font-size: 1.0625rem; }
.service ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.service li { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: .9875rem; }
.service li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }

/* ---------- Solar ---------- */
.flow { display: grid; gap: 40px 24px; grid-template-columns: 1fr; margin-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { position: relative; padding-top: 4px; }
.flow-ico { width: 56px; height: 56px; color: var(--sand); margin-bottom: 22px; }
@media (min-width: 1024px) {
  .flow li:not(:last-child)::after { content: ""; position: absolute; top: 31px; inset-inline-start: 76px; inset-inline-end: 0; border-top: 1.5px dashed rgba(221, 204, 158, .35); }
}
.flow .idx { display: block; margin-bottom: 6px; }
.flow h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.flow p { color: var(--on-dark-soft); font-size: .9875rem; margin: 0; max-width: 28ch; }
.solar-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .solar-grid { grid-template-columns: 7fr 5fr; gap: 40px; } }
.solar-media .slot { aspect-ratio: 16 / 10; }
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); margin-top: 0; }
.benefits li { padding: 20px 0; padding-inline-end: 12px; font-weight: 600; color: var(--sand); border-bottom: 1px solid var(--line-dark); display: flex; align-items: center; gap: 12px; }
.benefits li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); flex: none; }

.estimator { background: var(--sand); color: var(--deep); padding: clamp(28px, 3.4vw, 44px); }
.estimator .label { color: var(--deep); opacity: .75; }
.estimator h3 { color: var(--deep); font-size: 1.5rem; margin-bottom: 26px; }
.estimator .field { margin-bottom: 20px; }
.estimator label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
.estimator .unit { font-weight: 400; opacity: .75; white-space: nowrap; }
.range-row { display: grid; grid-template-columns: 1fr 112px; gap: 14px; align-items: center; }
.range-row input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--deep); }
.range-row input[inputmode="decimal"] { width: 100%; min-height: 46px; padding: 8px 12px; border: 1.5px solid rgba(1, 22, 17, .35); background: var(--tint-2); font: 600 1.0625rem var(--font); color: var(--deep); border-radius: 0; direction: ltr; text-align: center; }
.hint { font-size: .8125rem; margin: 6px 0 0; opacity: .75; }
.results { margin: 26px 0 16px; border-top: 1.5px solid var(--deep); }
.results div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid rgba(1, 22, 17, .2); }
.results dt { flex: 1 1 0; font-size: .9375rem; }
.results dd { flex: 0 1 auto; margin: 0; margin-inline-start: auto; text-align: end; font-size: .9375rem; }
.results dd b { font-size: 1.25rem; direction: ltr; unicode-bidi: isolate; }
.results .hl dd b { font-size: 2rem; }
.estimator .note { font-size: .8125rem; line-height: 1.6; opacity: .8; margin-bottom: 22px; }
.estimator .btn { width: 100%; white-space: normal; text-align: center; }

/* ---------- Fertilizers ---------- */
.fert-grid { display: grid; gap: 48px 72px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .fert-grid { grid-template-columns: 7fr 5fr; } }
.fert-copy h2 { margin-bottom: 22px; }
.fert-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 36px; }
@media (min-width: 600px) { .fert-cards { grid-template-columns: 1fr 1fr; } }
.fcard { background: var(--white); padding: 26px; }
.fcard .num { display: block; margin-bottom: 12px; }
.fcard h3 { font-size: 1.125rem; margin-bottom: 8px; }
.fcard p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }
.fert-media { display: flex; }
.f-tall { width: 100%; aspect-ratio: 3 / 4; }
@media (min-width: 1024px) { .f-tall { aspect-ratio: auto; min-height: 100%; } }
.fert-why { display: grid; gap: 40px 72px; grid-template-columns: 1fr; align-items: center; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .fert-why { grid-template-columns: 5fr 6fr; } }
.fert-why .slot { aspect-ratio: 4 / 3; }
.fert-why h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.fert-why .ticks { margin: 24px 0 32px; }

/* ---------- Stats + partners ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); margin-bottom: clamp(64px, 8vw, 112px); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { padding: 28px 20px 28px 0; padding-inline: 0 20px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .stats li { border-bottom: 0; } .stats li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line-dark); } }
.stats b { display: block; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.1; color: var(--sand); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
html[lang="ar"] .stats b { line-height: 1.3; margin-bottom: 8px; }
.stats span { color: var(--on-dark-soft); font-size: .9875rem; }
.partner-grid { display: grid; gap: 48px 80px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .partner-grid { grid-template-columns: 1fr 1fr; } }
.partner-grid .slot { aspect-ratio: 4 / 3; }
.partner-badge { width: 132px; height: auto; margin-bottom: 28px; }
.partner-copy h2 { margin-bottom: 20px; }
.partner-copy p:not(.label) { margin-bottom: 30px; max-width: 44ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 56px 88px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-copy h2 { margin-bottom: 18px; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list img { width: 22px; height: 22px; object-fit: contain; margin-top: 4px; flex: none; }
.contact-list .label { display: flex; margin-bottom: 2px; }
.contact-list .label::before { display: none; }
.contact-list a, .contact-list address { font-size: 1.125rem; color: var(--deep); text-decoration: none; line-height: 1.6; }
.contact-list a { display: inline-block; padding-block: 8px; margin-block: -8px; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.quote { background: var(--tint); padding: clamp(24px, 3.6vw, 48px); }
.q-fields { display: grid; gap: 18px 20px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 640px) { .q-fields { grid-template-columns: 1fr 1fr; } .q-fields .full { grid-column: 1 / -1; } }
.quote label { display: block; font-size: .875rem; font-weight: 600; color: var(--deep); margin-bottom: 8px; }
.quote :is(input, select, textarea) {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(1, 22, 17, .22); border-radius: 0;
  background: var(--white); font: 400 1rem/1.5 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.quote textarea { resize: vertical; min-height: 130px; }
.quote :is(input, select, textarea):focus { outline: none; border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
.quote select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--deep) 50%), linear-gradient(-45deg, transparent 50%, var(--deep) 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; padding-inline-end: 44px; }
[dir="rtl"] .quote select { background-position: 16px 50%, 22px 50%; }
.quote [dir="ltr"] { text-align: start; }
[dir="rtl"] .quote input[dir="ltr"] { text-align: right; }
.form-error { color: #8a1c1c; font-weight: 600; font-size: .9375rem; }
.q-done { margin-top: 28px; padding: 28px; background: var(--white); border-inline-start: 4px solid var(--olive); }
.q-done:focus { outline: none; }
.q-done-title { font-size: 1.375rem; font-weight: 600; color: var(--deep); margin-bottom: 6px; }
.q-preview { white-space: pre-wrap; font: 400 .875rem/1.7 var(--font); background: var(--tint-2); border: 1px solid var(--line); padding: 16px; max-height: 240px; overflow: auto; margin: 16px 0 20px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(64px, 8vw, 104px); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 56px; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.f-brand { grid-column: 1 / -1; }
@media (min-width: 960px) { .f-brand { grid-column: auto; } }
.f-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.f-tag { color: var(--sand); opacity: .75; font-size: .9375rem; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-label { margin: 0 0 6px; color: var(--sand); opacity: .7; font-size: .8125rem; font-weight: 600; }
.f-col a, .f-col address { color: var(--on-dark); text-decoration: none; font-size: .9875rem; line-height: 1.7; }
.f-col a:hover { color: var(--sand); }
.f-col .f-web { color: var(--sand); }
[dir="rtl"] .f-col a[dir="ltr"] { text-align: right; }
@media (max-width: 959px) { .f-col { gap: 0; } .f-label { margin-bottom: 4px; } .f-col a { padding-block: 9px; } }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding-block: 26px 36px; font-size: .875rem; color: var(--on-dark-soft); }
.footer-bottom::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); border-top: 1px solid var(--line-dark); }
.footer-bottom p { margin: 0; }
.f-legal { font-weight: 600; color: var(--on-dark); line-height: 1.8; }
.f-top { margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--sand); text-decoration: none; font-weight: 600; }

/* ---------- Very large text on phones: let words break inside narrow two-column cells ---------- */
:is(.benefits, .stats, .footer-grid, .spec-fields, .tabs) > *, .f-col a { min-width: 0; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }

/* ---------- Without JavaScript ---------- */
html:not(.js) :is(.tabs, .menu-btn, [data-action="est-send"]) { display: none; }
html:not(.js) .panels > .panel[hidden] { display: grid !important; margin-top: 56px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html, html.smooth { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slot > img, .panel { transition: none; animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .drawer, .band, .btn, .tabs, .quote, .partner-badge, .slot > .ph, .slot > .chip { display: none !important; }
  .js .reveal, .js .slot > img { opacity: 1 !important; transform: none !important; }
  .panels > .panel[hidden] { display: grid !important; margin-top: 32px; }
  .panel { animation: none !important; }
  h1, h2, h3, .label, .eyebrow { break-after: avoid; }
  .slot, .fcard, .fact, .steps li, .values li, .range li, .contact-list li, .results div, .spec-fields div, .panel { break-inside: avoid; }
  .dark:not(.site-footer), .service, .grains-panel, .grains-panel::before { background: #fff !important; color: #000 !important; }
  .dark:not(.site-footer) *, .service * { color: #000 !important; }
  .dark:not(.site-footer) :is(h1, h2, h3) { color: var(--deep) !important; }
  .site-footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section { padding-block: 40px; }
}

/* PLANTIX strip on small screens */
@media (max-width: 600px) {
  .cal-row { gap: 12px; }
  .cal-dot { width: calc(var(--d) * 1px); height: calc(var(--d) * 1px); }
  .cal-row b { font-size: .8125rem; }
  .spec-fields dd { font-size: clamp(1.05rem, 4.4vw, 1.25rem); letter-spacing: .03em; }
}

/* pump tabs: all four visible on phones */
@media (max-width: 600px) {
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; border-bottom: 0; gap: 0; }
  .tabs [role="tab"] { padding: 14px 12px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
  .tabs [role="tab"][aria-selected="true"] { border-bottom: 2px solid var(--deep); }
}

/* final review (9 Nov 2026) */
.hero-facts li > a:hover { background: rgba(221, 204, 158, .06); }
.hero-facts li > a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3, .btn { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
#quote { scroll-margin-top: var(--header-h); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .results dt { flex-basis: 100%; } .results dd { margin-inline-start: 0; text-align: start; } }
.q-done p span[dir="ltr"] { white-space: nowrap; unicode-bidi: isolate; }
html:not(.js) #quote button[type="submit"] { display: none; }
#quote noscript p span[dir="ltr"] { white-space: nowrap; unicode-bidi: isolate; }
.q-sent { border-inline-start-color: var(--deep); }
.q-sent p span[dir="ltr"] { white-space: nowrap; unicode-bidi: isolate; }
.hp { display: none !important; }
