/* ===== HEADER STYLES ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;  /* above overlay (1100) and drawer (1200) */
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: 65px;
}

/* Mobile top color bar */
@media (max-width: 991px) {
    header::before {
        content: '';
        display: block;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #0C3365, #1a5fb0, #0C3365);
        background-size: 200% 100%;
        animation: headerBarShimmer 3s ease-in-out infinite;
    }
}

@keyframes headerBarShimmer {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

@media (min-width: 992px) {
    header {
        height: 100px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    header {
        height: 84px;
    }
}

@media (max-width: 575px) {
    header {
        height: 69px;
    }
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border-bottom-color: rgba(12, 51, 101, 0.1);
}

/* ===== NAVBAR ===== */
header .navbar {
    height: 100%;
    padding: 0 0;
}

header .navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== LOGO ===== */
.navbar-brand img {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .navbar-brand img {
        height: 90px;
    }
}

/* ===== DESKTOP NAV LINKS ===== */
@media (min-width: 992px) {
    header .navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        margin-left: 2rem;
    }

    header .navbar-nav {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        gap: 2px;
        margin: 0 auto;
    }
}

header .nav-link {
    font-weight: 600;
    color: #1f2937 !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 14px;
    letter-spacing: 0.2px;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
}

header .nav-link i {
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0C3365;
    border-radius: 2px;
    transition: width 0.3s ease;
}

header .nav-link:hover::after,
header .nav-link.active::after {
    width: 60%;
}

header .nav-link:hover {
    color: #0C3365 !important;
    background: rgba(12, 51, 101, 0.05);
}

header .nav-link:hover i {
    opacity: 1;
    transform: translateY(-1px);
}

header .nav-link.active {
    color: #0C3365 !important;
}

header .nav-link.active i {
    opacity: 1;
}

/* ===== CONTACT BUTTON ===== */
.header-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #2c3e50;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.header-contact-btn i {
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.header-contact-btn span {
    position: relative;
    z-index: 1;
}

.header-contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(12, 51, 101, 0.1), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-contact-btn:hover {
    border-color: #0C3365;
    color: #0C3365;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 51, 101, 0.25);
}

.header-contact-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* ===== MOBILE TOGGLER ===== */
.navbar-toggler {
    padding: 6px 8px;
    border-radius: 8px;
    border: 2px solid #e5e7eb !important;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.navbar-toggler:hover {
    background-color: #f3f4f6;
    border-color: #0C3365 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(12, 51, 101, 0.2);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.4em;
    height: 1.4em;
}

/* ===== MOBILE DRAWER MENU ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
}
.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(300px, 85vw);
    height: 100vh;
    background: #ffffff;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.mobile-menu-drawer.open {
    transform: translateX(0) !important;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 3px solid transparent;
    border-image: #0C3365 1;
    flex-shrink: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #374151;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.mobile-menu-close:hover {
    background: #f3f4f6;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 1rem 1.25rem;
    border-top: 2px solid #e5e7eb;
}

/* ===== OFFCANVAS (kept for Bootstrap compat) ===== */
.offcanvas.offcanvas-start {
    width: min(300px, 85vw) !important;
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb;
    border-left: none;
}

.offcanvas-header {
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.offcanvas-header .navbar-brand img {
    height: 34px;
}

.offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
}

#offcanvasNavbar .mobile-nav-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.btn-close {
    transition: transform 0.3s ease;
}

.btn-close:hover {
    transform: rotate(90deg);
}

/* Mobile nav links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    color: #1f2937;
    font-weight: 600;
    font-size: 14.5px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    background: #ffffff;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    position: relative;
}

.mobile-nav-link .nav-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(12, 51, 101, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.mobile-nav-link i {
    font-size: 1rem;
    color: #0C3365;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(12, 51, 101, 0.04);
    color: #0C3365;
    padding-left: 1.5rem;
}

.mobile-nav-link:hover i {
    color: #0C3365;
}

.mobile-nav-link.active {
    background: rgba(12, 51, 101, 0.06);
    color: #0C3365;
    border-left: 3px solid #0C3365;
    padding-left: calc(1.25rem - 3px);
}

.mobile-nav-link.active i {
    color: #0C3365;
}

/* Mobile contact button */
.mobile-menu-footer .header-contact-btn {
    width: 100%;
    justify-content: center;
}





/* ===== SCROLL PROGRESS BAR ===== */
#scrollProgressBar {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 0%;
  background: linear-gradient(180deg, #0C3365, #1a5fb0);
  z-index: 9999;
  border-radius: 0 0 4px 0;
  transition: height 0.05s linear;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 32px);
  max-width: 860px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(12, 51, 101, 0.18), 0 2px 12px rgba(0,0,0,0.08);
  z-index: 9998;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
  border: 1px solid rgba(12, 51, 101, 0.1);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.cookie-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.cookie-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #0C3365;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}

.cookie-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cookie-text p {
  margin: 0;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
}

.cookie-text strong {
  color: #0f172a;
}

.cookie-policy-link {
  color: #0C3365;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-policy-link:hover {
  color: #1a5fb0;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  border: 2px solid;
}

.cookie-btn-necessary {
  background: transparent;
  border-color: #0C3365;
  color: #0C3365;
}
.cookie-btn-necessary:hover {
  background: rgba(12, 51, 101, 0.06);
}

.cookie-btn-accept {
  background: #0C3365;
  border-color: #0C3365;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(12, 51, 101, 0.35);
}
.cookie-btn-accept:hover {
  background: #0a2a52;
  border-color: #0a2a52;
  box-shadow: 0 6px 20px rgba(12, 51, 101, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .cookie-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}
