/*
Theme Name: Zuri Model Farm
Theme URI: https://zurimodelfarm.com/
Author: Zuri Model Farm
Description: Corporate-ready theme for Zuri Model Farm Ltd. Includes Home, About, Produce and Contact templates, a built-in enquiry form and photo uploads in the Customizer.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zuri
*/

:root {
  --green: #0F3D2E;
  --deep: #0A2A20;
  --ink: #10231B;
  --text: #33443B;
  --muted: #566159;
  --line: #DDE5DF;
  --ground: #F6F7F4;
  --sage: #2B6249;
  --accent: #E0A22F;
  --head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, li, a, span { overflow-wrap: break-word; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Shared type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; margin-top: 16px; max-width: 760px; }
.lede { margin-top: 20px; max-width: 640px; color: var(--muted); }
.on-dark .h2, .on-dark h3, .hero h1, .page-hero h1 { color: #fff; }
.on-dark .lede { color: #DCE8E1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 8px; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; transition: opacity .15s; }
.btn:hover { opacity: 0.88; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.55); color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn svg { flex: 0 0 auto; }
.lnk:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--green); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand .custom-logo { max-height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { padding: 10px 0; }
.nav a:hover { text-decoration: underline; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav .btn:hover { text-decoration: none; }

/* Menu button: only shown on phones and tablets, and only when JavaScript is running */
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
.nav-toggle__bars { position: relative; transition: background .15s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; transition: transform .2s; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero (home) */
.hero { background: var(--green); color: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 56px 0 64px; }
.hero h1 { margin-top: 20px; font-size: clamp(32px, 5vw, 60px); line-height: 1.05; font-weight: 800; }
.hero__lede { margin-top: 24px; font-size: 19px; line-height: 1.65; color: #DCE8E1; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; border-top: 1px solid rgba(255,255,255,0.2); }
.stat { padding: 32px 0; }
.stat strong { display: block; font-family: var(--head); font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--accent); }
.stat span { display: block; margin-top: 4px; font-size: 15px; color: #CFE3D8; }

/* Page hero (inner pages) */
.page-hero { background: var(--green); color: #fff; padding: 48px 0 72px; }
.page-hero h1 { margin-top: 16px; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; font-weight: 800; max-width: 820px; }
.page-hero p.lede { color: #DCE8E1; }

/* Sections */
.section { padding: 96px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--deep); color: #fff; }
.section--green { background: var(--green); color: #fff; }

/* Partners band */
.band { background: #fff; border-bottom: 1px solid var(--line); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; padding-top: 36px; padding-bottom: 36px; }
.band__label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.band__names { display: flex; flex-wrap: wrap; gap: 16px 40px; font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.card .num { font-size: 14px; font-weight: 600; color: var(--sage); }
.card h3 { margin-top: 12px; font-size: 22px; }
.card p { margin-top: 10px; font-size: 16px; }

/* Two-column feature (why, split) */
.cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px 80px; align-items: start; }
.rows > div { display: flex; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.rows > div:first-child { padding-top: 0; border-top: 0; }
.rows > div:last-child { padding-bottom: 0; }
.rows .big { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-family: var(--head); font-size: 32px; font-weight: 700; color: var(--sage); line-height: 1.2; }
.rows h3 { font-size: 24px; }
.rows p { margin-top: 8px; }

/* Ways / outlined cards on dark */
.outline-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 48px; }
.outline-card { border: 1px solid rgba(255,255,255,0.22); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.outline-card h3 { font-size: 24px; }
.outline-card p { color: #CFE3D8; font-size: 16px; }
.outline-card a { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--accent); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; margin-top: 48px; }
.timeline > div { border-top: 3px solid var(--accent); padding-top: 24px; }
.timeline h3 { font-size: 36px; }
.timeline h4 { margin-top: 12px; font-size: 20px; }
.timeline p { margin-top: 8px; font-size: 16px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-top: 48px; }
.person { background: var(--ground); border-radius: 16px; padding: 28px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--green); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 20px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-top: 20px; font-size: 22px; }
.person .role { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--sage); }
.person p.bio { margin-top: 12px; font-size: 16px; }

/* Quote */
.quote { max-width: 900px; }
.quote .bar { width: 56px; height: 4px; background: var(--accent); border-radius: 2px; }
.quote blockquote { margin: 32px 0 0; font-family: var(--head); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.quote .who { margin-top: 24px; font-weight: 600; color: var(--ink); }
.quote .what { font-size: 15px; color: var(--muted); }

/* Photos */
.photo { border-radius: 16px; overflow: hidden; background: #DCE5DE; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { height: 460px; border-radius: 20px; }
.photo--wide { aspect-ratio: 4 / 3; }
.photo--short { height: 260px; }
.photo--placeholder { display: flex; align-items: flex-end; padding: 20px; }
.photo--placeholder p { font-size: 14px; color: #3D5247; font-weight: 500; }
.photo--dark { background: #1B5A44; }
.photo--dark.photo--placeholder p { color: #CFE3D8; }

/* Split rows (produce) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.split + .split { border-top: 1px solid var(--line); }
.split--reverse .split__media { order: 2; }
.split h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin-top: 8px; }
.split p.intro { margin-top: 16px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; }
.ticks li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--accent); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px 80px; align-items: start; }
.details { display: grid; gap: 24px; margin-top: 40px; }
.details > div { display: flex; gap: 16px; color: #DCE8E1; }
.details svg { flex: 0 0 auto; margin-top: 4px; }
.form { background: #fff; color: var(--text); border-radius: 20px; padding: 36px; display: grid; gap: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #7C8F83; border-radius: 8px; font-family: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(224,162,47,0.55); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { border-radius: 10px; padding: 14px 16px; font-size: 15px; font-weight: 500; }
.notice--ok { background: #E4F1E9; color: var(--green); }
.notice--err { background: #FBE9E7; color: #7A1F14; }

/* Footer */
.site-footer { background: var(--deep); color: #CFE3D8; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.site-footer__name { font-family: var(--head); font-weight: 700; font-size: 20px; color: #fff; }
.site-footer__tag { margin-top: 8px; font-size: 15px; max-width: 360px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.site-footer nav a { padding: 8px 0; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; padding-bottom: 32px; font-size: 14px; }

/* Generic content */
.prose { max-width: 760px; padding: 72px 0; }
.prose h1 { font-size: 40px; margin-bottom: 24px; }
.prose h2 { font-size: 28px; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }

/* Responsive: tablets and phones */
@media (max-width: 860px) {
  .hero__grid, .cols, .split, .contact { grid-template-columns: 1fr; }
  .hero__grid { gap: 40px; padding: 40px 0 48px; }
  .cols, .contact { gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .section { padding: 64px 0; }
  .photo--tall { height: 320px; }
  .form { padding: 24px; }

  /* Header: brand and Menu button on one row, links drop down underneath */
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; gap: 8px 16px; }
  .brand { font-size: 18px; min-width: 0; }
  .brand .custom-logo { max-height: 40px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding-top: 8px; }
  .js .site-header.is-open .nav { display: flex; }
  .js .nav a:not(.btn) { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.15); font-size: 17px; }
  .js .nav .btn { margin-top: 12px; justify-content: center; min-height: 48px; font-size: 16px; }
}

/* Responsive: phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 52px 0; }
  .page-hero { padding: 32px 0 48px; }

  .hero__grid { gap: 32px; padding: 32px 0 40px; }
  .hero__lede { font-size: 17px; margin-top: 20px; }
  .hero__actions { flex-direction: column; gap: 12px; margin-top: 28px; }
  .hero__actions .btn, .form .btn, .section--dark > .wrap > .btn { width: 100%; justify-content: center; }
  .photo--tall { height: 240px; }
  .photo--short { height: 200px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .stat { padding: 20px 0; }
  .stat strong { font-size: 32px; }
  .stat span { font-size: 14px; }

  .band .wrap { padding-top: 28px; padding-bottom: 28px; gap: 14px; }
  .band__names { gap: 10px 24px; font-size: 17px; }

  .cards, .outline-cards, .timeline, .team { margin-top: 32px; }
  .card, .person { padding: 22px; }
  .outline-card { padding: 24px; }
  .outline-card h3 { font-size: 21px; }
  .timeline { gap: 28px; }
  .timeline h3 { font-size: 30px; }

  .rows > div { gap: 16px; padding: 24px 0; }
  .rows .big { font-size: 26px; }
  .rows h3 { font-size: 20px; }

  .split { gap: 24px; padding: 32px 0; }
  .details { margin-top: 28px; gap: 20px; }
  .form { padding: 20px; border-radius: 16px; gap: 16px; }

  .site-footer__top { padding-top: 36px; padding-bottom: 32px; gap: 20px; }
  .prose { padding: 40px 0; }
  .prose h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { transition: none; }
}
