/* ALO Driving School — TOP HEADER ONLY. Original header and homepage styles stay unchanged. */
.topbar .topbar-inner.topbar-social-layout {
  display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between;
  gap:18px; min-height:48px; padding:6px 0;
}
.topbar .topbar-contact {display:flex; align-items:center; flex-wrap:wrap; gap:5px 22px; min-width:0;}
.topbar .topbar-contact a {color:#fff; display:inline-flex; align-items:center; gap:9px; font-size:12.5px; font-weight:700; text-decoration:none; white-space:nowrap; transition:color .2s ease;}
.topbar .topbar-contact a:hover,.topbar .topbar-contact a:focus-visible {color:#ffc400;}
.topbar .topbar-contact .ui-icon {width:16px;height:16px;flex:none;}
.topbar .topbar-social {display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:none;}
.topbar .topbar-social-icon {width:31px;height:31px;display:inline-flex;align-items:center;justify-content:center;
  flex:none; color:#fff; border:1px solid rgba(255,255,255,.19);background:rgba(255,255,255,.075);
  border-radius:8px; cursor:default;
}
.topbar .topbar-social-icon svg {width:16px;height:16px;display:block;}
@media (max-width: 991px) {
  .topbar .topbar-inner.topbar-social-layout {flex-wrap:wrap;flex-direction:column;justify-content:center;gap:6px;padding:9px 0;}
  .topbar .topbar-contact {justify-content:center;gap:5px 22px;}
  .topbar .topbar-social {justify-content:center;gap:7px;max-width:100%;}
}
@media (max-width: 575px) {
  .topbar .topbar-inner.topbar-social-layout {gap:8px;padding:10px 0;}
  .topbar .topbar-contact {gap:6px 14px;}
  .topbar .topbar-contact a {font-size:11.5px;}
  .topbar .topbar-social {gap:4px;}
  .topbar .topbar-social-icon {width:30px;height:30px;border-radius:7px;}
  .topbar .topbar-social-icon svg {width:16px;height:16px;}
}
@media (max-width: 365px) {
  .topbar .topbar-contact a {font-size:10.5px;}
  .topbar .topbar-social {gap:3px;}
  .topbar .topbar-social-icon {width:27px;height:27px;}
  .topbar .topbar-social-icon svg {width:14px;height:14px;}
}


/* Mobile-only top header simplification: show phone only */
@media (max-width: 767px) {
  .topbar .topbar-social {
    display: none !important;
  }
  .topbar .topbar-contact {
    width: 100%;
    justify-content: center;
  }
  .topbar .topbar-contact a:nth-child(2) {
    display: none !important;
  }
  .topbar .topbar-inner.topbar-social-layout {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 9px 0;
  }
  .topbar .topbar-contact a {
    font-size: 12px;
  }
}


/* Mobile navigation overlay — open above Hero without shifting page content.
   Bootstrap's collapse still controls opening/closing and dropdown menus. */
@media (max-width: 991.98px) {
  .site-header {
    position: relative;
    z-index: 1050;
  }
  .site-header .navbar {
    position: relative;
    overflow: visible;
  }
  .site-header #primaryNav {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 720px);
    margin: 0 !important;
    padding: 14px 18px 18px;
    border: 1px solid #dfe8f3;
    border-top: 3px solid #f4bc00;
    border-radius: 0 0 18px 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 22px 44px rgba(7,24,75,.19);
    z-index: 1051;
    max-height: min(75dvh, 600px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header #primaryNav .nav-link {
    font-size: 16px !important;
    display: block;
    padding: 12px 14px !important;
  }
  .site-header #primaryNav .dropdown-menu {
    border-radius: 10px;
    box-shadow: none;
    margin: 2px 0 8px;
    background: #f7faff;
  }
}


/* Desktop navigation font size only — no layout or mobile changes. */
@media (min-width: 992px) {
  .site-header .nav-link { font-size: 18px !important; }
}
