/* AgriNET site styles. Brand greens taken from the Wix site. */
:root {
  --green: #68b04d;
  --green-dark: #216910;
  --ink: #1f2a1c;
  --muted: #5d6658;
  --line: #dfe5da;
  --bg: #ffffff;
  --soft: #f3f7f0;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--green-dark); }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { text-decoration: underline; }
figure { margin: 0; }

/* Header: aerial field photo with the logo and menu on top */
.site-header { background: #1c2a14 url(../images/header-field.jpg) center 40% / cover; }
.site-header .bar { max-width: var(--max); margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.brand img { width: 64px; height: 64px; border-radius: 50%; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 7px 12px; border-radius: 6px;
  background: rgba(0,0,0,.45); }
.nav a:hover { background: var(--green); color: #fff; }
.nav a[aria-current="page"] { background: var(--green-dark); }

/* Page sections */
.content { max-width: var(--max); margin: 0 auto; padding: 28px 16px 48px; }
.page-title { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-title h1 { max-width: var(--max); margin: 0 auto; padding: 26px 16px; color: var(--green-dark); }
.page-title.product { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 18px 16px; }
.page-title.product h1 { margin: 0; padding: 0; }
.pg-icon { width: 96px; height: 96px; border-radius: 14px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.hero { max-width: var(--max); margin: 0 auto; padding: 32px 16px 8px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center; }
.hero .kicker { font-size: 1.2rem; color: var(--muted); margin: 0 0 .4em; }
.hero h1 { color: var(--green-dark); }
.hero-img img { border-radius: 10px; }
.banner { margin-bottom: 28px; }
.banner img, .banner video { border-radius: 8px; margin: 0 auto; display: block; width: 100%; max-width: 1400px; height: auto; }

.btn { display: inline-block; background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
  padding: 11px 22px; border-radius: 6px; border: 2px solid var(--green); }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.outline { background: transparent; color: var(--green-dark); }
.btn.outline:hover { background: var(--green-dark); color: #fff; }
.cta { margin: 1.2em 0 0; }
.links-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 0; }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 8px 0 36px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.tile img { border-radius: 14px; transition: transform .15s; }
.tile:hover img { transform: scale(1.04); }

.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature:last-of-type { border-bottom: 0; }
.feature:nth-of-type(even) .text { order: 2; }
.feature figure img { border-radius: 8px; margin: 0 auto; max-height: 520px; width: auto; }
.feature .text:only-child { grid-column: 1 / -1; }
.feature ul { padding-left: 1.2em; margin: .4em 0 0; }
.feature li { margin: .35em 0; }
.lead-in { font-weight: 600; margin: 0 0 .3em; }

.gallery { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 24px; }
.gallery figure { flex: 1 1 260px; max-width: 520px; }
.gallery img { border-radius: 8px; margin: 0 auto; max-height: 560px; width: auto; }

.quotes { display: grid; gap: 18px; margin: 8px 0 36px; }
blockquote { margin: 0; display: flex; gap: 18px; align-items: flex-start; background: var(--soft);
  border-left: 5px solid var(--green); border-radius: 8px; padding: 18px; }
blockquote img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
blockquote p { margin: 0 0 .6em; font-style: italic; }
blockquote footer { color: var(--muted); font-size: .92rem; }
.logos img { margin: 0 auto; max-width: 900px; width: 100%; }

.prose { max-width: 820px; }
.wide { margin-top: 24px; }
.wide img { border-radius: 8px; }
.wide figcaption { text-align: center; font-weight: 600; margin-top: 10px; color: var(--green-dark); }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { text-align: center; background: var(--soft); border-radius: 10px; padding: 18px; }
.person img { width: 200px; height: 212px; object-fit: cover; border-radius: 10px; margin: 0 auto 12px; }
.person h2 { margin: 0; }
.person .role { font-weight: 700; margin: 2px 0 6px; }
.person p { margin: 0 0 8px; }
.info-box { text-align: center; margin-top: 36px; }
.address { font-size: 1.15rem; }

.site-footer { background: #17220f; color: #d8e3d0; padding: 28px 16px 22px; text-align: center; }
.site-footer .products { max-width: var(--max); margin: 0 auto 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.site-footer .products a { color: #d8e3d0; text-decoration: none; font-size: .82rem; width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1.25; }
.site-footer .products img { width: 72px; height: 72px; border-radius: 10px; }
.site-footer .legal { margin: 6px 0; font-size: .88rem; }
.site-footer a { color: #b6e39f; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .text { order: 0; }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header .bar { justify-content: center; }
  .nav { justify-content: center; }
  .nav a { padding: 6px 9px; font-size: .92rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  blockquote { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Phone layout ---------- */
.menu-btn { display: none; }
.phone-bar { display: none; }
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .site-header .bar { padding: 10px 16px; justify-content: space-between; flex-wrap: wrap; }
  .brand { font-size: 1.3rem; gap: 8px; }
  .brand img { width: 44px; height: 44px; }
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: #fff;
    background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
  .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn .bars::before { top: -6px; } .menu-btn .bars::after { top: 6px; }
  .js .nav { display: none; }
  .js .site-header.open .nav { display: flex; }
  .nav { flex-direction: column; width: 100%; gap: 6px; margin-top: 10px; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; background: rgba(0,0,0,.6); }
  .page-title h1 { padding: 18px 16px; }
  .hero { padding-top: 20px; gap: 16px; }
  .hero .kicker { font-size: 1.05rem; }
  .content { padding-top: 20px; }
  .feature { padding: 18px 0; gap: 14px; }
  .feature figure img, .gallery img { max-height: 360px; }
  .btn { display: block; text-align: center; padding: 14px 18px; }
  .links-row { flex-direction: column; }
  .tiles { gap: 10px; }
  .site-footer .products { gap: 10px; }
  .site-footer .products a { width: 88px; }
  .phone-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--green-dark); box-shadow: 0 -2px 8px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .phone-bar a { color: #fff; text-decoration: none; font-weight: 700; text-align: center; padding: 15px 4px;
    border-right: 1px solid rgba(255,255,255,.25); }
  .phone-bar a:last-child { border-right: 0; }
}
