/* ==========================================================================
   Infogen — shared stylesheet  (v2: nav button fix + mobile overhaul)
   Palette: navy #0C447C · blue #185FA5 · light blue #E6F1FB · warm gray #F5F4F0
   ========================================================================== */

:root {
  --navy: #0C447C;
  --navy-dark: #042C53;
  --blue: #185FA5;
  --blue-mid: #378ADD;
  --blue-pale: #B5D4F4;
  --blue-light: #E6F1FB;
  --gray-warm: #F5F4F0;
  --gray-tag: #F1EFE8;
  --border: #E8E6E0;
  --ink: #1a1a18;
  --ink-soft: #444441;
  --text: #5F5E5A;
  --text-muted: #888780;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 15.5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); font-weight: 600; }
.nav .btn { margin-left: 6px; }

/* ---------- Buttons ----------
   Note: rules below use a.btn-* specificity so nav/footer link colors
   can never override button text again. */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary,
a.btn-primary,
.nav a.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover,
a.btn-primary:hover,
.nav a.btn-primary:hover { background: var(--blue); color: var(--white); }

.btn-outline,
a.btn-outline { border: 1.5px solid var(--blue-pale); color: var(--blue); background: transparent; }
.btn-outline:hover,
a.btn-outline:hover { background: var(--blue-light); color: var(--blue); }

.btn-white,
a.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover,
a.btn-white:hover { background: var(--blue-light); color: var(--navy); }

button.btn { border: none; cursor: pointer; font-family: inherit; }

.nav .btn { padding: 10px 18px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 48px; }
.hero-inner { max-width: 720px; }
.eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero h1 .accent { color: var(--blue); display: block; }
.hero .lede {
  font-size: 19px;
  line-height: 1.65;
  margin: 20px 0 30px;
  max-width: 640px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--gray-warm);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 20px;
  text-align: center;
  margin: 24px 0 72px;
}
.stat .stat-num { font-size: 32px; font-weight: 700; color: var(--navy); }
.stat .stat-label { font-size: 14.5px; color: var(--text); margin-top: 4px; }

/* ---------- Section basics ---------- */
.section { padding: 0 0 72px; }
.section-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.page-title { font-size: 38px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.page-intro { font-size: 18px; max-width: 640px; margin-bottom: 40px; }
.page-head { padding: 64px 0 8px; }

/* ---------- Service cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  background: var(--white);
}
.card.featured { border: 2.5px solid var(--blue); }
.badge-float {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-light);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.card .card-icon { font-size: 30px; color: var(--blue); line-height: 1; }
.card h3 { font-size: 19px; color: var(--ink); margin: 14px 0 8px; }
.card p { font-size: 15.5px; line-height: 1.6; }

/* ---------- Proof / Avklare feature ---------- */
.proof {
  background: var(--gray-warm);
  border-radius: 14px;
  padding: 34px;
  display: flex;
  gap: 34px;
  align-items: center;
}
.proof-text { flex: 1; }
.proof h2 { font-size: 24px; color: var(--ink); margin-bottom: 12px; }
.proof p { font-size: 16.5px; line-height: 1.65; }
.proof .proof-link { display: inline-block; margin-top: 14px; font-weight: 600; }
.matrix-mini {
  width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  flex-shrink: 0;
}
.matrix-mini .matrix-title { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.matrix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.matrix-grid span {
  border-radius: 6px;
  height: 46px;
  font-size: 12.5px;
  padding: 6px 8px;
  display: block;
}
.mx-schedule { background: #FAEEDA; color: #854F0B; }
.mx-dofirst  { background: #FCEBEB; color: #A32D2D; }
.mx-eliminate{ background: var(--gray-tag); color: var(--text); }
.mx-delegate { background: var(--blue-light); color: var(--blue); }

/* ---------- Bio strip ---------- */
.bio-strip {
  display: flex;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bio-strip h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.bio-strip p { font-size: 15.5px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); }
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 34px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 22px; color: var(--white); font-weight: 600; }
.cta-band p { font-size: 15.5px; color: var(--blue-pale); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--navy); }

/* ---------- Work page ---------- */
.case-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}
.case-card.featured-case { border: 2.5px solid var(--blue); }
.case-head {
  background: var(--blue-light);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.case-head.navy { background: var(--navy); }
.case-head.navy h2, .case-head.navy h3 { color: var(--white); }
.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.case-head.navy .icon-chip { background: var(--blue); }
.case-head h2, .case-head h3 {
  flex: 1;
  min-width: 200px;
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.tag-pill {
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.case-head.navy .tag-pill { background: var(--blue-light); color: var(--navy); font-weight: 600; }
.case-body { padding: 24px 26px; }
.csr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  font-size: 15.5px;
  line-height: 1.6;
}
.csr-grid h4 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.tech-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.tech-tags span {
  background: var(--gray-tag);
  color: var(--text);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 6px;
}
.case-flex { display: flex; gap: 28px; align-items: center; }
.case-flex .case-text { flex: 1; }

/* ---------- About page ---------- */
.about-layout { display: flex; gap: 40px; padding: 64px 0 40px; }
.letter { flex: 1; max-width: 620px; }
.letter .para {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.letter .para.lead { font-size: 20px; color: #2C2C2A; }
.signature {
  font-family: 'Homemade Apple', cursive;
  font-size: 34px;
  color: var(--navy);
  line-height: 1.2;
  margin-top: 28px;
}
.signature-title { font-size: 14px; color: var(--text-muted); margin-top: 10px; }
.about-side { width: 260px; flex-shrink: 0; }
.photo-frame {
  width: 260px;
  height: 260px;
  border-radius: 16px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-pale);
  font-size: 15px;
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.facts-card {
  background: var(--gray-warm);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 2.1;
}
.facts-card .facts-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 64px;
}
.principle { border-top: 3px solid var(--blue); padding-top: 14px; }
.principle h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 6px; }
.principle p { font-size: 14.5px; line-height: 1.6; }

/* ---------- Insights page ---------- */
.featured-article {
  border: 2.5px solid var(--blue);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}
.featured-article .fa-head { background: var(--navy); padding: 30px 32px; }
.fa-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.fa-meta .cat {
  background: var(--blue-light);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}
.fa-meta .date { font-size: 13.5px; color: var(--blue-pale); }
.fa-head h2 { font-size: 26px; color: var(--white); line-height: 1.4; max-width: 620px; font-weight: 600; }
.fa-body { padding: 26px 32px; display: flex; gap: 28px; align-items: center; }
.fa-body .fa-text { flex: 1; font-size: 16px; line-height: 1.65; }
.fa-body .read-link { display: inline-block; margin-top: 14px; font-weight: 600; }
.linkedin-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 28px;
  font-size: 15.5px;
}
.linkedin-strip .li-icon { font-size: 30px; color: var(--navy); flex-shrink: 0; line-height: 1; }
.newsletter {
  background: var(--gray-warm);
  border-radius: 12px;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.newsletter h3 { font-size: 18px; color: var(--ink); }
.newsletter p { font-size: 14.5px; margin-top: 3px; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type="email"] {
  border: 1px solid #D3D1C7;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  min-width: 0;
  width: 230px;
  max-width: 100%;
  font-family: inherit;
}

/* ---------- Book page ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 34px 0;
}
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step h3 { font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.step p { font-size: 14.5px; line-height: 1.55; }
.meeting-pills { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 10px;
}
.pill.selected {
  border: 2px solid var(--blue);
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 600;
}
.pill.alt { border: 1px solid #D3D1C7; color: var(--text); }
.scheduler-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
  min-height: 680px;
}
.host-note {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--gray-warm);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 64px;
  font-size: 15.5px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- Tablet and small laptop --- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 32px; line-height: 1.28; }
  .hero .lede { font-size: 17px; }
  .page-title { font-size: 30px; }
  .page-intro { font-size: 16.5px; }
  .page-head { padding: 44px 0 8px; }

  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 22px 16px; margin-bottom: 52px; }
  .stat .stat-num { font-size: 26px; }

  .cards-3, .csr-grid, .principles, .steps { grid-template-columns: 1fr; }
  .csr-grid { gap: 16px; }
  .section { padding-bottom: 52px; }

  .proof { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .case-flex { flex-direction: column; align-items: flex-start; }
  .fa-body { flex-direction: column; align-items: flex-start; padding: 22px 24px; }
  .matrix-mini { width: 100%; max-width: 320px; }

  .featured-article .fa-head { padding: 24px; }
  .fa-head h2 { font-size: 21px; }

  .case-head { padding: 16px 20px; }
  .case-head h2, .case-head h3 { font-size: 18px; }
  .case-body { padding: 20px; }

  .about-layout { flex-direction: column-reverse; gap: 28px; padding-top: 44px; }
  .about-side { width: 100%; display: flex; gap: 16px; align-items: flex-start; }
  .photo-frame { width: 150px; height: 150px; flex-shrink: 0; }
  .facts-card { margin-top: 0; flex: 1; }

  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .newsletter { flex-direction: column; align-items: flex-start; }
  .newsletter form { width: 100%; }
  .newsletter input[type="email"] { flex: 1; width: auto; }
}

/* --- Phones --- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  /* Header: stack logo above nav; keep everything tappable */
  .site-header { position: static; }
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .nav {
    width: 100%;
    gap: 4px 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav a:not(.btn) { font-size: 15px; padding: 6px 0; }
  .nav .btn { margin-left: 0; margin-top: 6px; width: 100%; text-align: center; }

  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 27px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .about-side { flex-direction: column; }
  .photo-frame { width: 100%; height: 220px; }

  .letter .para { font-size: 16.5px; }
  .letter .para.lead { font-size: 18px; }

  .tag-pill { white-space: normal; }

  .cta-band .btn { width: 100%; text-align: center; }
  .site-footer .container { flex-direction: column; gap: 8px; }

  .host-note { flex-direction: column; align-items: flex-start; }
}
