/* ============================================================
   IBPS Consulting — single stylesheet
   Bold dark theme, large typography, generous spacing
   ============================================================ */

/* --- design tokens ----------------------------------------- */
:root {
  --bg:        #0a0b0f;
  --bg-elev:   #14161d;
  --bg-card:   #1a1c25;
  --border:    #262833;
  --text:      #f0f0f5;
  --text-dim:  #a4a6b2;
  --text-mute: #6b6d7a;

  --accent-cyan:   #8dcfff;
  --accent-orange: #ffb066;
  --accent-mint:   #7befc5;

  --font-display: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1240px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
}

/* --- reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: 0.4em 0; }

/* --- layout primitives ------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-dark { background: var(--bg); }
.section-elev { background: var(--bg-elev); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 1rem;
}
.eyebrow-orange { color: var(--accent-orange); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.55;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-dim); }
.dim   { color: var(--text-mute); }

/* --- header / nav ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent-cyan); }
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-footer .brand-logo {
  width: 48px;
  height: 48px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu > li { margin: 0; position: relative; }
.nav-menu > li > a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-menu > li > a:hover { background: var(--bg-card); color: var(--text); text-decoration: none; }
.nav-menu > li.current > a { color: var(--accent-cyan); }

.nav-menu .has-sub > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.6;
}
.submenu {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.nav-menu .has-sub:hover > .submenu,
.nav-menu .has-sub:focus-within > .submenu { display: block; }
.submenu li { margin: 0; }
.submenu a {
  display: block;
  padding: 0.55rem 0.8rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.92rem;
}
.submenu a:hover { background: var(--bg-card); color: var(--accent-cyan); }

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 600;
  padding: 0.55rem 1.15rem !important;
  border-radius: 6px;
  transition: opacity 0.15s;
}
.nav-cta:hover { background: var(--text); opacity: 0.85; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elev);
    padding: 0.75rem var(--pad-x) 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  body.nav-open .nav-menu { display: flex; }
  .nav-menu > li > a { padding: 0.9rem 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .submenu {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0 0 0.5rem 1rem;
    box-shadow: none;
  }
  .nav-cta { margin: 0.8rem 0 0; text-align: center; }
}

/* --- hero --------------------------------------------------- */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(141, 207, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 176, 102, 0.08), transparent 50%);
  pointer-events: none;
}
.hero::after,
.page-intro::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8%;
  width: clamp(320px, 42vw, 580px);
  height: clamp(320px, 42vw, 580px);
  background-image: url('../images/logo-watermark.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.06;
  mix-blend-mode: lighten;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.page-intro {
  position: relative;
  overflow: hidden;
}
.page-intro::after { opacity: 0.05; }
.page-intro > .wrap { position: relative; z-index: 1; }
.hero > .wrap { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .hero::after, .page-intro::after { display: none; }
}
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: 1.25rem; max-width: 56ch; }
.hero .cta-row { margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* --- buttons ------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--text); opacity: 0.88; text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-dim); text-decoration: none; }

/* --- cards / panels ---------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--text-dim); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:hover { text-decoration: none; }

.card-accent-cyan   { border-left: 3px solid var(--accent-cyan); }
.card-accent-orange { border-left: 3px solid var(--accent-orange); }
.card-accent-mint   { border-left: 3px solid var(--accent-mint); }

/* --- big practice cards ----------------------------------- */
.practice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(2rem, 3.5vw, 2.75rem);
  display: flex; flex-direction: column;
}
.practice-card .eyebrow { margin-bottom: 0.5rem; }
.practice-card h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin: 0.25rem 0 0.4rem;
}
.practice-card .subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-mute);
  margin: 0 0 1rem;
}
.practice-card ul {
  color: var(--text-dim);
  font-size: 0.94rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.practice-card ul li {
  padding-left: 1.2rem;
  position: relative;
  margin: 0.5rem 0;
}
.practice-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}
.practice-card.industrial ul li::before { color: var(--accent-orange); }
.practice-card .more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- stat blocks ------------------------------------------- */
.stat {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
  line-height: 1;
}
.stat .num-mono {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.stat .label {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0.6rem 0 0;
}

/* --- trust strip ------------------------------------------- */
.trust {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 1.2rem;
}
.trust-logos {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.8rem;
}
.trust-logos span { white-space: nowrap; }

/* --- two-column shift compare ------------------------------ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.compare > div { padding: 2rem; }
.compare > div:first-child { background: var(--bg-elev); border-right: 1px solid var(--border); }
.compare > div:last-child  { background: var(--bg-card); border-left: 3px solid var(--accent-cyan); }
.compare h3 { margin-top: 0.4rem; }
.compare ul { color: var(--text-dim); }
@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
  .compare > div:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .compare > div:last-child  { border-left: 3px solid var(--accent-cyan); }
}

/* --- CTA block --------------------------------------------- */
.cta {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.cta h2 { margin-bottom: 1rem; }
.cta .lead { margin: 0 auto 2rem; }
.cta-contact {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-mute);
}

/* --- footer ------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  color: var(--text-dim);
  font-size: 0.93rem;
}
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.site-footer h4 { color: var(--text); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.4rem 0; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent-cyan); }
.copyright {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* --- prose helpers ----------------------------------------- */
.prose p { color: var(--text-dim); max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul li { color: var(--text-dim); }

/* --- breadcrumb / page intro ------------------------------- */
.page-intro {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.page-intro .eyebrow { margin-bottom: 0.75rem; }
.page-intro h1 { max-width: 22ch; margin-bottom: 1rem; }

/* --- engagement / quote cards ------------------------------ */
.engagement {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}
.engagement .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 0.5rem;
}
.engagement h3 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.engagement .metrics {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.engagement .metrics strong { color: var(--accent-cyan); }

/* --- utility ----------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }

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