/* ============================================================
   Kestrel-Works corporate site stylesheet
   Tokens lifted directly from Brand Guidelines + Web Guidelines
   ============================================================ */

:root {
  --navy:     #1A3A5C;
  --navy-2:   #15314D;          /* slight tint for hover states */
  --orange:   #D9601F;
  --orange-2: #BE5119;
  --canvas:   #F5F1E8;
  --canvas-2: #EAE4D2;          /* hairline on canvas */
  --charcoal: #2A2A2A;
  --steel:    #8C8C8C;
  --hairline: #E5DFD0;          /* 1px Steel border (lightened) */
  --white:    #FFFFFF;

  --max:      1200px;
  --gutter:   24px;
  --rhythm:   8px;              /* base unit, all spacing in multiples */
}

/* Reset ---------------------------------------------------- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
img,svg { display:block; max-width:100%; }

/* Base ----------------------------------------------------- */
body {
  font-family: 'Roboto', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 { font-weight:900; line-height:1.2; color:var(--navy); letter-spacing:-0.005em; }
h1 { font-size:48px; margin-bottom:24px; }
h2 { font-size:32px; margin-bottom:24px; }
h3 { font-size:22px; margin-bottom:16px; font-weight:700; }
h4 { font-size:14px; }

p { margin-bottom:16px; max-width:65ch; text-wrap:pretty; }
strong { color: var(--navy); font-weight:700; }

a { color: var(--navy); text-decoration:none; transition: color .18s ease; }
a:hover { color: var(--orange); }
:focus-visible { outline:2px solid var(--orange); outline-offset:2px; border-radius:2px; }

::selection { background: var(--orange); color:#fff; }

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

/* Eyebrow / labels ---------------------------------------- */
.eyebrow {
  font-size: 12px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content:""; width:24px; height:2px; background: var(--orange); display:inline-block;
}

/* Header --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hairline);
  height: 80px; display: flex; align-items: center;
}
.site-header .container {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.brand-lockup { display: flex; align-items: center; gap: 0; }
.brand-lockup img { height: 44px; width: auto; }
.brand-lockup:hover { color: var(--navy); }

.site-nav ul {
  list-style: none; display: flex; gap: 36px; align-items: center;
}
.site-nav a {
  font-weight: 700; font-size: 13px; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 8px 0;
  position: relative;
}
.site-nav a::after {
  content:""; position:absolute; left:0; right:0; bottom:0;
  height:2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .2s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--navy); }

/* Mobile nav toggle */
.nav-toggle {
  display:none; background:none; border:0; padding:8px; cursor:pointer;
  color: var(--navy);
}
.nav-toggle svg { width:24px; height:24px; }

/* Hero ----------------------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--canvas);
  padding: 120px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(217,96,31,0.08), transparent 60%);
  pointer-events:none;
}
.hero > .container { position:relative; }
.hero h1 { color: var(--canvas); font-size: 56px; margin-bottom: 20px; max-width: 820px; margin-left:auto; margin-right:auto; }
.hero .lede {
  font-size: 21px; line-height: 1.5; color: var(--canvas); opacity:.9;
  max-width: 720px; margin: 0 auto 28px;
}
.hero .meta {
  font-size: 12px; color: var(--orange); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  margin-bottom: 40px;
}
.rule { width:60px; height:2px; background: var(--orange); margin: 0 auto; border:0; }
.rule.left { margin: 0 0 32px; }

/* Page hero (smaller, canvas) ----------------------------- */
.page-hero {
  background: var(--canvas);
  padding: 88px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--canvas-2);
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: 52px; max-width: 800px; margin-left:auto; margin-right:auto; }
.page-hero .lede {
  font-size: 19px; line-height: 1.5; color: var(--charcoal);
  max-width: 720px; margin: 12px auto 0;
}

/* Sections ------------------------------------------------- */
section { padding: 96px 0; }
section.canvas { background: var(--canvas); }
section.navy { background: var(--navy); color: var(--canvas); }
section.navy h2, section.navy h3 { color: var(--canvas); }
section + section { border-top: 1px solid transparent; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow { justify-content:center; }

/* Grids ---------------------------------------------------- */
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* Card ----------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 32px;
  position: relative;
}
.card::before {
  content:""; position:absolute; top:-1px; left:32px; width:40px; height:3px;
  background: var(--orange);
}
.card h3 { color: var(--navy); margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
section.canvas .card { background: var(--white); }

/* Stat card ------------------------------------------------ */
.stat {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 28px 24px 24px;
  border-radius: 8px;
}
.stat .num { font-size: 36px; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.stat .label {
  font-size: 12px; color: var(--steel);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-top: 10px; line-height: 1.4;
}
section.canvas .stat { background: var(--white); }

/* Phase / timeline card ----------------------------------- */
.phase {
  background: var(--white);
  border-left: 3px solid var(--orange);
  border-top: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
.phase + .phase { margin-top: 16px; }
.phase .meta {
  font-size: 11px; font-weight:700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.18em;
}
.phase h3 { font-size: 20px; margin: 6px 0 8px; color: var(--navy); }
.phase p { margin: 0; }

/* Buttons -------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 4px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  min-height: 44px;
}
.btn:hover { background: var(--orange); border-color: var(--orange); color:#fff; }

.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--canvas); color: var(--navy); border-color: var(--navy); }

.btn--ghost-light { background: transparent; border-color: var(--canvas); color: var(--canvas); }
.btn--ghost-light:hover { background: var(--canvas); color: var(--navy); border-color: var(--canvas); }

/* Inline link with arrow ---------------------------------- */
.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  transition: color .15s ease, border-color .15s ease;
}
.read-more:hover { color: var(--orange); border-color: var(--orange); }
.read-more .arrow { display:inline-block; transition: transform .2s ease; }
.read-more:hover .arrow { transform: translateX(4px); }

/* CTA band -------------------------------------------------- */
.cta-band {
  background: var(--navy);
  color: var(--canvas);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content:""; position:absolute; left:50%; top:0;
  width:60px; height:2px; background: var(--orange); transform: translateX(-50%);
}
.cta-band h2 { color: var(--canvas); margin-bottom: 12px; }
.cta-band p { color: var(--canvas); opacity:.85; margin: 0 auto 32px; max-width: 560px; }

/* Footer --------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--canvas);
  padding: 72px 0 24px;
}
.site-footer .footer-grid {
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,241,232,0.12);
  position: relative;
}
.site-footer .footer-grid::before {
  content:""; position:absolute; top:0; left:0; width:60px; height:2px; background: var(--orange);
}
.site-footer .brand-block { padding-top: 12px; }
.site-footer .brand-block img { height: 44px; width:auto; margin-bottom: 20px; filter: brightness(0) invert(1) opacity(.95); }
.site-footer .tagline { font-size: 14px; line-height: 1.6; opacity: .75; max-width: 320px; }
.site-footer h4 {
  color: var(--canvas);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 18px;
  padding-top: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: var(--canvas); opacity: .82; }
.site-footer a:hover { color: var(--orange); opacity: 1; }
.site-footer .legal {
  display:flex; justify-content:space-between; align-items:center; flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  font-size: 12px; opacity: .65;
  font-style: italic;
}
.site-footer .legal a { font-style: normal; }

/* Logo lockup IN footer — keep canvas-on-navy version */
.site-footer .brand-block img.lockup-light {
  filter: none;
}

/* Utility -------------------------------------------------- */
.muted { color: var(--steel); }
.italic { font-style: italic; }
.center { text-align: center; }
.lede { font-size: 19px; line-height: 1.55; color: var(--charcoal); }
.tight { margin-bottom: 8px; }
.spacer-32 { height: 32px; }
.spacer-48 { height: 48px; }
.spacer-64 { height: 64px; }

.divider {
  width: 60px; height: 2px; background: var(--orange);
  border: 0; margin: 32px 0;
}

/* Responsive ----------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 880px) {
  .site-nav ul { display:none; }
  .site-nav.open ul {
    display:flex;
    position: absolute; left:0; right:0; top: 80px;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 0 16px;
  }
  .site-nav.open ul li { padding: 0 var(--gutter); }
  .site-nav.open ul a { display:block; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .site-nav.open ul a::after { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }

  .hero { padding: 88px 0 72px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 18px; }

  .page-hero { padding: 64px 0 48px; }
  .page-hero h1 { font-size: 36px; }

  section { padding: 64px 0; }

  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }

  .phase { grid-template-columns: 1fr; gap: 12px; padding: 20px 24px; }

  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .brand-lockup img { height: 36px; }
  .site-footer .legal { justify-content: flex-start; }
}

/* Print ---------------------------------------------------- */
@media print {
  .site-header, .site-nav, .nav-toggle, .cta-band, .site-footer { display: none; }
  body { color: #000; }
  section { padding: 24px 0; page-break-inside: avoid; }
}
