/* =============================================================
   Ethmar for Import & Export — Global Stylesheet
   Design system per PRD v1.0
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --brand-green: #4A8C3F;
  --brand-green-dark: #3C7333;
  --brand-yellow: #F5C518;
  --brand-blue: #1A6B9A;
  --brand-blue-dark: #145479;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;

  /* Surfaces */
  --surface-light: #F7F8F6;
  --surface-white: #FFFFFF;
  --border: #E0E4DC;

  /* Layout */
  --content-max: 1200px;
  --radius-card: 8px;
  --radius-btn: 4px;
  --section-pad: 80px;
  --section-pad-mobile: 48px;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Noto Naskh Arabic", "Inter", serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; }

/* ---------- Typography scale ---------- */
.h1,
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h2,
h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.h3,
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 19px;
  color: var(--text-secondary);
}

.caption {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section--tight { padding: 56px 0; }

.section--light { background: var(--surface-light); }
.section--blue {
  background: var(--brand-blue);
  color: #fff;
}
.section--blue h1,
.section--blue h2,
.section--blue h3 { color: #fff; }

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { color: var(--text-secondary); font-size: 18px; }
.section-head.section-head--left { margin-left: 0; text-align: left; }

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  min-height: 44px;
}

.btn-primary {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}
.btn-primary:hover { background: var(--brand-green-dark); border-color: var(--brand-green-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: #fff; color: var(--text-primary); border-color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--brand-green);
  border-color: var(--brand-green);
}
.btn-outline-dark:hover { background: var(--brand-green); color: #fff; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand-green);
}
.textlink:hover { gap: 10px; }
.textlink svg { transition: transform 0.2s var(--ease); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 48px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  color: var(--text-primary);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 6px 0;
}
.nav-list a:hover { color: var(--brand-green); }
.nav-list a.is-active { color: var(--brand-green); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-green);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-blue);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-logo {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 12px 16px;
  display: inline-block;
  margin-bottom: 18px;
}
.footer-logo img { height: 40px; width: auto; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; opacity: 0.85; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Page banner (internal pages) ---------- */
.page-banner {
  background: var(--brand-blue);
  background-image: linear-gradient(rgba(20, 84, 121, 0.82), rgba(20, 84, 121, 0.92)),
    url("https://placehold.co/1600x440/1A6B9A/1A6B9A.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 220px;
  display: flex;
  align-items: center;
  text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner p { color: rgba(255, 255, 255, 0.9); font-size: 19px; max-width: 720px; margin: 0 auto; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://placehold.co/1920x1080/143045/143045.png");
  background-size: cover;
  background-position: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .subhead {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--brand-blue); color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
}
.stat .label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}
.stats-note {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  padding-bottom: 22px;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  height: 100%;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { border-color: var(--brand-green); transform: translateY(-3px); }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-card);
  background: rgba(74, 140, 63, 0.1);
  color: var(--brand-green);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 16px; }

.card-media {
  padding: 0;
  overflow: hidden;
}
.card-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-media .card-body { padding: 24px; }
.card-media h3 { margin-bottom: 6px; }

/* Value / plain callout cards */
.callout {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-green);
  border-radius: var(--radius-card);
  padding: 26px 28px;
}
.callout strong { color: var(--text-primary); }
.callout p { margin-bottom: 0; color: var(--text-secondary); }

/* ---------- Media + text split ---------- */
.media-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.media-frame img { width: 100%; height: auto; display: block; }

.activity {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.activity:last-child { border-bottom: 0; }
.activity .icon-lg {
  display: inline-flex;
  width: 60px; height: 60px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-card);
  background: rgba(74, 140, 63, 0.1);
  color: var(--brand-green);
  margin-bottom: 18px;
}
.activity ul { color: var(--text-secondary); padding-left: 20px; }
.activity li { margin-bottom: 8px; }
.note {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 14px;
}

/* ---------- Product / country grids ---------- */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
}
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .body { padding: 18px 20px; }
.product-card h3 { font-size: 18px; margin-bottom: 4px; }
.product-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.country {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}
.country .flag { font-size: 26px; line-height: 1; }
.country .name { font-weight: 600; font-size: 16px; }
.country .name span { display: block; font-weight: 400; font-size: 13px; color: var(--text-secondary); }

/* Chips / segments */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
}
.chip svg { color: var(--brand-green); }

/* ---------- Financial highlights ---------- */
.fin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 26px;
}
.fin {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-card);
}
.fin .num { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: #fff; line-height: 1; }
.fin .label { display: block; margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding: 0 0 30px 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand-green);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.timeline-item .year { font-weight: 700; color: var(--brand-blue); font-size: 15px; }
.timeline-item .event { color: var(--text-secondary); }

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}
.founder img { border-radius: var(--radius-card); width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.founder .name { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 2px; }
.founder .role { color: var(--brand-green); font-weight: 600; margin-bottom: 16px; }

/* ---------- Steps list ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: 720px; }
.steps li {
  position: relative;
  padding: 4px 0 20px 52px;
  color: var(--text-secondary);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-green);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 15px;
}
.steps li strong { color: var(--text-primary); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--surface-light);
  text-align: center;
}
.cta-strip.cta-strip--green { background: var(--brand-green); color: #fff; }
.cta-strip.cta-strip--green h2 { color: #fff; }
.cta-strip .inner { max-width: 700px; margin: 0 auto; }

/* ---------- Intro brandmark block ---------- */
.brandmark {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.brandmark img { height: 120px; width: auto; }

/* ---------- Contact ---------- */
.contact-details li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  list-style: none;
}
.contact-details ul { padding: 0; margin: 0 0 24px; }
.contact-details svg { color: var(--brand-green); flex-shrink: 0; margin-top: 3px; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field label .req { color: var(--brand-green); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: #fff;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(74, 140, 63, 0.15);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }
.field .err-msg {
  display: none;
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
}
.field.has-error .err-msg { display: block; }

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-alert {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 20px;
  font-size: 15px;
}
.form-alert.is-success { display: block; background: rgba(74, 140, 63, 0.12); color: var(--brand-green-dark); border: 1px solid var(--brand-green); }
.form-alert.is-error { display: block; background: rgba(192, 57, 43, 0.08); color: #c0392b; border: 1px solid #c0392b; }

/* ---------- ZUS partnership (minimal chrome) ---------- */
.zus-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.zus-topbar img { height: 44px; width: auto; }
.zus-hero {
  background: linear-gradient(rgba(20, 84, 121, 0.9), rgba(20, 84, 121, 0.96)),
    url("https://placehold.co/1600x520/143045/143045.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.zus-hero h1 { color: #fff; }
.zus-hero p { color: rgba(255, 255, 255, 0.9); font-size: 20px; max-width: 760px; margin: 10px auto 0; }
.zus-lockup {
  font-family: var(--font-display);
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .country-grid { grid-template-columns: repeat(3, 1fr); }
}

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

  h1, .h1 { font-size: 38px; }
  h2, .h2 { font-size: 28px; }
  .hero h1 { font-size: 36px; }

  /* Nav → mobile */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav-list a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-list li:last-child a { border-bottom: 0; }
  .nav-list a.is-active::after { display: none; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .fin-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder img { max-width: 260px; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
}

@media (max-width: 420px) {
  h1, .h1 { font-size: 32px; }
  .hero h1 { font-size: 30px; }
  .stat .num { font-size: 32px; }
  .country-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}
