/* Zidan Agro — site styles. Mobile-first. No web fonts (system stack) for speed and privacy. */

:root {
  --green-950: #00300f;
  --green-900: #01451a;
  --green-700: #01601a; /* brand primary (from logo) */
  --green-600: #11772c;
  --green-100: #e3efe2;
  --green-50: #f1f6ef;
  --gold-500: #d49a02; /* brand accent (from logo) — decorative / large elements only */
  --gold-300: #f2d27a;
  --gold-800: #6e4d00; /* accessible gold for small text */
  --ink: #18221a;
  --ink-2: #3f4a40;
  --ink-3: #5b655c;
  --paper: #fbfaf6;
  --paper-2: #f4f1e8;
  --line: #dcd8cb;
  --white: #ffffff;
  --error: #b3261e;
  --error-bg: #fdecea;
  --success-bg: #e6f2e6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(24 34 26 / 6%), 0 6px 20px rgb(24 34 26 / 6%);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px #0b57d0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 72rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--green-950);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-900);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #0b57d0;
  outline-offset: 3px;
  border-radius: 4px;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--green-900);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

main:focus {
  outline: none;
}

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

/* Narrow reading measure, left-aligned with the page grid. */
.container.narrow > * {
  max-width: 48rem;
}

/* Icons */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.2em;
}

.icon-sm {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-900);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--green-700);
}

.btn-secondary:hover {
  background: var(--green-50);
  color: var(--green-950);
}

.btn-gold {
  background: var(--gold-500);
  color: #1b1600;
}

.btn-gold:hover {
  background: var(--gold-300);
  color: #1b1600;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / 75%);
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 12%);
  color: var(--white);
}

.btn-small {
  min-height: 40px;
  padding: 0.4rem 1rem;
  background: var(--white);
  color: var(--green-900);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(254 252 251 / 96%);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgb(254 252 251 / 88%);
    backdrop-filter: blur(8px);
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 4.5rem;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand-logo {
  display: block;
  width: 180px;
  height: auto;
  aspect-ratio: 240 / 53;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--green-700);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-nav {
  width: 100%;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.primary-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:not(.btn):hover {
  background: var(--green-50);
  color: var(--green-900);
}

.primary-nav a[aria-current="page"] {
  color: var(--green-900);
  box-shadow: inset 0 -3px 0 var(--gold-500);
}

.btn-call {
  margin-top: 0.5rem;
}

/* With JS on small screens: collapsible menu */
@media (max-width: 55.99em) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .primary-nav {
    display: none;
    padding-bottom: 0.75rem;
  }

  .js.nav-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .primary-nav a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--gold-500);
  }
}

@media (min-width: 56em) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .brand-logo {
    width: 220px;
  }

  .primary-nav {
    width: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .btn-call {
    margin-top: 0;
  }
}

/* Update banner */
.update-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: var(--green-900);
  color: var(--white);
  font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--ink-3);
}

.breadcrumbs a {
  display: inline-block;
  padding-block: 0.4rem;
}

/* Sections */
.section {
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

.section-tight {
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

.section-tint {
  background: var(--green-50);
  border-block: 1px solid var(--green-100);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--ink-2);
}

.eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-800);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-2);
  max-width: 40rem;
}

.small,
.meta {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(242 210 122 / 22%), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--green-50) 100%);
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy .cta-row {
  margin-top: 1.5rem;
}

.hero-call {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
}

.call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--green-900);
  font-weight: 600;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

@media (min-width: 56em) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.page-hero {
  padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) 0.5rem;
}

/* Cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40em) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.card:hover {
  border-color: var(--green-600);
}

.card:focus-within {
  border-color: var(--green-700);
}

.card p {
  color: var(--ink-2);
}

.card-link {
  color: var(--green-950);
  text-decoration: none;
}

/* Whole card clickable via the heading link's pseudo-element */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card-link:focus-visible {
  outline: none;
}

.card-link:focus-visible::after {
  outline: 3px solid #0b57d0;
  outline-offset: 3px;
}

.card-icon,
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
}

.card-icon .icon,
.feature-icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--green-700);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40em) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--green-100);
}

.feature p {
  margin: 0;
  color: var(--ink-2);
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.2rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gold-500);
  color: #1b1600;
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
}

/* Bands */
.band {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.band-green {
  background: var(--green-900);
  color: var(--white);
  background-image: linear-gradient(135deg, var(--green-900), var(--green-700));
}

.band-green h2 {
  color: var(--white);
}

.band-green p {
  color: #e6efe5;
  max-width: 38rem;
}

.band-inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 56em) {
  .band-inner {
    grid-template-columns: 1fr auto;
  }
}

.band :focus-visible {
  outline-color: var(--white);
}

/* Contact */
.contact-summary {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 56em) {
  .contact-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-name {
  font-weight: 700;
  color: var(--ink-2);
}

.address-block {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--ink-2);
}

.address-block .icon {
  margin-top: 0.2rem;
  color: var(--green-700);
}

address {
  font-style: normal;
  display: flex;
  flex-direction: column;
}

.address-label {
  font-weight: 700;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 60em) {
  .contact-layout {
    grid-template-columns: 22rem 1fr;
  }
}

.contact-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 60em) {
  .contact-card {
    position: sticky;
    top: 6rem;
  }
}

/* Notices */
.notice {
  margin-block: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-sm);
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice-title {
  font-size: 1.125rem;
}

.notice-strong {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-700);
}

.notice-small {
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  margin-top: 0;
}

.label-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.label-note .icon {
  margin-top: 0.25rem;
  color: var(--gold-800);
}

.checklist,
.link-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding-block: 0.35rem;
}

.checklist .icon {
  margin-top: 0.3rem;
  color: var(--green-700);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

/* Prose */
.prose h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.statement {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-950);
  border-left: 5px solid var(--gold-500);
  padding-left: 1rem;
}

.note {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* Catalogue search */
.catalogue-search {
  display: grid;
  gap: 0.5rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.catalogue-search label {
  font-weight: 700;
}

.search-row {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  display: flex;
}

.search-row input {
  padding-left: 2.75rem;
}

.search-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* Forms */
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid #8a9389;
  border-radius: var(--radius-sm);
}

textarea {
  resize: vertical;
  min-height: 9rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0b57d0;
  outline-offset: 1px;
  border-color: var(--green-700);
}

[aria-invalid="true"] {
  border-color: var(--error);
  background: #fffafa;
}

.form-grid {
  display: grid;
  gap: 0 1.25rem;
}

@media (min-width: 40em) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.optional {
  font-weight: 400;
  color: var(--ink-3);
}

.hint {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--error);
}

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: start;
}

.field-check input {
  width: 1.5rem;
  min-height: 1.5rem;
  height: 1.5rem;
  margin: 0.15rem 0 0;
  accent-color: var(--green-700);
}

.field-check label {
  font-weight: 400;
  margin: 0;
}

.field-check .field-error {
  grid-column: 2;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-required-note {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.form-summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--error);
  border-radius: var(--radius-sm);
  background: var(--error-bg);
}

.form-summary h3 {
  font-size: 1.05rem;
  color: var(--error);
}

.form-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.form-summary a {
  color: var(--error);
  font-weight: 600;
}

.form-result:empty {
  display: none;
}

.form-result {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-result p {
  margin: 0;
}

.form-result.is-success {
  background: var(--success-bg);
  border: 2px solid var(--green-700);
  color: var(--green-950);
}

.form-result.is-error {
  background: var(--error-bg);
  border: 2px solid var(--error);
  color: #7a1712;
}

/* Product detail (used only when approved products exist) */
.product-detail {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56em) {
  .product-detail {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.product-image {
  border-radius: var(--radius);
}

.product-brand {
  font-weight: 700;
  color: var(--gold-800);
}

.facets {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.facets div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.facets dt {
  font-weight: 700;
}

.facets dd {
  margin: 0;
}

/* Status pages */
.status-page {
  min-height: 50vh;
}

/* Footer */
.site-footer {
  margin-top: 0;
  background: var(--green-950);
  color: #dfe8de;
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--gold-300);
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2rem;
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.2fr;
  }
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

.footer-legal {
  color: #c4d1c3;
}

.footer-heading {
  font-size: 1rem;
  color: var(--gold-300);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.4rem;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
}

.footer-address {
  margin-bottom: 0.5rem;
}

.footer-address-label {
  font-weight: 700;
  color: var(--white);
}

.footer-bottom {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.footer-bottom p {
  margin: 0;
  color: #c4d1c3;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Forced colours (Windows High Contrast) */
@media (forced-colors: active) {
  .btn,
  .card,
  .notice {
    border: 2px solid CanvasText;
  }
}

@media print {
  .site-header,
  .update-banner,
  .band,
  .skip-link {
    display: none !important;
  }
}

/* Error-summary links are a list of targets (not inline text): give them a comfortable height. */
.form-summary li a {
  display: inline-block;
  padding-block: 0.3rem;
}

/* Keep telephone numbers on one line. */
a[href^="tel:"] {
  white-space: nowrap;
}
