/* ============================================================
   Zen Global Enerji — Design System
   ============================================================ */

:root {
  --ink: #14180f;
  --ink-soft: #1d2316;
  --green-800: #2c4610;
  --green-700: #3b5b12;
  --green-600: #558018;
  --green-500: #7cb928;
  --green-100: #e8efd8;
  --blue-slate: #1e4a63;
  --blue-slate-light: #e4edf1;
  --sand: #f6f3ea;
  --sand-2: #ede7d7;
  --white: #ffffff;
  --text: #23281c;
  --text-muted: #5c6353;
  --text-on-dark: #eef0e6;
  --text-on-dark-muted: #a9b39b;
  --border: #ddd4bd;
  --border-on-dark: rgba(238, 240, 230, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  --radius-sm: 2px;
  --radius: 4px;
  --container: 1200px;
  --section-pad: clamp(4rem, 3rem + 5vw, 7.5rem);
  --shadow-card: 0 1px 2px rgba(20, 24, 15, 0.06), 0 8px 24px -12px rgba(20, 24, 15, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sand);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--green-500);
}
.on-dark .eyebrow { color: var(--green-500); }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
}
.on-dark .lede { color: var(--text-on-dark-muted); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.section { padding-block: var(--section-pad); }
.section-tight { padding-block: calc(var(--section-pad) * 0.6); }
.on-dark { background: var(--ink); color: var(--text-on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-on-dark); }
.on-alt { background: var(--sand-2); }

.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head > .eyebrow { margin-bottom: 0.9rem; }
.section-head > h2 { margin-bottom: 1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--green-500); color: var(--ink); border-color: var(--green-500); }
.btn-primary:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.on-dark .btn-outline { color: var(--text-on-dark); border-color: var(--border-on-dark); }
.on-dark .btn-outline:hover { border-color: var(--text-on-dark); }
.btn-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--green-700); border-bottom: 1px solid transparent; padding: 0; }
.btn-link:hover { border-color: var(--green-700); }
.on-dark .btn-link { color: var(--green-500); }
.on-dark .btn-link:hover { border-color: var(--green-500); }
.btn-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.btn-link:hover svg { transform: translateX(3px); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 234, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 42px; width: auto; }
.brand-text { font-family: var(--font-display); line-height: 1.05; }
.brand-text strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.brand-text span { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green-700); border-color: var(--green-500); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang-switch { display: none; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; }
.lang-switch a { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.55rem; color: var(--text-muted); border-radius: var(--radius-sm); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--sand-2); }
.lang-switch a:hover { color: var(--green-700); }

.flag-icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(20, 24, 15, 0.18);
}
.flag-icon svg { display: block; width: 100%; height: 100%; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 980px) {
  .main-nav { display: block; }
  .lang-switch { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--ink);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.28s ease;
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.mobile-drawer-top .brand-text strong,
.mobile-drawer-top .brand-text span { color: var(--text-on-dark); }
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-on-dark);
}
.drawer-close svg { width: 20px; height: 20px; }
.mobile-drawer nav ul { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-drawer nav a { display: block; font-family: var(--font-display); font-size: 1.7rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-on-dark); }
.mobile-drawer nav a[aria-current="page"] { color: var(--green-500); }
.mobile-drawer-lang { margin-top: auto; padding-top: 2rem; display: flex; gap: 1.5rem; font-weight: 600; }
.mobile-drawer-lang a { display: flex; align-items: center; gap: 0.5rem; color: var(--text-on-dark-muted); }
.mobile-drawer-lang a[aria-current="true"] { color: var(--green-500); }
body.drawer-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15,18,10,0.92) 0%, rgba(15,18,10,0.55) 45%, rgba(15,18,10,0.35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-block: 3.5rem 4.5rem; }
.hero .eyebrow { color: var(--green-500); }
.hero .eyebrow::before { background: var(--green-500); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 1.8rem + 3vw, 4.1rem);
  max-width: 18ch;
  margin-block: 1rem 1.4rem;
}
.hero .lede { color: rgba(238, 240, 230, 0.86); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 52ch; margin-bottom: 2.2rem; }
.hero .btn-outline { color: var(--text-on-dark); border-color: rgba(238, 240, 230, 0.45); }
.hero .btn-outline:hover { color: var(--text-on-dark); border-color: var(--text-on-dark); background: rgba(238, 240, 230, 0.1); }

.page-hero {
  min-height: 46vh;
  align-items: flex-end;
}
.page-hero .hero-inner { padding-block: 3rem; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 1.6rem + 2.4vw, 3.2rem); margin-bottom: 0; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--ink); color: var(--text-on-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  padding-block: 2.75rem;
}
.stat .stat-num { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); color: var(--green-500); line-height: 1; }
.stat .stat-label { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-on-dark-muted); max-width: 16ch; }
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-left: 1px solid var(--border-on-dark); padding-left: 1.5rem; }
  .stat:first-child { border-left: none; padding-left: 0; }
}

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .split.reverse .split-media { order: 2; }
}
.split-media img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-body p { margin-bottom: 1.5rem; }

/* ---------- Value / feature cards ---------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
}
.on-dark .value-card { background: var(--ink-soft); border-color: var(--border-on-dark); }
.value-card .icon-wrap {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  margin-bottom: 1.3rem;
  color: var(--green-700);
}
.value-card .icon-wrap svg { width: 24px; height: 24px; }
.value-card h3 { margin-bottom: 0.6rem; }
.value-card p { color: var(--text-muted); font-size: 0.97rem; }
.on-dark .value-card p { color: var(--text-on-dark-muted); }

/* ---------- Process steps ---------- */
.process-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.on-dark .process-list { border-color: var(--border-on-dark); }
.process-step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
}
.on-dark .process-step { border-color: var(--border-on-dark); }
.process-step .step-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--green-500); }
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--text-muted); max-width: 60ch; }
.on-dark .process-step p { color: var(--text-on-dark-muted); }
@media (min-width: 720px) {
  .process-step { grid-template-columns: 5rem 1fr; align-items: baseline; }
}

.mini-steps { display: flex; flex-wrap: wrap; gap: 0.6rem 0; margin-top: 2rem; }
.mini-steps li { display: flex; align-items: center; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.mini-steps li:not(:last-child)::after { content: "→"; margin-inline: 0.75rem; color: var(--green-500); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 1.75rem; border-left: 2px solid var(--border); }
.on-dark .timeline { border-color: var(--border-on-dark); }
.timeline-item { position: relative; padding-bottom: 2.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -2.3rem; top: 0.35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px var(--sand);
}
.on-dark .timeline-item::before { box-shadow: 0 0 0 4px var(--ink); }
.timeline-item .year { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); display: block; margin-bottom: 0.4rem; }
.on-dark .timeline-item .year { color: var(--text-on-dark); }
.timeline-item p { color: var(--text-muted); max-width: 58ch; }
.on-dark .timeline-item p { color: var(--text-on-dark-muted); }

/* ---------- Sector tags ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tag {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}
.on-dark .tag { border-color: var(--border-on-dark); color: var(--text-on-dark); }

/* ---------- Leaders ---------- */
.leader-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .leader-grid { grid-template-columns: repeat(4, 1fr); } }
.leader-card { border-top: 3px solid var(--green-500); padding-top: 1rem; }
.leader-card .name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); display: block; margin-bottom: 0.3rem; }
.leader-card .role { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Group companies ---------- */
.company-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .company-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .company-grid { grid-template-columns: repeat(3, 1fr); } }
.company-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
}
.company-card.featured { border-color: var(--green-500); border-width: 2px; background: var(--green-100); }
.company-card .badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  background: rgba(124, 185, 40, 0.16);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
.company-card .sector { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-slate); }
.company-card h3 { font-size: 1.2rem; }
.company-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--white);
}
.contact-card .icon-wrap {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-slate-light);
  color: var(--blue-slate);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}
.contact-card .icon-wrap svg { width: 22px; height: 22px; }
.contact-card .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.contact-card .value { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.contact-card a.value:hover { color: var(--green-700); }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/8;
  background: var(--sand-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(15%) contrast(1.02); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .section-head { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.75rem; }

/* ---------- Photo strip / caption ---------- */
.photo-frame { border-radius: var(--radius); overflow: hidden; }
.photo-frame img { width: 100%; }
.photo-caption { margin-top: 0.9rem; font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); border-top: 4px solid var(--green-500); }
.footer-top { padding-block: 4rem 3rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer-brand .brand-text strong { color: var(--text-on-dark); font-size: 1.2rem; }
.footer-brand .brand-text span { color: var(--text-on-dark-muted); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: 0.92rem; }
.footer-col h4 { color: var(--text-on-dark); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.94rem; }
.footer-col a:hover { color: var(--green-500); }
.footer-bottom {
  border-top: 1px solid var(--border-on-dark);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem;
}
.footer-lang { display: flex; gap: 1rem; font-weight: 600; }
.footer-lang a { display: flex; align-items: center; gap: 0.5rem; }
.footer-lang a[aria-current="true"] { color: var(--green-500); }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found .code { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 8rem); color: var(--green-500); line-height: 1; }

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

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--section-pad); }
.on-dark .divider { background: var(--border-on-dark); }
