﻿/* ==========================================================================
   SHAJRA FARMS — شجرہ فارمز
   Land. Lineage. Legacy.
   Design system built on the SHAJRA Farms brand direction.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

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

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* --------------------------------------------------------------------
     The green ramp.

     #02A43D is the signature brand green, but it measures 3.29:1 against
     white — enough for large display type, icons, borders and filled
     graphics, short of the 4.5:1 that WCAG 2.2 AA requires of body text.
     So the ramp splits the work: --brand-green carries the identity at
     display scale, and the deeper steps carry anything text-sized.

       --brand-green  #02A43D   3.29:1 on white   h1/h2, icons, fills, rules
       --green-soft   #017A2D   5.49:1 on white   small green text
       --green        #01661F   7.19:1 on white   default green text, buttons
       --green-deep   #01551F   9.05:1 vs white   dark section grounds
       --green-darkest #013D16 12.50:1 vs white   top bar and footer
     -------------------------------------------------------------------- */
  --brand-green: #02a43d;
  --green: #01661f;
  --green-soft: #017a2d;
  --green-deep: #01551f;
  --green-darkest: #013d16;

  --ivory: #ffffff;
  --black: #16211a;

  /* Supporting — brand direction §3 */
  --brown: #5a3a2c;
  --copper: #b86f3f;
  --pasture: #7c9a66;
  --river: #4e7880;

  /* Copper is kept for accents on dark grounds, lightened to #E3B579 so it
     clears 4.8:1 against --green-deep. */
  --copper-light: #e3b579;
  --ivory-warm: #eef5f0;
  --ivory-deep: #dce9e0;
  --paper: #f5faf7;
  --line: rgba(1, 85, 31, 0.13);
  --line-strong: rgba(1, 85, 31, 0.24);
  --line-dark: rgba(255, 255, 255, 0.17);
  --muted: #55655c;
  --muted-dark: rgba(255, 255, 255, 0.74);

  /* Type */
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --nastaliq: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --arabic: "Noto Sans Arabic", "Segoe UI", sans-serif;

  /* Rhythm */
  --shell: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(32, 39, 36, 0.06), 0 2px 8px rgba(32, 39, 36, 0.05);
  --shadow-md: 0 4px 12px rgba(32, 39, 36, 0.07), 0 16px 40px rgba(32, 39, 36, 0.09);
  --shadow-lg: 0 8px 24px rgba(32, 39, 36, 0.1), 0 32px 72px rgba(32, 39, 36, 0.16);

  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--green);
  text-wrap: balance;
}

/* Display sizes are the one place the signature green is unambiguously
   legible on white, so that is where the identity lives. */
h1,
h2 {
  color: var(--brand-green);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 3.9vw, 3.15rem);
}

h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  letter-spacing: -0.012em;
}

h4 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--green);
  color: var(--ivory);
}

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

/* Urdu. Nastaliq for headlines and cultural lines only — never small data.
   The script runs right-to-left, but inside an LTR column the line is set
   flush left so it balances against the English above it rather than drifting
   off on its own. */
.urdu {
  font-family: var(--nastaliq);
  direction: rtl;
  text-align: left;
  line-height: 2.1;
  font-feature-settings: "kern" 1;
}

.urdu-ui {
  font-family: var(--arabic);
  direction: rtl;
  line-height: 1.9;
}

/* Origin codes, batch numbers, data — brand direction §4 */
.data {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   4. Layout utilities
   -------------------------------------------------------------------------- */

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

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

.section--ivory {
  background: var(--ivory);
}

.section--paper {
  background: var(--paper);
}

.section--green {
  background: var(--green-deep);
  color: var(--ivory);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--ivory);
}

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--brand-green);
  color: var(--ivory);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  z-index: 300;
  transform: translateY(-120%);
  transition: transform 0.23s var(--ease);
  font-weight: 700;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(255,255,255,0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--brand-green);
  flex: none;
}

.eyebrow--light {
  color: var(--copper-light);
}

.eyebrow--light::before {
  background: var(--copper-light);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.section-head .eyebrow {
  margin-bottom: 1.1rem;
}

.section-head p {
  margin-top: 1.15rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 40rem;
}

.section--green .section-head p {
  color: var(--muted-dark);
}

.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head--split > div:first-child {
  max-width: 40rem;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  color: var(--muted);
}

/* Contact page layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius-lg);
}

.contact-card h4 {
  margin-bottom: 0.45rem;
  color: var(--green);
}

.contact-card .contact-meta {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { order: 2; }
}

/* --------------------------------------------------------------------------
   5. Shajra Line System — brand direction §6
   Lines derived from lineage links, land-parcel boundaries and river paths.
   -------------------------------------------------------------------------- */

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

.line-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
}

.line-field--dark {
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--green);
  color: var(--ivory);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--green-deep);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--green);
  background: rgba(1, 102, 31,0.04);
}

.btn--copper {
  background: var(--copper-light);
  color: var(--green-deep);
}

.btn--copper:hover {
  background: #e6b782;
}

.btn--light {
  background: var(--ivory);
  color: var(--green);
}

.btn--light:hover {
  background: #fff;
}

.btn--outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-dark);
}

.btn--outline-light:hover {
  border-color: var(--ivory);
  background: rgba(255, 255, 255,0.08);
}

.btn--block {
  width: 100%;
}

/* Text link with a lineage underline that draws on hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  position: relative;
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brand-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover::after {
  transform: scaleX(1);
}

.link-arrow svg {
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.link-arrow--light {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   7. Top bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--green-darkest);
  color: var(--muted-dark);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255,0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
}

.topbar__promise {
  font-style: italic;
  font-family: var(--serif);
  letter-spacing: 0.01em;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s var(--ease);
}

.topbar__links a:hover {
  color: var(--ivory);
}

.topbar__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 1.75rem;
  border-left: 1px solid rgba(255, 255, 255,0.16);
}

.topbar__lang button {
  color: var(--muted-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.topbar__lang button[aria-pressed="true"] {
  color: var(--ivory);
}

.topbar__lang button:hover {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255,0.9);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.header.is-stuck {
  background: rgba(255, 255, 255,0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(32, 39, 36, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 92px;
}

/* Bilingual institutional lockup — brand direction §2 */
.lockup {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex: none;
}

.lockup__mark {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: none;
}

.lockup__type {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lockup__en {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--green);
  text-transform: uppercase;
}

/* FARMS reads smaller with generous tracking — SHAJRA stays the owned asset */
.lockup__sub {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--green-soft);
  text-transform: uppercase;
  line-height: 1;
}

.lockup__ur {
  font-family: var(--nastaliq);
  font-size: 0.8125rem;
  color: var(--brown);
  line-height: 1.9;
  direction: rtl;
  text-align: left;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.5rem);
  margin-inline: auto;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brand-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  transition: background 0.2s var(--ease);
}

.icon-btn:hover {
  background: rgba(1, 102, 31,0.07);
}

.nav-toggle,
.nav-backdrop {
  display: none;
}

/* Hide the mobile-only nav by default; enable it within the mobile media query. */
.nav.nav-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ivory);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: clamp(520px, 74vh, 700px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem)
    var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero__urdu {
  font-family: var(--nastaliq);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--brown);
  direction: rtl;
  text-align: left;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.hero__lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 2.25rem;
}

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

.hero__media {
  position: relative;
  min-height: 340px;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
  z-index: 0;
}

/* A soft well of shade so the copper mark keeps its contrast against the sky */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 46% 58% at 58% 50%,
    rgba(1, 61, 22, 0.58),
    rgba(1, 61, 22, 0.22) 55%,
    transparent 76%
  );
}

/* Ivory feathers into the photograph so the split never reads as a hard seam */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--ivory) 0%,
    rgba(255, 255, 255,0.72) 12%,
    rgba(255, 255, 255,0) 34%
  );
}

/* The Origin Mark arch — branch, roots and mapped field boundaries */
.hero__arch {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Sized off height so the arch always sits inside the frame */
  height: min(72%, 440px);
  width: auto;
  z-index: 3;
  filter: drop-shadow(0 10px 30px rgba(15, 44, 37, 0.45));
}

.hero__scroll {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 4;
}

.hero__scroll svg {
  animation: nudge 2.2s var(--ease) infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* --------------------------------------------------------------------------
   10. Pillars — brand direction §1
   -------------------------------------------------------------------------- */

.pillars {
  background: var(--green-deep);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

 .pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  position: relative;
  z-index: 1;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.75rem, 2.6vw, 2.4rem) clamp(1rem, 2vw, 1.9rem);
  border-left: 1px solid rgba(255, 255, 255,0.13);
}

.pillar:first-child {
  border-left: 0;
  padding-left: 0;
}

.pillar:last-child {
  padding-right: 0;
}

.pillar__icon {
  flex: none;
  color: var(--copper-light);
}

/* Without this the flex text block sets a min-content floor and pushes the
   grid track wider than its share of the row. */
.pillar > div,
.stat > div {
  min-width: 0;
}

.pillar h4 {
  color: var(--ivory);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.pillar p {
  font-size: 0.8438rem;
  line-height: 1.5;
  color: var(--muted-dark);
}

/* --------------------------------------------------------------------------
   11. Farms to table + trace panel
   -------------------------------------------------------------------------- */

/* The range needs most of the row: five cards on one line only read well if
   each column can hold a word like "Sustainability" without breaking. */
 .table__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 2.6vw, 2.75rem);
  align-items: start;
}

 .range {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(0.55rem, 0.9vw, 0.85rem);
}

.range__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.range__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.range__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.range__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.range__card:hover .range__media img {
  transform: scale(1.06);
}

/* Sits in the body, not the media, so the card's own clipping cannot cut it
   in half where it straddles the photograph. */
.range__badge {
  position: absolute;
  left: 0.9rem;
  top: -1.35rem;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--ivory);
  border: 3px solid var(--paper);
}

.range__body {
  position: relative;
  padding: 1.9rem 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

/* Scales with the column so the longest label still sits on one line; if it
   ever cannot, hyphens: auto breaks it at a syllable rather than mid-word. */
.range__body h4 {
  color: var(--green);
  font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  hyphens: auto;
}

.range__body p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

.range__body .link-arrow {
  margin-top: 0.6rem;
  font-size: 0.7813rem;
}

/* Trace panel */
/* The phone is decorative, so it yields space to the copy rather than the
   other way round — the form has to stay usable at this width. */
 .trace {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  color: var(--ivory);
  padding: clamp(1.35rem, 2vw, 1.9rem);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(130px, 12vw, 168px);
  gap: clamp(0.85rem, 1.2vw, 1.25rem);
  align-items: center;
  box-shadow: var(--shadow-md);
}

.trace__copy {
  position: relative;
  z-index: 2;
}

.trace h3 {
  color: var(--ivory);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  margin-bottom: 0.55rem;
}

.trace p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-dark);
  margin-bottom: 1.1rem;
  max-width: 24rem;
}

.trace__field {
  position: relative;
  margin-bottom: 0.85rem;
}

.trace__field input {
  width: 100%;
  padding: 0.85rem 2.6rem 0.85rem 0.9rem;
  background: rgba(255, 255, 255,0.07);
  border: 1px solid rgba(255, 255, 255,0.24);
  border-radius: var(--radius);
  color: var(--ivory);
  font-size: 0.9375rem;
  font-family: var(--mono);
  letter-spacing: 0.01em;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.trace__field input::placeholder {
  font-family: var(--sans);
  letter-spacing: 0;
  color: rgba(255, 255, 255,0.5);
}

.trace__field input:focus {
  outline: none;
  border-color: var(--copper-light);
  background: rgba(255, 255, 255,0.11);
}

.trace__qr {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--copper-light);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
}

.trace__hint {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0.75rem 0 0;
}

.trace__hint button {
  color: var(--copper-light);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Phone mockup */
.phone {
  position: relative;
  z-index: 2;
  border: 8px solid #012c10;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 9 / 17.5;
  transform: translateY(1.5rem) rotate(1.5deg);
}

.phone__bar {
  background: var(--green-deep);
  color: rgba(255, 255, 255,0.55);
  font-family: var(--mono);
  font-size: 0.5rem;
  padding: 0.4rem 0.6rem 0.3rem;
  display: flex;
  justify-content: space-between;
}

.phone__head {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.phone__head strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--green);
}

.phone__head span {
  font-size: 0.4375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone__body {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.phone__verified {
  background: rgba(124, 154, 102, 0.16);
  border: 1px solid rgba(124, 154, 102, 0.4);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.phone__verified b {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: #3f6b33;
  display: block;
}

.phone__verified small {
  font-size: 0.4rem;
  color: var(--muted);
}

.phone__row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.phone__row:last-child {
  border-bottom: 0;
}

.phone__row .dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--ivory-warm);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}

.phone__row b {
  font-size: 0.5rem;
  color: var(--green);
  display: block;
  line-height: 1.4;
}

.phone__row span {
  font-size: 0.4375rem;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}

/* --------------------------------------------------------------------------
   12. Stats
   -------------------------------------------------------------------------- */

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

 .stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.6rem, 2.4vw, 2.2rem) clamp(0.9rem, 1.8vw, 1.75rem);
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat:last-child {
  padding-right: 0;
}

.stat__icon {
  color: var(--brand-green);
  flex: none;
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--brand-green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   13. Meaning of Shajra — Land → Lineage → Production → Product
   -------------------------------------------------------------------------- */

/* Fixed backdrop, clipped to the section.

   clip-path: inset(0) makes this section the containing block for its
   position: fixed child, so the photograph stays pinned to the viewport while
   the section travels over it — and unlike background-attachment: fixed, this
   keeps working on iOS, where that property is ignored outright. */
.meaning {
  position: relative;
  clip-path: inset(0);
}

.meaning__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.meaning__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wash is pitched to let the landscape read as a landscape while still
   holding body copy above 4.5:1 — heaviest under the left-hand column, where
   the longest paragraphs sit, and lightest at the right edge. */
.meaning__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.74) 48%,
    rgba(255, 255, 255, 0.64) 100%
  );
}

.meaning > .shell {
  position: relative;
  z-index: 1;
}

/* .line-field is already absolutely positioned — it only needs lifting */
.meaning > .line-field {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .meaning__bg {
    position: absolute;
  }
}

.meaning__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.meaning__quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  color: var(--green);
  padding-left: 1.5rem;
  border-left: 2px solid var(--brand-green);
  margin-block: 1.75rem;
}

.meaning__quote .urdu {
  display: block;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--brown);
  margin-top: 0.6rem;
}

.chain {
  display: grid;
  gap: 0;
  position: relative;
}

.chain__step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}

.chain__step:last-child {
  padding-bottom: 0;
}

/* The lineage line that links each documented stage */
.chain__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 3.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(var(--brand-green), rgba(2, 164, 61, 0.15));
}

.chain__node {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--green);
  position: relative;
  z-index: 1;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.chain__step:hover .chain__node {
  background: var(--brand-green);
  color: var(--ivory);
  border-color: var(--brand-green);
  transform: scale(1.06);
}

.chain__body {
  padding-top: 0.35rem;
}

.chain__body .k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--green-soft);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.chain__body h4 {
  color: var(--green);
  font-size: 1.125rem;
  margin-bottom: 0.3rem;
}

.chain__body p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 26rem;
}

/* --------------------------------------------------------------------------
   14. Operations — branded-house divisions, one integrated system
   -------------------------------------------------------------------------- */

 .ops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255,0.14);
  border: 1px solid rgba(255, 255, 255,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.op {
  background: var(--green-deep);
  padding: clamp(1.75rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
  min-height: 240px;
}

.op::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 6s var(--ease);
  transform: scale(1.04);
}

.op::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 44, 37, 0.96) 20%,
    rgba(15, 44, 37, 0.7) 60%,
    rgba(15, 44, 37, 0.5)
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.op:hover::before {
  opacity: 0.85;
  transform: scale(1);
}

.op:hover::after {
  opacity: 1;
}

.op > * {
  position: relative;
  z-index: 2;
}

.op__index {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--copper-light);
}

.op h3 {
  color: var(--ivory);
  font-size: 1.35rem;
}

.op h3 small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 0.3rem;
}

.op p {
  font-size: 0.9063rem;
  color: var(--muted-dark);
  flex: 1;
}

.op .link-arrow {
  color: var(--ivory);
  align-self: flex-start;
}

.op .link-arrow::after {
  background: var(--copper-light);
}

/* --------------------------------------------------------------------------
   15. Shajra Origin — the signature traceability record
   -------------------------------------------------------------------------- */

.origin__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.record {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.record__head {
  background: var(--green-deep);
  color: var(--ivory);
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.record__head .t {
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.record__head .c {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--copper-light);
}

.record__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d5e6c6;
  background: rgba(124, 154, 102, 0.24);
  border: 1px solid rgba(124, 154, 102, 0.45);
  border-radius: 100px;
  padding: 0.3rem 0.7rem;
}

.record__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-bottom: 1px solid var(--line);
}

.record__meta div {
  padding: 1rem 1.5rem;
  border-left: 1px solid var(--line);
}

.record__meta div:first-child {
  border-left: 0;
}

.record__meta dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.record__meta dd {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--green);
}

.record__timeline {
  padding: 1.5rem;
  display: grid;
  gap: 0;
}

.event {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.35rem;
  position: relative;
}

.event:last-child {
  padding-bottom: 0;
}

.event:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.4rem;
  bottom: 0.15rem;
  width: 1px;
  background: var(--line-strong);
}

.event__dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ivory-warm);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  z-index: 1;
}

.event__dot--active {
  background: var(--brand-green);
  color: var(--ivory);
}

/* Scoped to the text column: a bare `.event span` also matches .event__dot —
   which is a span — and out-specifies it, forcing the icon circle to display
   as a block and knocking the icon out of centre. */
.event > div b {
  font-size: 0.9375rem;
  color: var(--green);
  display: block;
  line-height: 1.4;
}

.event > div span {
  font-size: 0.8438rem;
  color: var(--muted);
  display: block;
}

.event time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.record__foot {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--ivory-warm);
}

.record__foot p {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 30rem;
}

.origin__points {
  display: grid;
  gap: 1.35rem;
  margin-top: 2rem;
}

.point {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.point__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: rgba(2, 164, 61, 0.1);
  color: var(--brand-green);
  display: grid;
  place-items: center;
  flex: none;
}

.point h4 {
  color: var(--green);
  margin-bottom: 0.2rem;
}

.point p {
  font-size: 0.9063rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Standards
   -------------------------------------------------------------------------- */

.standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.standard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brand-green);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.standard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.standard__k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--green-soft);
  display: block;
  margin-bottom: 0.75rem;
}

.standard h4 {
  color: var(--green);
  margin-bottom: 0.45rem;
}

.standard p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   17. From Punjab — heritage story, serif + Nastaliq pairing
   -------------------------------------------------------------------------- */

.punjab {
  background: var(--green-deep);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

.punjab__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.punjab__media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.85rem;
  aspect-ratio: 1 / 1;
}

.punjab__media figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.punjab__media figure:first-child {
  grid-row: span 2;
}

.punjab__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.punjab__media figure:hover img {
  transform: scale(1.05);
}

.punjab__body h2 {
  color: var(--ivory);
}

.punjab__urdu {
  font-family: var(--nastaliq);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--copper-light);
  direction: rtl;
  text-align: left;
  line-height: 2.1;
  margin-block: 1rem 1.5rem;
}

.punjab__body p {
  color: var(--muted-dark);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.punjab__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.punjab__facts b {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--copper-light);
  display: block;
  line-height: 1.2;
}

.punjab__facts span {
  font-size: 0.8125rem;
  color: var(--muted-dark);
}

/* --------------------------------------------------------------------------
   18. News & Insights
   -------------------------------------------------------------------------- */

.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.article {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.article__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.article:hover .article__media img {
  transform: scale(1.05);
}

.article__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(15, 44, 37, 0.88);
  color: var(--copper-light);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.article time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.article h3 {
  font-size: 1.1875rem;
  transition: color 0.25s var(--ease);
}

.article:hover h3 {
  color: var(--brown);
}

.article p {
  font-size: 0.9063rem;
  color: var(--muted);
  flex: 1;
}

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8.5rem);
}

.cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 44, 37, 0.88),
    rgba(15, 44, 37, 0.78)
  );
  z-index: -1;
}

.cta h2 {
  color: var(--ivory);
  max-width: 22ch;
  margin-inline: auto;
}

.cta .urdu {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--copper-light);
  text-align: center;
  margin-block: 0.85rem 1.35rem;
}

.cta p {
  color: var(--muted-dark);
  max-width: 44ch;
  margin: 0 auto 2.25rem;
  font-size: 1.0625rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--green-darkest);
  color: var(--muted-dark);
  font-size: 0.9063rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 6vw, 5rem) 3rem;
}

.footer__brand .lockup__en,
.footer__brand .lockup__sub {
  color: var(--ivory);
}

.footer__brand .lockup__sub {
  color: rgba(255, 255, 255,0.6);
}

.footer__brand .lockup__ur {
  color: var(--copper-light);
}

.footer__brand .lockup__mark {
  filter: brightness(0) saturate(100%) invert(93%) sepia(9%) saturate(437%)
    hue-rotate(343deg) brightness(101%) contrast(93%);
}

.footer__tagline {
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ivory);
  margin-block: 1.5rem 0.5rem;
  letter-spacing: 0.01em;
}

.footer__tagline-ur {
  font-family: var(--nastaliq);
  direction: rtl;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--copper-light);
  line-height: 2;
  margin-bottom: 1.5rem;
}

.footer__brand p {
  max-width: 32rem;
  font-size: 0.9063rem;
  line-height: 1.7;
}

.footer h5 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: grid;
  gap: 0.7rem;
}

.footer__col a {
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}

.footer__col a:hover {
  color: var(--ivory);
  padding-left: 4px;
}

.footer__contact li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.footer__contact svg {
  flex: none;
  margin-top: 3px;
  color: var(--copper-light);
}

.footer__newsletter {
  border-top: 1px solid rgba(255, 255, 255,0.1);
  border-bottom: 1px solid rgba(255, 255, 255,0.1);
  padding-block: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__newsletter h4 {
  color: var(--ivory);
  margin-bottom: 0.3rem;
}

.footer__newsletter p {
  font-size: 0.875rem;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: 260px;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255,0.07);
  border: 1px solid rgba(255, 255, 255,0.22);
  border-radius: var(--radius);
  color: var(--ivory);
  font-size: 0.9375rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255,0.45);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--copper-light);
}

.footer__bottom {
  padding-block: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__legal a:hover {
  color: var(--ivory);
}

.footer__social {
  display: flex;
  gap: 0.5rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255,0.18);
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.footer__social a:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: var(--green-deep);
}

/* --------------------------------------------------------------------------
   21. Trace result dialog
   -------------------------------------------------------------------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: var(--gutter);
  background: rgba(1, 61, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sheet.is-open {
  display: grid;
  animation: fade 0.25s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet__panel {
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: rise 0.35s var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.sheet__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background: rgba(1, 61, 22, 0.62);
  z-index: 3;
  transition: background 0.2s var(--ease);
}

.sheet__close:hover {
  background: rgba(32, 39, 36, 0.8);
}

.sheet .record {
  border: 0;
  box-shadow: none;
  border-radius: var(--radius-lg);
}

/* Keep the status badge clear of the close button */
.sheet .record__head {
  padding-right: 4rem;
}

.sheet__error {
  padding: 2.5rem 2rem;
  text-align: center;
}

.sheet__error h3 {
  margin-bottom: 0.5rem;
}

.sheet__error p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   22. Reveal on scroll
   -------------------------------------------------------------------------- */

/* Content is visible by default and only hidden once main.js has confirmed it
   is running by setting .js on <html>. Without that gate a script error, a
   blocked file or an observer that never fires leaves whole sections blank. */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  /* Mobile-only slide-in nav (desktop nav stays in header) */
  .nav.nav-mobile {
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.875rem;
  }

  .pillars__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillar:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .pillar:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255,0.13);
  }

  .stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .table__layout {
    grid-template-columns: 1fr;
  }

  .trace {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .ops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar__promise,
  .topbar__links a span {
    display: none;
  }

  .nav {
    position: fixed;
    /* anchor to the right side explicitly to avoid directional/layout glitches */
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(360px, 86vw);
    background: var(--green-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
     /* smaller top padding so injected header sits near the top; the
       header itself is made sticky to remain visible when scrolling */
     padding: 1.25rem 1.25rem 2rem;
    transform: translateX(100%);
    transform-origin: right center;
    transition: transform 0.4s var(--ease);
    z-index: 230; /* ensure nav overlays page content when open */
    margin: 0;
    overflow-y: auto;
  }

  .nav.nav-mobile.is-open {
    transform: translateX(0) !important;
    right: 0 !important;
  }

  /* Ensure the mobile nav becomes visible on small screens */
  .nav.nav-mobile {
    display: flex;
  }

  .nav.nav-mobile a {
    color: var(--ivory);
    font-size: 1.0625rem;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255,0.12);
  }

  .nav.nav-mobile a::after {
    display: none;
  }

  /* Mobile nav header (logo + optional close) */
  .nav-mobile__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* add extra right padding so the absolutely-positioned close button
       can sit without overlapping the lockup content */
    padding: 0.5rem 3.25rem 0.5rem 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.03), transparent);
    position: sticky;
    top: 0;
    z-index: 240;
    backdrop-filter: blur(4px);
  }

  .nav-mobile__head .lockup { display:flex; align-items:center; gap:0.5rem; text-decoration:none; }

  .nav-mobile__head .lockup__mark {
    width:56px;
    height:56px;
    display:block;
    border-radius:10px;
    padding:6px;
    background: #ffffff; /* make logo background white per request */
    box-shadow: var(--shadow-sm);
    object-fit:contain;
    border: 1px solid rgba(0,0,0,0.06);
  }

  .nav-mobile__head .nav-mobile__close {
    /* positioned at the top-right of the mobile head for predictable
       placement regardless of content flow */
    margin-left: 0;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ivory);
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:8px;
  }

  .nav-mobile__head .nav-mobile__close:hover {
    background: rgba(255,255,255,0.04);
  }

  .nav-toggle {
    display: grid;
    position: relative;
    z-index: 210; /* keep toggle accessible but below the open nav */
  }

  /* hide the desktop nav inside the header on small screens */
  .nav:not(.nav-mobile) {
    display: none;
  }

  /* Ensure header actions (including the hamburger) sit at the right edge */
  .header__actions {
    margin-left: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 44, 37, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
    z-index: 220; /* place backdrop below nav but above page */
  }

  /* Preloader overlay */
  #preloader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f7fbf8 0%, #eef5f0 60%);
    z-index: 9999;
    transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
  }

  #preloader.is-loaded { opacity: 0; visibility: hidden; }

  .preloader__box { display:flex; flex-direction:column; align-items:center; gap:0.75rem; padding:1rem 2rem; }

  .preloader__logo { position: relative; width:88px; height:88px; display:grid; place-items:center; }

  /* Pulsing logo mark */
  .preloader__logo img { width:64px; height:64px; display:block; border-radius:12px; background:#fff; padding:6px; box-shadow: var(--shadow-md); animation: logo-pulse 2s ease-in-out infinite; }

  @keyframes logo-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

  .preloader__label { font-weight:700; color: var(--green-deep); letter-spacing: 0.06em; }

  /* Slimmer progress bar for a subtler preloader */
  .preloader__bar { width: 160px; height:6px; background: rgba(1,85,31,0.06); border-radius:6px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }

  /* Fill animates to 100% over 2s to match minimum preloader display time */
  .preloader__bar-fill { width: 0%; height:100%; background: #01661F; transform-origin:left center; animation: bar-fill 2s linear forwards; box-shadow: 0 1px 4px rgba(1,102,31,0.06); }

  @keyframes bar-fill { 0% { width: 0%; } 100% { width: 100%; } }

  .nav-backdrop.is-on {
    opacity: 1;
    pointer-events: auto;
  }

  .header__actions .btn span {
    display: none;
  }

  .header__actions .btn {
    padding: 0.85rem 1rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__copy {
    padding-inline: var(--gutter);
    padding-block: clamp(2.75rem, 7vw, 4rem) 3rem;
    order: 2;
  }

  .hero__media {
    order: 1;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .hero__media::after {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255,0) 55%,
      rgba(255, 255, 255,0.7) 88%,
      var(--ivory) 100%
    );
  }

  .hero__arch {
    height: min(66%, 300px);
  }

  .hero__scroll {
    display: none;
  }

  .meaning__layout,
  .origin__layout,
  .punjab__layout {
    grid-template-columns: 1fr;
  }

  .punjab__media {
    order: 2;
    aspect-ratio: 16 / 9;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar {
    border-left: 0;
    padding-inline: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255,0.13);
  }

  .pillar:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255,0.13);
    padding-left: 1.25rem;
  }

  .pillar:last-child {
    border-bottom: 0;
    grid-column: 1 / -1;
    border-left: 0;
    padding-left: 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    border-left: 0;
    padding-inline: 0 1rem;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(2n) {
    border-left: 1px solid var(--line);
    padding-left: 1.25rem;
  }

  .stat:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    border-left: 0;
    padding-left: 0;
  }

  .trace {
    grid-template-columns: 1fr;
  }

  .phone {
    display: none;
  }

  .range {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops {
    grid-template-columns: minmax(0, 1fr);
  }

  .record__meta div {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .record__meta div:last-child {
    border-bottom: 0;
  }

  .event {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .event time {
    grid-column: 2;
    padding-top: 0.3rem;
  }

  .punjab__media {
    grid-template-rows: 1fr;
    aspect-ratio: 3 / 2;
  }

  .punjab__media figure:first-child {
    grid-row: span 1;
  }

  .punjab__media figure:nth-child(3) {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .newsletter-form input {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .lockup__mark {
    width: 48px;
    height: 48px;
  }

  .lockup__en {
    font-size: 1.05rem;
    letter-spacing: 0.18em;
  }

  .lockup__sub {
    font-size: 0.5625rem;
    letter-spacing: 0.34em;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   24. Inner pages
   Shared furniture for every page below the homepage: the compact page hero,
   breadcrumbs, long-form prose, feature grids, FAQ and the contact page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   24.1 Page hero
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 40vh, 440px);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  background: var(--green-deep);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(1, 61, 22, 0.92) 0%,
    rgba(1, 61, 22, 0.78) 45%,
    rgba(1, 61, 22, 0.52) 100%
  );
}

.page-hero__inner {
  width: 100%;
}

.page-hero h1 {
  color: var(--ivory);
  font-size: clamp(2.15rem, 4.6vw, 3.6rem);
  max-width: 20ch;
  margin-top: 0.9rem;
}

.page-hero__urdu {
  font-family: var(--nastaliq);
  direction: rtl;
  text-align: left;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--copper-light);
  line-height: 2.1;
  margin-top: 0.5rem;
}

.page-hero__lede {
  color: var(--muted-dark);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  max-width: 56ch;
  margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   24.2 Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.breadcrumb a {
  color: var(--copper-light);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--ivory);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   24.3 Long-form prose
   -------------------------------------------------------------------------- */

.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

.prose > * + * {
  margin-top: 1.15rem;
}

.prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin-top: 2.75rem;
}

.prose h3 {
  color: var(--green);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  margin-top: 2rem;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0.75rem;
}

.prose strong {
  color: var(--green);
  font-weight: 700;
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(2, 164, 61, 0.4);
  transition: text-decoration-color 0.2s var(--ease);
}

.prose a:hover {
  text-decoration-color: var(--brand-green);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.6rem;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.6;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-green);
}

.prose ol {
  counter-reset: prose-list;
}

.prose ol > li {
  counter-increment: prose-list;
}

.prose ol > li::before {
  content: counter(prose-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--brand-green);
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   24.4 Split â€” image beside copy, alternating
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.split + .split {
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.split--flip .split__media {
  order: 2;
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.split__media:hover img {
  transform: scale(1.04);
}

.split__body h2 {
  margin-bottom: 1rem;
}

.split__body p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.split__body p + p {
  margin-top: 0.9rem;
}

.split__body .link-arrow {
  margin-top: 1.35rem;
}

/* --------------------------------------------------------------------------
   24.5 Fact / spec cards
   -------------------------------------------------------------------------- */

/* Three across by default, because most of these blocks hold six cards and
   an auto-fit track was leaving a single orphan on the second row. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.facts--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .facts,
  .facts--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .facts,
  .facts--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brand-green);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.fact__k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--green-soft);
  display: block;
  margin-bottom: 0.7rem;
}

.fact h3 {
  color: var(--green);
  font-size: 1.0625rem;
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.fact p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   24.6 Spec table
   -------------------------------------------------------------------------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.spec caption {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  padding-bottom: 0.9rem;
}

.spec th,
.spec td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec thead th {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

.spec tbody th {
  color: var(--green);
  font-weight: 700;
  width: 34%;
}

.spec td {
  color: var(--muted);
}

.spec td.data {
  color: var(--green);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   24.7 FAQ â€” native <details>, no JS
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 60rem;
}

.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq__item[open] {
  border-color: var(--line-strong);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--brand-green);
  border-bottom: 2px solid var(--brand-green);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq__item > div {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   24.8 Contact page
   -------------------------------------------------------------------------- */

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
}

.contact-card + .contact-card {
  margin-top: 1rem;
}

.contact-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.contact-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: rgba(2, 164, 61, 0.1);
  color: var(--brand-green);
}

.contact-card h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green);
}

.contact-card dl {
  display: grid;
  gap: 0.7rem;
  font-size: 0.9375rem;
}

.contact-card dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-card dd {
  color: var(--green);
  line-height: 1.6;
}

.contact-card a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(2, 164, 61, 0.4);
}

.contact-card a:hover {
  text-decoration-color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   24.9 Form
   -------------------------------------------------------------------------- */

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--black);
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(2, 164, 61, 0.14);
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.form__note {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 32ch;
}

.form__status {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   24.10 Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Media first on narrow screens, whichever side it sat on */
  .split--flip .split__media {
    order: 0;
  }

  .split__media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .page-hero {
    min-height: 0;
    align-items: flex-start;
  }

  .page-hero h1 {
    max-width: none;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .spec tbody th {
    width: 42%;
  }
}


/* ==========================================================================
   25. Inner-page layout corrections
   ========================================================================== */

/* --------------------------------------------------------------------------
   25.1 Article layout

   A prose column capped at 68ch left half the row empty on a wide screen,
   which read as a broken grid rather than as editorial restraint. The aside
   carries an image and a summary card so the row is balanced and the page
   has something to look at between paragraphs.
   -------------------------------------------------------------------------- */

.article {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: start;
}

.article .prose {
  max-width: none;
}

.article__aside {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1.25rem;
}

.article__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.article__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__figure figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--paper);
}

.aside-card {
  background: var(--green-deep);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
}

.aside-card h3 {
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.aside-card dl {
  display: grid;
  gap: 0.85rem;
}

.aside-card dt {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-light);
}

.aside-card dd {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   25.2 Metrics on a dark ground

   The homepage .stat is built for a light section: its label uses --muted,
   which is invisible on deep green. This is the dark-ground equivalent.
   -------------------------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.metric {
  background: var(--green-deep);
  padding: clamp(1.4rem, 2.2vw, 2rem) clamp(1rem, 1.6vw, 1.5rem);
}

.metric__num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 600;
  color: var(--copper-light);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric__label {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   25.3 Spacing corrections
   -------------------------------------------------------------------------- */

/* Splits were drifting far apart on tall pages */
.split + .split {
  margin-top: clamp(2rem, 3.5vw, 3.25rem);
}

/* A section whose content is short does not need the full band of padding */
.section--tight {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.section-head {
  margin-bottom: clamp(2rem, 3vw, 2.75rem);
}

/* --------------------------------------------------------------------------
   25.4 Media band â€” full-width image strip between sections
   -------------------------------------------------------------------------- */

.media-band {
  position: relative;
  height: clamp(220px, 30vw, 380px);
  overflow: hidden;
}

.media-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-band__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem) 0;
  background: linear-gradient(to top, rgba(1, 61, 22, 0.9), transparent);
  color: var(--ivory);
}

.media-band__caption p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   25.5 Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1vw, 1rem);
}

.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem 0.85rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ivory);
  background: linear-gradient(to top, rgba(1, 61, 22, 0.88), transparent);
}

/* --------------------------------------------------------------------------
   25.6 Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .article {
    grid-template-columns: 1fr;
  }

  .article__aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .article__figure {
    aspect-ratio: 4 / 3;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article__aside {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   26. SHAJRA Livestock â€” inventory components
   shajralivestock.com. Same design system as shajrafarms.com; these are the
   pieces that only the inventory site needs.
   ========================================================================== */

/* --------------------------------------------------------------------------
   26.1 Category tiles
   -------------------------------------------------------------------------- */

.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.35rem);
}

.cat {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}

.cat:hover img {
  transform: scale(1.05);
}

.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(1, 61, 22, 0.92) 8%, rgba(1, 61, 22, 0.25) 60%, transparent);
}

.cat__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  color: var(--ivory);
}

.cat__count {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--copper-light);
  display: block;
  margin-bottom: 0.3rem;
}

.cat h3 {
  color: var(--ivory);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  margin-bottom: 0.2rem;
}

.cat p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   26.2 Filter bar
   -------------------------------------------------------------------------- */

.filters {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.filters__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.filters .field label {
  font-size: 0.6875rem;
}

.filters select,
.filters input {
  padding: 0.7rem 0.85rem;
  font-size: 0.875rem;
}

.filters__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.filters__count {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--green);
}

.filters__count b {
  color: var(--brand-green);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--green);
  background: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--brand-green);
}

.chip[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   26.3 Inventory grid + animal card
   -------------------------------------------------------------------------- */

.inv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.animal {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.animal:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.animal__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory-warm);
}

.animal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.animal:hover .animal__media img {
  transform: scale(1.05);
}

.animal__tags {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  background: rgba(1, 61, 22, 0.85);
  color: var(--ivory);
}

.badge--available {
  background: rgba(2, 164, 61, 0.92);
  color: #fff;
}

.badge--reserved {
  background: rgba(184, 111, 63, 0.92);
  color: #fff;
}

.badge--sold {
  background: rgba(32, 39, 36, 0.85);
  color: rgba(255, 255, 255, 0.8);
}

.badge--qurbani {
  background: var(--copper-light);
  color: var(--green-deep);
}

.animal__code {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ivory);
  background: rgba(1, 61, 22, 0.8);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.animal__body {
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.animal__title h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.15rem;
}

.animal__breed {
  font-size: 0.8125rem;
  color: var(--muted);
}

.animal__spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding-block: 0.75rem;
  border-block: 1px solid var(--line);
}

.animal__spec div {
  min-width: 0;
}

.animal__spec dt {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.animal__spec dd {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--green);
}

.animal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
}

.animal__price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green-soft);
}

.animal .btn {
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   26.4 Empty state
   -------------------------------------------------------------------------- */

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty h3 {
  color: var(--green);
  margin-bottom: 0.5rem;
}

.empty p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 40ch;
  margin: 0 auto 1.35rem;
}

/* --------------------------------------------------------------------------
   26.5 Animal detail
   -------------------------------------------------------------------------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.detail h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin-bottom: 0.35rem;
}

.detail__code {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--green-soft);
  margin-bottom: 1.35rem;
}

.detail__enquire {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.detail__note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   26.6 Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cats {
    grid-template-columns: 1fr;
  }

  .inv {
    grid-template-columns: 1fr;
  }

  .filters__row {
    grid-template-columns: 1fr;
  }
}
