/* =========================================
   CANADA SKILLPATH SHARED HEADER & NAVBAR
   ========================================= */

:root {
  --cs-navy: #111e3b;
  --cs-blue: #23558c;
  --cs-red: #d3141b;
  --cs-white: #ffffff;
  --cs-ink: #17233f;
}

.cs-topbar,
.cs-topbar *,
.cs-header,
.cs-header * {
  box-sizing: border-box;
}

/* TOP INFORMATION BAR */
.cs-topbar {
  width: 100%;
  background: var(--cs-navy);
  color: var(--cs-white);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  position: relative;
  z-index: 1002;
}

.cs-topbar-inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cs-topbar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.cs-topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.cs-topbar-info i {
  color: var(--cs-red);
  font-size: 15px;
}

.cs-socials {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.cs-socials a {
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cs-socials a:hover {
  color: #ff5a60;
  transform: translateY(-2px);
}

/* MAIN HEADER */
.cs-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(17, 30, 59, 0.08);
  box-shadow: 0 5px 20px rgba(17, 30, 59, 0.06);
  font-family: Inter, Arial, sans-serif;
}

.cs-nav-wrap {
  width: min(1440px, calc(100% - 48px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 0.25s ease;
}

/* LOGO */
.cs-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 270px;
  text-decoration: none;
}

.cs-brand img {
  display: block;
  width: auto;
  height: 76px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: height 0.25s ease;
}

/* NAVIGATION LINKS */
.cs-nav {
  margin-left: auto;
}

.cs-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.55vw, 26px);
  margin: 0;
  padding: 0;
}

.cs-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cs-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}

.cs-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 3px;
  background: var(--cs-red);
  transition: right 0.2s ease;
}

.cs-nav-links a:hover,
.cs-nav-links a.active {
  color: var(--cs-red);
}

.cs-nav-links a:hover::after,
.cs-nav-links a.active::after {
  right: 0;
}

/* GET STARTED BUTTON */
.cs-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--cs-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(211, 20, 27, 0.16);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cs-get-started:hover {
  background: #ad1016;
  transform: translateY(-1px);
}

/* MOBILE-ONLY ELEMENTS */
.cs-mobile-contact,
.cs-menu-toggle {
  display: none;
}

/* SHRINK HEADER ON DESKTOP SCROLL */
@media (min-width: 1101px) {
  .cs-header.cs-scrolled .cs-nav-wrap {
    min-height: 82px;
  }

  .cs-header.cs-scrolled .cs-brand img {
    height: 60px;
  }
}

/* TABLETS AND SMALL LAPTOPS */
@media (max-width: 1250px) {
  .cs-nav-wrap {
    gap: 17px;
  }

  .cs-brand {
    max-width: 220px;
  }

  .cs-brand img {
    height: 68px;
  }

  .cs-nav-links {
    gap: 13px;
  }

  .cs-nav-links a {
    font-size: 13px;
  }

  .cs-get-started {
    padding: 0 16px;
  }
}

/* MOBILE NAVIGATION */
@media (max-width: 1100px) {
  .cs-topbar-inner {
    width: calc(100% - 32px);
  }

  .cs-topbar-info {
    gap: 8px 18px;
  }

  .cs-topbar-info span {
    font-size: 12px;
  }

  .cs-nav-wrap {
    width: calc(100% - 32px);
    min-height: 86px;
  }

  .cs-brand {
    max-width: 230px;
  }

  .cs-brand img {
    height: 62px;
  }

  .cs-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 44px;
    padding: 10px;
    border: 1px solid #dfe4ed;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    margin-left: auto;
  }

  .cs-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cs-navy);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .cs-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .cs-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .cs-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .cs-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: #ffffff;
    border-top: 1px solid #e9edf4;
    box-shadow: 0 14px 22px rgba(17, 30, 59, 0.12);
    display: none;
  }

  .cs-nav.cs-open {
    display: block;
  }

  .cs-nav-links {
    width: calc(100% - 32px);
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 0 18px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .cs-nav-links li {
    width: 100%;
  }

  .cs-nav-links a {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
    border-bottom: 1px solid #edf0f5;
  }

  .cs-nav-links a::after {
    display: none;
  }

  .cs-nav-links a.active {
    color: var(--cs-red);
  }

  .cs-mobile-contact {
    display: inline-flex;
  }

  .cs-get-started {
    min-height: 44px;
    padding: 0 15px;
    font-size: 13px;
  }
}

/* SMALL PHONES */
@media (max-width: 650px) {
  .cs-topbar-inner {
    width: calc(100% - 28px);
    min-height: 40px;
    justify-content: center;
  }

  .cs-topbar-info {
    justify-content: center;
    gap: 5px 12px;
  }

  .cs-topbar-info span {
    font-size: 11px;
  }

  .cs-topbar-info span:nth-child(2) {
    display: none;
  }

  .cs-socials {
    display: none;
  }

  .cs-nav-wrap {
    width: calc(100% - 28px);
    min-height: 76px;
    gap: 10px;
  }

  .cs-brand {
    max-width: 190px;
  }

  .cs-brand img {
    height: 54px;
  }

  .cs-get-started {
    display: none;
  }

  .cs-nav-links {
    width: calc(100% - 28px);
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  .cs-header *,
  .cs-topbar * {
    transition: none !important;
  }
}