/* ═══════════════════════════════════════════════════════════════
   NORTHBOUND ADVISORY — Corporate Consulting
   Premium Design System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #243746;
  --primary-light: #2F4A5E;
  --secondary: #5B6B7A;
  --accent: #C27D3A;
  --accent-light: #D4944F;
  --accent-pale: #F5EDE2;
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --text: #1D252C;
  --text-light: #3A444D;
  --muted: #68727D;
  --border: #E5DED3;
  --border-light: #EDE8DF;
  --heading: 'IBM Plex Serif', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
  --max-w: 1180px;
  --header-h: 80px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 10px 25px rgba(0,0,0,.05);
  --shadow-sm: 0 4px 12px rgba(0,0,0,.04);
  --shadow-md: 0 12px 32px rgba(0,0,0,.07);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.09);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body); color: var(--text); background: var(--bg);
  line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5 {
  font-family: var(--heading); color: var(--primary);
  font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ── Reveal ── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.show { opacity: 1; transform: none; }

/* ═══ HEADER ═══ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(250,248,244,.85); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all .35s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(250,248,244,.96); }

.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}

.logo { text-decoration: none; }
.logo-name {
  font-family: var(--heading); font-size: 1.25rem; font-weight: 700;
  color: var(--primary); line-height: 1.1; display: block; letter-spacing: -.02em;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; font-size: .82rem; font-weight: 500; color: var(--secondary);
  border-radius: var(--radius-xs); transition: all .2s var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(36,55,70,.04); }

.hdr-cta {
  padding: 10px 24px; font-size: .82rem; font-weight: 600;
  background: var(--primary); color: #fff; border-radius: 50px;
  border: none; cursor: pointer; font-family: var(--body);
  transition: all .3s var(--ease); text-decoration: none; display: inline-block;
}
.hdr-cta:hover { background: var(--primary-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.mob-btn {
  display: none; background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--primary); padding: 6px; line-height: 1;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .3s var(--ease); border: none;
  font-family: var(--body); text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(194,125,58,.25); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); background: rgba(36,55,70,.03); color: var(--primary); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 11px 24px; font-size: .82rem; }

/* ═══ HERO ═══ */
.hero {
  padding: 160px 0 100px; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-content { max-width: 520px; }
.hero-eyebrow {
  font-size: .7rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 22px; line-height: 1.12; }
.hero-desc {
  font-size: 1.02rem; color: var(--text-light); line-height: 1.75;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%; height: 480px; object-fit: cover; display: block;
}

/* ═══ SECTIONS ═══ */
.section { padding: 100px 0; }
.section-white { background: var(--card); }
.section-dark { background: var(--primary); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-accent { background: var(--accent-pale); }

.sec-label {
  font-size: .68rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.sec-title { font-size: 2.2rem; margin-bottom: 14px; }
.sec-desc { font-size: .95rem; color: var(--muted); max-width: 540px; line-height: 1.7; }
.sec-header { margin-bottom: 56px; }
.sec-header-center { text-align: center; }
.sec-header-center .sec-desc { margin: 0 auto; }
.sec-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ═══ STATS ═══ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  padding: 36px 24px; text-align: center; background: var(--card);
  border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--heading); font-size: 2.6rem; font-weight: 700;
  color: var(--primary); line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ═══ CARDS ═══ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; transition: all .35s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px; color: var(--accent);
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; font-family: var(--body); font-weight: 700; color: var(--primary); }
.card p { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ═══ CASE CARDS ═══ */
.case-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all .35s var(--ease); position: relative;
  overflow: hidden;
}
.case-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease);
  transform-origin: top;
}
.case-card:hover::before { transform: scaleY(1); }
.case-card:hover { box-shadow: var(--shadow); }
.case-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.case-card h3 { font-size: 1rem; margin-bottom: 8px; font-family: var(--body); font-weight: 700; }
.case-card p { font-size: .86rem; color: var(--muted); line-height: 1.6; }

/* ═══ REVIEWS ═══ */
.review-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all .3s var(--ease);
}
.review-card:hover { box-shadow: var(--shadow-sm); border-color: var(--accent-pale); }
.review-stars { color: var(--accent); margin-bottom: 14px; font-size: .9rem; letter-spacing: 2px; }
.review-card blockquote {
  font-size: .92rem; line-height: 1.7; color: var(--text);
  margin-bottom: 20px; font-style: italic; font-family: var(--heading);
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: .85rem;
}
.review-info strong { display: block; font-size: .84rem; color: var(--primary); }
.review-info span { font-size: .74rem; color: var(--muted); }

/* ═══ FAQ ═══ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer; text-align: left;
  font-size: .95rem; font-weight: 600; color: var(--primary);
  font-family: var(--body); transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; transition: all .3s var(--ease);
  color: var(--accent); border: 1px solid var(--border);
}
.faq-item.active .faq-icon { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 0 22px; font-size: .9rem; color: var(--muted); line-height: 1.75; max-width: 640px; }

/* ═══ FORMS ═══ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 6px; color: var(--primary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; font-family: var(--body);
  outline: none; transition: all .25s; color: var(--text); background: var(--card);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,125,58,.08);
}
.form-textarea { resize: vertical; min-height: 130px; }

/* ═══ PAGE HERO ═══ */
.page-hero {
  padding: 150px 0 72px; background: var(--card);
  border-bottom: 1px solid var(--border);
}
.page-hero .sec-label { margin-bottom: 10px; }
.page-hero h1 { font-size: 2.6rem; margin-bottom: 14px; }
.page-hero p { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.7; }

/* ═══ PAGE CONTENT ═══ */
.page-content { padding: 64px 0 80px; }
.content-narrow { max-width: 740px; margin: 0 auto; }
.page-content h2 { font-size: 1.65rem; margin: 44px 0 16px; }
.page-content h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.page-content p { margin-bottom: 16px; line-height: 1.8; font-size: .94rem; color: var(--text-light); }
.page-content ul, .page-content ol { margin: 14px 0; padding-left: 24px; }
.page-content li { margin-bottom: 8px; line-height: 1.7; font-size: .94rem; color: var(--text-light); list-style: disc; }

.callout {
  background: var(--accent-pale); border-left: 3px solid var(--accent);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 28px 0;
}
.callout p { font-size: .88rem; color: var(--text-light); margin-bottom: 0; }

/* ═══ CONTACT CARDS ═══ */
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; transition: all .25s;
}
.contact-card:hover { box-shadow: var(--shadow-sm); }
.contact-card h4 { font-size: .92rem; margin-bottom: 8px; font-family: var(--body); font-weight: 700; }
.contact-card p { font-size: .86rem; color: var(--muted); line-height: 1.6; }

.map-placeholder {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  height: 320px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .88rem;
}

/* ═══ CTA SECTION ═══ */
.cta-section {
  text-align: center; padding: 64px 40px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.cta-section h2 { font-size: 2rem; margin-bottom: 14px; }
.cta-section p { font-size: .95rem; color: var(--muted); margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ═══ TIMELINE ═══ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-item::before {
  content: ''; position: absolute; left: -29px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.tl-year { font-family: var(--heading); font-weight: 700; color: var(--accent); font-size: .9rem; margin-bottom: 4px; }
.tl-item p { font-size: .88rem; color: var(--muted); margin-bottom: 0; }

/* ═══ TEAM ═══ */
.team-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .35s var(--ease);
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.team-photo { height: 260px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 24px; text-align: center; }
.team-body h3 { font-size: .98rem; margin-bottom: 3px; font-family: var(--body); font-weight: 700; }
.team-role { font-size: .74rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.team-body p { font-size: .84rem; color: var(--muted); line-height: 1.55; }

/* ═══ FOOTER ═══ */
.site-footer { background: var(--primary); color: rgba(255,255,255,.55); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-about p { font-size: .82rem; line-height: 1.7; margin-top: 12px; }
.footer-heading {
  color: #fff; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
  font-family: var(--body);
}
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .84rem; transition: all .2s; }
.footer-links a:hover { color: var(--accent-light); padding-left: 3px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding: 22px 0;
  font-size: .74rem; color: rgba(255,255,255,.25);
}

/* ═══ COOKIE ═══ */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  max-width: 420px; background: var(--card); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  transform: translateY(120%); transition: transform .5s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h4 { font-family: var(--body); font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--primary); }
.cookie-banner p { font-size: .84rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btn {
  padding: 9px 20px; border-radius: 50px; font-size: .8rem; font-weight: 600;
  cursor: pointer; border: none; font-family: var(--body); transition: all .2s;
}
.cookie-accept { background: var(--primary); color: #fff; }
.cookie-accept:hover { background: var(--primary-light); }
.cookie-decline { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.cookie-decline:hover { background: var(--border-light); }

/* ═══ GRIDS ═══ */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image img { height: 360px; }
}
@media (max-width: 768px) {
  .main-nav, .hdr-cta { display: none; }
  .mob-btn { display: block; }
  .main-nav.mobile-open {
    display: flex; flex-direction: column; position: fixed;
    inset: 0; background: var(--bg); padding: 100px 32px 32px;
    z-index: 999; gap: 0; overflow-y: auto;
  }
  .main-nav.mobile-open .nav-link {
    padding: 16px 0; border-bottom: 1px solid var(--border-light);
    width: 100%; font-size: 1rem; border-radius: 0;
  }
  .hero { padding: 130px 0 60px; }
  .hero h1 { font-size: 2.1rem; }
  .section { padding: 64px 0; }
  .sec-title { font-size: 1.75rem; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-image img { height: 280px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar { grid-template-columns: 1fr; }
}
