/* ============================================================
   KALUM KABS — header.css
   Site header styles: topbar + main navbar + mobile nav.
   Loads globally on every page via functions.php.
   ============================================================ */

/* ============================================================
   HEADER WRAPPER (fixed two-layer)
   ============================================================ */
#site-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  transition: box-shadow 0.3s ease;
}

#site-header-wrapper.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ============================================================
   TOPBAR  — 40px, #071B2E, right-aligned contacts
   ============================================================ */
.site-topbar {
  height: 40px;
  background: #071B2E;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  width: 100%;
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-topbar__contacts {
  display: flex;
  align-items: center;
}

/* Single area contact item */
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* City label */
.topbar-contact__area {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #D1D5DC;
  white-space: nowrap;
}

/* Phone icon */
.topbar-contact__icon {
  display: flex;
  align-items: center;
  color: #D6B54A;
  flex-shrink: 0;
}

.topbar-contact__icon svg {
  width: 12px;
  height: 12px;
}

/* Phone number */
.topbar-contact__phone {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.topbar-contact__phone:hover {
  color: #D6B54A;
}

/* Gold dot separator between contacts */
.topbar-separator {
  width: 4px;
  height: 4px;
  background: #D6B54A;
  border-radius: 50%;
  margin: 0 16px;
  flex-shrink: 0;
}

/* ============================================================
   MAIN HEADER — 113px, #FFFFFF
   Logo left | Nav center | Book Ride right
   ============================================================ */
.site-header {
  height: var(--site-main-header-height, 113px);
  background: #FFFFFF;
  border-bottom: 1px solid #E8E8E8;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--site-main-header-height, 113px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Logo ── */
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo-img {
  width: 88px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.site-header__logo-text {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #1B2033;
  letter-spacing: -0.02em;
}

.site-header__logo-text span {
  color: #D6B54A;
}

/* ── Primary Navigation ── */
.site-header__nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.nav__item {
  position: relative;
}

/* Nav links typography */
.nav__list a,
.nav__link {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

/* Gold underline on hover/active */
.nav__list a::after,
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #D6B54A;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav__list a:hover,
.nav__link:hover {
  color: #1B2033;
}

.nav__list a:hover::after,
.nav__link:hover::after {
  transform: scaleX(1);
}

/* Active state — #1B2033 */
.nav__link.active,
.current-menu-item > a,
.current-menu-item > .nav__link,
.current-page-ancestor > a,
.current-page-ancestor > .nav__link,
.current-menu-ancestor > a,
.current-menu-ancestor > .nav__link {
  color: #1B2033;
  font-weight: 600;
}

.nav__link.active::after,
.current-menu-item > a::after,
.current-menu-item > .nav__link::after,
.current-page-ancestor > a::after,
.current-page-ancestor > .nav__link::after,
.current-menu-ancestor > a::after,
.current-menu-ancestor > .nav__link::after {
  transform: scaleX(1);
}

/* ── Header Actions (CTA + Hamburger) ── */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ── Book Ride CTA Button ── */
.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 8px;
  background: #1B2033;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  border: none;
}

.site-header__cta:hover {
  background: #2d3554;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,32,51,0.28);
}

/* ── Hamburger toggle (mobile only, hidden on desktop) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #F8FAFC;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: #E2E8F0;
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: #1B2033;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE NAVIGATION DRAWER
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--site-header-full-height, 153px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: calc(var(--z-sticky, 200) - 1);
  max-height: calc(100vh - var(--site-header-full-height, 153px));
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 16px 24px;
}

.mobile-nav__item {
  border-bottom: 1px solid #F1F5F9;
}

.mobile-nav__item:last-child {
  border-bottom: none;
}

.mobile-nav__link {
  display: block;
  padding: 16px 0;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: #1B2033;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav__link:hover {
  color: #D6B54A;
  padding-left: 8px;
}

.mobile-nav__footer {
  padding: 20px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mobile contacts section (call us list) */
.mobile-nav__contacts {
  padding: 16px 24px;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
}

.mobile-nav__contacts-heading {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 10px;
  margin-top: 0;
}

.mobile-nav__contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  text-decoration: none;
  transition: padding-left 0.2s ease;
}

.mobile-nav__contact-row:last-child {
  border-bottom: none;
}

.mobile-nav__contact-row:hover {
  padding-left: 4px;
}

.mobile-nav__contact-area {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #1B2033;
}

.mobile-nav__contact-phone {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #D6B54A;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 1200px: Tighten nav for medium desktop ── */
@media (max-width: 1200px) {
  .nav__list {
    gap: 16px;
  }

  .nav__list a,
  .nav__link {
    font-size: 16px;
  }

  .site-header__cta {
    padding: 14px 20px;
    font-size: 16px;
  }
}

/* ── 991px (tablet): hide nav, show hamburger ── */
@media (max-width: 991px) {
  .site-header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  /* Topbar: horizontal scroll for long contact lists */
  .site-topbar__inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0 24px;
  }

  .site-topbar__inner::-webkit-scrollbar {
    display: none;
  }

  .site-topbar__contacts {
    min-width: max-content;
  }
}

/* ── 767px (mobile): compact header ── */
@media (max-width: 767px) {
  .site-header__inner {
    padding: 0 20px;
  }

  .site-header__logo-img {
    width: 70px;
    height: 64px;
  }

  .site-header__cta {
    font-size: 15px;
    padding: 10px 16px;
  }

  .site-topbar__inner {
    padding: 0 16px;
  }

  .topbar-contact__area {
    font-size: 10px;
  }

  .topbar-contact__phone {
    font-size: 11px;
  }

  .topbar-separator {
    margin: 0 10px;
  }
}
