/* ============================================================
   BARLEY — Shared Design System
   ============================================================ */

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

:root {
  --green-deep:  #1A3328;
  --green-mid:   #2D5A45;
  --green-light: #4A8C6F;
  --gold:        #C8A94A;
  --gold-light:  #E8C96A;
  --beige:       #F4EDD8;
  --beige-dark:  #E0D6BC;
  --white:       #FAFAF7;
  --text-dark:   #1A2420;
  --text-mid:    #3D5248;
  --nav-h:       72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid rgba(200,169,74,0.5);
  color: var(--gold-light);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--green-deep); color: var(--beige); }
.btn-dark:hover { background: var(--green-mid); transform: translateY(-2px); }
.btn-sm { padding: 10px 24px; font-size: 12px; }

/* ── NAVBAR ─────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(20,40,30,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,169,74,0.12);
}
.nav-brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--beige);
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none;
}
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  color: rgba(244,237,216,0.8);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 10px; }

/* language selector (GTranslate widget, branded) */
.gtranslate_wrapper { display: inline-flex; align-items: center; }
.gt_selector,
.lang-select {
  background: rgba(255,255,255,0.08);
  color: var(--beige);
  border: 1px solid rgba(200,169,74,0.32);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px; font-family: 'Inter', sans-serif; font-weight: 500;
  cursor: pointer; outline: none;
}
.gt_selector:hover,
.lang-select:hover { border-color: rgba(200,169,74,0.6); }
.gt_selector option,
.lang-select option { color: #1A2420; background: #fff; }
/* hide GTranslate branding / google bar */
.gtranslate_logo, .gt_float_switcher-option a[href*="gtranslate"],
.goog-te-banner-frame { display: none !important; }

/* hide Google Translate UI chrome */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-te-banner-frame { display: none !important; }
.skiptranslate > iframe { visibility: hidden !important; height: 0 !important; border: 0 !important; }
/* Keep the engine container rendered but off-screen (do NOT collapse it) */
#google_translate_element { position: fixed; left: -9999px; bottom: 0; z-index: -1; }

/* mobile toggle */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--beige);
  border-radius: 2px; transition: .3s;
}

@media (max-width: 860px) {
  .site-nav { padding: 0 20px; }
  .nav-burger { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(15,30,22,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 20px 24px;
    transform: translateY(-130%);
    transition: transform .35s ease;
    border-bottom: 1px solid rgba(200,169,74,0.15);
  }
  .nav-toggle:checked ~ .nav-menu { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-links a { padding: 14px 12px; font-size: 16px; }
  .nav-cta { margin: 12px 0 0; text-align: center; }
}

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  min-height: 56vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 70px) 24px 70px;
  position: relative; overflow: hidden;
  background: var(--green-deep);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,20,14,0.78) 0%, rgba(8,20,14,0.55) 50%, rgba(8,20,14,0.85) 100%);
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 {
  color: var(--beige);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.page-hero p {
  color: rgba(244,237,216,0.82);
  max-width: 620px; font-size: 18px; line-height: 1.8;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* ── SECTIONS ─────────────────────────────── */
.section { padding: 100px 24px; }
.section--beige { background: var(--beige); }
.section--white { background: var(--white); }
.section--green { background: var(--green-deep); }
.section--dark  { background: #1A2E22; }
.section--darker{ background: #0F1E16; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }

.eyebrow {
  color: var(--green-light); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 12px;
}
.section--green .eyebrow,
.section--dark .eyebrow,
.section--darker .eyebrow { color: var(--gold); }

.section-title {
  font-size: clamp(30px, 5vw, 48px);
  color: var(--green-deep); line-height: 1.18;
  margin-bottom: 16px;
}
.section--green .section-title,
.section--dark .section-title,
.section--darker .section-title { color: var(--beige); }

.section-desc {
  color: var(--text-mid); max-width: 580px;
  margin: 0 auto 56px; font-size: 17px; line-height: 1.8;
}
.section--green .section-desc,
.section--dark .section-desc,
.section--darker .section-desc { color: rgba(244,237,216,0.62); }

.divider {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; margin: 26px auto 32px;
}
.divider-line { height: 1px; width: 90px; }
.divider .dl-l { background: linear-gradient(to right, transparent, var(--gold)); }
.divider .dl-r { background: linear-gradient(to left, transparent, var(--gold)); }

/* ── CARDS / GRIDS ─────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 10px; padding: 36px 30px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(26,51,40,.12); }
.card h3 { font-size: 20px; color: var(--green-deep); margin-bottom: 12px; }
.card p { color: var(--text-mid); font-size: 15px; line-height: 1.7; }
.card-icon { font-size: 32px; margin-bottom: 18px; }

/* feature/teaser card with image */
.feature {
  position: relative; border-radius: 12px; overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end;
  text-decoration: none; color: var(--beige);
  box-shadow: 0 8px 30px rgba(26,51,40,.1);
}
.feature img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.feature:hover img { transform: scale(1.06); }
.feature::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,15,0.92) 0%, rgba(10,25,15,0.25) 60%, transparent 100%);
}
.feature-body { position: relative; z-index: 1; padding: 28px; }
.feature-body .eyebrow { color: var(--gold-light); margin-bottom: 8px; }
.feature-body h3 { font-size: 22px; color: var(--beige); margin-bottom: 8px; }
.feature-body p { font-size: 14px; color: rgba(244,237,216,0.8); line-height: 1.6; }
.feature-arrow { margin-top: 14px; color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .04em; }

/* pillar (icon + text, on light) */
.pillar { text-align: left; }
.pillar .card-icon { color: var(--gold); }

/* ── DATA TABLE ─────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--beige-dark); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); text-align: left; }
.data-table thead th {
  background: var(--green-deep); color: var(--gold);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 16px; white-space: nowrap;
}
.data-table thead th.num { text-align: right; }
.data-table tbody td { padding: 13px 16px; font-size: 14px; color: var(--text-mid); border-top: 1px solid var(--beige-dark); }
.data-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green-deep); }
.data-table tbody tr:hover { background: #f4f0e2; }
.data-table .country { font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.data-table .x { color: #B08A1E; }   /* exports */
.data-table .m { color: #2D7A45; }   /* imports */
.data-table .grp td {
  background: var(--beige); color: var(--green-deep);
  font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px;
}
.table-note { color: var(--text-mid); font-size: 12px; opacity: .7; margin-top: 14px; text-align: left; }
.legend-inline { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; font-size: 13px; color: var(--text-mid); }
.legend-inline span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ── CONTACT BLOCK ─────────────────────────── */
.contact-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,169,74,0.22);
  border-radius: 12px; padding: 48px;
  max-width: 560px; margin: 0 auto; text-align: center;
}
.contact-label { color: var(--gold); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.contact-email { color: var(--beige); font-size: 24px; font-family: 'Playfair Display', serif; margin-bottom: 24px; word-break: break-word; }
.contact-foot {
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid rgba(200,169,74,0.12);
  color: rgba(244,237,216,.4); font-size: 13px; line-height: 1.7;
}

/* ── CTA BAND ─────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #152B20 0%, var(--green-deep) 100%);
  border-radius: 16px; padding: 56px 40px; text-align: center;
}
.cta-band h2 { color: var(--beige); font-size: clamp(26px,4vw,38px); margin-bottom: 14px; }
.cta-band p { color: rgba(244,237,216,0.65); font-size: 17px; margin-bottom: 32px; }

/* ── FOOTER ─────────────────────────────── */
.site-footer {
  background: #0F1A13; color: rgba(244,237,216,0.6);
  padding: 64px 40px 28px;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(244,237,216,0.08);
}
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-row span { color: var(--beige); font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.footer-about { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(244,237,216,0.65); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(244,237,216,0.35); }
.footer-tag { font-size: 11px; letter-spacing: 0.12em; color: rgba(200,169,74,0.4); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 20px; }
  .cta-band { padding: 40px 24px; }
}
