/* ==========================================================================
   Mawasim Al-Ziraa (مواسم الزراعة) - styles
   Cream page, deep green for all text, lines and buttons; Changa for
   titles, names and buttons, Tajawal for the small lines. Photos, 2px ground
   lines and a deep green closing band give the page its presence: no boxes,
   no shadows, no other colours.

   Fluid by design: type and spacing are clamp()ed to the viewport, so the
   page keeps its proportions from a 320px phone to a 4K screen and at every
   browser zoom level; the breakpoints only change the number of columns.
   Motion: entrance on load, reveals on scroll (lines and icons draw
   themselves, photos settle in), a progress line, light parallax, moving
   banners, a pulsing WhatsApp button. All of it is switched off under
   prefers-reduced-motion. Mobile-first, logical properties (RTL/LTR).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --green: #154B3B;
  --green-dark: #0E3529;
  --cream: #F6ECDE;

  --green-80: rgba(21, 75, 59, 0.8);
  --green-70: rgba(21, 75, 59, 0.7);
  --green-55: rgba(21, 75, 59, 0.55);
  --green-20: rgba(21, 75, 59, 0.2);
  --green-08: rgba(21, 75, 59, 0.08);
  --cream-80: rgba(246, 236, 222, 0.8);
  --cream-20: rgba(246, 236, 222, 0.2);
  --cream-10: rgba(246, 236, 222, 0.1);

  /* Two faces: Changa for titles, names and buttons; Tajawal for the small lines */
  --font: "Tajawal", "Changa", sans-serif;
  --font-display: "Changa", "Tajawal", sans-serif;

  /* Fluid type: grows gently with the viewport, held between a phone size and a desktop size */
  --text: clamp(17px, 0.92rem + 0.35vw, 21px);
  --text-lh: 1.85;
  --small: clamp(15px, 0.85rem + 0.2vw, 18px);
  --hero-title: clamp(32px, 1.3rem + 2.4vw, 58px);
  --title: clamp(30px, 1.35rem + 1.7vw, 50px);
  --name: clamp(21px, 1.1rem + 0.55vw, 27px);
  --button: clamp(17px, 0.95rem + 0.3vw, 21px);
  --ticker: clamp(19px, 1rem + 0.6vw, 27px);

  /* Fluid space: 8 / 16 / 24 then viewport-aware steps */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: clamp(32px, 1.6rem + 1.2vw, 52px);
  --s5: clamp(48px, 2.2rem + 2.2vw, 84px);
  --s6: clamp(64px, 2.8rem + 3.2vw, 116px);

  --content: 1200px;
  --gutter: clamp(16px, 0.6rem + 1.8vw, 44px);
  --section: clamp(52px, 2.4rem + 3.4vw, 108px);   /* space between sections */
  --bar: 48px;                                      /* the fixed moving banner at the bottom */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --speed: 0.25s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text);
  line-height: var(--text-lh);
  letter-spacing: 0;
  color: var(--green);
  background: var(--cream);
  overflow-x: clip;
  min-height: 100vh;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px));   /* room for the fixed banner */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 999px; }
.band :focus-visible { outline-color: var(--cream); }

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 22px; height: 22px; flex: none; }

/* Ground line: full width under photos, short and centred under titles */
.line { width: 100%; height: 2px; background: var(--green); }
.line--short { width: 48px; margin: var(--s2) auto var(--s4); }

.skip-link {
  position: absolute; top: -100px; inset-inline-start: 16px;
  background: var(--green); color: var(--cream);
  padding: 10px 20px; border-radius: 999px; z-index: 200;
  font-family: var(--font-display); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* The reading progress line along the top edge */
.progress {
  position: fixed; top: 0; inset-inline-start: 0; z-index: 170;
  width: 100%; height: 3px; background: var(--green);
  transform: scaleX(var(--progress, 0)); transform-origin: right;
  pointer-events: none;
}
[dir="ltr"] .progress { transform-origin: left; }

/* ---------- Buttons, pills and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px clamp(28px, 1.2rem + 1vw, 44px);
  border-radius: 999px; background: var(--green); color: var(--cream);
  font-family: var(--font-display); font-weight: 400; font-size: var(--button); line-height: 1.5; text-align: center;
  text-decoration: none; max-width: 100%;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--cream { background: var(--cream); color: var(--green); }
.btn--cream:hover { background: var(--cream); color: var(--green-dark); }

/* Pill: the service-area note, outlined like the language button */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 4px 16px; border-radius: 999px;
  border: 1.5px solid var(--green); color: var(--green);
  font-family: var(--font-display); font-size: var(--small); line-height: 1.4;
}

.number { display: block; margin-top: var(--s2); text-decoration: none; color: var(--green-70); transition: color var(--speed) var(--ease); }
.number:hover { color: var(--green); }

/* ---------- Top row: language, centred logo, WhatsApp ---------- */
.top { padding-top: clamp(16px, 0.6rem + 1vw, 28px); }
.top__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: block; justify-self: center; border-radius: 8px; }
.brand__logo { width: clamp(140px, 8rem + 4vw, 220px); }
.top__tagline { text-align: center; margin-top: var(--s1); color: var(--green-80); }

.lang-btn {
  justify-self: start;
  min-height: 40px; padding: 4px 16px; border-radius: 999px;
  border: 1.5px solid var(--green); color: var(--green);
  font-family: var(--font-display); line-height: 1.4;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.lang-btn:hover { background: var(--green); color: var(--cream); }

.wa-link {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 4px 10px; border-radius: 999px;
  text-decoration: none; color: var(--green);
  transition: background-color var(--speed) var(--ease);
}
.wa-link:hover { background: var(--green-08); }
.wa-link__number { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s4); }
.hero__inner { display: grid; gap: var(--s3); align-items: center; }
.hero__media { max-width: 640px; margin-inline: auto; transform: translateY(var(--py, 0)); }
.hero__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center;
  /* soft edges so the photo's own cream melts into the page cream (no visible rectangle) */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 55%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 55%, #000 58%, transparent 100%);
}
.hero__text { text-align: center; }
.hero__eyebrow { font-family: var(--font-display); font-size: var(--name); line-height: 1.5; color: var(--green-70); }
.hero__title { font-family: var(--font-display); font-size: var(--hero-title); font-weight: 700; line-height: 1.3; margin-top: var(--s1); text-wrap: balance; }
.hero__sub { max-width: 30em; margin: var(--s2) auto 0; }
.hero .pill { margin-top: var(--s3); }
.hero .btn { margin-top: var(--s3); }

/* ---------- Ticker (in the page) ---------- */
.ticker {
  margin-top: var(--section);
  border-top: 2px solid var(--green); border-bottom: 2px solid var(--green);
  padding: 10px 0; overflow: hidden; direction: ltr;
}
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; }
.ticker__item { font-family: var(--font-display); font-size: var(--ticker); line-height: 1.6; padding-inline: var(--s3); white-space: nowrap; }
.ticker__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections and titles ---------- */
.section { padding-top: var(--section); }
.title { font-family: var(--font-display); font-size: var(--title); font-weight: 700; line-height: 1.4; text-align: center; text-wrap: balance; }
h3 { font-family: var(--font-display); font-size: var(--name); font-weight: 700; line-height: 1.5; }

/* Lead line under a title, and the closing note of a section */
.lead { max-width: 34em; margin: calc(-1 * var(--s2)) auto var(--s4); text-align: center; color: var(--green-80); text-wrap: pretty; }
.note { max-width: 34em; margin: var(--s4) auto 0; text-align: center; font-family: var(--font-display); font-size: var(--name); line-height: 1.5; }

/* Photos: a clipping box so the photo can settle in and zoom on hover without leaving its frame */
.media { overflow: hidden; }
.media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transform: translateY(var(--py, 0)) scale(var(--sc, 1)); transition: transform 1.2s var(--ease); }
.media--parallax img { --sc: 1.12; }     /* a little larger so the parallax drift never shows an edge */
.media--parallax.is-visible img, .is-visible .media--parallax img { --sc: 1.12; }

/* Feature: one photo on a ground line beside a list or a text block */
.feature { display: grid; gap: var(--s4); align-items: center; }
.feature__media { display: flex; flex-direction: column; }
.feature__media .line { margin-top: -2px; }
.feature__text { text-align: center; }
.feature__text h3 { margin-top: var(--s2); }
.feature__text p { margin-top: var(--s1); color: var(--green-80); }
.feature__text .btn { margin-top: var(--s3); }

/* Benefits: an icon on its own ground line, the title and the line under it */
.benefits { display: grid; gap: var(--s3); }
.benefit { display: flex; flex-direction: column; align-items: center; text-align: center; }
.benefit__ground { width: 100%; display: flex; justify-content: center; padding-bottom: var(--s1); border-bottom: 2px solid var(--green); }
.benefit__icon { width: clamp(48px, 2.4rem + 1vw, 60px); height: auto; aspect-ratio: 1; color: var(--green); }
.benefit h3 { margin-top: var(--s1); }
.benefit p { color: var(--green-70); }

/* Seasons: photo, ground line, name, months, stars, text, chips */
.seasons { display: grid; gap: var(--s4); }
.season { display: flex; flex-direction: column; text-align: center; transition: transform 0.4s var(--ease); }
.season:hover { transform: translateY(-4px); }
.season .line { margin-top: -2px; }
.season h3 { margin-top: var(--s2); }
.season p { color: var(--green-70); }
.season__months { font-family: var(--font-display); color: var(--green); }
.season__stars { font-weight: 500; color: var(--green-80); }
.season__label { margin-top: var(--s2); font-family: var(--font-display); color: var(--green); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s1); }
.chips li { padding: 2px 14px; border: 1.5px solid var(--green-20); border-radius: 999px; font-family: var(--font-display); font-size: var(--small); line-height: 1.7; white-space: nowrap; transition: border-color var(--speed) var(--ease); }
.chips li:hover { border-color: var(--green); }

/* Points: a big numeral beside the title and the line, each point on a thin ground line */
.points { display: grid; gap: var(--s3); }
.point { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s2); align-items: baseline; padding-bottom: var(--s2); border-bottom: 1px solid var(--green-20); }
.point__num { font-family: var(--font-display); font-size: var(--title); font-weight: 400; line-height: 1; color: var(--green-55); grid-row: span 2; }
.point p { color: var(--green-70); }

/* ---------- Closing band and footer ---------- */
.band { margin-top: var(--section); background: var(--green); color: var(--cream); }
.band__inner { padding-top: var(--s5); text-align: center; display: flex; flex-direction: column; align-items: center; }
.band__logo { width: clamp(170px, 9rem + 4vw, 240px); margin-bottom: var(--s3); }
.band__line { max-width: 34em; margin-bottom: var(--s3); }
.band .number { color: var(--cream-80); }
.band .number:hover { color: var(--cream); }
.band__city { margin-top: var(--s2); color: var(--cream-80); }

.foot { margin-top: var(--s5); padding-bottom: var(--s4); }
.foot__inner { border-top: 1px solid var(--cream-20); padding-top: var(--s4); display: flex; flex-direction: column; align-items: center; gap: var(--s1); text-align: center; }
.foot__contact { color: var(--cream-80); }
.foot__wa { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.foot__wa:hover { text-decoration: underline; text-underline-offset: 6px; }
.foot__domain { text-decoration: none; color: var(--cream-80); transition: color var(--speed) var(--ease); }
.foot__domain:hover { color: var(--cream); }
.social { display: flex; gap: 12px; justify-content: center; margin-top: var(--s2); }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--cream); color: var(--cream);
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.social a:hover { background: var(--cream); color: var(--green); transform: translateY(-3px); }
.foot__copy { color: var(--cream-80); margin-top: var(--s1); }

/* ---------- Fixed moving banner (bottom) and floating WhatsApp button ---------- */
.bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
  display: block; height: calc(var(--bar) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--green); color: var(--cream); text-decoration: none;
  overflow: hidden; direction: ltr;
  transition: background-color var(--speed) var(--ease);
}
.bar:hover { background: var(--green-dark); }
.bar:focus-visible { outline-color: var(--cream); outline-offset: -4px; border-radius: 0; }
.bar__track { display: flex; width: max-content; height: var(--bar); align-items: center; animation: ticker 55s linear infinite; }
.bar:hover .bar__track { animation-play-state: paused; }
.bar .ticker__item { font-size: clamp(15px, 0.8rem + 0.35vw, 19px); line-height: 1.4; }
.bar .ticker__dot { background: var(--cream); }

.wa-float {
  position: fixed; inset-inline-end: 16px; bottom: calc(var(--bar) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 160;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 56px; height: 56px; padding: 0 15px; border-radius: 999px;
  background: var(--green); color: var(--cream); border: 2px solid var(--cream);
  text-decoration: none; font-family: var(--font-display); font-size: var(--button); line-height: 1;
  transition: background-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.wa-float:hover { background: var(--green-dark); transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float__label { display: none; }
.wa-float__ring {
  position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--green);
  animation: pulse 2.8s ease-out infinite; pointer-events: none;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* ==========================================================================
   Motion (only when JS runs, so the page never hides content)
   ========================================================================== */
/* Entrance on load: the hero pieces rise one after the other, the photo settles then floats */
.js .hero__text > * { opacity: 0; animation: rise 0.8s var(--ease) forwards; }
.js .hero__text > :nth-child(1) { animation-delay: 0.05s; }
.js .hero__text > :nth-child(2) { animation-delay: 0.15s; }
.js .hero__text > :nth-child(3) { animation-delay: 0.25s; }
.js .hero__text > :nth-child(4) { animation-delay: 0.35s; }
.js .hero__text > :nth-child(5) { animation-delay: 0.45s; }
.js .hero__text > :nth-child(6) { animation-delay: 0.55s; }
.js .hero__media img { opacity: 0; animation: settle 1.1s var(--ease) 0.15s forwards, float 7s ease-in-out 1.3s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Reveal on scroll: rise, with a stagger for lists (--i) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Ground lines draw themselves from the start side */
.js .reveal--line { opacity: 1; transform: scaleX(0); transform-origin: right; transition: transform 0.9s var(--ease) 0.1s; }
.js [dir="ltr"] .reveal--line, [dir="ltr"] .js .reveal--line { transform-origin: left; }
.js .line--short.reveal--line { transform-origin: center; }
.js .reveal--line.is-visible { transform: none; }

/* Photos settle in from a slight zoom, and zoom a touch on hover */
.js .media img { --sc: 1.08; }
.js .is-visible .media img, .js .media.is-visible img { --sc: 1; }
.js .is-visible:hover .media img { --sc: 1.04; }
.js .media--parallax img, .js .is-visible .media--parallax img { --sc: 1.18; }
.js .is-visible:hover .media--parallax img { --sc: 1.14; }

/* Benefit icons draw their strokes */
.js .benefit__icon * { stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset 1.3s var(--ease) calc(var(--i, 0) * 90ms + 0.25s); }
.js .benefit.is-visible .benefit__icon * { stroke-dashoffset: 0; }

/* The numerals of the points slide in from the start side */
.js .point__num { opacity: 0; transform: translateX(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 0.2s); }
[dir="ltr"] .js .point__num, .js [dir="ltr"] .point__num { transform: translateX(-28px); }
.js .point.is-visible .point__num { opacity: 1; transform: none; }

/* The crop names pop in one after the other */
.js .chips li { opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.js .season.is-visible .chips li { opacity: 1; transform: none; }
.js .season.is-visible .chips li:nth-child(1) { transition-delay: 0.40s; }
.js .season.is-visible .chips li:nth-child(2) { transition-delay: 0.47s; }
.js .season.is-visible .chips li:nth-child(3) { transition-delay: 0.54s; }
.js .season.is-visible .chips li:nth-child(4) { transition-delay: 0.61s; }
.js .season.is-visible .chips li:nth-child(5) { transition-delay: 0.68s; }
.js .season.is-visible .chips li:nth-child(6) { transition-delay: 0.75s; }
.js .season.is-visible .chips li:nth-child(7) { transition-delay: 0.82s; }
.js .season.is-visible .chips li:nth-child(8) { transition-delay: 0.89s; }
.js .season.is-visible .chips li:nth-child(9) { transition-delay: 0.96s; }

/* ==========================================================================
   Responsive: the fluid tokens do the scaling; these only change the columns
   ========================================================================== */
@media (min-width: 600px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); }
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); }
}

@media (min-width: 700px) {
  .wa-link__number { display: inline; }
  .wa-float__label { display: inline; }
}

@media (min-width: 900px) {
  .hero__sub { margin-inline: 0; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s5); }
  .feature--flip .feature__media { order: 2; }
  .feature__text { text-align: start; }
  .feature--hail { margin-bottom: var(--s5); }
  .benefits { row-gap: var(--s4); }
  .benefit { align-items: flex-start; text-align: start; }
  .benefit__ground { justify-content: flex-start; }
  .seasons { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s3); }
  .band__inner { padding-top: var(--s6); }
}

@media (min-width: 960px) {
  .hero { padding-top: var(--s5); }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: var(--s5); }
  .hero__media { max-width: none; }
  .hero__text { text-align: start; }
  .hero__sub { margin-inline: 0; }
  .hero .btn { line-height: 1.35; }
}

@media (min-width: 1600px) {
  :root { --content: 1360px; --bar: 56px; }
}

/* Short viewports (a landscape phone, or a strong browser zoom): keep the chrome out of the way */
@media (max-height: 560px) {
  :root { --bar: 40px; }
  .wa-float { display: none; }
  .hero { padding-top: var(--s3); }
}

/* ---------- Reduced motion ----------
   Windows reports "reduce" whenever its animation effects are switched off, which is
   common on office PCs, so only the continuous, vestibular effects are dropped here
   (floating, parallax, pulsing, lifts); the one-shot reveals and the banners stay. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__media img { animation: settle 1.1s var(--ease) 0.15s forwards; }
  .btn:hover, .wa-float:hover, .season:hover, .social a:hover { transform: none; }
  .wa-float__ring { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .lang-btn, .skip-link, .ticker, .bar, .wa-float, .progress { display: none !important; }
  body { padding-bottom: 0; }
  .band { background: none; color: var(--green); }
  .js .reveal, .js .reveal--line, .js .hero__text > *, .js .hero__media img, .js .point__num, .js .chips li { opacity: 1; transform: none; animation: none; }
}
