/* EXTILINE AI — shared primary header across Home, Privacy Policy and Cookie Policy.
   Keep this file linked after page-specific CSS so the header stays visually consistent. */
:root {
  --extiline-navy: #0B1F3A;
  --extiline-blue: #2563EB;
  --extiline-line: #D8E2EF;
  --extiline-muted: #53657D;
}
.nav,
.nav * { box-sizing: border-box; }
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  color: var(--extiline-navy);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(216,226,239,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav .container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.nav-inner {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--extiline-navy);
  text-decoration: none;
}
.nav .brand-logo {
  display: block;
  width: 108px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2.35vw, 32px);
  margin-left: auto;
  color: #4C5B73;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--extiline-blue); }

/* Contact Us CTA: consistent on desktop and within the mobile menu. */
.nav-links a.nav-contact-cta {
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #2563EB;
  border-radius: 12px;
  color: #FFFFFF;
  background: #2563EB;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(37,99,235,.16);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav-links a.nav-contact-cta:hover,
.nav-links a.nav-contact-cta:focus-visible {
  color: #FFFFFF;
  background: #0B1F3A;
  border-color: #0B1F3A;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(11,31,58,.18);
}
.nav-links a.nav-contact-cta::after { display: none !important; }

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0EAAA0, var(--extiline-blue));
}
.menu-btn {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #D5DFEC;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 5px 15px rgba(12,34,56,.05);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 3px;
  background: var(--extiline-navy);
  transition: transform .22s ease, opacity .18s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1180px) {
  .nav .container { width: min(1180px, calc(100% - 30px)); }
  .nav-inner { min-height: 68px; gap: 14px; }
  .nav .brand-logo { width: 98px; max-height: 33px; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 1010;
    margin: 0;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    color: #4C5B73;
    background: rgba(255,255,255,.99);
    border: 1px solid var(--extiline-line);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(9,30,52,.14);
  }
  .nav-links.open,
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: flex;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 9px;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible { background: #F5F8FD; }
  .nav-links a.nav-contact-cta {
    justify-content: center;
    min-height: 46px;
    margin-top: 5px;
    padding: 12px 14px;
    border-radius: 11px;
    color: #FFFFFF;
    background: #2563EB;
    border-color: #2563EB;
    text-align: center;
  }
  .nav-links a.nav-contact-cta:hover,
  .nav-links a.nav-contact-cta:focus-visible {
    color: #FFFFFF;
    background: #0B1F3A;
    border-color: #0B1F3A;
  }
  .nav-links a.active::after,
  .nav-links a[aria-current="page"]::after { left: 12px; right: auto; bottom: 5px; width: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav *, .nav *::before, .nav *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* EXTILINE AI shared header refinements — transparent logo canvas + right-aligned contact CTA. */
.nav .brand-logo {
  display: block;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.nav-links a.nav-contact-cta {
  flex: 0 0 auto;
  min-width: 112px;
  min-height: 44px;
  margin-left: 2px;
  padding: 10px 18px;
  border: 1px solid #2563EB;
  border-radius: 12px;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #2563EB 0%, #174FC4 100%) !important;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 20px rgba(37,99,235,.2);
}
.nav-links a.nav-contact-cta:hover,
.nav-links a.nav-contact-cta:focus-visible {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #174FC4 0%, #0B1F3A 100%) !important;
  border-color: #174FC4 !important;
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(11,31,58,.2);
}
.nav-links a.nav-contact-cta::after { display: none !important; }
@media (max-width: 1180px) {
  .nav-links a.nav-contact-cta {
    width: 100%;
    min-height: 46px;
    margin: 5px 0 0;
    padding: 12px 14px;
  }
}
