/* =========================================
   CKS BUILDTECH HEADER
========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: var(--white);

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* =========================================
   HEADER INNER
========================================= */

.header-inner {
  width: min(1500px, calc(100% - 70px));
  height: 100%;
  margin: auto;

  display: flex;
  align-items: center;

  /* Logo LEFT — everything else RIGHT */
  justify-content: space-between;
}

/* =========================================
   LOGO
========================================= */

.brand {
  display: flex;
  align-items: center;

  flex-shrink: 0;
}

.brand img {
  display: block;

  width: auto;
  height: 58px;

  object-fit: contain;
}

/* =========================================
   RIGHT SIDE
========================================= */

.main-nav {
  display: flex;
  align-items: center;

  gap: 38px;

  margin-left: auto;
}

.main-nav a {
  position: relative;

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 0.07em;

  color: rgba(255, 255, 255, 0.82);

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

/* Small yellow hover line */

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 2px;

  background: var(--yellow);

  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after {
  width: 100%;
}

/* =========================================
   ENQUIRE BUTTON
========================================= */

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  margin-left: 40px;

  min-height: 44px;

  padding: 0 20px;

  background: var(--yellow);

  color: var(--black);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.header-cta span {
  font-size: 16px;

  transition: transform 0.3s ease;
}

.header-cta:hover {
  background: var(--white);

  transform: translateY(-1px);
}

.header-cta:hover span {
  transform: translate(3px, -3px);
}

/* =========================================
   SCROLLED HEADER
========================================= */

.site-header.scrolled {
  background: rgba(13, 14, 13, 0.92);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-toggle {
  display: none;

  flex-direction: column;
  justify-content: center;

  gap: 6px;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.25);

  background: transparent;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 18px;
  height: 1px;

  margin: 0 auto;

  background: var(--white);

  transition: 0.3s ease;
}

/* =========================================
   MOBILE NAV
========================================= */

.mobile-menu {
  position: fixed;

  top: 88px;
  left: 0;

  width: 100%;
  height: calc(100vh - 88px);

  z-index: 900;

  display: block;

  padding: 30px;

  background: rgba(42, 43, 41, 0.98);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transform: translateY(-110%);

  transition: transform 0.4s ease;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  padding: 18px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  color: var(--white);

  font-family: var(--font-display);

  font-size: 23px;
}

.mobile-menu-cta {
  margin-top: 25px;

  padding: 16px 20px !important;

  background: var(--yellow);

  color: var(--black) !important;

  text-align: center;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1150px) {
  .main-nav {
    gap: 24px;
  }

  .header-cta {
    margin-left: 25px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {
  .header-inner {
    width: calc(100% - 40px);
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 500px) {
  .site-header {
    height: 76px;
  }

  .brand img {
    height: 48px;
  }

  .mobile-menu {
    top: 76px;
    height: calc(100vh - 76px);
  }
}
