/* ============================================================
   VMG Agriculture — Main Stylesheet
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */

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

:root {
  --green:     #1E5A32;
  --green-mid: #164826;
  --dark:      #222222;
  --gray-bg:   #F7F7F7;
  --accent:    #8B6B3E;
  --white:     #FFFFFF;
  --border:    #D8D8D8;
  --text-mid:  #555555;
  --font:      'Inter', system-ui, sans-serif;
  --max-w:     1120px;
  --radius:    4px;
  --section-pad: 72px 24px;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* --- Typography -------------------------------------------- */

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem);    }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem;    }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.25rem;
}

li { margin-bottom: 0.35rem; }

/* --- Layout Utilities -------------------------------------- */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: var(--section-pad);
}

.section--gray {
  background: var(--gray-bg);
}

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

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

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading p {
  max-width: 640px;
  margin-inline: auto;
  color: var(--text-mid);
}

.section--green .section-heading p {
  color: rgba(255,255,255,0.82);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

/* --- Buttons ----------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  line-height: 1.3;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}

.btn--primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  text-decoration: none;
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn--outline:hover {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

.btn--white {
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--white);
}

.btn--white:hover {
  background: var(--gray-bg);
  border-color: var(--gray-bg);
  text-decoration: none;
}

/* --- Header & Navigation ----------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.logo__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.01em;
}

.logo__sub {
  font-size: 0.68rem;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
  background: rgba(30, 90, 50, 0.07);
}

.nav-cta {
  margin-left: 12px;
  padding: 9px 20px;
  font-size: 0.88rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
  gap: 4px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--green);
}

.mobile-nav .btn {
  margin-top: 12px;
  text-align: center;
}

/* --- Hero -------------------------------------------------- */

.hero {
  padding: 80px 24px 80px;
  background: var(--white);
}

.hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  max-width: 720px;
}

.hero__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--dark);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Cards ------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card--gray {
  background: var(--gray-bg);
  border-color: transparent;
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--green);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--green);
}

.card p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* --- Service Blocks ---------------------------------------- */

.service-block {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-block h2 {
  color: var(--green);
  margin-bottom: 14px;
}

.service-block .lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.service-block .two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 40px;
}

.service-block .col-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* --- Projects Grid ----------------------------------------- */

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.project-card h3 {
  color: var(--green);
  margin-bottom: 12px;
}

.project-card ul {
  color: var(--text-mid);
  font-size: 0.93rem;
}

/* --- Page Hero (inner pages) ------------------------------- */

.page-hero {
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--border);
}

.page-hero__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.page-hero__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 640px;
}

/* --- About specifics --------------------------------------- */

.about-distinction {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 8px;
}

.distinction-item {
  padding: 24px;
  border-left: 3px solid var(--green);
  background: var(--gray-bg);
}

.distinction-item h3 {
  color: var(--green);
  margin-bottom: 8px;
}

.distinction-item p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

.leadership-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
}

.leadership-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
}

.leadership-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.leadership-card__title {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.network-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.network-list li {
  background: rgba(30,90,50,0.08);
  color: var(--green);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0;
}

/* --- Contact Form ------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30,90,50,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-aside {
  position: sticky;
  top: 88px;
}

.contact-aside h3 {
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mid);
}

.contact-person {
  margin-bottom: 24px;
}

.contact-person__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.contact-person__title {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.contact-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.contact-detail a {
  color: var(--dark);
}

.contact-detail a:hover {
  color: var(--green);
}

.address-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.address-block strong {
  display: block;
  color: var(--dark);
  margin-bottom: 6px;
}

/* --- Why Section ------------------------------------------- */

.why-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.why-item:last-child {
  border-bottom: none;
}

.why-item__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  min-width: 40px;
  line-height: 1;
  padding-top: 2px;
}

.why-item h3 {
  color: var(--white);
  margin-bottom: 6px;
}

.why-item p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin: 0;
}

/* --- CTA Band ---------------------------------------------- */

.cta-band {
  padding: 64px 24px;
  background: var(--gray-bg);
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Footer ------------------------------------------------ */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}

.footer-brand__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.footer-brand__desc {
  font-size: 0.88rem;
  max-width: 360px;
  line-height: 1.6;
}

.footer-links h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

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

@media (max-width: 768px) {
  :root {
    --section-pad: 48px 20px;
  }

  .main-nav .nav-links,
  .main-nav .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 52px 20px 52px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .contact-aside {
    position: static;
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .leadership-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 36px 20px 32px;
  }
}
