/* ==========================================================================
   Avar Energy design system
   Brand: deep navy (#15304B), Avar orange (#E87722), Avar green (#5AA84F)
   ========================================================================== */

:root {
  --navy-900: #0A1B2B;
  --navy-800: #0E2438;
  --navy:     #15304B;
  --navy-700: #1C3E5E;
  --slate:    #3D4C5E;
  --steel:    #5C6E82;
  --mist:     #8FA0B2;

  --orange:   #E87722;
  --orange-d: #C9611A;
  --green:    #5AA84F;
  --green-d:  #4A8F41;

  --paper:    #F6F4EF;
  --paper-2:  #EFEBE3;
  --line:     #E2DDD3;
  --ink:      #12212F;
  --ink-soft: #45566A;

  --white:    #FFFFFF;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(10, 27, 43, .45);
  --shadow-sm: 0 8px 24px -14px rgba(10, 27, 43, .4);

  --font-hero: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 200; /* Barlow Extra Light */
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display); /* Barlow Medium */
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  color: var(--navy);
}
/* Main headers use Poppins Light */
h1, .hero h1, .page-hero h1 {
  font-family: var(--font-hero);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.eyebrow.on-dark { color: #F0A45E; }
.eyebrow.on-dark::before { background: var(--green); }

.lead { font-size: 1.2rem; font-weight: 300; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-arrow::after { content: "→"; font-size: 1.05em; transform: translateY(.5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #0E2438;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-logo { height: 44px; width: auto; flex: none; display: block; }
.brand-word {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .16em;
  font-size: .95rem;
  color: #fff;
}
.brand-word span { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #C7D2DE;
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem .85rem;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--green); }

.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: .25s; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: #E7EEF5; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .lead { color: #AFC1D4; }
.bg-gradient {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
  color: #E7EEF5;
}
.bg-gradient h1, .bg-gradient h2, .bg-gradient h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
h2.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3.block-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-color: #0A1B2B;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Legibility overlay above the hero image */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,20,32,.28), rgba(8,20,32,.42)),
    linear-gradient(100deg, rgba(8,20,32,.95) 0%, rgba(9,24,40,.86) 38%, rgba(11,32,52,.62) 70%, rgba(14,44,68,.42) 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(232,119,34,.20), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(90,168,79,.16), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: clamp(70px, 12vw, 140px) 0 clamp(64px, 10vw, 120px); }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  color: #fff;
  max-width: 15ch;
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--orange); font-style: italic; }
.hero .lead { max-width: 46ch; color: #C6D5E4; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 2.4rem;
  margin-top: 3.4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-meta .stat strong { font-family: var(--font-display); font-size: 2rem; color: #fff; display: block; line-height: 1; }
.hero-meta .stat span { font-size: .82rem; color: #9FB3C7; letter-spacing: .02em; }

.page-hero { position: relative; z-index: 2; padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 90px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); color: #fff; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D5CDBF; }
.card .num {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--orange);
  display: inline-block; margin-bottom: .6rem;
}
.card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-d); margin-bottom: .7rem;
}
.card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #CFDCE8;
}
.card-dark:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.card-dark h3 { color: #fff; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(232,119,34,.12);
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

/* node cards (value chain) */
.node { border-top: 3px solid var(--orange); }
.node:nth-child(2){ border-top-color: var(--green); }
.node:nth-child(3){ border-top-color: var(--navy); }
.node:nth-child(4){ border-top-color: var(--orange-d); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .9rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 12px; height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.ticks.on-dark li { color: #B9C9D8; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.data {
  width: 100%; border-collapse: collapse; background: #fff;
  font-size: .96rem; min-width: 560px;
}
table.data thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .95rem 1.1rem;
}
table.data td { padding: 1rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
table.data td:first-child { font-weight: 600; color: var(--navy); font-family: var(--font-display); font-size: 1.02rem; }
table.data tbody tr:nth-child(even) { background: #FBFAF7; }

/* pill / tag */
.tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.tag-green { background: rgba(90,168,79,.14); color: var(--green-d); }
.tag-orange { background: rgba(232,119,34,.14); color: var(--orange-d); }
.tag-navy { background: rgba(21,48,75,.1); color: var(--navy); }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-band .stat strong {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--orange); display: block; line-height: 1;
}
.stat-band.on-dark .stat strong { color: #F0A45E; }
.stat-band .stat span { font-size: .9rem; color: var(--ink-soft); }
.stat-band.on-dark .stat span { color: #A9BBCC; }

/* ---------- Timeline / horizons ---------- */
.timeline { display: grid; gap: 1.4rem; }
.tl-item {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem;
  padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.tl-item .tl-when { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.tl-item .tl-when small { display: block; font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .3rem; }

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--orange);
  background: #fff;
  padding: 1.6rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.callout.on-dark { background: rgba(255,255,255,.05); border-left-color: var(--green); color: #CFDCE8; }
.callout p:last-child { margin-bottom: 0; }
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--navy);
  font-weight: 500;
}
.bg-navy .pull, .bg-gradient .pull { color: #fff; }

/* ---------- Team ---------- */
.leader { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.leader-photo {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-700));
  box-shadow: var(--shadow); position: relative;
  display: grid; place-items: center;
}
.leader-photo .monogram { font-family: var(--font-display); font-size: 7rem; color: rgba(255,255,255,.14); font-weight: 600; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.leader-role { color: var(--orange); font-weight: 600; letter-spacing: .04em; margin-bottom: 1.2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--navy); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,119,34,.15);
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(90,168,79,.14); color: var(--green-d); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list b { color: var(--navy); display: block; font-family: var(--font-display); }
.contact-list span { color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; margin: 0 auto .8rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9DB0C2; padding: clamp(56px, 7vw, 84px) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-top h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-links a { color: #A9BBCC; font-size: .94rem; }
.footer-links a:hover { color: var(--orange); }
.footer-hq-link { color: #A9BBCC; }
.footer-hq-link:hover { color: var(--orange); }
.footer-about { max-width: 34ch; font-size: .95rem; color: #92A6B9; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.footer-logo { height: 84px; width: auto; display: block; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .84rem; color: #7C90A3;
}
.footer-socials { display: flex; gap: .6rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #A9BBCC; transition: .18s; }
.footer-socials a:hover { border-color: var(--orange); color: var(--orange); }
.footer-socials svg { width: 18px; height: 18px; }

.disclaimer { font-size: .8rem; color: #6E8296; max-width: 70ch; margin-top: 1.2rem; line-height: 1.6; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Content is visible by default; only hidden once JS marks the page ready. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .leader, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .tl-item { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 78px 0 auto 0; background: var(--navy-800); flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.6rem; gap: .2rem; border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-120%); transition: transform .3s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem .4rem; font-size: 1.02rem; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .hero-meta { gap: 1.4rem 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
}
