/* ==========================================================================
   BSIL — Business Solutions Integrated Limited
   Shared stylesheet. Brand colours live in :root; change them there.
   ========================================================================== */

:root {
  --navy: #1C2754;
  --navy-deep: #111A3A;
  --navy-line: #2D3A6B;
  --orange: #E8832A;
  --orange-dark: #C2600F;   /* large text on light backgrounds (4.2:1) */
  --orange-tint: #FDEBDA;
  --slate: #4A5568;
  --cloud: #F4F6FA;
  --line: #E1E5EE;
  --line-soft: #DDE2EE;
  --grey: #8A8F98;
  --on-dark: #D5DAEE;
  --on-dark-soft: #B8C0DC;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1200px;
  --gutter: 24px;
  --radius: 6px;
  --radius-sm: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

p, dl, dd { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

section[id] { scroll-margin-top: 88px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; }
.brand img { display: block; height: 64px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 4px;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line-soft); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }

.site-nav a.nav-cta {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border-bottom: 0;
}
.site-nav a.nav-cta:hover { background: #F09440; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  /* Logo on the left, Menu button on the right, always on one line.
     The open menu drops down over the page instead of making the header taller. */
  .js .header-inner { flex-wrap: nowrap; gap: 12px; }
  .js .brand { flex: 0 1 auto; min-width: 0; }
  .js .brand img { height: 48px; }
  .js .nav-toggle { display: inline-flex; flex: 0 0 auto; min-height: 44px; padding: 0 14px; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(17, 26, 58, 0.14);
  }
  .js .site-nav[data-open="true"] { display: flex; }
  .js .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .js .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
  .js .site-nav a.nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: var(--orange);
  flex: 0 0 12px;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: #C9D0E8; margin-bottom: 28px; }

.accent { color: var(--orange); font-style: italic; }

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #F09440; }
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--lg { font-size: 17px; padding: 17px 36px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.link-arrow {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-arrow:hover { text-decoration-color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; background: #fff; }
.section--cloud { background: var(--cloud); }

.section-head h2 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.02;
  margin-bottom: 20px;
}
.section-lede { max-width: 640px; font-size: 18px; margin-bottom: 56px; }

/* ---------- Home hero ---------- */
.hero { background: var(--navy); color: #fff; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 104px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 40px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--on-dark);
}

.stat-panel {
  background: var(--navy-deep);
  border-top: 6px solid var(--orange);
  border-radius: var(--radius);
  padding: 12px 36px;
  max-width: 460px;
  width: 100%;
  justify-self: end;
}
.stat-row { padding: 28px 0; border-bottom: 1px solid var(--navy-line); }
.stat-row:last-child { border-bottom: 0; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: var(--orange);
}
.stat-label { display: block; margin-top: 8px; color: var(--on-dark); }

/* ---------- Service cards (home) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.card h3 { font-size: 30px; line-height: 1.1; }
.card .link-arrow { margin-top: auto; padding-top: 8px; align-self: flex-start; }

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  background: var(--orange-tint);
  border-radius: var(--radius);
}
.icon-tile svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Why BSIL ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.why .section-lede { margin-bottom: 48px; max-width: 600px; }

.reasons { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.reason {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.reason-num {
  flex: 0 0 64px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--orange-dark);
}
.reason h3 { font-size: 28px; line-height: 1.1; margin-bottom: 8px; }

.navy-panel {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 36px 24px;
}
.stats-grid .stat-num { font-size: 80px; }
.panel-tagline {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #3A4885;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  color: #fff;
}

/* ---------- Call-to-action card ---------- */
.cta-wrap { padding: 0 0 104px; background: #fff; }
.cta-wrap--padded { padding: 104px 0; }

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  background: var(--navy);
  border-left: 12px solid var(--orange);
  border-radius: var(--radius);
  padding: 64px 56px;
}
.cta-copy { flex: 1 1 460px; min-width: 0; }
.cta-card h2 {
  color: #fff;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 16px;
}
.cta-card p { max-width: 540px; font-size: 18px; color: var(--on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark); }
.footer-inner { padding-top: 72px; padding-bottom: 32px; }

.footer-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-brand { flex: 1 1 320px; min-width: 0; }
.footer-col { flex: 1 1 160px; min-width: 0; }
.footer-col--wide { flex-basis: 200px; }

.logo-plate {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  margin-bottom: 20px;
}
.logo-plate img { display: block; height: 48px; width: auto; }

.footer-name { color: #fff; font-weight: 700; margin-bottom: 4px; }
.footer-tag { color: var(--on-dark-soft); }

.footer-label {
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: block; padding: 7px 0; color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  font-size: 14px;
  color: var(--on-dark-soft);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--on-dark-soft); text-decoration: none; padding: 8px 0; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Inner page hero (Services, Contact) ---------- */
.page-hero { background: var(--navy); color: #fff; }
.page-hero .container { padding-top: 88px; padding-bottom: 96px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin-bottom: 24px;
}
.page-hero p { max-width: 600px; font-size: 20px; line-height: 1.55; color: var(--on-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-block;
  border: 1px solid #5A6AA8;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
}
.chip:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ---------- Services page ---------- */
.service { padding: 96px 0; background: #fff; }
.service--cloud { background: var(--cloud); }

.service-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 56px;
  align-items: start;
}

.service-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--orange-dark);
}
.service h2 {
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.02;
  margin-bottom: 12px;
}
.tagline { margin-bottom: 20px; font-size: 20px; font-style: italic; font-weight: 500; color: var(--navy); }
.service-copy > p:not(.tagline) { max-width: 520px; margin-bottom: 32px; font-size: 17px; }

.included {
  background: var(--cloud);
  border-radius: var(--radius);
  padding: 36px;
}
.service--cloud .included { background: #fff; border: 1px solid var(--line); }

.included-label {
  font-family: var(--font-body);
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 220px;
  column-gap: 32px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  break-inside: avoid;
  color: var(--navy);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--orange);
}
.service--cloud .checklist li { border-bottom-color: var(--line); }

/* ---------- Contact page ---------- */
.contact { background: var(--cloud); padding: 88px 0 104px; }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
}
.form-card h2 { font-size: 40px; line-height: 1.05; margin-bottom: 8px; }
.form-intro { margin-bottom: 32px; }

.form-fields { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 22px; }

.field label { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 700; font-size: 15px; }
.field .optional { font-weight: 400; color: var(--slate); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
}
.field textarea { min-height: 160px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-actions .btn { min-height: 52px; font-size: 17px; padding: 14px 36px; }
.form-note { flex: 1 1 260px; font-size: 14px; }

.form-status { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--orange-tint); color: var(--navy); font-weight: 500; }

.form-success { background: var(--orange-tint); border-radius: var(--radius); padding: 48px 36px; }
.form-success h2 { font-size: 44px; margin-bottom: 12px; }
.form-success p { max-width: 460px; margin-bottom: 28px; font-size: 18px; color: var(--navy); }

.info-panel {
  background: var(--navy);
  border-top: 6px solid var(--orange);
  border-radius: var(--radius);
  padding: 44px 36px;
  color: var(--on-dark);
}
.info-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  line-height: 0.9;
  color: var(--orange);
}
.info-big-label {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: #fff;
}
.info-intro { margin-top: 12px; }
.info-rule { margin: 32px 0; height: 1px; border: 0; background: #3A4885; }
.info-block { margin-bottom: 28px; }
.info-block:last-child { margin-bottom: 0; }
.info-label {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.info-value { font-size: 18px; color: #fff; }
.info-value--soft { font-size: 16px; color: var(--on-dark); }
.info-mail {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .stat-panel { justify-self: stretch; max-width: none; }
  .why { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section, .service { padding: 72px 0; }
  .contact { padding: 64px 0 72px; }
  .cta-wrap { padding-bottom: 72px; }
  .cta-wrap--padded { padding: 72px 0; }
  .hero-inner { padding-top: 64px; padding-bottom: 72px; }
  .page-hero .container { padding-top: 64px; padding-bottom: 72px; }
  .card { padding: 28px 24px; }
  .included { padding: 28px 24px; }
  .form-card { padding: 32px 24px; }
  .cta-card { padding: 40px 28px; border-left-width: 8px; }
  .navy-panel { padding: 32px 24px; }
  .stat-panel { padding: 8px 24px; }
  .reason { gap: 16px; }
  .reason-num { flex-basis: 48px; font-size: 36px; }
  .footer-inner { padding-top: 56px; }
}
