/* ==========================================================
   BRUGGEN ADVISORS — DESIGN TOKENS
   ========================================================== */
:root{
  /* color */
  --ink:        #13213A;   /* headlines, primary dark */
  --steel:      #3C4B5C;   /* secondary text / UI */
  --charcoal:   #232B36;   /* body copy */
  --bronze:     #A9752E;   /* accent — cable, CTA, highlight */
  --bronze-dark:#8C5F22;
  --paper:      #FFFFFF;
  --tint:       #F1F4F6;   /* cool section tint, not cream */
  --line:       #DCE1E6;   /* hairlines */
  --line-dark:  rgba(255,255,255,.16);

  /* type */
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-body:    'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 600;
}

p{ margin: 0 0 1em; color: var(--charcoal); }
a{ color: inherit; }

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

.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--ink); color:#fff; padding:12px 18px; z-index:200;
}
.skip-link:focus{ left:16px; top:16px; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.eyebrow{
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin: 0 0 14px;
  font-weight: 600;
}
.eyebrow-light{ color: #D8B573; }

.section-title{ font-size: clamp(26px, 3.4vw, 38px); max-width: 760px; }
.title-light{ color: #F4F1E8; }
.section-intro{ max-width: 620px; color: var(--steel); font-size: 17px; }

/* ==========================================================
   HEADER / NAV
   ========================================================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color: var(--ink);
}
.logo-mark{ display:flex; align-items:center; }
.logo-mark img{ display:block; }
.logo-text{
  font-family: var(--font-mono);
  font-weight:600; font-size:17px; letter-spacing:.04em;
  display:flex; flex-direction:column; line-height:1.15;
}
.logo-sub{ font-size:13px; letter-spacing:.14em; color: var(--steel); font-weight:500; }

.main-nav{ display:flex; align-items:center; gap:30px; }
.main-nav a{
  text-decoration:none; color: var(--steel);
  font-size: 14.5px; font-weight:500;
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--ink); }
.nav-cta{
  background: var(--ink); color:#fff !important;
  padding: 10px 18px; border-radius: 3px;
}
.nav-cta:hover{ background: var(--bronze-dark); color:#fff !important; }
.main-nav a[aria-current="page"]{
  color: var(--ink); font-weight:600; border-bottom: 2px solid var(--bronze); padding-bottom:4px;
}
.main-nav a.nav-cta[aria-current="page"]{ border-bottom:none; padding-bottom:10px; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  background:none; border:0; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--ink); display:block; }

/* ==========================================================
   INTERIOR PAGE HEADER
   ========================================================== */
.page-header{
  background: var(--ink);
  padding: 64px 0 56px;
  color: #F4F1E8;
}
.page-header .eyebrow{ color:#D8B573; }
.page-header h1{
  color:#F4F1E8; font-size: clamp(32px, 4.4vw, 48px); max-width: 760px;
}
.page-header p.lede{
  color:#C7CEDA; font-size:18px; max-width:640px; margin:0;
}

/* ==========================================================
   IMAGE PLACEHOLDER (swap for real photography via OneDrive)
   ========================================================== */
.img-placeholder{
  position:relative;
  display:flex; align-items:flex-end; justify-content:flex-start;
  background: var(--ink);
  color: #F4F1E8;
  border-radius: 4px;
  padding: 18px 20px;
  overflow:hidden;
}
.img-placeholder::before{
  content:"PHOTO PENDING";
  position:absolute; top:16px; right:16px;
  font-family: var(--font-mono); font-size:13px; letter-spacing:.08em;
  color: #D8B573; border:1px solid rgba(216,181,115,.5);
  padding:4px 8px; border-radius:20px;
}
.img-placeholder span{
  max-width: 260px; font-family: var(--font-mono); font-size: 13px; line-height:1.5;
}
.img-placeholder.portrait{ aspect-ratio: 4 / 5; }
.img-placeholder.wide{ aspect-ratio: 16 / 7; }
.img-placeholder.square{ aspect-ratio: 1 / 1; }

/* real photography */
.photo{
  width:100%; height:100%; object-fit:cover; display:block; border-radius:4px;
}
.photo-frame{ border-radius:4px; overflow:hidden; box-shadow: 0 18px 40px -18px rgba(19,33,58,.35); }
.photo-frame.portrait{ aspect-ratio: 4/5; }
.photo-frame.wide{ aspect-ratio: 16/7; }

/* ==========================================================
   HERO
   ========================================================== */
.hero{
  padding: 76px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #FCFCFB 0%, #FFFFFF 60%);
}
.hero-inner{ padding-top: 64px; padding-bottom: 8px; text-align:left; }
.hero-title{
  font-size: clamp(32px, 5vw, 54px);
  max-width: 900px;
  letter-spacing: -.01em;
}
.hero-sub{
  font-size: 18px; color: var(--steel);
  max-width: 640px; margin-bottom: 34px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 20px; }

.btn{
  display:inline-block; text-decoration:none;
  font-family: var(--font-body); font-weight:600; font-size:16px;
  padding: 14px 26px; border-radius: 3px;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background: var(--ink); color:#fff; border:1px solid var(--ink); }
.btn-primary:hover{ background: var(--bronze-dark); border-color: var(--bronze-dark); }
.btn-ghost{ background:transparent; color: var(--ink); border:1px solid var(--line); }
.btn-ghost:hover{ border-color: var(--ink); }

.bridge-wrap{ width:100%; line-height:0; }
.hero-photo{ width:100%; height:auto; display:block; }

/* ==========================================================
   SECTIONS (shared)
   ========================================================== */
.section{ padding: 96px 0; }
.section-tint{ background: var(--tint); }
.section-dark{ background: var(--ink); }
.section-dark p{ color: #E9EDF1; }
.section-dark .btn-primary{ background: var(--bronze); border-color: var(--bronze); color:#fff; }
.section-dark .btn-primary:hover{ background: var(--bronze-dark); border-color: var(--bronze-dark); }
.section-dark .btn-ghost{ border-color: rgba(255,255,255,.35); color:#F4F1E8; }
.section-dark .btn-ghost:hover{ border-color:#F4F1E8; }

/* ==========================================================
   THE GAP
   ========================================================== */
.gap-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 48px;
}
.gap-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px 26px;
  border-radius: 4px;
}
.gap-tag{
  font-family: var(--font-sans); font-size:13px; letter-spacing:.08em;
  text-transform: uppercase; color: var(--bronze-dark); margin-bottom:14px; font-weight:600;
}
.gap-card h3{ font-size: 20px; margin-bottom: 12px; }
.gap-card p{ color: var(--steel); font-size:16px; margin:0; }

/* ==========================================================
   SERVICES
   ========================================================== */
.services-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 30px 28px;
  margin-top: 48px;
}
.service-card h3{ font-size: 19px; margin-bottom:10px; }
.service-card p{ color: var(--steel); font-size:16px; margin:0; }
.service-icon{
  display:flex; align-items:center; justify-content:center;
  width:52px; height:52px; margin-bottom:18px;
  color: var(--bronze-dark);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.service-icon svg{ width:26px; height:26px; }

/* ==========================================================
   WHO WE SERVE
   ========================================================== */
.who-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px;
}
.who-card{
  padding: 26px 22px;
  border-top: 3px solid var(--bronze);
  background: var(--tint);
}
.who-card h3{ font-size: 17px; margin-bottom:10px; }
.who-card p{ color: var(--steel); font-size:16px; margin:0; }

/* ==========================================================
   APPROACH / WHY BRUGGEN
   ========================================================== */
.approach-grid{
  display:grid; grid-template-columns: 1.3fr .9fr; gap: 64px; align-items:start;
}
.approach-copy p{ font-size:16px; }
.approach-copy em{ color:#F4F1E8; font-style:italic; }

.stat-strip{
  margin:0; display:grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px;
  align-content:start; margin-top: 8px;
}
.stat{ border-top: 1px solid var(--line-dark); padding-top: 16px; }
.stat dt{
  font-family: var(--font-display); font-size: 28px; font-weight:700;
  color: #F4F1E8; margin:0 0 6px;
}
.stat dd{ margin:0; font-size: 14px; color:#C3CCD6; }

/* ==========================================================
   HOW WE WORK
   ========================================================== */
.process-list{
  list-style:none; margin: 48px 0 0; padding:0;
  display:grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.process-list li{
  border-top: 1px solid var(--line); padding-top: 18px;
}
.process-num{
  font-family: var(--font-mono); color: var(--bronze); font-size:13px; font-weight:600;
  display:block; margin-bottom: 10px; letter-spacing:.06em;
}
.process-list h3{ font-size:17px; margin-bottom:8px; }
.process-list p{ color: var(--steel); font-size:16px; margin:0; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid{
  display:grid; grid-template-columns: 1.4fr .8fr; gap: 56px;
  margin-top: 44px; align-items:start;
}
.contact-form{ display:flex; flex-direction:column; gap:18px; }
.contact-form label{
  display:flex; flex-direction:column; gap:8px;
  font-size:14px; font-weight:600; color: var(--ink);
}
.contact-form input, .contact-form textarea{
  font-family: var(--font-body); font-size:16px;
  padding: 12px 14px; border:1px solid var(--line); border-radius:3px;
  background: var(--paper); color: var(--charcoal);
  font-weight:400;
}
.contact-form input:focus, .contact-form textarea:focus{
  border-color: var(--bronze); outline:none;
}
.contact-form button{ align-self:flex-start; border:1px solid var(--ink); cursor:pointer; }
.form-note{ font-size:13.5px; color: var(--steel); margin-top:-4px; }

.contact-details p{ font-size:16px; margin-bottom:10px; }
.contact-details a{ text-decoration:none; border-bottom:1px solid var(--line); }
.contact-details a:hover{ border-color: var(--bronze); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer{ background: var(--ink); color:#A9B3C4; padding: 44px 0; }
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px;
}
.footer-logo{ color:#F4F1E8; }
.footer-logo .logo-sub{ color:#8996A9; }
.footer-tag{ font-size:13px; color:#A9B3C0; margin: 6px 0 0; font-family: var(--font-mono); }
.footer-nav{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-nav a{ color:#E4E8EC; text-decoration:none; font-size:14px; }
.footer-nav a:hover{ color:#fff; }
.footer-copy{ font-size:13px; color:#A9B3C0; margin:0; width:100%; text-align:center; }

/* ==========================================================
   SERVICE DETAIL BLOCKS (services.html)
   ========================================================== */
.service-detail{
  display:grid; grid-template-columns: 260px 1fr; gap: 44px;
  padding: 44px 0; border-top: 1px solid var(--line);
}
.service-detail:last-child{ padding-bottom:0; }
.service-detail-head{ display:flex; flex-direction:column; gap:14px; }
.service-detail-head .service-icon{ margin-bottom:0; }
.service-detail-head h2{ font-size:22px; margin:0; }
.service-detail-body p{ color: var(--steel); font-size:16px; max-width: 640px; }
.deliverables{
  list-style:none; margin: 18px 0 0; padding:0;
  display:grid; gap:10px;
}
.deliverables li{
  padding-left: 22px; position:relative; font-size:16px; color: var(--charcoal);
}
.deliverables li::before{
  content:""; position:absolute; left:0; top:8px; width:8px; height:8px;
  border: 1.5px solid var(--bronze); border-radius:50%;
}

/* engagement types (services.html) */
.engagement-types{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; margin-top:40px;
}
.engagement-type{ padding:24px 20px; background: var(--tint); border-radius:4px; }
.engagement-type h3{ font-size:16px; margin-bottom:8px; }
.engagement-type p{ font-size:16px; color:var(--steel); margin:0; }

/* ==========================================================
   SEGMENT DETAIL BLOCKS (who-we-serve.html)
   ========================================================== */
.segment-detail{
  display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.segment-detail:last-of-type{ padding-bottom: 0; }
.segment-detail.reverse .segment-copy{ order:2; }
.segment-detail.reverse .segment-media{ order:1; }
.segment-copy h2{ font-size:24px; }
.segment-copy .segment-kicker{
  font-family: var(--font-sans); font-size:13px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--bronze-dark); font-weight:600; margin-bottom:10px; display:block;
}
.segment-copy ul{ margin:16px 0 0; padding-left:20px; color:var(--steel); font-size:16px; }
.segment-copy ul li{ margin-bottom:8px; }

.fit-check-wrap{ margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.fit-check-wrap .section-title{ margin-bottom: 32px; }
.fit-check{
  display:grid; grid-template-columns: 1fr 1fr; gap:24px;
}
.fit-check-card{
  padding: 28px 26px; border-radius:4px; border-top: 3px solid;
  background: var(--tint);
}
.fit-check-good{ border-top-color: var(--bronze); }
.fit-check-not{ border-top-color: var(--steel); }
.fit-check h3{ font-size:17px; margin-bottom:12px; }
.fit-check p{ font-size:16px; color:var(--steel); margin:0; }

/* ==========================================================
   ABOUT PAGE
   ========================================================== */
.about-grid{
  display:grid; grid-template-columns: .8fr 1.2fr; gap:56px; align-items:start;
}
.credentials-list{ list-style:none; margin:0; padding:0; }
.credentials-list li{
  padding: 14px 0; border-top:1px solid var(--line); font-size:16px; color:var(--charcoal);
}
.credentials-list li strong{ display:block; color:var(--ink); font-size:16px; margin-bottom:2px; }

.timeline{ list-style:none; margin:40px 0 0; padding:0; }
.timeline li{
  display:grid; grid-template-columns: 140px 1fr; gap:24px;
  padding:22px 0; border-top:1px solid var(--line);
}
.timeline .tl-date{
  font-family: var(--font-mono); font-size:13px; color: var(--bronze-dark); font-weight:600;
}
.timeline h3{ font-size:17px; margin-bottom:6px; }
.timeline p{ font-size:16px; color:var(--steel); margin:0; }

/* ==========================================================
   REVEAL ANIMATION (subtle, respects reduced motion)
   ========================================================== */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px){
  .gap-grid, .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .who-grid{ grid-template-columns: repeat(2, 1fr); }
  .approach-grid{ grid-template-columns: 1fr; gap: 40px; }
  .process-list{ grid-template-columns: repeat(3, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .service-detail{ grid-template-columns: 1fr; gap:20px; }
  .engagement-types{ grid-template-columns: repeat(2, 1fr); }
  .segment-detail{ grid-template-columns: 1fr; }
  .segment-detail.reverse .segment-copy{ order:1; }
  .segment-detail.reverse .segment-media{ order:2; }
  .fit-check{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .timeline li{ grid-template-columns: 1fr; gap:6px; }
}

@media (max-width: 720px){
  .engagement-types{ grid-template-columns: 1fr; }
  .page-header{ padding: 44px 0 40px; }
  .main-nav{
    position:absolute; top:76px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:0;
    padding: 8px 28px 20px;
    transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .main-nav a{ padding: 12px 0; width:100%; border-bottom:1px solid var(--line); }
  .main-nav a:last-child{ border-bottom:0; }
  .nav-cta{ margin-top:10px; text-align:center; }
  .nav-toggle{ display:flex; }

  .section{ padding: 64px 0; }
  .gap-grid, .services-grid, .who-grid{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: repeat(2, 1fr); }
  .stat-strip{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px){
  .stat-strip{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: 1fr 1fr; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .btn{ text-align:center; }
}
