/* Al Meezan AG Chemicals
   Colours come from the logo: green #00a650, leaf #8cc63f, red #ed1c24, grey #58595b.
   Darker and paler tones below are built from those for text and backgrounds. */

:root {
  --forest: #123d29;        /* deep green: dark sections, headings */
  --forest-2: #1b4d35;
  --green: #00a650;         /* logo green: rules and accents only */
  --green-ink: #0b6e3a;     /* logo green darkened for text and buttons */
  --leaf: #8cc63f;          /* logo leaf green: accents on dark */
  --leaf-pale: #b9d98f;
  --red: #ed1c24;           /* logo red: small marks only */
  --red-ink: #b3161d;

  --paper: #f7f3ea;
  --sand: #ede6d6;
  --line: #d8cfba;
  --ink: #1c231f;
  --muted: #535a52;         /* close to the logo grey */
  --on-dark: #f7f3ea;
  --on-dark-muted: #c9d3c8;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --container: 72rem;
  --gutter: 1rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 4.5rem;
  --radius: 3px;
}

@media (min-width: 40em) {
  :root { --gutter: 2rem; }
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

address { font-style: normal; }

section[id] { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--forest);
  color: var(--on-dark);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Small label above headings, with a short red rule taken from the logo */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  margin-top: 0.7em;
  background: var(--red);
  flex: none;
}
.eyebrow--light { color: var(--leaf-pale); }

/* Buttons */

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--green-ink);
  border-radius: var(--radius);
  background: var(--green-ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--forest); border-color: var(--forest); color: #fff; }

.button--small { padding: 0.6rem 1rem; font-size: 0.9rem; }

.button--light { background: var(--paper); border-color: var(--paper); color: var(--forest); }
.button--light:hover { background: #fff; border-color: #fff; color: var(--forest); }

.button--ghost { background: transparent; border-color: rgba(247, 243, 234, 0.7); color: var(--on-dark); }
.button--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--forest); }

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 2px 10px rgba(18, 61, 41, 0.08); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand img { width: 152px; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--forest);
  font: 600 0.9rem var(--sans);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.button) {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.button):hover,
.site-nav a[aria-current="true"] { color: var(--green-ink); }

/* Mobile menu: hidden until the toggle opens it. Without JS the links stay visible. */
@media (max-width: 47.99em) {
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav li a:not(.button) {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .button { margin-top: 1rem; }

  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-bottom: 0.75rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav ul { display: flex; gap: 1.25rem; }
  html:not(.js) .site-nav li a { border: 0; padding: 0; }
  html:not(.js) .site-nav .button { display: none; }
}

@media (min-width: 48em) {
  .brand img { width: 172px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 2.25rem; }
  .site-nav ul { display: flex; gap: 2rem; }
  .site-nav li a:not(.button) {
    position: relative;
    padding-block: 0.4rem;
  }
  .site-nav li a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
  }
  .site-nav li a:hover::after,
  .site-nav li a[aria-current="true"]::after { transform: scaleX(1); }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(32rem, 82vh, 50rem);
  color: var(--on-dark);
  background: var(--forest);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* Darkens the left and bottom so the text stays readable over the photo */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 30, 20, 0.8) 0%, rgba(10, 30, 20, 0.3) 40%, rgba(10, 30, 20, 0) 70%),
    linear-gradient(to right, rgba(10, 30, 20, 0.6) 0%, rgba(10, 30, 20, 0.25) 40%, rgba(10, 30, 20, 0) 65%);
}

.hero__content {
  position: relative;
  padding-block: 6rem clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.hero__tagline {
  max-width: 34ch;
  text-wrap: balance;
  margin: 1.1rem 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--on-dark);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Facts band */

.facts {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.facts__grid {
  display: grid;
  gap: 0;
}
.fact {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.fact:first-child { border-top: 0; }
.fact__figure {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.2;
}
.fact__label { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 32ch; }

@media (min-width: 48em) {
  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .fact {
    padding: 2rem 2rem 2rem 0;
    border-top: 0;
  }
  .fact + .fact {
    padding-left: 2rem;
    border-left: 1px solid var(--line);
  }
}

/* Sections */

.section { padding-block: var(--section); }

.section h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.01em;
}

/* About */

.about__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about__media { margin: 0; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.about__text h2 { margin-bottom: 1.5rem; max-width: 18ch; }
.about__text p { max-width: 58ch; }

@media (min-width: 56em) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
  .about__media img { aspect-ratio: 4 / 5; object-position: 40% 50%; }
}

/* Vision and mission */

.pledges {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.pledge {
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
}
.pledge + .pledge { border-top-color: var(--forest); }

.pledge__label {
  margin-bottom: 0.9rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.pledge + .pledge .pledge__label { color: var(--forest); }

.pledge__text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
}

@media (min-width: 48em) {
  .pledges { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .pledge { padding: 2.5rem 2.25rem; }
}

/* Products */

.products {
  background: var(--sand);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 40rem; margin-bottom: 3rem; }

/* Fertilizers / Crop protection group headings */
.product-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  margin-bottom: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--forest);
}
.product-grid + .product-group__head { margin-top: 4rem; }
.product-group__title { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.product-group__head p { margin: 0; color: var(--muted); max-width: 52ch; }
.section-head h2 { margin-bottom: 1rem; }
.section-head__intro { color: var(--muted); }

.product-grid {
  display: grid;
  gap: 1rem;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.product__name { margin: 0; font-size: 1.45rem; }

/* N-P-K grade, set like the figures printed on a fertilizer bag */
.product__grade {
  margin: 0;
  flex: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--red-ink);
}

.product > p { color: var(--muted); }

.product__use {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--ink) !important;
  font-size: 0.975rem;
}
.product__use strong { color: var(--forest); }

.products__note {
  margin-top: 2.5rem;
  color: var(--muted);
}

@media (min-width: 40em) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (min-width: 64em) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product { padding: 2rem 1.75rem; }
}

/* Contact */

.contact {
  background: var(--forest);
  color: var(--on-dark-muted);
}
.contact h2 { color: #fff; margin-bottom: 2rem; }

.contact__grid {
  display: grid;
  gap: 3rem;
}

.contact__label {
  margin: 1.75rem 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}
.contact h2 + .contact__label { margin-top: 0; }

.contact__address {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: #fff;
}

.contact__email {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 4.2vw, 1.35rem);
  color: #fff;
  overflow-wrap: break-word;
}
.contact__email:hover { color: var(--leaf-pale); }

.contact__map iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--forest-2);
}

.contact__directions {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--on-dark);
  font-weight: 600;
}
.contact__directions:hover { color: var(--leaf-pale); }

@media (min-width: 56em) {
  .contact__grid { grid-template-columns: 2fr 3fr; gap: 4.5rem; align-items: start; }
  .contact__map iframe { height: 28rem; }
}

/* Footer */

.site-footer {
  padding-top: 3.5rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__brand img { width: 96px; margin-bottom: 1rem; }
.site-footer__name {
  margin-bottom: 0.2rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest);
}

.site-footer__label {
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li + li { margin-top: 0.3rem; }

.site-footer a { color: var(--green-ink); overflow-wrap: anywhere; }

.site-footer__bottom { font-size: 0.875rem; }
.site-footer__bottom p {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 40em) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64em) {
  .site-footer__grid { grid-template-columns: 1.1fr 1fr 1.4fr 0.7fr; }
}

/* Fade-in on scroll. Only applies when JS has run and the visitor has not asked for reduced motion. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Crop protection cards: category label sits above the ingredient name */
.product--cp .product__head {
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 0.3rem;
}
.product--cp .product__grade {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
