/* ==========================================================================
   LEGACY HUB INFRAVENTURE — DESIGN SYSTEM
   Signature motif: the hexagon of the brand mark, carried through as
   dividers, frames, badges and node markers.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root{
  /* ---- Color tokens ---- */
  --ink:        #0B0A10;   /* primary near-black, from brand mark */
  --ink-soft:   #211F29;   /* charcoal panels / secondary surfaces */
  --ink-mute:   #6B6874;   /* muted text on light */
  --gold:       #C8952A;   /* primary brand gold */
  --gold-deep:  #A87519;   /* pressed / hover state */
  --gold-light: #E8CE9A;   /* champagne tint */
  --paper:      #FFFFFF;   /* base background — pure white */
  --paper-dim:  #F4F4F4;   /* recessed panels on white */
  --white:      #FFFFFF;

  /* ---- Type ---- */
  --font-display: "Montserrat", "Arial Black", sans-serif;  /* matches logo wordmark: bold, uppercase, condensed sans */
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", monospace;

  /* ---- Rhythm ---- */
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.container{
  max-width:1240px;
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--gold-deep);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:9px; height:9px;
  background:var(--gold);
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  flex:none;
}
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(30px,4vw,46px); margin-top:14px; line-height:1.12; }
.section-head p{ margin-top:18px; color:var(--ink-mute); font-size:16.5px; max-width:52ch; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.on-dark p{ color:#B9B6C2; }
.section-head.on-dark h2{ color:var(--white); }
.section-head.on-dark .eyebrow{ color:var(--gold-light); }

section{ padding:clamp(64px,9vw,120px) 0; }
.section-tight{ padding:clamp(40px,5vw,64px) 0; }
.on-ink{ background:var(--ink); color:var(--white); }
.on-panel{ background:var(--paper-dim); }

/* ---- Hexagon divider (signature element) ---- */
.hex-divider{
  display:flex; align-items:center; gap:14px;
  width:100%; padding: 0;
}
.hex-divider .line{ flex:1; height:1px; background:linear-gradient(90deg, transparent, currentColor 40%, currentColor 60%, transparent); opacity:0.25; }
.hex-divider .hex{
  width:10px; height:10px;
  border:1.4px solid var(--gold);
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
}

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px;
  font-weight:600; font-size:14.5px;
  border-radius:2px;
  border:1px solid transparent;
  transition:transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn-gold{ background:var(--gold); color:var(--ink); }
.btn-gold:hover{ background:var(--gold-deep); transform:translateY(-2px); }
.btn-outline{ border-color:rgba(255,255,255,0.35); color:var(--white); }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-light); }
.btn-ink{ background:var(--ink); color:var(--white); }
.btn-ink:hover{ background:var(--ink-soft); transform:translateY(-2px); }
.btn-ghost{ border-color:var(--ink); color:var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:var(--white); }
.btn svg{ width:16px; height:16px; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(250,248,243,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(11,10,16,0.08);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px var(--gutter);
  max-width:1240px; margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:44px; width:auto; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong{ font-family:var(--font-display); font-size:17px; letter-spacing:0.01em; }
.brand-text span{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--ink-mute); }

.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-links a{
  padding:10px 16px; font-size:14.5px; font-weight:600; color:var(--ink-soft);
  position:relative;
}
.nav-links a.active{ color:var(--ink); }
.nav-links a.active::after{
  content:""; position:absolute; left:16px; right:16px; bottom:4px; height:2px; background:var(--gold);
}
.nav-links a:hover{ color:var(--gold-deep); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.nav-cta .btn{ padding:12px 22px; }
.nav-toggle{ display:none; background:none; border:none; padding:8px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; }

@media (max-width: 980px){
  .nav-links{ display:none; }
  .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:block; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background:var(--ink); color:#D8D5DF; padding-top:80px; }
.footer-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:56px;
  padding-bottom:56px; border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-text strong{ color:var(--white); }
.footer-brand .brand-text span{ color:#9A96A6; }
.footer-brand p{ margin-top:18px; color:#A6A2AF; max-width:34ch; font-size:14.5px; }
.footer-col h4{ font-family:var(--font-mono); font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold-light); margin-bottom:20px; font-weight:700;}
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul a{ color:#C7C4D0; font-size:14.5px; }
.footer-col ul a:hover{ color:var(--gold); }
.footer-social{ display:flex; gap:10px; margin-top:22px; }
.footer-social a{
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,0.18); border-radius:50%;
}
.footer-social a:hover{ border-color:var(--gold); color:var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding:26px 0; color:#8B879A; font-size:13px;
}
.footer-bottom a{ color:#8B879A; margin-left:22px; }
.footer-bottom a:hover{ color:var(--gold); }

@media (max-width: 900px){
  .footer-top{ grid-template-columns:1fr 1fr; row-gap:40px; }
  .footer-bottom{ flex-direction:column; gap:10px; text-align:center; }
  .footer-bottom a{ margin:0 8px; }
}

/* ==========================================================================
   PAGE HERO BANNER (inner pages)
   ========================================================================== */
.page-banner{
  background:var(--ink); color:var(--white); position:relative; overflow:hidden;
  padding:64px 0 56px;
}
.page-banner::after{
  content:""; position:absolute; right:-60px; top:50%; transform:translateY(-50%);
  width:340px; height:340px;
  border:1.5px solid rgba(200,149,42,0.25);
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
}
.page-banner .container{ position:relative; z-index:1; }
.breadcrumb{ font-family:var(--font-mono); font-size:12.5px; color:#B9B6C2; letter-spacing:0.04em; margin-top:10px;}
.breadcrumb a{ color:#B9B6C2; }
.breadcrumb a:hover{ color:var(--gold-light); }
.page-banner h1{ font-size:clamp(32px,4.4vw,52px); margin-top:8px; }

/* ==========================================================================
   Utility layout helpers
   ========================================================================== */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
@media (max-width:980px){ .grid-2{ grid-template-columns:1fr; gap:40px; } .grid-3{ grid-template-columns:1fr 1fr; } .grid-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .grid-3{ grid-template-columns:1fr; } .grid-4{ grid-template-columns:1fr; } }

.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* ==========================================================================
   Back-to-top
   ========================================================================== */
.to-top{
  position:fixed; right:26px; bottom:26px; z-index:90;
  width:46px; height:46px; background:var(--ink); color:var(--gold);
  display:flex; align-items:center; justify-content:center;
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  opacity:0; pointer-events:none; transition:opacity .3s ease, transform .3s ease;
  border:none;
}
.to-top.show{ opacity:1; pointer-events:auto; }
.to-top:hover{ transform:translateY(-3px); }
