/* ==========================================================
   Bilkabi Management Consulting — shared styles (mobile-first)
   ========================================================== */
:root {
  --navy: #123E78;
  --blue: #174EA6;
  --slate: #263746;
  --red: #D62828;
  --white: #FFFFFF;
  --light: #F3F7FC;
  --line: #DCE5F1;
  --muted: #5A6B7B;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(18, 62, 120, .10);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  padding-bottom: 64px; /* room for mobile action bar */
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 5vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section.alt { background: var(--light); }
.section.dark { background: var(--navy); color: #DCE7F7; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.dark .eyebrow { color: #FF8A8A; }
.hero .eyebrow {
  color: #FFFFFF;
  background: var(--red);
  padding: 5px 10px;
  border-radius: 4px;
}
.lead { font-size: 1.05rem; color: var(--muted); }
.dark .lead { color: #C4D4EC; }
.section-head { max-width: 720px; margin-bottom: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .92rem;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--blue); }
.btn-accent { background: var(--red); color: var(--white); }
.btn-accent:hover { background: #B81F1F; }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--light); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--navy);
  line-height: 1.15; font-size: .92rem;
}
.brand-name small { display: block; font-weight: 600; font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.brand-fallback { display: none; }

.nav-toggle {
  width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 24px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .25s, background .25s; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(18,62,120,.10);
  display: none; flex-direction: column; padding: 8px var(--gutter) 20px;
}
.nav.open { display: flex; }
.nav a.link {
  padding: 14px 4px; font-family: 'Montserrat', sans-serif; font-weight: 600;
  color: var(--slate); border-bottom: 1px solid var(--line);
}
.nav a.link.active { color: var(--red); }
.nav .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  min-height: 78svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero.page-hero { min-height: 46svh; }
.hero > .ph { position: absolute; inset: 0; z-index: -2; border: 0; border-radius: 0; }
.hero::before { /* gradient separating text from image */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,28,58,.55) 0%, rgba(8,28,58,.75) 30%, rgba(8,28,58,.92) 60%, rgba(8,28,58,.97) 100%);
}
.hero-inner { padding: 64px 0 44px; max-width: 680px; }
.hero h1 { color: var(--white); text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero p { color: #F2F6FC; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero .accent { color: #FFFFFF; }

/* ---------- Image placeholders ----------
   Shows a labelled striped box until the real file exists in /images.
   Once the image loads it covers the placeholder automatically. */
.ph {
  position: relative; display: grid; place-items: center;
  border: 2px dashed #7F9CC7; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #DFE8F5 0 14px, #EAF1FA 14px 28px);
  color: var(--blue); overflow: hidden; min-height: 220px;
}
.ph::after {
  content: '\1F5BC  ' attr(data-label);
  padding: 10px 14px; text-align: center; max-width: 90%;
  font: 700 .78rem/1.4 'Montserrat', sans-serif; letter-spacing: .04em;
  background: rgba(255,255,255,.85); border-radius: 6px;
}
.hero > .ph { align-items: start; justify-items: end; }
.hero > .ph::after { margin: 12px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph.has-img { border-color: transparent; }
.ph.has-img::after { display: none; }
.ph.tall { min-height: 300px; }
.ph.wide { aspect-ratio: 16 / 10; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 8px; background: var(--light); color: var(--blue);
  font: 800 .9rem 'Montserrat', sans-serif; margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; }

.dark .card {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); box-shadow: none;
}
.dark .card p { color: #C4D4EC; }
.dark .card .num { background: rgba(255,255,255,.12); color: #FFB3B3; }

.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.quote {
  border-left: 4px solid var(--red); padding: 4px 0 4px 18px; margin: 20px 0;
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); font-size: 1.15rem; line-height: 1.4;
}

.checks li { position: relative; padding: 7px 0 7px 30px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy);
  -webkit-mask: none;
  box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 9px var(--white);
}
.checks li::after {
  content: ''; position: absolute; left: 6px; top: 18px; width: 6px; height: 9px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.85); transform-origin: center;
  display: none;
}
.checks li { }
.checks li::before { background: var(--navy); box-shadow: none; }
.checks li::after { display: block; left: 6px; top: 15px; width: 5px; height: 9px; }

/* ---------- Service blocks ---------- */
.service { padding: 44px 0; border-bottom: 1px solid var(--line); }
.service:last-of-type { border-bottom: 0; }
.service .tag {
  display: inline-block; font: 800 .8rem 'Montserrat', sans-serif; color: var(--white);
  background: var(--red); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.service h3 { font-size: 1.05rem; color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.service h2 { font-size: clamp(1.4rem, 4.6vw, 2rem); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #DCE7F7; text-align: center; padding: 56px 0; }
.cta-band h2 { color: var(--white); }
.cta-band .btn-row { align-items: stretch; max-width: 360px; margin: 24px auto 0; }

/* ---------- Footer / contact ---------- */
.site-footer { background: #0C2A54; color: #C4D4EC; }
.contact { padding: 56px 0 40px; }
.contact h2 { color: var(--white); }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-top: 24px; }
.info-item { margin-bottom: 20px; }
.info-item strong {
  display: block; font: 700 .75rem 'Montserrat', sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: #FF8A8A; margin-bottom: 4px;
}
.info-item a, .info-item span { color: var(--white); font-size: 1.02rem; display: block; padding: 2px 0; }

.form { background: var(--white); border-radius: var(--radius); padding: 22px; color: var(--slate); }
.form label { display: block; font: 600 .82rem 'Montserrat', sans-serif; color: var(--navy); margin-bottom: 6px; }
.form .field { margin-bottom: 16px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom on focus */
  border: 1px solid #C5D3E6; border-radius: 8px; background: var(--white); color: var(--slate);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.form .btn { width: 100%; }
.form-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 28px; font-size: .88rem;
  display: grid; gap: 14px;
}
.foot-bottom .tagline { color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: #C4D4EC; padding: 4px 0; }
.foot-services { font-size: .82rem; color: #9DB3D3; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; height: 56px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--white); font: 700 .9rem 'Montserrat', sans-serif;
}
.action-bar a.wa { background: #1E9E52; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .btn-row { flex-direction: row; }
  .grid.two, .grid.three { grid-template-columns: repeat(2, 1fr); }
  .cta-band .btn-row { flex-direction: row; max-width: none; justify-content: center; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .section { padding: 88px 0; }

  .bar { height: 80px; }
  .brand img { height: 56px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex !important; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .nav a.link { padding: 8px 0; border: 0; font-size: .92rem; }
  .nav a.link:hover { color: var(--blue); }
  .nav .btn { margin: 0; min-height: 44px; padding: 10px 20px; }

  .hero { min-height: 640px; align-items: center; }
  .hero.page-hero { min-height: 400px; }
  .hero::before {
    background: linear-gradient(90deg, rgba(8,28,58,.97) 0%, rgba(8,28,58,.88) 42%, rgba(8,28,58,.35) 100%);
  }
  .hero-inner { padding: 96px 0; }

  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.flip > :first-child { order: 2; }
  .ph.tall { min-height: 420px; }
  .service { padding: 64px 0; }

  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .form { padding: 32px; }
  .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .foot-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
