/* ==========================================================================
   Corevia ESG — Base Stylesheet
   Design tokens, typography, navigation, footer, buttons, and shared
   components used across every page of the site.
   ========================================================================== */

:root{
  --navy:#1F2F4A;
  --navy-light:#33456A;
  --teal:#2F6F68;
  --teal-tint:#E7EFEE;
  --gold:#C6A14A;
  --offwhite:#F4F6F8;
  --white:#FFFFFF;
  --charcoal:#2B2B2B;
  --charcoal-soft:#5B6270;
  --line:#DDE2E8;
  --radius:14px;
  --maxw:1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Inter',sans-serif;
  color:var(--charcoal);
  background:var(--offwhite);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

h1,h2,h3{
  font-family:'Fraunces',serif;
  color:var(--navy);
  margin:0;
  font-weight:500;
  letter-spacing:-0.01em;
}

.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
}

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

/* ---------- NAV ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(244,246,248,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 32px; max-width:var(--maxw); margin:0 auto;
}
.navbar img{ width:100px; }
.navlinks{ display:flex; gap:36px; align-items:center; }
.navlinks a{
  font-size:14.5px; font-weight:500; color:var(--navy);
  position:relative; padding:4px 0;
}
.navlinks a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--gold); transition:width .2s ease;
}
.navlinks a:hover::after{ width:100%; }
.navlinks a.active{ font-weight:700; }
.navlinks a.active::after{ width:100%; }
@media (max-width:900px){ .navlinks{ display:none; } }

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:14px;
  padding:11px 22px; border-radius:8px; cursor:pointer; border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--gold); color:var(--navy); }
.btn-primary:hover{ box-shadow:0 6px 18px rgba(198,161,74,0.35); }
.btn-ghost{ border-color:var(--navy); color:var(--navy); }
.btn-ghost:hover{ background:var(--navy); color:#fff; }
.btn-ghost-light{ border-color:rgba(255,255,255,0.4); color:#fff; }
.btn-ghost-light:hover{ background:#fff; color:var(--navy); }

/* ---------- SIGNATURE "LEDGER TRACE" MOTIF ---------- */
.traced{ position:relative; padding-left:28px; }
.traced::before{
  content:""; position:absolute; left:0; top:6px; bottom:6px; width:1px;
  background:linear-gradient(var(--gold), rgba(198,161,74,0.15));
}
.traced::after{
  content:""; position:absolute; left:-3.5px; top:6px; width:8px; height:8px;
  border-radius:50%; background:var(--gold);
}
@media (max-width:760px){ .traced{ padding-left:0; } .traced::before,.traced::after{ display:none; } }

/* ---------- GENERIC SECTION HEAD ---------- */
section{ padding:80px 0; }
.section-head{ max-width:660px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(26px,3vw,34px); margin:10px 0 14px; }
.section-head p{ font-size:16px; color:var(--charcoal-soft); }

/* ---------- SHARED DARK CLOSING CTA ---------- */
.closing{ background:var(--navy); color:#fff; text-align:center; padding:96px 0; }
.closing h2{ color:#fff; font-size:clamp(28px,4vw,40px); max-width:720px; margin:0 auto 18px; }
.closing p{ color:#C7CFDC; font-size:16px; max-width:520px; margin:0 auto 34px; }
.closing .hero-ctas{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.closing .contact-line{ margin-top:22px; font-size:13.5px; color:#9AA6BA; }

/* ---------- FOOTER ---------- */
footer{ background:#EAEDF1; border-top:1px solid var(--line); padding:56px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; margin-bottom:40px; }
.footer-brand img{ width:100px; margin-bottom:12px; }
.footer-brand p{ font-size:13px; color:var(--charcoal-soft); max-width:220px; }
.footer-col h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--charcoal-soft); margin-bottom:14px; font-weight:600; }
.footer-col a{ display:block; font-size:13.8px; color:var(--navy); margin-bottom:10px; }
.footer-col a:hover{ color:var(--teal); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  border-top:1px solid var(--line); padding-top:22px; font-size:12.5px; color:var(--charcoal-soft);
  max-width:var(--maxw); margin:0 auto; padding-left:32px; padding-right:32px;
}
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
