/* ============================================================
   INTEGRUM ENERGY — Stakeholder-first website
   LIGHT THEME · blue primary + solar-yellow secondary
   Design tokens + base + shared component styles
   ============================================================ */

:root {
  /* brand */
  --navy:        #012E4A;
  --navy-700:    #013A5E;
  --navy-600:    #024D77;
  --canvas:      #F5F7F9;   /* cool off-white page */
  --paper:       #FFFFFF;
  --paper-2:     #E6EFF7;   /* soft blue-tinted surface */

  /* PRIMARY ACCENT — exact brand deep blue #014976. Names kept as --amber*
     so every reference recolors in one place (Tweaks panel overrides live). */
  --amber:       #014976;   /* brand deep blue */
  --amber-deep:  #013A5E;   /* darker blue — emphasis on white */
  --amber-soft:  #D8E7F1;   /* soft blue tint */

  /* logo-derived secondaries */
  --solar:       #FFCE03;   /* brand golden yellow */
  --solar-deep:  #E0B400;
  --solar-soft:  #FFF3C2;
  --logo-blue:   #014976;   /* brand deep blue — stat numbers */
  --green:       #1D9E75;
  --green-soft:  #DDF1E9;

  /* ink */
  --ink:         #0B2036;
  --ink-2:       #435769;
  --ink-3:       #6C7E90;
  --hairline:    rgba(1,73,118,.12);
  --hairline-2:  rgba(1,73,118,.20);
  --gray-100:    #E6E8EA;

  /* surfaces */
  --bg:          var(--canvas);
  --surface:     var(--paper);
  --surface-2:   var(--paper-2);
  --dark-surface:#0B2038;

  /* persona accents (lane tints) */
  --p-cni:       #005B96;
  --p-investor:  #2E72E6;
  --p-customer:  #004A7A;
  --p-partner:   #F2664B;
  --accent:      var(--amber);
  --accent-deep: var(--amber-deep);
  --accent-soft: var(--amber-soft);

  /* type */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* radii + shadow */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(11,32,56,.06), 0 2px 8px rgba(11,32,56,.05);
  --sh-2: 0 8px 30px rgba(11,32,56,.10), 0 2px 8px rgba(11,32,56,.05);
  --sh-3: 0 24px 60px rgba(11,32,56,.16), 0 8px 24px rgba(11,32,56,.08);

  /* layout */
  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -0.035em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--amber); }
button { font-family: inherit; cursor: pointer; }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
::selection { background: var(--solar); color: #1F1604; }

/* ---------- layout helpers ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 92px); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-deep); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; border-radius:2px; background: var(--solar); display:inline-block; flex: none; }
.eyebrow-light { color: var(--solar); }
.eyebrow-light::before { background: var(--solar); }
.muted { color: var(--ink-2); }
.t3 { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  padding: 14px 21px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* PRIMARY: brand blue → warms to solar-yellow on hover (Sign in, Talk to advisor, etc.) */
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn-primary:hover { background: var(--solar); color: #1F1604; box-shadow: 0 10px 26px rgba(245,184,28,.42); }
/* NAV CTA: solar-yellow by default → deep brand blue on hover/focus */
.btn-nav-cta { background: var(--solar); color: #1F1604; box-shadow: 0 6px 18px rgba(245,184,28,.36); }
.btn-nav-cta:hover, .btn-nav-cta:focus-visible { background: var(--accent); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--solar); color: #1F1604; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--amber-soft); }
/* ghost button tuned for dark sections — warms to solar on hover */
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.38); }
.btn-ghost-light:hover { background: var(--solar); color: #1F1604; border-color: var(--solar); box-shadow: 0 10px 26px rgba(245,184,28,.34); }
.btn-lg { padding: 17px 28px; font-size: 15px; }
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--accent-deep); font-size: 15px; }
.link-arrow:hover { color: var(--amber); }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 7px 13px; border: 1px solid var(--hairline-2); border-radius: 999px;
  background: var(--surface);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.pulse-dot::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:.9} 100%{transform:scale(2.1);opacity:0} }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh-1); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 1px 14px rgba(11,32,56,.05); }
.nav-inner { display: flex; align-items: center; gap: 28px; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 13px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--amber-soft); }
.nav-links a.active { color: var(--accent-deep); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--hairline); transition: .15s; }
.nav-icon:hover { color: var(--accent-deep); background: var(--amber-soft); border-color: var(--hairline-2); }
.nav-textlink { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-textlink:hover { color: var(--accent-deep); }
/* The inline nav row needs ~1256px once "Knowledge Hub" is in it, so the
   hamburger has to take over well before the old 960px mark — otherwise the
   links render in a space too narrow to hold them and wrap to two lines. */
@media (max-width: 1260px){ .nav-links, .nav-textlink { display: none; } }
@media (min-width: 1261px){ .nav-inner { gap: 22px; } .nav-links a { padding-inline: 11px; } }
@media (max-width: 760px){ .nav-right { gap: 6px; } .nav-right .btn-primary, .nav-right .btn-nav-cta { display: none; } .nav-textlink { display: none; } .brand-logo { height: 32px; } .nav-gptw { height: 26px; margin-left: 7px; } .nav-inner { gap: 10px; } }
@media (max-width: 380px){ .nav-gptw { display: none; } }

/* logo mark */
.logo-mark { width: 30px; height: 30px; flex: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-chip { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.brand-chip img { height: 28px; width: auto; display: block; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #C9D6E4; padding-block: 72px 36px; margin-top: 0; }
.footer h5 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7C93AC; font-weight: 600; margin: 0 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px 32px; }
.footer-col a { display: block; color: #AFC0D2; font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--solar); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.fbadge { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #C9D6E4; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; padding: 7px 11px; display:inline-flex; gap:7px; align-items:center; }
/* social row */
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.fsoc { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #C9D6E4; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.03); transition: .18s; }
.fsoc:hover { color: #0B2038; background: var(--solar); border-color: var(--solar); transform: translateY(-2px); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10); font-size: 13px; color: #7C93AC; }
.footer-base a { color: #AFC0D2; }
.footer-base a:hover { color: var(--solar); }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; } html{scroll-behavior:auto;} }

/* ---------- page transition ---------- */
.page-fade { animation: pageIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn { from { transform: translateY(10px);} to { transform:none;} }
