/* ============================================================
   B2H Reliability — multi-page site
   Design language: clean, light, enterprise (cenosco.com style)
   Brand colors from B2H portfolio: Navy #0E2A47 · Teal #17808D
   ============================================================ */
:root {
  --navy: #0e2a47;
  --navy-deep: #0a1f36;
  --teal: #17808d;
  --teal-dark: #116673;
  --teal-tint: #e8f3f4;
  --ink: #1f2f3f;
  --body: #46586a;
  --muted: #6b7c8d;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --line: #e2e9ef;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(14, 42, 71, 0.06);
  --shadow: 0 14px 36px rgba(14, 42, 71, 0.10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--body); background: var(--bg); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -0.3px; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ utility bar ============ */
.util-bar { background: var(--navy-deep); color: #b9cad8; font-size: 0.78rem; }
.util-inner { display: flex; justify-content: flex-end; gap: 26px; padding: 7px 0; }
.util-inner a { color: #b9cad8; display: inline-flex; align-items: center; gap: 6px; }
.util-inner a:hover { color: #fff; }

/* ============ header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(14,42,71,0.03);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; flex: 0 0 auto; }
.brand-mark { font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
.brand-mark span { color: var(--teal); }
.brand-sub { font-size: 0.6rem; letter-spacing: 4.2px; color: var(--muted); font-weight: 600; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a, .nav-item > a {
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
  padding: 10px 14px; border-radius: 8px; transition: .2s; display: inline-block;
}
.main-nav > a:hover, .nav-item > a:hover { background: var(--bg-alt); color: var(--teal-dark); }
.main-nav > a.active, .nav-item > a.active { color: var(--teal-dark); font-weight: 700; }

/* dropdown */
.nav-item { position: relative; }
.nav-item > a::after { content: " ▾"; font-size: 0.7em; color: var(--muted); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: 0.88rem; font-weight: 500; }
.dropdown a small { display: block; color: var(--muted); font-weight: 400; font-size: 0.76rem; margin-top: 1px; }
.dropdown a:hover { background: var(--teal-tint); color: var(--teal-dark); }

.header-cta { flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ============ buttons ============ */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 0.94rem; transition: .2s; border: 2px solid transparent;
  cursor: pointer; font-family: var(--font);
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-tint); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.link-arrow { font-weight: 600; font-size: 0.9rem; color: var(--teal-dark); }
.link-arrow::after { content: " →"; transition: .2s; display: inline-block; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============ page hero (inner pages) ============ */
.page-hero {
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, #16405f 100%);
  color: #fff; padding: 84px 0 72px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(23,128,141,0.35), transparent 70%);
}
.page-hero .crumb { font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase; color: #7fc6cf; font-weight: 700; margin-bottom: 14px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; max-width: 760px; }
.page-hero p { margin-top: 16px; color: #c3d4e0; max-width: 640px; font-size: 1.05rem; }

/* ============ home hero ============ */
.hero-home { background: var(--bg-alt); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 84px 0; }
.hero-kicker {
  display: inline-block; background: var(--teal-tint); color: var(--teal-dark);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-grid h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 800; }
.hero-grid h1 .accent { color: var(--teal); }
.hero-sub { margin: 20px 0 30px; font-size: 1.1rem; color: var(--body); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
.hero-badge {
  position: absolute; left: -22px; bottom: 28px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); padding: 16px 20px; display: flex; gap: 14px; align-items: center;
}
.hero-badge .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.hero-badge strong { display: block; color: var(--navy); font-size: 0.95rem; line-height: 1.3; }
.hero-badge small { color: var(--muted); font-size: 0.78rem; }

/* ============ sections ============ */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #cfdde8; }
.section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 12px; display: block;
}
.section-navy .eyebrow { color: #7fc6cf; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 800; max-width: 720px; }
.section-intro { margin-top: 14px; color: var(--body); max-width: 680px; font-size: 1.02rem; }
.section-navy .section-intro { color: #b4c7d6; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.head-center { text-align: center; margin: 0 auto 52px; }
.head-center .section-title, .head-center .section-intro { margin-left: auto; margin-right: auto; }
.mb-48 { margin-bottom: 48px; }

/* ============ stats band ============ */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 42px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { font-size: 2.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat strong em { color: var(--teal); font-style: normal; }
.stat p { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* ============ cards ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: .25s; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #cfe0e4; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--teal-tint);
  color: var(--teal-dark); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--body); }
.card ul { margin: 12px 0 18px; }
.card li { font-size: 0.88rem; color: var(--body); padding: 5px 0 5px 22px; position: relative; }
.card li::before { content: "✓"; color: var(--teal); font-weight: 800; position: absolute; left: 0; }
.card .link-arrow { margin-top: auto; }

/* industry pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 22px; font-size: 0.88rem; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 9px; transition: .2s;
}
.pill:hover { border-color: var(--teal); color: var(--teal-dark); box-shadow: var(--shadow-sm); }

/* ============ split layout ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 18px; }
.split p { margin-bottom: 14px; }
.check-list li { padding: 8px 0 8px 32px; position: relative; color: var(--body); font-size: 0.97rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal-tint);
  color: var(--teal-dark); font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.check-list strong { color: var(--navy); }

/* ============ results / case cards ============ */
.case-card { overflow: hidden; padding: 0; }
.case-card img { width: 100%; height: 200px; object-fit: cover; }
.case-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.case-tag {
  align-self: flex-start; background: var(--teal-tint); color: var(--teal-dark);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 12px;
}
.case-body h3 { font-size: 1.08rem; }
.case-body > p { font-size: 0.88rem; margin: 10px 0 16px; }
.case-stats { display: flex; gap: 20px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.case-stats div strong { display: block; color: var(--teal-dark); font-size: 1.25rem; font-weight: 800; }
.case-stats div span { font-size: 0.72rem; color: var(--muted); line-height: 1.35; display: block; }

/* ============ mission band ============ */
.mission-band { text-align: center; padding: 100px 0; }
.mission-band .eyebrow { color: var(--teal-dark); }
.mission-band blockquote {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 800; color: var(--navy);
  max-width: 860px; margin: 0 auto; line-height: 1.35; letter-spacing: -0.4px;
}
.mission-band blockquote em { color: var(--teal); font-style: normal; }
.mission-band p { max-width: 640px; margin: 22px auto 30px; }

/* ============ steps ============ */
.steps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.step-card span {
  display: inline-flex; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 0.9rem;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.step-card h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-dark); margin-bottom: 6px; }
.step-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ============ team ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { text-align: center; }
.member img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 5px solid var(--teal-tint); }
.member h4 { font-size: 1.02rem; }
.member .role { display: block; color: var(--teal-dark); font-size: 0.76rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin: 5px 0 10px; }
.member p { font-size: 0.85rem; color: var(--muted); }

/* certifications */
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 24px; text-align: center; font-weight: 800; color: var(--navy); font-size: 0.92rem;
}
.cert small { display: block; font-weight: 500; color: var(--muted); font-size: 0.72rem; margin-top: 2px; }

/* logo wall */
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-wall span {
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 26px;
  font-size: 1rem; font-weight: 700; color: var(--muted); background: #fff; transition: .2s;
}
.logo-wall span:hover { color: var(--navy); border-color: var(--teal); }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(110deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: #fff; padding: 84px 0; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; max-width: 760px; margin: 0 auto 16px; }
.cta-band p { color: #d2e5e9; max-width: 560px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--teal-tint); }

/* ============ contact page ============ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; box-shadow: var(--shadow-sm); }
.c-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.c-item:last-child { border-bottom: 0; }
.c-icon {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px;
  background: var(--teal-tint); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.c-item strong { display: block; color: var(--navy); font-size: 0.9rem; }
.c-item a, .c-item p { font-size: 0.93rem; color: var(--body); }
.c-item a:hover { color: var(--teal-dark); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow-sm); }
.contact-form h3 { margin-bottom: 6px; }
.contact-form .form-hint { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; font-family: var(--font); font-size: 0.93rem; background: #fff;
  transition: border-color .2s; resize: vertical; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--teal); }
.form-note { margin-top: 12px; font-size: 0.85rem; color: var(--teal-dark); text-align: center; }

.region-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.region-grid span { background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 0.87rem; padding: 10px 20px; border-radius: 999px; }

/* ============ footer ============ */
.site-footer { background: var(--navy-deep); color: #a9bccb; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.f-brand .brand-mark { color: #fff; font-size: 2rem; }
.f-brand .brand-sub { color: #7e93a5; }
.f-brand p { margin-top: 18px; font-size: 0.9rem; line-height: 1.6; }
.f-brand .tagline { font-weight: 700; color: #fff; }
.f-brand .tagline em { color: #35b3c2; font-style: normal; }
.f-col h5 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2.2px; margin-bottom: 18px; }
.f-col a, .f-col p { display: block; color: #a9bccb; font-size: 0.88rem; padding: 4px 0; }
.f-col a:hover { color: #35b3c2; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; transition: .2s;
}
.f-social a:hover { background: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.78rem; color: #7e93a5; }

/* ============ reveal ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding: 60px 0; }
  .hero-badge { left: 12px; }
}

@media (max-width: 860px) {
  .util-bar { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: 65px; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(14,42,71,0.14);
    padding: 14px 5% 22px;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a, .nav-item > a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-item { position: static; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-media { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .page-hero { padding: 60px 0 52px; }
}

@media (max-width: 540px) {
  .grid-2, .grid-3, .grid-4, .team-grid, .form-row, .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: 16px; }
}
