/* ==========================================================================
   Blue Horizon Consultancy Corp. — site styles
   Built on Bootstrap 5.3. Brand palette is taken from the company logo.
   ========================================================================== */

:root {
  --bh-navy: #011235;
  --bh-navy-700: #0b2545;
  --bh-blue: #2b8fcc;
  --bh-blue-dark: #1f77ad;
  --bh-blue-light: #55b6e8;
  --bh-sky-50: #f5fafd;
  --bh-sky-100: #eaf6fd;
  --bh-sky-200: #d3eaf8;
  --bh-sky-300: #a9d8f2;
  --bh-border: #e0edf6;
  --bh-body: #3f5468;
  --bh-muted: #7a97b0;

  --bs-primary: #2b8fcc;
  --bs-primary-rgb: 43, 143, 204;
}

/* ---------- Base ---------- */
body {
  font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--bh-body);
  background: var(--bh-sky-50);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: var(--bh-navy-700);
  letter-spacing: -0.015em;
}
a { color: var(--bh-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bh-blue-dark); }
.text-navy { color: var(--bh-navy) !important; }
.text-blue { color: var(--bh-blue) !important; }
.text-muted-blue { color: var(--bh-muted) !important; }
.bg-navy { background-color: var(--bh-navy) !important; }
.bg-sky { background-color: var(--bh-sky-100) !important; }
.bg-sky-grad { background: linear-gradient(180deg, var(--bh-sky-100), var(--bh-sky-200)); }
.section { padding: 5.5rem 0; }
.section-sm { padding: 4rem 0; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bh-blue);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--bh-blue-light); border-radius: 2px; }
.eyebrow-light { color: #7fd0f5; }
.eyebrow-center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .95rem; border-radius: .45rem; padding: .8rem 1.6rem; transition: all .25s ease; }
.btn-brand { background: var(--bh-blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(43,143,204,.75); }
.btn-brand:hover, .btn-brand:focus { background: var(--bh-blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(43,143,204,.85); }
.btn-outline-brand { background: #fff; color: var(--bh-navy-700); border: 1px solid #cfe3f1; }
.btn-outline-brand:hover { border-color: var(--bh-blue-light); color: var(--bh-blue-dark); transform: translateY(-2px); }
.btn-light-brand { background: #fff; color: var(--bh-navy-700); }
.btn-light-brand:hover { background: var(--bh-sky-100); color: var(--bh-navy-700); transform: translateY(-2px); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--bh-navy); color: #9fb6cc; font-size: .82rem; }
.topbar a { color: #9fb6cc; }
.topbar a:hover { color: #7fd0f5; }
.topbar i { color: var(--bh-blue-light); }

/* ---------- Navbar ---------- */
.navbar-bh {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bh-border);
  transition: box-shadow .3s ease, padding .3s ease;
  padding-top: .85rem; padding-bottom: .85rem;
}
.navbar-bh.scrolled { box-shadow: 0 10px 30px -18px rgba(11,37,69,.45); padding-top: .55rem; padding-bottom: .55rem; }
.navbar-bh .navbar-brand img { width: 52px; height: 52px; object-fit: contain; transition: transform .3s ease; }
.navbar-bh .navbar-brand:hover img { transform: scale(1.06); }
.brand-name { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--bh-navy); letter-spacing: .01em; line-height: 1.1; }
.brand-sub { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .6rem; letter-spacing: .19em; color: var(--bh-muted); }
.navbar-bh .nav-link {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .95rem;
  color: #17304d; position: relative; margin: 0 .35rem; padding: .4rem .2rem;
}
.navbar-bh .nav-link::after {
  content: ''; position: absolute; left: .2rem; right: .2rem; bottom: 0; height: 2px;
  background: var(--bh-blue-light); border-radius: 2px; transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.navbar-bh .nav-link:hover, .navbar-bh .nav-link.active { color: var(--bh-blue); }
.navbar-bh .nav-link:hover::after, .navbar-bh .nav-link.active::after { transform: scaleX(1); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, #ffffff 0%, var(--bh-sky-100) 45%, var(--bh-sky-200) 100%);
}
.hero-waves { position: absolute; left: 0; bottom: 0; width: 100%; opacity: .5; pointer-events: none; }
.hero h1 { font-size: clamp(2rem, 3.05vw, 2.95rem); font-weight: 800; line-height: 1.12; }
.hero-figure { border-radius: 1.1rem; overflow: hidden; box-shadow: 0 34px 60px -30px rgba(11,37,69,.45); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 26s ease-in-out infinite alternate; }
.hero-badge {
  position: absolute; left: -1.75rem; bottom: 2.5rem; width: 17.5rem;
  background: #fff; border-radius: .9rem; padding: 1.35rem 1.5rem;
  box-shadow: 0 24px 44px -22px rgba(11,37,69,.42);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Page banner (interior pages) ---------- */
.page-banner { position: relative; overflow: hidden; background: var(--bh-navy); }
.page-banner img.banner-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 28s ease-in-out infinite alternate;
}
.page-banner .banner-veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(1,18,53,.9) 25%, rgba(1,18,53,.62) 100%);
}
.page-banner .banner-inner { position: relative; padding: 5.5rem 0 5rem; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.9rem); font-weight: 800; }
.page-banner p { color: #b9d1e4; }
.breadcrumb-bh { font-size: .85rem; color: #8fb0c8; }
.breadcrumb-bh a { color: #7fd0f5; }

/* ---------- Icon tiles & cards ---------- */
.tile {
  width: 3.25rem; height: 3.25rem; border-radius: .75rem; flex: 0 0 auto;
  background: linear-gradient(140deg, #e4f3fc, #c7e7f8);
  display: flex; align-items: center; justify-content: center;
  color: var(--bh-blue); font-size: 1.35rem; transition: transform .3s ease;
}
.card-bh {
  background: #fff; border: 1px solid var(--bh-border); border-radius: .9rem;
  padding: 2rem; height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-bh:hover { transform: translateY(-6px); border-color: var(--bh-sky-300); box-shadow: 0 22px 40px -22px rgba(11,37,69,.35); }
.card-bh:hover .tile { transform: scale(1.06) rotate(-4deg); }
.card-bh h3 { font-size: 1.18rem; line-height: 1.35; }
.card-bh p { font-size: .96rem; line-height: 1.65; }

/* ---------- Checklist ---------- */
.chk { display: flex; align-items: flex-start; gap: .65rem; padding: .4rem 0; font-size: .98rem; }
.chk i { color: var(--bh-blue); margin-top: .22rem; flex: 0 0 auto; }

/* ---------- Process steps ---------- */
.process-line { position: absolute; left: 2.2rem; right: 2.2rem; top: 1.75rem; height: 2px;
  background: linear-gradient(90deg, #c7e7f8, var(--bh-sky-300), #c7e7f8); }
.step-num {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--bh-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 .5rem var(--bh-sky-100); position: relative;
}
.step-num.last { background: var(--bh-navy); }

/* ---------- Industry tiles ---------- */
.ind {
  display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.1rem; height: 100%;
  background: #fff; border: 1px solid var(--bh-border); border-radius: .7rem;
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .95rem; color: #17304d;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.ind i { color: var(--bh-blue); font-size: 1.15rem; }
.ind:hover { transform: translateY(-4px); border-color: var(--bh-sky-300); background: #fbfdff; color: #17304d; }

/* ---------- Dark band with image ---------- */
.band { position: relative; overflow: hidden; background: var(--bh-navy); }
.band img.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.band .band-veil { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(1,18,53,.95) 35%, rgba(1,18,53,.6) 100%); }
.band .band-inner { position: relative; }
.band h2 { color: #fff; }
.band p { color: #a9c2d6; }
.chip {
  display: inline-block; padding: .55rem 1rem; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(169,216,242,.35);
  color: #dbeefb; font-size: .87rem; font-family: 'Manrope', sans-serif; font-weight: 600;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.chip:hover { background: rgba(255,255,255,.18); border-color: var(--bh-sky-300); transform: translateY(-3px); color: #fff; }

/* ---------- Service detail rows ---------- */
.svc-detail { border-bottom: 1px solid var(--bh-border); padding-bottom: 3.25rem; margin-bottom: 3.25rem; }
.svc-detail:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.svc-num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .85rem; color: var(--bh-blue); letter-spacing: .1em; }
.bullet { display: flex; align-items: flex-start; gap: .6rem; padding: .45rem 0; font-size: .97rem; }
.bullet i { color: var(--bh-blue-light); margin-top: .3rem; font-size: .7rem; }
.tag {
  display: inline-block; padding: .45rem .9rem; border-radius: 100px; background: var(--bh-sky-100);
  color: var(--bh-navy-700); font-size: .85rem; font-family: 'Manrope', sans-serif; font-weight: 600;
  transition: background .25s ease, transform .25s ease;
}
.tag:hover { background: var(--bh-sky-200); transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact-panel { background: var(--bh-navy); border-radius: .9rem; padding: 2.5rem; color: #c7d6e2; }
.contact-row { display: flex; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-row:last-child { border-bottom: 0; }
.contact-row i { color: var(--bh-blue-light); font-size: 1.15rem; margin-top: .15rem; }
.form-control, .form-select {
  border: 1px solid #d8e6f1; border-radius: .45rem; padding: .8rem 1rem;
  font-size: 1rem; background: var(--bh-sky-50); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:focus, .form-select:focus { border-color: var(--bh-blue-light); background: #fff; box-shadow: 0 0 0 .2rem rgba(85,182,232,.18); }
.form-label { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #5b7288; margin-bottom: .45rem; }
.map-card { position: relative; border-radius: .9rem; overflow: hidden; background: linear-gradient(160deg, var(--bh-sky-100), var(--bh-sky-200)); border: 1px solid var(--bh-border); }
.map-pin { animation: pulsePin 2.4s ease-in-out infinite; }
@keyframes pulsePin { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .82; } }

/* ---------- Accordion (training page) ---------- */
.accordion-bh .accordion-item { border: 1px solid var(--bh-border); border-radius: .7rem !important; margin-bottom: .85rem; overflow: hidden; background: #fff; }
.accordion-bh .accordion-button { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--bh-navy-700); background: #fff; font-size: 1.02rem; }
.accordion-bh .accordion-button:not(.collapsed) { background: var(--bh-sky-100); color: var(--bh-blue-dark); box-shadow: none; }
.accordion-bh .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(85,182,232,.2); }

/* ---------- Footer ---------- */
.footer { background: var(--bh-navy); color: #a9c2d6; }
.footer h5 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer a { color: #a9c2d6; font-size: .95rem; line-height: 2.1; display: inline-block; }
.footer a:hover { color: #7fd0f5; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(169,216,242,.18); font-size: .85rem; color: #7a97b0; }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed; right: 1.5rem; bottom: 1.5rem; width: 2.85rem; height: 2.85rem;
  border-radius: 50%; background: var(--bh-blue); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s ease; z-index: 1030; box-shadow: 0 12px 26px -12px rgba(43,143,204,.9);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--bh-blue-dark); }

/* ---------- Divider wave ---------- */
.wave-divider { display: block; width: 100%; height: 60px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section { padding: 3.75rem 0; }
  .hero-badge { position: static; width: auto; margin-top: -2.5rem; margin-left: 1rem; margin-right: 1rem; animation: none; }
  .process-line { display: none; }
  .navbar-bh .nav-link::after { display: none; }
  .navbar-collapse { padding-top: 1rem; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .card-bh { padding: 1.5rem; }
  .contact-panel { padding: 1.75rem; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
