/* ============================================================
   Conselara — shared stylesheet
   Design by 906 Creative
   H1: Rethink Sans Bold  |  H2: Semibold  |  H3: Medium  |  Body: Inter

   COLOR RULE: burnt orange (#C44D00) signals interactivity only —
   buttons, text links, nav active/hover. It is never used on plain
   text, labels, data, or decoration. Teal (#16766A) is the
   non-interactive accent — leadership avatars + role labels,
   the about-page stat numbers, capability-card icons, and the small
   decorative node-dots. Navy (#131E3D) carries headings, dark
   backgrounds, and the wordmark; body copy uses the grey/brown ramp.

   EYEBROW LABELS: one .eyebrow class everywhere (hero, banners,
   sections) — ALL CAPS via CSS, --label color.
   Source text is written sentence case; CSS uppercases it.
   --label #736A54 and --label-dark #A8A296 both pass WCAG AA.
   ============================================================ */

:root {
  --orange: #C44D00;
  --orange-bright: #E87538;   /* accent on dark backgrounds */
  --teal: #16766A;            /* leadership accent — WCAG AA 5.5:1 */
  --ink: #131E3D;             /* brand navy — headings + dark surfaces */
  --text: #46423A;            /* body copy */
  --text-soft: #5A564C;       /* secondary copy */
  --text-mute: #7A766B;       /* captions */
  --label: #736A54;           /* eyebrow labels on light — WCAG AA 4.5:1+ */
  --label-dark: #A8A296;      /* eyebrow labels on dark — WCAG AA 7.3:1 */
  --paper: #FFFFFF;
  --paper-warm: #FBFAF7;      /* warm off-white surface */
  --line: #E4E1D8;            /* hairline borders */
  --line-strong: #CFCBC0;     /* button outlines */

  --maxw: 1200px;             /* content column */
  --gutter: 120px;            /* desktop side margin */
  --edge: max(var(--gutter), calc((100% - 1440px) / 2));  /* caps content at 1440, centered */
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ---- layout helpers ------------------------------------------------ */
.wrap { margin: 0 auto; padding: 0 var(--edge); }
.section { padding: 100px 0; }
/* ---- eyebrow label — ONE class used everywhere -------------------- */
.eyebrow {
  display: flex; align-items: center;
  margin-bottom: 24px;
}
.eyebrow-text {
  font-size: 12.5px; line-height: 1; letter-spacing: 2.5px;
  font-weight: 600; color: var(--label); text-transform: uppercase;
}
.hero-dark .eyebrow-text, .band-dark .eyebrow-text { color: var(--label-dark); }

/* ---- typography ---------------------------------------------------- */
h1 {
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.06;
}
h2 {
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.14;
}
h3 {
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 500;
  letter-spacing: -0.3px;
}

/* ---- header / nav -------------------------------------------------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--edge);
  border-bottom: 0.5px solid var(--line);
  position: relative; z-index: 60; background: var(--paper);
}
.logo { display: flex; align-items: center; }
/* adaptive logo: letters + counter-masks follow these vars.
   defaults suit light backgrounds; override on dark surfaces. */
.logo-svg { height: 26px; width: auto; --logo-ink: var(--ink); --logo-bg: var(--paper); }
.site-footer .logo-svg { height: 26px; --logo-bg: var(--paper-warm); }
.hero-dark .logo-svg, .band-dark .logo-svg, .site-header.dark .logo-svg {
  --logo-ink: #FFFFFF; --logo-bg: var(--ink);
}
.nav { display: flex; gap: 34px; align-items: center; font-size: 14.5px; color: var(--text-soft); }
.nav a { transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--orange); font-weight: 600; }
.nav-labs { display: inline-flex; align-items: center; gap: 3px; }
.nav-labs span { font-size: 0.92em; }

/* ---- mobile nav toggle (hamburger) -------------------------------- */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px 8px; margin: -8px -8px -8px 0;
    background: none; border: 0; cursor: pointer; z-index: 60;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-header.nav-open .nav {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 34px; position: fixed; inset: 0; z-index: 50;
    background: var(--paper); font-size: 21px;
  }
  .site-header.nav-open .nav a { color: var(--ink); }
  .site-header.nav-open .nav a:hover { color: var(--orange); }
  .site-header.nav-open .nav a.active { color: var(--orange); }
  body.nav-locked { overflow: hidden; }
}

/* ---- buttons ------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15.5px;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #A33F00; }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { background: var(--paper-warm); }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 7px; }

/* ---- hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; padding: 116px var(--edge) 124px; }
.hero h1 { margin-bottom: 26px; }
.hero p { font-size: 21px; max-width: 620px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13.5px; color: var(--text-mute); margin-left: 10px; }

.hero-light { background: var(--paper-warm); }
.hero-light h1 { font-size: max(40px, 5.42vw); letter-spacing: -3.5px; }
.hero-light p { color: var(--text); }

.hero-dark { background: var(--ink); color: #fff; }
.hero-dark h1 { font-size: max(38px, 4.06vw); }
.hero-dark p { color: #C9C5BC; }

/* compact hero (about page) — shorter, smaller headline */
.hero-sm .hero-inner { padding-top: 76px; padding-bottom: 84px; }
.hero-light.hero-sm h1 { font-size: max(38px, 3.75vw); letter-spacing: -2.5px; max-width: 1000px; }

/* ---- credibility strip -------------------------------------------- */
.facts {
  display: flex;
  padding: 0 var(--edge);
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}
.fact { flex: 1; padding: 32px 48px; border-right: 0.5px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; border-right: 0; }
.fact-label { font-size: 11px; letter-spacing: 1.5px; color: var(--label); font-weight: 600; text-transform: uppercase; }
.fact-value { font-family: 'Rethink Sans', sans-serif; font-size: 24px; font-weight: 700; margin-top: 6px; }
.fact-value.accent { color: var(--ink); }
.fact-sub { font-size: 12.5px; color: var(--text-mute); }

/* stat variant (about page) */
.stats { display: flex; border-bottom: 0.5px solid var(--line); }
.stat { flex: 1; padding: 38px 48px; border-right: 0.5px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat-num { font-family: 'Rethink Sans', sans-serif; font-size: 42px; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 13px; color: var(--text-mute); }

/* ---- capabilities grid -------------------------------------------- */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cap {
  padding: 32px 34px 30px;
  border: 1px solid rgba(115, 106, 84, 0.35);
  border-radius: var(--radius);
  background: var(--paper);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.cap:hover {
  box-shadow: 0 8px 24px rgba(21, 19, 15, 0.10);
  border-color: rgba(115, 106, 84, 0.5);
  transform: translateY(-3px);
}
.cap-icons { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cap-icons i { font-size: 24px; color: var(--teal); }
.cap h3 { font-size: max(21px, 1.3vw); margin-bottom: 10px; }
.cap p { font-size: 15.5px; color: var(--text-soft); margin-bottom: 18px; max-width: 480px; }
.link-more { font-size: 14px; font-weight: 600; color: var(--orange); transition: opacity .15s ease; }
.link-more:hover { opacity: .7; }
.hero-download { margin-left: 6px; }

/* ---- what-we-do: capability cards --------------------------------- */
.wwd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.wwd-card { display: flex; flex-direction: column; padding: 40px 38px; border: 1px solid rgba(115, 106, 84, 0.3); border-radius: var(--radius); background: var(--paper); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.wwd-card:hover { box-shadow: 0 8px 24px rgba(21, 19, 15, 0.08); transform: translateY(-3px); border-color: rgba(115, 106, 84, 0.5); }
.wwd-card i { font-size: 28px; color: var(--teal); }
.wwd-card h3 { font-size: 22px; margin: 16px 0 12px; letter-spacing: -0.4px; }
.wwd-card > p { font-size: 15px; color: var(--text-soft); margin-bottom: 22px; line-height: 1.6; }
.wwd-card .cap-list { border-top: 1px solid var(--line); padding-top: 20px; margin-top: auto; }
.cap-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }

/* ---- contracts page ----------------------------------------------- */
.lead-para { font-size: 18px; color: var(--text); max-width: 760px; margin-bottom: 40px; line-height: 1.6; }
.body-para { font-size: 16px; color: var(--text-soft); max-width: 760px; line-height: 1.6; }
.contract-specs { border-top: 0.5px solid var(--line); max-width: 720px; margin-bottom: 44px; }
.spec { display: flex; justify-content: space-between; gap: 32px; padding: 16px 0; border-bottom: 0.5px solid var(--line); }
.spec-label { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--label); font-weight: 600; flex: none; }
.spec-value { font-size: 16px; color: var(--ink); font-weight: 500; text-align: right; }
.contract-link { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.contract-link:hover { color: #A33F00; }
.sub-head { font-family: 'Rethink Sans', sans-serif; font-weight: 600; font-size: 20px; margin-bottom: 18px; }
.cap-list strong { color: var(--ink); font-weight: 600; }
.section-tint { background: var(--paper-warm); border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); }
.note-italic { font-style: italic; color: var(--text-mute); font-size: 14px; margin-top: 14px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost-dark { border: 1px solid rgba(255,255,255,0.32); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); }

/* ---- resources: editorial post list ------------------------------- */
.post-list { border-top: 0.5px solid var(--line); }
.post-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 48px; align-items: center; padding: 38px 4px; border-bottom: 0.5px solid var(--line); transition: background .15s ease, padding .15s ease; }
.post-row:hover { background: var(--paper-warm); padding-left: 18px; padding-right: 18px; }
.post-meta { display: flex; flex-direction: column; gap: 10px; }
.post-cat { font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; color: var(--teal); }
.post-date { font-size: 13px; color: var(--text-mute); }
.post-title { font-family: 'Rethink Sans', sans-serif; font-weight: 600; font-size: max(20px, 1.35vw); color: var(--ink); letter-spacing: -0.4px; line-height: 1.22; transition: color .15s ease; text-wrap: pretty; }
.post-row:hover .post-title { color: var(--orange); }
.post-arrow { font-size: 22px; color: var(--orange); transition: transform .15s ease; }
.post-row:hover .post-arrow { transform: translateX(5px); }

/* ---- contact page ------------------------------------------------- */
.contact-block { display: flex; flex-direction: column; gap: 22px; margin-top: 6px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; color: var(--text); line-height: 1.55; }
.contact-item i { font-size: 22px; color: var(--teal); flex: none; margin-top: 3px; }
.contact-item a { color: var(--ink); font-weight: 500; transition: color .15s ease; }
.contact-item a:hover { color: var(--orange); }
.contact-card { border: 1px solid rgba(115, 106, 84, 0.3); border-radius: var(--radius); padding: 44px 44px; background: var(--paper); }
.cap-list li { font-size: 15px; color: var(--text-soft); padding-left: 22px; position: relative; line-height: 1.45; }
.cap-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ---- two-column prose --------------------------------------------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.col h2 { font-size: max(26px, 1.67vw); margin: 18px 0; }
.col p { font-size: 16px; color: var(--text); margin-bottom: 14px; }
.col p:last-child { margin-bottom: 0; }

/* ---- band (approach) ---------------------------------------------- */
.band-warm { background: var(--paper-warm); border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); padding: 84px 0; }
.band-warm h2 { font-size: max(28px, 1.98vw); margin: 18px 0 16px; max-width: 820px; }
.band-warm p { font-size: 17px; color: var(--text); max-width: 840px; }

/* ---- dark CTA band ------------------------------------------------ */
.band-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.band-dark .band-inner { position: relative; padding: 88px var(--edge); }
.band-dark .band-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 60px; flex-wrap: wrap; }
.cta-row h2 { font-size: max(28px, 2.08vw); margin-bottom: 10px; }
.cta-row p { font-size: 16px; color: #C9C5BC; }
.band-dark .why h2 { font-size: max(30px, 2.29vw); max-width: 920px; }
.why-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; flex-wrap: wrap; }

/* ---- section heads ------------------------------------------------ */
.section h2.section-title { font-size: max(30px, 2.6vw); letter-spacing: -1.4px; max-width: 680px; margin: 16px 0 56px; }

/* ---- leadership grid ---------------------------------------------- */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.member { background: #fff; padding: 28px 26px; }
.avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--teal); color: #FFFFFF;
  font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.member-name { font-family: 'Rethink Sans', sans-serif; font-weight: 700; font-size: 17px; }
.member-role { font-size: 11px; letter-spacing: 0.8px; color: var(--teal); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; }
.member p { font-size: 13.5px; color: var(--text-soft); }

/* ---- footer -------------------------------------------------------- */
.site-footer {
  padding: 64px var(--edge) 36px;
  border-top: 0.5px solid var(--line);
  background: var(--paper-warm);
  color: var(--text-mute);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 48px;
  padding-bottom: 44px;
}
.footer-brand .logo { display: inline-flex; margin-bottom: 22px; }
.footer-tagline {
  font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 600; color: var(--label);
}
.footer-nav { display: flex; flex-direction: column; gap: 22px; font-size: 15px; color: var(--text-soft); }
.footer-nav a { transition: color .15s ease; width: fit-content; }
.footer-nav a:hover { color: var(--orange); }
.footer-contact { display: flex; flex-direction: column; gap: 18px; font-size: 15px; color: var(--text-soft); line-height: 1.5; }
.footer-contact a { transition: color .15s ease; }
.footer-contact a:hover { color: var(--orange); }
.footer-creds { font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.footer-label {
  font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; color: var(--label); line-height: 1.4; margin-bottom: 14px;
}
.footer-contract {
  display: inline-block; margin-bottom: 14px;
  font-size: 18px; font-weight: 500; color: var(--orange);
  text-decoration: underline; text-underline-offset: 3px;
}
.footer-contract:hover { color: #A33F00; }
.footer-creds p { margin-bottom: 4px; }
.footer-bottom {
  border-top: 0.5px solid var(--line);
  padding-top: 28px;
  font-size: 13px; color: var(--text-mute);
}

/* ============================================================
   RESPONSIVE  — 1440 design scales down gracefully
   ============================================================ */
@media (max-width: 1240px) {
  :root { --gutter: 64px; }
}

@media (max-width: 900px) {
  :root { --gutter: 40px; }
  .hero-light h1 { letter-spacing: -2px; }
  .hero-inner { padding: 80px var(--gutter) 88px; }
  .hero p { font-size: 18px; }
  .facts, .stats { flex-wrap: wrap; }
  .fact, .stat { flex: 1 1 50%; border-bottom: 0.5px solid var(--line); }
  .fact:nth-child(even), .stat:nth-child(even) { border-right: 0; }
  /* 2-col: left column flush-left, right column flush-right */
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(even) { padding-right: 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap { padding: 28px 26px; }
  .cols { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { padding: 36px 30px; gap: 40px; }
  .cap-detail { grid-template-columns: 1fr; gap: 28px; }
  .wwd-grid { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 14px; }
  .post-row:hover { padding-left: 4px; padding-right: 4px; }
  .post-meta { flex-direction: row; gap: 14px; align-items: center; }
  .post-arrow { display: none; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .nav { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

@media (max-width: 560px) {
  :root { --gutter: 24px; }
  .hero-light h1 { letter-spacing: -1.5px; }
  .fact, .stat { flex: 1 1 100%; border-right: 0; }
  .fact { padding-left: 0; padding-right: 0; text-align: left; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-note { margin-left: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   MOTION — drifting node dots in the hero/banner SVGs.
   animateMotion is declared inline in the SVG markup.
   Respect users who prefer reduced motion: freeze the dots.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* moving dots have no cx/cy, so freezing motion would drop them
     to 0,0 — hide them instead; static anchor dots remain visible */
  .motif-dots { display: none; }
}
