/* Optima Partners shared base stylesheet
 * Served at /_shared/base.css for every microsite. Every page links this FIRST,
 * then its own assets/*.css. Anything a site does not set is inherited from here;
 * anything it does set wins, because it comes later in the cascade.
 *
 * To restyle a site, override the tokens in its own CSS:
 *   :root { --navy: #0b1d33; --acid: #ffd400; --font-heading: Georgia, serif; }
 * and only then reach for selector overrides.
 *
 * Images referenced here live in /_shared/ next to this file. Do not reference
 * anything outside /_shared/ from this file. */

:root {
  /* palette (values taken from the Energy site, the first brand reference) */
  --navy: #16263f;
  --navy2: #1d3150;
  --ink: #152238;
  --acid: #effc47;
  --aqua: #43e8dc;
  --teal: #306b65;
  --gold: #cfa661;
  --paper: #faf6f3;
  --mist: #edf1f4;
  --line: #d4dce3;
  --muted: #677384;
  --white: #fff;
  --footer-bg: #10213a;
  --footer-fg: #abb7c6;

  /* type */
  --font-body: Calibri, "Segoe UI", Arial, sans-serif;
  --font-heading: "F37 Hooj", Calibri, "Segoe UI", Arial, sans-serif;
  --heading-weight: 600;

  /* layout */
  --max: 1240px;
  --gutter: 48px;
  --nav-height: 76px;
  --section-pad: 88px;
  --radius: 3px;

  /* brand marks */
  --logo-dark: url("optima-logo-black.png");
  --logo-light: url("optima-logo-white.png");
}

/* ---- reset / document ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; }
img, svg, video { max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - var(--gutter))); margin: auto; }

/* ---- accessibility ---- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 18px; top: 12px; z-index: 99; background: var(--white); padding: 10px 14px; }

/* ---- header / nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 246, 243, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { min-height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; width: 150px; height: 42px; background: var(--logo-dark) left center / contain no-repeat; font-size: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.9rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-cta { background: var(--navy); color: var(--white) !important; padding: 12px 18px; font-weight: 700; border-radius: 2px; }
.menu-button { display: none; border: 0; background: none; font: inherit; font-weight: 700; }

/* ---- type ---- */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand { font-family: var(--font-heading); font-weight: var(--heading-weight); }
h1 { font-size: clamp(3.7rem, 7.4vw, 7.2rem); line-height: 0.94; letter-spacing: -0.055em; margin: 18px 0 28px; max-width: 980px; }
h2 { font-size: clamp(2.45rem, 4vw, 4.25rem); line-height: 0.98; letter-spacing: -0.045em; margin-bottom: 22px; }
h3 { font-size: 1.55rem; line-height: 1.12; letter-spacing: -0.025em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 800; color: var(--teal); }
.lead { font-size: clamp(1.16rem, 2vw, 1.46rem); color: #ced7e4; max-width: 760px; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: 108px 0 74px; min-height: calc(100svh - var(--nav-height));
  display: flex; align-items: center;
}
.hero.compact { min-height: 520px; padding: 72px 0 68px; }
.hero.compact h1 { font-size: clamp(2.9rem, 4.5vw, 4.75rem); line-height: 0.97; margin: 16px 0 26px; max-width: 680px; }
.hero .eyebrow, .navy .eyebrow { color: var(--acid); }

/* ---- buttons ---- */
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 800;
  min-height: 44px; padding: 11px 18px;
  border: 1px solid currentColor; border-radius: var(--radius);
}
.button.acid { background: var(--acid); border-color: var(--acid); color: var(--navy); }
.button.light { color: var(--white); }
.button.dark { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---- sections ---- */
section { padding: var(--section-pad) 0; }
.white { background: var(--white); }
.navy { background: var(--navy); color: var(--white); }
.section-head { display: grid; grid-template-columns: 0.42fr 1.58fr; gap: 55px; align-items: end; margin-bottom: 48px; }
.section-copy { color: var(--muted); font-size: 1.16rem; max-width: 780px; }
.navy .section-copy { color: #c4cfdd; }

/* ---- footer (content rendered by /_shared/footer.js) ---- */
.footer { padding: 56px 0 28px; background: var(--footer-bg); color: var(--footer-fg); font-size: 0.9rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 40px; }
.footer-logo, .footer strong.footer-logo { display: block; width: 130px; height: 36px; background: var(--logo-light) left center / contain no-repeat; font-size: 0; }
.footer-title { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 8px; }
.footer-office { font-style: normal; line-height: 1.45; margin: 0 0 16px; }
.footer-office strong { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
/* no-JS fallback content inside the element */
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer strong:not(.footer-logo) { display: block; width: 112px; height: 32px; background: var(--logo-light) left center / contain no-repeat; font-size: 0; }

/* ---- scroll reveal (pairs with an IntersectionObserver adding .visible) ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-height);
    background: var(--paper); padding: 18px 24px; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero, .hero.compact { min-height: auto; padding: 78px 0 70px; }
}
@media (max-width: 620px) {
  :root { --gutter: 30px; --section-pad: 66px; }
  .hero { min-height: auto; }
  h1 { font-size: 3.35rem; }
  .section-head { margin-bottom: 34px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
