/* =========================================================================
   B&L Human Resources Services — Design System
   Bright, optimistic, professional. Navy anchor + fresh green energy.
   ========================================================================= */

:root {
  --navy: #0F3652;
  --navy-dark: #0b2a40;
  --green: #2F8F24;
  --green-dark: #26761d;
  --teal: #167466;
  --mint: #E5F2E8;
  --aqua: #EDF7F4;
  --warm-white: #FAFBF8;
  --white: #FFFFFF;
  --charcoal: #35434A;
  --gray-line: #E7EBEA;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(15, 54, 82, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 54, 82, 0.10);
  --container: 1180px;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 600;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy); color: #eaf1f5; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--mint { background: var(--aqua); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section--navy .eyebrow { color: #8fe37e; }

.text-center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--charcoal); max-width: 640px; }
.lede.center { margin-left: auto; margin-right: auto; }

.highlight { color: var(--green); }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.link-arrow { font-weight: 600; color: var(--teal); font-size: 0.92rem; }
.link-arrow:hover { color: var(--green); }

/* ---------------------------------------------------------------------- */
/* Navbar                                                                  */
/* ---------------------------------------------------------------------- */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-line);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--navy); letter-spacing: 0.5px; }
.brand-mark span { color: var(--green); }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--teal); font-weight: 600; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
}
.nav-links a.nav-link:hover { color: var(--green); }

.has-dropdown > .nav-link::after { content: '▾'; font-size: 0.7em; margin-left: 5px; color: var(--teal); }
.dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
  border: 1px solid var(--gray-line);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--mint); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 78px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 24px; gap: 6px; overflow-y: auto; display: none; }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links a.nav-link { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--gray-line); }
  .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; border: none; padding-left: 10px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.hide-mobile { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero { padding: 64px 0 90px; background: linear-gradient(180deg, var(--warm-white) 0%, var(--aqua) 100%); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 2.9rem; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 6/5; }
.hero-tagline-box {
  position: absolute;
  right: 22px;
  bottom: 22px;
  background: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}
.hero-tagline-box::before { content: ''; display: block; width: 30px; height: 3px; background: var(--green); margin-bottom: 8px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

/* ---------------------------------------------------------------------- */
/* Section headers                                                        */
/* ---------------------------------------------------------------------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 8px; max-width: 640px; }

/* ---------------------------------------------------------------------- */
/* Icon grid / capability cards                                           */
/* ---------------------------------------------------------------------- */
.icon-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-circle svg { width: 28px; height: 28px; stroke: var(--teal); }

.grid { display: grid; gap: 28px; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1000px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-6, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: #56636a; margin-bottom: 14px; }
.card--plain { border: none; padding: 0; }
.card--plain:hover { transform: none; box-shadow: none; }

/* ---------------------------------------------------------------------- */
/* Split panel (HR Health Check, Why Choose B&L)                          */
/* ---------------------------------------------------------------------- */
.split-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-panel > div { padding: 70px 56px; display: flex; flex-direction: column; justify-content: center; }
.split-panel .panel-light { background: var(--aqua); }
.split-panel .panel-media { padding: 0; position: relative; overflow: hidden; }
.split-panel .panel-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.split-panel .panel-navy { background: var(--navy); color: #dce8ec; }
.split-panel .panel-navy h2 { color: var(--white); }

.feature-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.feature-mini { display: flex; gap: 14px; align-items: flex-start; }
.feature-mini .mini-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.split-panel .panel-light .feature-mini .mini-icon { background: var(--mint); }
.feature-mini .mini-icon svg { width: 20px; height: 20px; stroke: #8fe37e; }
.split-panel .panel-light .feature-mini .mini-icon svg { stroke: var(--green); }
.feature-mini h4 { font-family: var(--font-head); font-size: 0.98rem; font-weight: 700; color: var(--white); margin: 0 0 4px; }
.split-panel .panel-light .feature-mini h4 { color: var(--navy); }
.feature-mini p { font-size: 0.86rem; margin: 0; color: #b9cdd4; }
.split-panel .panel-light .feature-mini p { color: #4a565c; }

@media (max-width: 860px) {
  .split-panel { grid-template-columns: 1fr; }
  .split-panel > div { padding: 48px 28px; }
  .feature-mini-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Challenge tiles                                                        */
/* ---------------------------------------------------------------------- */
.challenge-tile { text-align: left; }
.challenge-tile .thumb { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px; aspect-ratio: 4/3; }
.challenge-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.challenge-tile .tag { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.challenge-tile .tag .icon-circle { width: 34px; height: 34px; margin: 0; flex-shrink: 0; }
.challenge-tile .tag .icon-circle svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------- */
/* Closing CTA banner                                                     */
/* ---------------------------------------------------------------------- */
.closing-cta { position: relative; overflow: hidden; background: var(--aqua); }
.closing-cta .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.closing-cta .media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.closing-cta .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .closing-cta .container { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b9cdd4; padding: 64px 0 28px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a { color: #b9cdd4; font-size: 0.9rem; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-mark { color: var(--white); }
.footer-brand .brand-mark span { color: #8fe37e; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-row svg { width: 16px; height: 16px; stroke: var(--white); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------------- */
/* Forms                                                                   */
/* ---------------------------------------------------------------------- */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color .15s ease;
}
.form-control:focus { outline: none; border-color: var(--green); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.86rem; color: var(--navy); margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: #c0392b; font-size: 0.82rem; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: var(--mint); color: var(--green-dark); border: 1px solid #b9dfb0; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c2c7; }

/* ---------------------------------------------------------------------- */
/* Page hero (inner pages)                                                */
/* ---------------------------------------------------------------------- */
.page-hero { background: var(--navy); padding: 64px 0; color: var(--white); text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: #b9cdd4; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: #8fe37e; margin-bottom: 14px; }
.breadcrumb a { color: #8fe37e; }

/* ---------------------------------------------------------------------- */
/* Team / testimonials                                                    */
/* ---------------------------------------------------------------------- */
.team-card { text-align: center; }
.team-card .photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; background: var(--mint); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--teal); font-weight: 600; font-size: 0.86rem; margin-bottom: 10px; }

.testimonial-card { background: var(--aqua); border-radius: var(--radius-md); padding: 32px; }
.testimonial-card p.quote { font-size: 1.05rem; color: var(--navy); font-style: italic; }
.testimonial-card .author { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.testimonial-card .author-role { color: var(--teal); font-size: 0.82rem; }

/* ---------------------------------------------------------------------- */
/* Insights                                                                */
/* ---------------------------------------------------------------------- */
.insight-card .thumb { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 16px; background: var(--mint); }
.insight-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.insight-card .meta { font-size: 0.78rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.insight-article { max-width: 760px; margin: 0 auto; }
.insight-article .cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.insight-article .body p { font-size: 1.05rem; color: var(--charcoal); }

/* ---------------------------------------------------------------------- */
/* Careers                                                                 */
/* ---------------------------------------------------------------------- */
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px; }
.job-card .tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.job-tag { background: var(--mint); color: var(--teal); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 12px; border-radius: var(--radius-pill); }
@media (max-width: 640px) { .job-card { flex-direction: column; align-items: flex-start; } }

.job-detail-header { background: var(--aqua); padding: 56px 0; }
.job-body-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .job-body-grid { grid-template-columns: 1fr; } }
.apply-card { position: sticky; top: 100px; }

/* ---------------------------------------------------------------------- */
/* Consultation modal                                                     */
/* ---------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,54,82,0.55);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); max-width: 560px; width: 100%; padding: 40px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 18px; right: 18px; background: var(--mint); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--navy); }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: #6b787e; }
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.76rem; font-weight: 700; background: var(--mint); color: var(--teal); }

/* Trust / Founder section */
.founder-grid { gap: 32px; }
.founder-card { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.founder-card .photo { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--mint); }
.founder-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-card h3 { margin-bottom: 2px; }
.founder-card .role { color: var(--teal); font-weight: 600; font-size: .86rem; margin-bottom: 8px; }
.proof-grid { margin-top: 40px; }
.proof { text-align: center; padding: 8px 12px; border-top: 3px solid var(--green); background: var(--white); border-radius: var(--radius-md); padding: 24px 18px; }
.proof-value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1.1; margin-bottom: 8px; }
.proof h4 { font-size: .95rem; margin-bottom: 6px; }
.proof p { font-size: .84rem; color: #56636a; margin: 0; }
@media (max-width: 640px) { .founder-card { grid-template-columns: 1fr; } }
