/* ==========================================================================
   Minhas Agriculture Farm — Core stylesheet
   Chakwal, Punjab, Pakistan
   Developed by EV Lataa Oy
   ========================================================================== */

:root {
  --green-900: #14331f;
  --green-800: #1c4a2b;
  --green-700: #24603a;
  --green-600: #2f7d49;
  --green-500: #3f9d5e;
  --green-100: #e7f3ea;
  --green-050: #f3f9f5;
  --wheat-600: #b8860b;
  --wheat-500: #d9a520;
  --wheat-100: #fbf1d8;
  --ink: #1a1c1a;
  --body: #4a524c;
  --muted: #7b857e;
  --line: #dde5df;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 51, 31, .06), 0 2px 8px rgba(20, 51, 31, .05);
  --shadow-md: 0 4px 12px rgba(20, 51, 31, .08), 0 12px 32px rgba(20, 51, 31, .07);
  --radius: 10px;
  --wrap: 1140px;
  --ff-head: Georgia, "Times New Roman", serif;
  --ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--green-900);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); text-decoration: underline; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 76px 0; }
.section--tint { background: var(--green-050); }
.section--band { background: var(--green-900); color: #c9dbcf; }
.section--band h2, .section--band h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: .8em;
}
.section--band .eyebrow { color: var(--wheat-500); }

.lead { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.btn--primary:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--green-900); border-color: #fff; }
.btn--outline { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn--outline:hover { border-color: var(--green-600); color: var(--green-800); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--ff-head);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--green-900);
}
.brand__tag {
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 9px 15px;
  color: var(--green-900);
  font-weight: 600;
  font-size: .93rem;
  border-radius: 5px;
}
.nav a:hover { background: var(--green-100); text-decoration: none; }
.nav a.is-active { color: var(--green-600); }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--green-500);
  margin-top: 4px;
  border-radius: 2px;
}
.nav .btn { margin-left: 12px; padding: 10px 20px; color: #fff; }
.nav .btn:hover { background: var(--green-800); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 11px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-900);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(105deg, rgba(20,51,31,.94) 0%, rgba(28,74,43,.86) 45%, rgba(47,125,73,.60) 100%),
    url("../img/field.svg") center/cover no-repeat,
    var(--green-800);
  color: #d6e6db;
  padding: 104px 0 96px;
}
.hero__inner { max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero p { font-size: 1.12rem; color: #cfe1d5; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px 46px;
  margin-top: 56px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__meta strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.85rem;
  color: var(--wheat-500);
  line-height: 1.1;
}
.hero__meta span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #b6cbbd; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(100deg, var(--green-900), var(--green-700));
  color: #cfe1d5;
  padding: 62px 0 58px;
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { max-width: 640px; margin: 0; color: #cfe1d5; }
.crumbs { font-size: .82rem; color: #9dbaa8; margin-bottom: 14px; }
.crumbs a { color: #cfe1d5; }
.crumbs span { opacity: .6; padding: 0 6px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c5d8cb; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--green-100);
}
.split__media svg { width: 100%; height: auto; display: block; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-100);
}
.section--band .ticks li::before { box-shadow: 0 0 0 4px rgba(255,255,255,.09); }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
thead th { background: var(--green-050); color: var(--green-900); font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--green-050); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stats div { background: #fff; padding: 28px 22px; text-align: center; }
.stats strong { display: block; font-family: var(--ff-head); font-size: 2rem; color: var(--green-700); line-height: 1.1; }
.stats span { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(100deg, var(--green-800), var(--green-600));
  color: #e2efe7;
  border-radius: var(--radius);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; max-width: 560px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--green-900); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .84rem; color: var(--muted); }

.form-status {
  display: none;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: .92rem;
  margin-bottom: 18px;
  background: var(--green-100);
  border: 1px solid #bcdcc6;
  color: var(--green-800);
}
.form-status.is-visible { display: block; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--green-600); margin-top: 4px; }
.info-list strong { display: block; color: var(--green-900); font-size: .93rem; }
.info-list span, .info-list a { font-size: .93rem; }

/* ---------- Map card (Google Maps embed + directions) ---------- */
.map-card {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.map-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--green-050);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-card__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--green-050);
}
.map-pin { width: 26px; height: 33px; flex: 0 0 26px; }
.map-card__text { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.map-card__text strong { display: block; color: var(--green-900); font-size: .95rem; }
.map-card__text span { font-size: .8rem; color: var(--muted); }
.map-card__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: .88rem;
  background: #fff;
}
.map-card__btn svg { width: 16px; height: 16px; }
.map-card__btn:hover { text-decoration: none; }

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 4 / 3) {
  .map-embed { height: 300px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #a9c3b3; padding: 62px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 {
  color: #fff;
  font-family: var(--ff-body);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer a { color: #a9c3b3; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #7f9c8b; }
.footer-brand p { margin-top: 16px; max-width: 300px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.11);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #86a493;
}
.footer-bottom .dev a { color: #cbdcd2; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Collapse the navigation to a menu button before the links start wrapping */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav a.is-active::after { display: none; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .site-header { position: relative; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 76px 0 68px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta { padding: 38px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-card__foot { flex-wrap: wrap; }
  .map-card__btn { width: 100%; justify-content: center; margin-top: 4px; }
  .hero__meta { gap: 22px 34px; }
}
