/*
  IMENA COMMODITIES: brand override stylesheet
  Layered after templatemo-plot-listing.css. Maps the template's slate
  palette to the Imena brand and adds components used by the extended
  pages: page headings, stat strips, data tables, timelines, product
  cards, CTA bands, gallery grid and the investor gate.

  Brand tokens (from the Imena logo):
    --imena-green        #4A5B27  (gear olive green)
    --imena-green-dark   #33401B  (deep olive, footers and bands)
    --imena-orange       #E8871E  (wheat orange)
    --imena-orange-soft  #F5A623  (highlight orange)
    --imena-cream        #F7F5EE  (warm section background)
    --imena-ink          #23281B  (body headings)
*/

:root {
  --imena-green: #4A5B27;
  --imena-green-dark: #33401B;
  --imena-orange: #E8871E;
  --imena-orange-soft: #F5A623;
  --imena-cream: #F7F5EE;
  --imena-ink: #23281B;
}

/* ---------------------------------------------------------------------
   1. Global re-tint: replace template slate (#8d99af / #2b2d42)
   --------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 { color: var(--imena-ink); }

a { color: var(--imena-green); }
a:hover { color: var(--imena-orange); }

::selection { background: var(--imena-orange); color: #fff; }

/* Header + navigation */
.header-area .main-nav .nav li a.active,
.background-header .main-nav .nav li a.active { color: var(--imena-orange-soft) !important; }

.header-area.background-header { background-color: rgba(51, 64, 27, 0.97); }

/* The template styles the last nav item as a standalone CTA button; with
   no Investor Portal button, "Contact" is now last and should look and
   read exactly like every other nav link, at every width. */
.header-area .main-nav .nav li:last-child a,
.background-header .main-nav .nav li:last-child a {
  padding: 0 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
}
/* The color/hover-background reset only matters for the inline desktop
   nav — the mobile dropdown already colors every row identically. */
@media (min-width: 1200px) {
  .header-area .main-nav .nav li:last-child a,
  .background-header .main-nav .nav li:last-child a {
    color: #fff !important;
  }
  .background-header .main-nav .nav li:last-child a { color: #1e1e1e !important; }
  .header-area .main-nav .nav li:last-child a:hover,
  .header-area .main-nav .nav li:last-child a.active,
  .background-header .main-nav .nav li:last-child a:hover,
  .background-header .main-nav .nav li:last-child a.active {
    background-color: transparent !important;
    color: var(--imena-orange-soft) !important;
  }
}

/* Header shrinks as soon as it picks up a background, and slides fully
   out of view on scroll-down, reappearing on scroll-up. */
.header-area {
  transition: transform 0.35s ease, background-color 0.35s ease, height 0.35s ease;
}
.header-area.header-hidden { transform: translateY(-100%); }
.header-area.background-header .imena-logo { padding-top: 6px; padding-bottom: 6px; }
.header-area.background-header .imena-wordmark { font-size: clamp(18px, 2vw, 22px); }

/* Logo and nav share one true flex row on desktop so they can never wrap
   onto separate lines — the float-based template layout is what caused
   the nav to drop below the logo whenever the row ran tight on width. */
@media (min-width: 1200px) {
  .header-area .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .header-area .main-nav a.logo { margin-top: 0; flex-shrink: 0; }
  .header-area .main-nav .nav {
    float: none; margin-top: 0; flex-shrink: 1;
    flex-grow: 1; justify-content: flex-end;
    margin-left: 20px;
  }
  .header-area .main-nav .lang-switch { flex-shrink: 0; margin-left: 26px; }
}
.header-area .main-nav .nav { flex-wrap: nowrap; }
.header-area .main-nav .nav li { padding-left: 13px; padding-right: 13px; }
.header-area .main-nav .nav li a {
  font-size: clamp(12px, 0.85vw, 14px);
  white-space: nowrap;
}

/* Products submenu: reuse the template's has-sub/sub-menu hover-dropdown
   (desktop) and always-expanded inline flyout (mobile) — no extra JS. */
.header-area .main-nav .nav li.has-sub ul.sub-menu li a {
  text-transform: none;
  font-weight: 500;
}

/* Language switch: a small pill, deliberately outside <ul class="nav"> so
   it never inherits the nav's own :last-child CTA styling. */
.main-nav .lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.main-nav .lang-switch:hover {
  background: var(--imena-orange);
  border-color: var(--imena-orange);
  color: #fff !important;
}
.background-header .main-nav .lang-switch {
  color: var(--imena-ink) !important;
  border-color: rgba(35, 40, 27, 0.25);
  background: rgba(35, 40, 27, 0.05);
}
.background-header .main-nav .lang-switch:hover {
  background: var(--imena-orange);
  border-color: var(--imena-orange);
  color: #fff !important;
}
@media (max-width: 1199px) {
  .header-area .main-nav .lang-switch {
    position: absolute;
    right: 88px;
    top: 32px;
    margin: 0;
    padding: 5px 12px;
    font-size: 11px;
  }
  .background-header .main-nav .lang-switch { top: 22px; }
}
@media (max-width: 480px) {
  .header-area .main-nav .lang-switch { right: 78px; padding: 4px 10px; font-size: 10px; }
}

/* ---------------------------------------------------------------------
   Minimal wordmark logo: text-only, brand colors, white chip only.
   No emblem/graphic in the header — kept deliberately sparse per brand
   guidance. The full illustrated mark (gear + wheat) stays on the
   footer's white card and the favicon/OG image only.
   --------------------------------------------------------------------- */
.header-area .main-nav a.logo,
.background-header .main-nav a.logo {
  background-image: none !important;
  width: auto;
  height: auto;
}
.imena-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  margin-top: 18px;
  line-height: 1;
}
.imena-wordmark {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: 0.5px;
  color: var(--imena-green);
  white-space: nowrap;
}
.imena-wordmark .accent-dot { color: var(--imena-orange); font-style: normal; }
.imena-wordmark .suffix {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--imena-green);
  opacity: 0.6;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .imena-logo { padding: 8px 14px; margin-top: 20px; }
  .imena-wordmark .suffix { display: none; }
}

/* Full illustrated mark (gear + wheat): used sparingly, on white only —
   About and Contact pages, as the company's official seal. */
.brand-seal {
  display: inline-block;
  background: #fff;
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 10px 30px rgba(35, 40, 27, 0.08);
  margin-bottom: 28px;
}
.brand-seal img { max-width: 200px; width: 100%; display: block; }

/* Buttons */
.main-white-button a i { color: var(--imena-green); }
.border-button a {
  border-color: var(--imena-green);
  color: var(--imena-green);
}
.border-button a:hover { background-color: var(--imena-green); color: #fff; }

/* ---------------------------------------------------------------------
   2. Hero banner and inner page headings
   --------------------------------------------------------------------- */

.main-banner {
  /* REPLACE IMAGE: assets/images/banner-bg.jpg
     Suggested Canva/stock search: "aerial maize field africa sunrise",
     export 1920x1080 JPG, keep under 400 KB */
  position: relative;
}
.main-banner:before,
.page-heading:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 40, 27, 0.72) 0%, rgba(51, 64, 27, 0.55) 100%);
}
.main-banner .container, .page-heading .container { position: relative; z-index: 2; }
.main-banner .top-text h6 {
  color: var(--imena-orange-soft);
  letter-spacing: 2px;
  font-weight: 700;
}

/* Category chips under the hero headline */
.main-banner ul.categories li a { font-weight: 600; }
.main-banner ul.categories li .icon {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.main-banner ul.categories li a:hover .icon { background-color: var(--imena-orange); }

/* Inner page heading band */
.page-heading {
  background-image: url(../images/heading-bg.jpg);
  /* REPLACE IMAGE: assets/images/heading-bg.jpg
     Suggested search: "green farmland rows drone view", 1920x600 JPG */
  background-size: cover;
  background-position: center;
  padding: 210px 0 90px 0;
  position: relative;
}
.page-heading h6 { color: var(--imena-orange-soft); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.page-heading h2 { color: #fff; font-size: 42px; font-weight: 800; margin-top: 12px; text-transform: capitalize; }
.breadcrumb-trail { margin-top: 18px; color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; }
.breadcrumb-trail a { color: rgba(255,255,255,0.85); }
.breadcrumb-trail a:hover { color: var(--imena-orange-soft); }
.breadcrumb-trail em { color: var(--imena-orange-soft); font-style: normal; }
.breadcrumb-trail span { margin: 0 8px; color: rgba(255,255,255,0.5); }

/* ---------------------------------------------------------------------
   3. Section scaffolding
   --------------------------------------------------------------------- */

.imena-section { padding: 100px 0; }
.imena-section.cream { background-color: var(--imena-cream); }
.imena-section.dark { background-color: var(--imena-green-dark); }
.imena-section.dark h2, .imena-section.dark h3, .imena-section.dark h4, .imena-section.dark p { color: #fff; }

.section-heading-imena { margin-bottom: 50px; }
.section-heading-imena h6 {
  color: var(--imena-orange);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-heading-imena h2 { font-size: 34px; font-weight: 800; margin-top: 10px; line-height: 1.3; }
.section-heading-imena p.lead-in { margin-top: 18px; font-size: 16px; color: #4a4a4a; max-width: 760px; }
.text-center .section-heading-imena p.lead-in { margin-left: auto; margin-right: auto; }

.imena-section p { font-size: 15px; line-height: 1.9; color: #3d3d3d; }
.imena-section.dark p { color: rgba(255,255,255,0.85); }

/* ---------------------------------------------------------------------
   4. Stat strip
   --------------------------------------------------------------------- */

.stat-strip { background-color: var(--imena-green); padding: 60px 0; }
.stat-strip .stat h3 { color: #fff; font-size: 40px; font-weight: 800; margin-bottom: 6px; }
.stat-strip .stat h3 span { color: var(--imena-orange-soft); }
.stat-strip .stat p { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.stat-strip .stat { text-align: center; padding: 15px 0; }

/* ---------------------------------------------------------------------
   5. Cards: products, values, pillars
   --------------------------------------------------------------------- */

.imena-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(35, 40, 27, 0.08);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
}
.imena-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(35, 40, 27, 0.14); }
.imena-card .card-image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.imena-card .card-body-imena { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.imena-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.imena-card p { font-size: 14px; line-height: 1.8; color: #4a4a4a; flex: 1; }
.imena-card .card-link { color: var(--imena-orange); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-top: 16px; display: inline-block; }
.imena-card .card-link:hover { color: var(--imena-green); }
.imena-card .card-tag {
  display: inline-block;
  background: var(--imena-cream);
  color: var(--imena-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* Icon feature blocks */
.feature-block { text-align: center; padding: 40px 26px; background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(35,40,27,0.07); margin-bottom: 30px; height: calc(100% - 30px); }
.feature-block .icon-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--imena-cream);
  color: var(--imena-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 22px auto;
}
.feature-block h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.feature-block p { font-size: 14px; line-height: 1.8; color: #4a4a4a; margin: 0; }

/* ---------------------------------------------------------------------
   6. Timeline (About page history)
   --------------------------------------------------------------------- */

.imena-timeline { position: relative; padding-left: 34px; }
.imena-timeline:before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 3px; background: linear-gradient(var(--imena-orange), var(--imena-green));
  border-radius: 3px;
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:before {
  content: ""; position: absolute; left: -31px; top: 6px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 4px solid var(--imena-orange);
}
.timeline-item h5 { font-size: 15px; font-weight: 800; color: var(--imena-orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.timeline-item h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }

/* ---------------------------------------------------------------------
   7. Data tables (Investor portal)
   --------------------------------------------------------------------- */

.imena-table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(35,40,27,0.08); margin-bottom: 40px; }
table.imena-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.imena-table caption {
  caption-side: top; text-align: left; padding: 20px 24px 6px 24px;
  font-size: 18px; font-weight: 800; color: var(--imena-ink);
}
table.imena-table th {
  background: var(--imena-green); color: #fff; text-align: left;
  padding: 14px 24px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}
table.imena-table td { padding: 13px 24px; border-bottom: 1px solid #eee; font-size: 14px; color: #3d3d3d; }
table.imena-table tr:last-child td { border-bottom: none; }
table.imena-table tr.subtotal td { background: var(--imena-cream); font-weight: 700; color: var(--imena-ink); }
table.imena-table tr.grand td { background: var(--imena-green-dark); color: #fff; font-weight: 800; }
table.imena-table tr.highlight td { background: #FDF3E3; font-weight: 700; }
table.imena-table td.num, table.imena-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.figure-note { font-size: 13px; color: #6a6a6a; margin-top: -25px; margin-bottom: 45px; line-height: 1.7; }

/* ---------------------------------------------------------------------
   8. CTA band
   --------------------------------------------------------------------- */

.cta-band { background: linear-gradient(120deg, var(--imena-green-dark), var(--imena-green)); padding: 70px 0; }
.cta-band h3 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.8; margin: 0; }
.cta-band .main-white-button a { background: var(--imena-orange); color: #fff; }
.cta-band .main-white-button a i { color: #fff; }
.cta-band .main-white-button a:hover { background: var(--imena-orange-soft); }
@media (max-width: 991px) { .cta-band .main-white-button { margin-top: 28px; } }

/* ---------------------------------------------------------------------
   10. Contact page
   --------------------------------------------------------------------- */

.contact-info-card { background: #fff; border-radius: 20px; padding: 34px; box-shadow: 0 10px 30px rgba(35,40,27,0.08); margin-bottom: 30px; }
.contact-info-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.contact-info-card i { color: var(--imena-orange); margin-right: 10px; }
.contact-info-card p { margin: 0; font-size: 14px; line-height: 1.9; }

#contact-form input, #contact-form textarea, #contact-form select {
  width: 100%; border: 1px solid #ddd; border-radius: 12px;
  padding: 14px 18px; font-size: 14px; margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif; outline: none;
  transition: border-color 0.2s ease;
  background: #fff;
}
#contact-form input:focus, #contact-form textarea:focus, #contact-form select:focus { border-color: var(--imena-green); }
#contact-form button {
  background: var(--imena-orange); color: #fff; border: none;
  padding: 15px 40px; border-radius: 30px; font-weight: 700;
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: background 0.25s ease;
  font-family: 'Montserrat', sans-serif;
}
#contact-form button:hover { background: var(--imena-orange-soft); }
#contact-form button:disabled { background: #b7b7b7; cursor: wait; }
.form-status { display: none; padding: 15px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-top: 5px; }
.form-status.success { display: block; background: #EAF3E0; color: var(--imena-green-dark); }
.form-status.error { display: block; background: #FBE8E8; color: #8a2b2b; }

/* Disclaimer block used on the Partners page figures */
.disclaimer-box {
  background: var(--imena-cream); border-left: 5px solid var(--imena-orange);
  border-radius: 0 14px 14px 0; padding: 24px 28px; margin: 40px 0 0 0;
}
.disclaimer-box p { font-size: 13px; color: #5a5a5a; line-height: 1.8; margin: 0; }

/* Investor snapshot card: sticky sales summary beside the season narrative */
.investor-cta-card {
  background: linear-gradient(160deg, var(--imena-green-dark), var(--imena-green));
  border-radius: 22px;
  padding: 36px 34px;
  color: #fff;
  box-shadow: 0 20px 45px rgba(35, 40, 27, 0.18);
  position: sticky;
  top: 120px;
}
.investor-cta-card h6 {
  color: var(--imena-orange-soft); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.investor-cta-card h3 { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.35; margin-bottom: 26px; }
.investor-cta-figures { list-style: none; margin: 0 0 28px 0; padding: 0; }
.investor-cta-figures li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.investor-cta-figures li:first-child { padding-top: 0; }
.investor-cta-figures li span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.65); }
.investor-cta-figures li strong { font-size: 18px; font-weight: 800; color: #fff; }
.investor-cta-figures li strong em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--imena-orange-soft); }
.investor-cta-button { display: block; margin-bottom: 16px; }
.investor-cta-button a {
  display: block; width: 100%; text-align: center;
  background: var(--imena-orange); color: #fff !important;
}
.investor-cta-button a i { background-color: rgba(255,255,255,0.25); color: #fff; }
.investor-cta-button a:hover { background: var(--imena-orange-soft); }
.investor-cta-secondary {
  display: block; text-align: center; color: rgba(255,255,255,0.85) !important;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.investor-cta-secondary:hover { color: var(--imena-orange-soft) !important; }
.investor-cta-note { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.7; margin: 0; }
@media (max-width: 991px) {
  .investor-cta-card { position: static; margin-top: 40px; }
}

/* ---------------------------------------------------------------------
   12. Footer re-tint
   --------------------------------------------------------------------- */

footer { background: var(--imena-green-dark); border-top: none; padding-top: 80px; }
footer h4 { color: var(--imena-orange-soft); }
footer p, footer a { color: rgba(255,255,255,0.8); }
footer a:hover { color: var(--imena-orange-soft); }
footer .logo-card { background: #fff; border-radius: 14px; padding: 14px 20px; display: inline-block; margin-bottom: 24px; }
footer .logo-card img { max-width: 170px; display: block; }
footer .reg-line { font-size: 12px; color: rgba(255,255,255,0.55); }
footer .sub-footer { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 50px; padding: 25px 0; }
footer .sub-footer p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------------------
   13. Checklist and equipment list styling
   --------------------------------------------------------------------- */

ul.imena-list { list-style: none; padding: 0; margin: 0; }
ul.imena-list li { position: relative; padding-left: 32px; margin-bottom: 14px; font-size: 15px; line-height: 1.8; color: #3d3d3d; }
ul.imena-list li:before {
  content: "\f00c"; font-family: 'FontAwesome'; position: absolute; left: 0; top: 1px;
  color: var(--imena-orange); font-size: 15px;
}
.imena-section.dark ul.imena-list li { color: rgba(255,255,255,0.85); }

/* ---------------------------------------------------------------------
   14. Accessibility and responsive touches
   --------------------------------------------------------------------- */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--imena-orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

@media (max-width: 767px) {
  .page-heading { padding: 150px 0 60px 0; }
  .page-heading h2 { font-size: 30px; }
  .section-heading-imena h2 { font-size: 26px; }
  .imena-section { padding: 70px 0; }
  .stat-strip .stat h3 { font-size: 30px; }
}
