.modern-header,
.routes-header {
  background: var(--primary);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.header-inner,
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  background: white;
  border-radius: 14px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 22px;
  font-family: "Rajdhani", sans-serif;
  color: var(--primary);
}
.logo-text {
  font-family: "Rajdhani", sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: white;
}
.logo-text span {
  color: var(--accent);
}

/* Image logo */
.logo-img {
  display: block;
  width: 160px;
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  transition: all 0.2s;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.mobile-menu-btn {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  background: transparent;
  border: none;
}
.mobile-call {
  display: none;
  background: white;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  align-items: center;
  gap: 6px;
}

/* Footer styles */
.footer-modern,
.routes-footer {
  background: #0f0f17;
  margin-top: 30px;
}
.footer-top {
  background: #16161f;
  padding: 56px 0 40px;
}
.footer-top p,
.footer-col p {
  color: #bcbcbc;
  line-height: 1.6;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-word;
  hyphens: auto;
}
.footer-col p a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}
.footer-col p i {
  margin-right: 8px;
  color: var(--accent);
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.footer-col h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.footer-top .footer-grid {
  align-items: start;
}

.footer-col p i.fa-phone-alt {
  transform: scaleX(-1);
  display: inline-block; 
}

@media (max-width: 880px) {
  .footer-col h4 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .footer-top {
    padding: 32px 0 22px;
  }
  .footer-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .footer-col p {
    font-size: 14px;
    gap: 8px;
  }
}
.footer-links {
  list-style: none;
}
.footer-links li a {
  color: #bcbcbc;
  text-decoration: none;
  font-size: 14px;
  line-height: 2.3;
  transition: 0.2s;
}
.footer-links li a:hover {
  color: var(--accent);
}
.footer-bottom {
  background: var(--primary);
  text-align: center;
  padding: 18px;
  color: white;
  font-size: 13px;
}

/* Responsive header/footer behaviors */
@media (max-width: 880px) {
  .header-inner {
    padding: 0 20px;
  }
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 14px;
  }
}
@media (max-width: 1024px) and (min-width: 355px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-grid > .footer-col {
    grid-column: auto;
    grid-row: auto;
  }
  .footer-grid > .footer-col:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .footer-grid > .footer-col:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .footer-grid > .footer-col:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }
  .footer-grid > .footer-col:nth-child(3) .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid > .footer-col:nth-child(3) .footer-links li {
    line-height: 1.6;
  }
  .footer-grid > .footer-col:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (max-width: 655px) and (min-width: 355px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-grid > .footer-col:nth-child(3) .footer-links {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .footer-grid > .footer-col:nth-child(3) .footer-links li {
    white-space: nowrap;
    display: inline-block;
  }
  .footer-grid > .footer-col:nth-child(4) p {
    word-break: break-word;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 28px 28px;
    z-index: 999;
  }
  .nav-links a {
    font-size: 16px;
    padding: 6px 0;
  }
  .mobile-menu-btn,
  .mobile-call {
    display: flex;
  }
}

.modern-header.sticky,
.routes-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: var(--primary);
  transform: translateZ(0);
}

/* Responsive sizes for image logo */
@media (max-width: 1100px) {
  .logo-img {
    width: 140px;
  }
}
@media (max-width: 880px) {
  .logo-img {
    width: 120px;
  }
}
@media (max-width: 480px) {
  .logo-img {
    width: 100px;
  }
  .logo-text[style] {
    display: none !important;
  }
  .nav-links {
    top: 58px;
  }
  /* small-screen tweaks for text logo/icon and footer spacing (moved from page styles) */
  .logo-text {
    font-size: 20px;
  }
  .logo-icon {
    font-size: 18px;
    padding: 6px 10px;
  }
  .footer-grid {
    gap: 28px;
  }
}
@media (max-width: 360px) {
  .logo-img {
    width: 86px;
  }
  .nav-links {
    top: 56px;
  }
}
