/* =====================================================================
   ZiRi design system (v2) — institutional energy developer
   Loaded after theme.css. Brand navy #1e3a5f is kept; shades derive from it.
   All classes are prefixed `z-` so legacy/investor styles are untouched.
   ===================================================================== */
:root {
  --navy-950: #0a1626;
  --navy-900: #0f2138;
  --navy-800: #16304f;
  --navy-700: #1e3a5f;          /* brand primary */
  --navy-500: #3d6190;
  --navy-300: #9fb8d6;
  --navy-100: #e6edf5;
  --navy-50:  #f3f6fa;
  --header-h: 72px;
  --radius: 10px;
  --shadow-md: 0 10px 30px -12px rgba(10, 22, 38, .18);
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.z-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .z-wrap { padding: 0 32px; } }
.z-section { padding: 96px 0; }
@media (max-width: 767px) { .z-section { padding: 64px 0; } }
.z-section--tint { background: var(--navy-50); }
.z-section--dark { background: var(--navy-900); color: #fff; }

/* ---------- Typography ---------- */
.z-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-500);
}
.z-eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.z-section--dark .z-eyebrow, .z-hero .z-eyebrow { color: var(--navy-300); }
.z-h1, .z-h2, .z-h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.z-h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.06; font-weight: 600; }
.z-h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 600; }
.z-h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.z-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--muted); }
.z-section--dark .z-lead, .z-hero .z-lead { color: #c9d6e6; }

/* ---------- Buttons ---------- */
.z-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 6px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.z-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.z-btn:hover svg { transform: translateX(3px); }
.z-btn--primary { background: var(--navy-700); color: #fff; }
.z-btn--primary:hover { background: var(--navy-800); }
.z-btn--light { background: #fff; color: var(--navy-900); }
.z-btn--light:hover { background: var(--navy-100); }
.z-btn--ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.z-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.z-btn--sm { height: 40px; padding: 0 18px; font-size: .875rem; }

.z-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-700); }
.z-link svg { width: 16px; height: 16px; transition: transform .2s; }
.z-link:hover svg, a:hover .z-link svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.z-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border); color: var(--fg);
  transition: background-color .3s, border-color .3s, color .3s;
}
.z-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.z-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-700); }
.z-brand svg { height: 34px; width: auto; flex: none; }
.z-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; }
.z-brand__tag { display: block; font-size: .56rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-top: 4px; }

.z-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .z-nav { display: flex; } }
.z-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: var(--header-h); padding: 0 14px; font-size: .925rem; font-weight: 500;
  opacity: .8; transition: opacity .2s; background: none; border: 0; color: inherit; cursor: pointer;
}
.z-nav__link:hover, .z-nav__link.is-active { opacity: 1; }
.z-nav__link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 20px; height: 2px; background: currentColor; }
.z-nav__link svg { width: 12px; height: 12px; transition: transform .2s; }
.z-dd { position: relative; }
.z-dd__panel {
  position: absolute; top: calc(var(--header-h) - 10px); left: -8px; min-width: 320px;
  background: #fff; color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.z-dd:hover .z-dd__panel, .z-dd:focus-within .z-dd__panel { opacity: 1; visibility: visible; transform: none; }
.z-dd:hover .z-nav__link svg { transform: rotate(180deg); }
.z-dd__item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 6px; font-size: .9rem; }
.z-dd__item:hover, .z-dd__item.is-active { background: var(--navy-50); }
.z-dd__item.is-active { color: var(--navy-700); font-weight: 600; }
.z-dd__item--all { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; color: var(--navy-700); font-weight: 600; }
.z-dd__meta { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.z-header__actions { display: flex; align-items: center; gap: 12px; }
.z-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.z-lang a { padding: 6px 10px; opacity: .6; transition: opacity .2s, background-color .2s; }
.z-lang a:hover { opacity: 1; }
.z-lang a.is-active { opacity: 1; background: var(--navy-700); color: #fff; }
.z-header .z-cta { display: none; }
@media (min-width: 1024px) { .z-header .z-cta { display: inline-flex; } }
.z-burger { display: inline-flex; padding: 8px; border-radius: 6px; color: inherit; }
.z-burger svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .z-burger { display: none; } }

/* transparent header over a full-bleed hero */
.has-hero .z-header:not(.is-scrolled) { background: transparent; border-color: rgba(255,255,255,.14); color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .z-header:not(.is-scrolled) .z-brand { color: #fff; }
.has-hero .z-header:not(.is-scrolled) .z-lang { border-color: rgba(255,255,255,.3); }
.has-hero .z-header:not(.is-scrolled) .z-lang a.is-active { background: #fff; color: var(--navy-900); }
.has-hero .z-header:not(.is-scrolled) .z-cta { background: #fff; color: var(--navy-900); }
body.has-hero { padding-top: 0 !important; }

/* mobile menu */
.z-mnav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff; color: var(--fg); overflow-y: auto; padding: 8px 20px 40px; display: none; }
.z-mnav.is-open { display: block; }
@media (min-width: 1024px) { .z-mnav.is-open { display: none; } }
.z-mnav a, .z-mnav summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--border); cursor: pointer; list-style: none; }
.z-mnav summary::-webkit-details-marker { display: none; }
.z-mnav summary svg { width: 14px; height: 14px; transition: transform .2s; }
.z-mnav details[open] summary svg { transform: rotate(180deg); }
.z-mnav details a { padding-left: 16px; font-size: .95rem; color: var(--muted); }
.z-mnav a.is-active { color: var(--navy-700); font-weight: 600; }
.z-mnav .z-btn { margin-top: 24px; width: 100%; border-bottom: 0; justify-content: center; color: #fff; }
body.menu-open { overflow: hidden; }
body.menu-open .z-header { background: #fff !important; color: var(--fg) !important; border-color: var(--border) !important; }
body.menu-open .z-header .z-brand { color: var(--navy-700) !important; }

/* ---------- Footer ---------- */
.z-footer { background: var(--navy-950); color: var(--navy-300); font-size: .9rem; }
.z-footer a { transition: color .2s; }
.z-footer a:hover { color: #fff; }
.z-footer__grid { display: grid; gap: 40px; padding: 72px 0 48px; grid-template-columns: 1fr 1fr; }
.z-footer__about { grid-column: 1 / -1; }
@media (min-width: 900px) { .z-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .z-footer__about { grid-column: auto; } }
.z-footer__title { color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.z-footer ul li + li { margin-top: 10px; }
.z-footer .z-brand { color: #fff; }
.z-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .8rem; }

/* ---------- Hero ---------- */
.z-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--navy-950); overflow: hidden; }
/* scaled + anchored top-left so the source image's bottom-right watermark is cropped out */
.z-hero__media { position: absolute; inset: 0; background-size: cover; background-position: 25% 30%; transform: scale(1.15); transform-origin: 20% 20%; }
.z-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,38,.6) 0%, rgba(10,22,38,.3) 30%, rgba(10,22,38,.8) 72%, rgba(10,22,38,.97) 100%),
    linear-gradient(90deg, rgba(15,33,56,.8) 0%, rgba(15,33,56,.15) 75%);
}
.z-hero__content { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--header-h) + 72px); }
.z-hero__stats { margin-top: 72px; border-top: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .z-hero__stats { grid-template-columns: repeat(4, 1fr); } }
.z-stat { padding: 28px 20px 36px 0; }
.z-stat + .z-stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.16); }
@media (max-width: 767px) {
  .z-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .z-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
}
.z-stat__value { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.z-stat__value small { font-size: .5em; font-weight: 500; margin-left: 4px; color: var(--navy-300); letter-spacing: 0; }
.z-stat__label { margin-top: 10px; font-size: .8rem; color: var(--navy-300); }

/* ---------- Cards ---------- */
.z-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .25s, transform .25s, border-color .25s; }
a.z-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(30,58,95,.3); }

.z-pillar { padding: 32px; height: 100%; }
.z-pillar__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.z-pillar__num { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--navy-300); font-variant-numeric: tabular-nums; }
.z-pillar__icon { width: 48px; height: 48px; border-radius: 8px; background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; }
.z-pillar__icon svg { width: 24px; height: 24px; }
.z-pillar p { color: var(--muted); line-height: 1.65; margin-top: 12px; }

.z-project { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.z-project__img { aspect-ratio: 16 / 10; background: var(--navy-100) center/cover no-repeat; position: relative; }
.z-project__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,38,0) 45%, rgba(10,22,38,.45)); }
.z-project__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.z-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-700); background: var(--navy-50); border: 1px solid var(--navy-100); padding: 4px 10px; border-radius: 999px; }
.z-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--navy-500); }
.z-project__cap { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.z-project__cap small { font-size: .5em; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.z-project__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

/* credibility */
.z-cred { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .z-cred { grid-template-columns: 1fr 1.5fr; gap: 72px; } }
.z-cred__quote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.z-cred__quote a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* CTA band */
.z-cta-band { display: flex; flex-direction: column; gap: 32px; justify-content: space-between; }
@media (min-width: 900px) { .z-cta-band { flex-direction: row; align-items: center; } }

/* reveal on scroll (only hidden when JS is present) */
.js .z-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .z-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .z-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
