/* Inter Agri — shared stylesheet */

:root {
  --red: #c1272d;
  --red-dark: #9e1f24;
  --ink: #2b2b2b;
  --gray: #58595b;
  --gray-light: #f4f3f1;
  --gray-mid: #e3e1dd;
  --cream: #faf9f7;
  --green: #4c6b3f;
  --max-width: 1160px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --font: "Segoe UI", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6em;
}

.lead {
  font-size: 1.15rem;
  color: var(--gray);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .15s ease;
}
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn.outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}
.btn.outline:hover { background: rgba(255,255,255,.15); }

/* ---------- Header ---------- */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
}

.logo img { height: 150px; width: auto; }

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

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active { color: var(--red); }

.lang-switch {
  margin-left: 10px;
  padding: 6px 12px !important;
  border: 1.5px solid var(--gray-mid);
  border-radius: 20px;
  font-size: .82rem !important;
  font-weight: 700 !important;
}
.lang-switch:hover {
  border-color: var(--red);
  background: var(--gray-light);
}

.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  border: 1px solid var(--gray-mid);
  min-width: 260px;
  padding: 8px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: .92rem;
  border-radius: 4px;
}
.dropdown a:hover { background: var(--gray-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--gray-mid);
    box-shadow: var(--shadow);
    padding: 10px 12px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
  }
  .has-dropdown:hover .dropdown { display: block; }
}

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

.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,8,.18) 0%, rgba(6,6,8,.48) 45%, rgba(3,3,4,.92) 100%),
    linear-gradient(100deg, rgba(193,39,45,.28) 0%, rgba(6,6,8,0) 42%);
}
.hero .container { position: relative; z-index: 1; padding-bottom: 56px; padding-top: 56px; }
.hero .eyebrow {
  color: #fff;
  font-size: .9rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.hero h1 {
  color: #fff;
  max-width: 820px;
  font-weight: 800;
  text-shadow: 0 3px 16px rgba(0,0,0,.55);
}
.hero p {
  color: #fff;
  max-width: 640px;
  font-size: 1.15rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

.hero.small { min-height: 38vh; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.bg-light { background: var(--gray-light); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h2, .bg-ink h3 { color: #fff; }

.grid {
  display: grid;
  gap: 40px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.media-text.reverse .media { order: 2; }
@media (max-width: 800px) {
  .media-text, .media-text.reverse .media { grid-template-columns: 1fr; order: initial; }
}
.media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}
.media-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
@media (max-width: 500px) {
  .media-split { grid-template-columns: 1fr; }
}
.media.media-crop img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}
.media.media-contain {
  display: flex;
  justify-content: center;
}
.media.media-contain img {
  height: auto;
  max-height: 380px;
  width: auto;
  object-fit: contain;
}

.card {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.card img { aspect-ratio: 4/3; object-fit: cover; }
.card .card-body { padding: 22px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--gray); margin-bottom: 0; font-size: .95rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: .3em;
}
.stat-label { color: var(--gray); font-size: .9rem; }

.quote-block {
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 24px;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  margin: 1.6em 0;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: .92rem;
}
table.data-table th, table.data-table td {
  border: 1px solid var(--gray-mid);
  padding: 10px 12px;
  text-align: left;
}
table.data-table th { background: var(--gray-light); font-weight: 700; }

.timeline {
  border-left: 2px solid var(--gray-mid);
  margin-left: 6px;
  padding-left: 30px;
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--gray-mid);
}
.timeline-year {
  font-weight: 800;
  color: var(--red);
  font-size: 1.05rem;
}

.award-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.award-grid .award-card { flex: 0 1 320px; }

.award-card {
  text-align: center;
  padding: 30px 20px;
}
.award-card .award-img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  margin: 0 auto 18px;
}
.award-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.doc-card {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
}
.doc-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: none;
  border-radius: 2px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { color: var(--red); }
.contact-card a { display: block; color: var(--ink); margin-top: 2px; }
.contact-card a:hover { color: var(--red); }

.cta-band {
  background: var(--red);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

.video-embed {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-embed img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.video-embed:hover img { transform: scale(1.03); }
.video-embed .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  transition: background .15s ease;
}
.video-embed:hover .play-btn { background: var(--red); }
.video-embed .play-btn svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 28px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }

.cookie-banner-text { flex: 1; }
.cookie-banner-text strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5em;
}
.cookie-banner-text p {
  margin: 0;
  font-size: .92rem;
  color: var(--gray);
  line-height: 1.55;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner-actions .btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .92rem;
  white-space: nowrap;
}
.cookie-banner-actions .btn.ghost {
  background: transparent;
  color: var(--gray);
  border: 1.5px solid var(--gray-mid);
}
.cookie-banner-actions .btn.ghost:hover {
  background: var(--gray-light);
  color: var(--ink);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }
  .cookie-banner-actions .btn { flex: 1; text-align: center; }
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 50px 0 24px;
  font-size: .92rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-logo-box {
  display: inline-block;
  background: #fff;
  padding: 18px 26px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.footer-logo-box img { height: 72px; width: auto; display: block; }
