/* ==========================================================
   MANKOO AGRO INDUSTRIES — Global Stylesheet
   ========================================================== */
:root {
  --red: #d81f26;
  --red-dark: #a4141a;
  --ink: #14161a;
  --ink-soft: #2a2e35;
  --steel: #6b7280;
  --line: #e2e5ea;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 22, 26, .09);
  --wrap: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cond: "Arial Narrow", "Roboto Condensed", Impact, var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.65; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--cond); letter-spacing: .5px; line-height: 1.12; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.center { text-align: center; }
.lead { font-size: 1.07rem; color: var(--ink-soft); max-width: 780px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-family: var(--cond); text-transform: uppercase;
  letter-spacing: 3px; font-size: .8rem; color: var(--red); font-weight: 700; margin-bottom: 8px;
}
.rule { width: 64px; height: 4px; background: var(--red); border-radius: 2px; margin: 0 0 22px; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px; font-weight: 700;
  font-size: .93rem; letter-spacing: .6px; text-transform: uppercase; border: 2px solid transparent;
  cursor: pointer; transition: .2s ease; font-family: var(--font);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Topbar / Header ---------- */
.topbar { background: var(--ink); color: #cfd3da; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar span + span { margin-left: 18px; }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand-text strong { display: block; font-family: var(--cond); font-size: 1.28rem; text-transform: uppercase; color: var(--ink); letter-spacing: .5px; }
.brand-text small { color: var(--steel); font-size: .72rem; letter-spacing: 1.6px; text-transform: uppercase; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: 10px 13px; white-space: nowrap; color: var(--ink); font-weight: 600; font-size: .92rem;
  border-radius: 6px;
}
.nav a:hover { background: var(--bg-alt); color: var(--red); }
.nav a.active { color: var(--red); }
.nav a.nav-cta { background: var(--red); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--red-dark); color: #fff; }
.menu-toggle {
  display: none; background: var(--ink); color: #fff; border: 0; border-radius: 6px;
  padding: 10px 13px; font-size: 1.15rem; cursor: pointer; line-height: 1;
}

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--ink); overflow: hidden; padding: 20px 0 38px; }
.slides { position: relative; max-width: 1600px; margin: 0 auto; }
.slide { display: none; position: relative; }
.slide.is-active { display: block; animation: fade .6s ease; }
.slide-bg {
  position: absolute; inset: -20px 0 -38px; background-size: cover; background-position: center;
  filter: blur(30px) brightness(.3) saturate(.6); transform: scale(1.15); z-index: 0;
}
.slide img { position: relative; z-index: 1; box-shadow: 0 18px 46px rgba(0,0,0,.45); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.slide img {
  display: block; margin: 0 auto; width: auto; max-width: 100%;
  height: clamp(200px, 30vw, 470px); object-fit: contain;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20,22,26,.55);
  color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.05rem;
  cursor: pointer; transition: background .2s ease; z-index: 2;
}
.slider-btn:hover { background: var(--red); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: transparent; padding: 0; cursor: pointer; }
.slider-dots button.is-active { background: var(--red); border-color: var(--red); }
@media (max-width: 860px) {
  .hero { padding: 12px 0 28px; }
  .slide img { height: auto; width: 100%; }
  .slider-btn { width: 32px; height: 32px; font-size: .9rem; }
  .slider-dots { bottom: 8px; }
}

.hero-cta { background: var(--ink); color: #fff; padding: 26px 0; }
.hero-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hero-cta h2 { margin: 0; color: #fff; }
.hero-cta p { margin: 4px 0 0; color: #b9bec7; }

/* ---------- Page banner ---------- */
.page-banner { background: linear-gradient(100deg, var(--ink) 0%, #33383f 100%); color: #fff; padding: 56px 0; border-bottom: 5px solid var(--red); }
.page-banner h1 { margin: 0; color: #fff; }
.page-banner p { margin: 8px 0 0; color: #c3c8d0; }
.crumbs { font-size: .85rem; color: #9aa1ab; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s ease; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #d3d8df; }
.card .thumb { background: var(--bg-alt); display: flex; align-items: center; justify-content: center; padding: 14px; min-height: 150px; }
.card .thumb img { max-height: 140px; object-fit: contain; width: auto; }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--steel); font-size: .9rem; flex: 1; }
.tag { display: inline-block; font-size: .7rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--red); font-weight: 700; }

.feature { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--steel); font-size: .93rem; }
.icon-dot { width: 42px; height: 42px; border-radius: 50%; background: rgba(216,31,38,.1); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; font-family: var(--cond); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px 12px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.stat strong { display: block; font-family: var(--cond); font-size: 2.2rem; color: #fff; }
.stat span { color: #adb3bc; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.4px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.ticks { list-style: none; margin: 0 0 1rem; padding: 0; }
.ticks li { padding: 7px 0 7px 30px; position: relative; }
.ticks li::before { content: "\2714"; position: absolute; left: 0; top: 7px; color: var(--red); font-weight: 700; }

table.spec { width: 100%; border-collapse: collapse; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .94rem; }
table.spec th { width: 40%; background: var(--bg-alt); font-weight: 700; }

/* ---------- Toolbar (search / filter) ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.toolbar input[type="search"] { flex: 1; min-width: 240px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 6px; font-size: .95rem; font-family: var(--font); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 15px; border-radius: 40px; font-size: .85rem; cursor: pointer; font-weight: 600; }
.chip.is-active, .chip:hover { background: var(--red); border-color: var(--red); color: #fff; }
.empty { display: none; text-align: center; color: var(--steel); padding: 30px 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--ink); }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; transition: .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); opacity: .9; }

.lightbox { position: fixed; inset: 0; background: rgba(10,11,13,.93); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-nav.prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #e7e9ec; font-size: .9rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: .95rem; font-family: var(--font); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(216,31,38,.35); border-color: var(--red); }
.field textarea { min-height: 120px; resize: vertical; }
.field .error { color: var(--red); font-size: .8rem; display: none; margin-top: 5px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error .error { display: block; }
.form-note { font-size: .85rem; color: var(--steel); }
.alert { display: none; padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; font-size: .92rem; }
.alert.show { display: block; }
.alert-success { background: #e8f6ec; border: 1px solid #b7e0c3; color: #1c6b34; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li strong { display: block; font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--steel); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b6bcc5; padding: 58px 0 0; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer a { color: #b6bcc5; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: .93rem; }
.footer-brand img { height: 74px; background: #fff; border-radius: 8px; padding: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; background: #1faa54; color: #fff;
  border-radius: 40px; padding: 12px 18px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow);
}
.wa-float:hover { background: #17853f; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.nav-cta { margin: 10px 0 0; text-align: center; border-radius: 6px; }
  .site-header { position: relative; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4, .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .brand img { height: 46px; }
  .brand-text strong { font-size: 1.05rem; }
}

/* ---------- Location map ---------- */
.map-card {
  margin-top: 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.08); background: #fff;
}
.map-frame { position: relative; width: 100%; min-height: 380px; background: #e9ecef; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(.95); }
.map-info { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.map-info h3 { margin: 0 0 8px; }
.map-info p { margin: 0 0 14px; color: var(--muted, #5b6169); }
.map-info .info-list { margin-bottom: 18px; }
@media (max-width: 900px) {
  .map-card { grid-template-columns: 1fr; }
  .map-frame { min-height: 0; aspect-ratio: 4 / 3; }
  .map-info { padding: 22px 18px; }
}
@media (max-width: 520px) {
  .map-frame { aspect-ratio: 1 / 1; }
  .map-info .btn-row .btn { width: 100%; text-align: center; }
}
