/* ============================================================
   AXELA GROUP — shared styles
   Elevated institutional: navy / paper / restrained gold
   ============================================================ */

:root {
  --navy: #001F51;
  --navy-deep: #001233;
  --navy-soft: #0A2B63;
  --blue-mid: #2A4A7F;
  --blue-soft: #C9D4E6;
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --gold: #A8842F;          /* on light backgrounds */
  --gold-bright: #D3AF63;   /* on navy backgrounds */
  --ink-70: rgba(0, 31, 81, 0.72);
  --ink-55: rgba(0, 31, 81, 0.55);
  --ink-30: rgba(0, 31, 81, 0.28);
  --hairline: rgba(0, 31, 81, 0.14);
  --hairline-light: rgba(255, 255, 255, 0.18);
  --nav-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hanken Grotesk', sans-serif;
  background: var(--paper);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .container { padding: 0 24px; } }

/* ---------------- Navigation ---------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 18, 51, 0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.solid { background: rgba(0, 18, 51, 0.96); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.site-nav .nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; background: var(--gold-bright); margin-top: 3px;
}
/* Don't draw the active underline inside the bordered CTA button (e.g. Investor Login on its own page) */
.nav-links a.nav-cta.active::after { display: none; }
.nav-links a.ext::after { content: " ↗"; font-size: 12px; color: var(--gold-bright); }
.nav-links a.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 11px 22px; color: #fff;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-links a.nav-cta:hover { background: #fff; color: var(--navy); border-color: #fff; }

.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 130;
}
.nav-burger span {
  display: block; width: 26px; height: 2px; background: #fff; margin: 6px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 120;
    background: var(--navy-deep);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 20px; }
}

/* ---------------- Type ---------------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.on-navy .eyebrow, .eyebrow.light { color: var(--gold-bright); }
.on-navy .eyebrow::before, .eyebrow.light::before { background: var(--gold-bright); }

.h-display {
  font-size: clamp(52px, 8.2vw, 116px);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.03em;
}
.h-section {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-sub { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-70); max-width: 58ch; text-wrap: pretty; }
.on-navy .lede { color: rgba(255, 255, 255, 0.72); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 17px 34px; border: 1px solid; cursor: pointer; background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-gold { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-gold:hover { background: var(--gold-bright); color: var(--navy-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-navy { border-color: var(--navy); color: var(--navy); }
.btn-navy:hover { background: var(--navy); color: #fff; }
.btn-solid-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.text-link {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--gold); border-bottom: 1px solid var(--gold);
  padding-bottom: 4px; transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link:hover { color: var(--navy); border-color: var(--navy); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section.navy { background: var(--navy); color: #fff; }
.section.deep { background: var(--navy-deep); color: #fff; }
.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(44px, 6vw, 72px); }

/* page header band (interior pages) */
.page-band {
  background: var(--navy); color: #fff;
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(64px, 8vw, 100px);
  position: relative; overflow: hidden;
}
.page-band .eyebrow { color: var(--gold-bright); }
.page-band .eyebrow::before { background: var(--gold-bright); }
.page-band h1 { margin-top: 20px; }
.page-band .lede { color: rgba(255,255,255,0.72); margin-top: 24px; }

/* slanted brand shape (echo of the logo's trapezoid) */
.brand-slant {
  position: absolute; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  background: rgba(255, 255, 255, 0.025);
}

/* ---------------- Stats ---------------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-left: 1px solid var(--hairline);
}
.stat { padding: 8px 36px 8px; border-right: 1px solid var(--hairline); }
.stat .num {
  font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--navy);
}
.stat .num sup { font-size: 0.45em; font-weight: 700; vertical-align: 0.7em; letter-spacing: 0; }
.stat .label {
  margin-top: 8px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-55);
}
.on-navy .stat .num, .section.navy .stat .num, .section.deep .stat .num { color: #fff; }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hairline); }
  .stat { padding: 28px 24px; border-bottom: 1px solid var(--hairline); }
}

/* ---------------- Project cards ---------------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .project-grid, .project-grid.cols-2 { grid-template-columns: 1fr; } }

.project-card { text-decoration: none; display: flex; flex-direction: column; }
.project-card .media { position: relative; overflow: hidden; background: var(--navy-deep); }

.project-card .media > img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .media > img { transform: scale(1.03); }
.project-card .media .cat {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  background: var(--navy-deep); color: var(--gold-bright);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px;
}
.project-card .body { padding: 22px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.project-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.project-card .loc { font-size: 14px; color: var(--ink-55); font-weight: 600; }
.project-card .meta {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--hairline);
  display: flex; gap: 22px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--ink-70);
}
.project-card .meta span b { color: var(--gold); font-weight: 800; }
.section.navy .project-card h3, .section.deep .project-card h3 { color: #fff; }
.section.navy .project-card .loc { color: rgba(255,255,255,0.6); }
.section.navy .project-card .meta { border-color: var(--hairline-light); color: rgba(255,255,255,0.78); }
.section.navy .project-card .meta span b { color: var(--gold-bright); }

/* ---------------- Track-record table ---------------- */
.tr-table { width: 100%; border-collapse: collapse; }
.tr-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-55);
  padding: 0 18px 14px 0; border-bottom: 2px solid var(--navy);
}
.tr-table td { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; vertical-align: top; }
.tr-table td.name { font-weight: 700; }
.tr-table td.mult { font-weight: 800; color: var(--gold); white-space: nowrap; }
.tr-table .sub { display: block; font-size: 13px; color: var(--ink-55); font-weight: 500; }
@media (max-width: 760px) {
  .tr-table th:nth-child(3), .tr-table td:nth-child(3),
  .tr-table th:nth-child(4), .tr-table td:nth-child(4) { display: none; }
}

/* ---------------- Forms ---------------- */
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-55);
}
.form-field input, .form-field textarea {
  font-family: inherit; font-size: 16px; color: var(--navy);
  background: var(--white); border: 1px solid var(--ink-30);
  padding: 15px 16px; outline: none; border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy);
}
.form-field textarea { resize: vertical; min-height: 150px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); }
.site-footer .foot-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px;
  padding: clamp(56px, 7vw, 88px) 0;
}
.site-footer .foot-logo img { height: 56px; }
.site-footer .foot-tag { margin-top: 20px; font-size: 14.5px; max-width: 30ch; color: rgba(255,255,255,0.55); }
.site-footer h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 18px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14.5px; transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; font-size: 14.5px; line-height: 1.8; }
.site-footer .foot-bottom {
  border-top: 1px solid var(--hairline-light);
  padding: 22px 0; font-size: 12.5px; color: rgba(255,255,255,0.4);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 900px) {
  .site-footer .foot-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer .foot-main { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------------- Scroll reveal ---------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hidden state only applies once JS confirms IntersectionObserver actually
     fires (body.reveal-armed) — otherwise content stays visible. */
  .reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
  body.reveal-armed .reveal { opacity: 0; transform: translateY(24px); }
  body.reveal-armed .reveal.in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: 0.1s; }
  .reveal[data-delay="2"] { transition-delay: 0.2s; }
  .reveal[data-delay="3"] { transition-delay: 0.3s; }
}
