/* ============================================
   HEADER + NAVIGATION
============================================ */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease;
}

.site-header.is-transparent{
  background: linear-gradient(to bottom, rgba(2,6,23,0.34), rgba(2,6,23,0.08));
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header.is-scrolled{
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  border-bottom-color: rgba(15,23,42,0.06);
}

/* Inner */
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  height: 80px;
}

/* ============================================
   BRAND / LOGO
============================================ */

.site-logo{
  flex: 0 0 auto;
}

.site-logo a{
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  min-width: 0;
}

.site-logo img{
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* If your logo image is still weak/template-like,
   keep the text styling strong so the brand looks premium */
.logo-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(0.82rem, 1.2vw, 0.98rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  max-width: 250px;
}

.logo-text span,
.logo-text small{
  display: block;
}

.logo-text .brand-line-1{
  font-weight: 800;
  color: var(--color-dark);
}

.logo-text .brand-line-2{
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.12rem;
  letter-spacing: 0.02em;
}

.site-header.is-transparent .logo-text,
.site-header.is-transparent .logo-text .brand-line-1,
.site-header.is-transparent .logo-text .brand-line-2{
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.20);
}

.site-header.is-transparent .nav-list a:not(.btn){
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}

.site-header.is-transparent .nav-list a:not(.btn):hover{
  color: #ffffff;
}

.site-header.is-transparent .nav-list a.is-active{
  color: #ffffff;
}

.site-header.is-transparent .nav-list a:not(.btn)::after{
  background: currentColor;
}

.site-header.is-transparent .nav-toggle span{
  background: #ffffff;
}

.site-header.is-transparent .nav-cta .btn{
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}

.site-header.is-transparent .nav-cta .btn:hover{
  background: rgba(255,255,255,0.24);
  color: #ffffff;
}

.site-header.is-transparent.is-scrolled .logo-text,
.site-header.is-transparent.is-scrolled .logo-text .brand-line-1{
  color: var(--color-dark);
  text-shadow: none;
}

.site-header.is-transparent.is-scrolled .logo-text .brand-line-2{
  color: #475569;
  text-shadow: none;
}

.site-header.is-transparent.is-scrolled .nav-list a:not(.btn){
  color: #1f2937;
  text-shadow: none;
}

.site-header.is-transparent.is-scrolled .nav-list a.is-active{
  color: var(--color-primary);
}

.site-header.is-transparent.is-scrolled .nav-toggle span{
  background: #1f2937;
}

.site-header.is-transparent.is-scrolled .nav-cta .btn{
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.site-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: transparent;
  transition: background 0.28s ease;
}

.site-header.is-scrolled::after{
  background: rgba(15,23,42,0.06);
}
/* ============================================
   DESKTOP NAV
============================================ */

.primary-nav{
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list{
  display: flex;
  align-items: center;
  gap: 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a:not(.btn){
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1f2937;
  transition: color 0.24s ease;
}

.nav-list a:not(.btn):hover{
  color: var(--color-primary);
}

.nav-list a:not(.btn)::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: width 0.26s ease;
}

.nav-list a:not(.btn):hover::after,
.nav-list a.is-active::after{
  width: 100%;
}

.nav-list a.is-active{
  color: var(--color-primary);
}

/* Transparent state links */
.site-header.is-transparent .nav-list a:not(.btn){
  color: rgba(255,255,255,0.94);
}

.site-header.is-transparent .nav-list a:not(.btn):hover{
  color: #ffffff;
}

.site-header.is-transparent .nav-list a.is-active{
  color: #ffffff;
}

.site-header.is-transparent.is-scrolled .nav-list a:not(.btn){
  color: #1f2937;
}

.site-header.is-transparent.is-scrolled .nav-list a.is-active{
  color: var(--color-primary);
}

/* CTA */
.nav-cta{
  margin-left: 0.65rem;
  flex: 0 0 auto;
}

.nav-cta .btn{
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.68rem 1.15rem;
  min-height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(29,78,216,0.14);
}

.site-header.is-transparent .nav-cta .btn{
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}

.site-header.is-transparent .nav-cta .btn:hover{
  background: rgba(255,255,255,0.24);
  color: #ffffff;
}

.site-header.is-transparent.is-scrolled .nav-cta .btn{
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.nav-list a.btn::after,
.nav-list a.btn::before{
  display: none !important;
}

/* ============================================
   MOBILE TOGGLE
============================================ */

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  z-index: 1215;
}

.nav-toggle span{
  width: 22px;
  height: 2px;
  background: #1f2937;
  border-radius: 999px;
  display: block;
  transition: transform 0.24s ease, opacity 0.24s ease, background 0.24s ease;
}

.site-header.is-transparent .nav-toggle span{
  background: #ffffff;
}

.site-header.is-transparent.is-scrolled .nav-toggle span{
  background: #1f2937;
}

/* ============================================
   MOBILE DRAWER
============================================ */

.mobile-nav-header{
  display: none;
}

.nav-close{
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.82;
  color: #0f172a;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-close:hover{
  transform: rotate(90deg);
  opacity: 1;
}

.menu-overlay{
   position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 92vw;
  flex-direction: column;
  align-items: stretch;
  padding: 1.5rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: -12px 0 32px rgba(15,23,42,0.16);
  transform: translateX(100%);
  opacity: 1;
  z-index: 1210;
  transition: transform 0.3s ease;
  overflow-y: auto;
  margin-left: 0;
  pointer-events: none;
}


.primary-nav.is-open{
  transform: translateX(0);
  pointer-events: auto;
}


.primary-nav.is-open{
  transform: translateX(0);
  pointer-events: auto;
}

/* Optional active state if your JS toggles this class */
.menu-overlay.is-active{
  opacity: 1;
  visibility: visible;
    pointer-events: auto;  pointer-events: auto;
}

/* ============================================
   BREAKPOINTS
============================================ */

@media (max-width: 1199px){
  .header-inner{
    height: 76px;
  }

  .nav-list{
    gap: 1.05rem;
  }

  .logo-text{
    font-size: 0.9rem;
    max-width: 220px;
  }

  .logo-text .brand-line-2{
    font-size: 0.72rem;
  }
}

@media (max-width: 992px){
  .nav-toggle{
    display: flex;
  }

  .primary-nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 92vw;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -12px 0 32px rgba(15,23,42,0.16);
    transform: translateX(100%);
    opacity: 1;
    z-index: 1210;
    transition: transform 0.3s ease;
    overflow-y: auto;
    margin-left: 0;
  }

  .primary-nav.is-open{
    transform: translateX(0);
    z-index: 1315;
  }

  .mobile-nav-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-logo{
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
  }

  .mobile-logo img{
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .mobile-logo .logo-text{
    display: flex !important;
    font-size: 0.9rem;
    color: var(--color-primary);
    max-width: none;
  }

  .mobile-logo .logo-text .brand-line-1{
    color: var(--color-dark);
  }

  .mobile-logo .logo-text .brand-line-2{
    color: #475569;
  }

  .nav-list{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li{
    width: 100%;
  }

  .nav-list > li > a:not(.btn){
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.75rem;
    font-size: 0.97rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-radius: var(--radius-md);
    color: var(--color-dark) !important;
    transition: background 0.24s ease, color 0.24s ease, padding-left 0.24s ease;
  }

  .nav-list > li > a:not(.btn):hover,
  .nav-list > li > a.is-active:not(.btn){
    background: var(--color-primary-light);
    color: var(--color-primary) !important;
    padding-left: 0.95rem;
  }

  .nav-list a:not(.btn)::after{
    display: none;
  }

  .nav-cta{
    margin-top: 1.35rem;
    margin-left: 0;
  }

  .nav-cta .btn{
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    min-height: 48px;
    box-shadow: none;
  }
}

@media (max-width: 600px){
  .primary-nav{
    width: 100%;
    max-width: 100%;
  }

  .site-logo img{
    width: 44px;
    height: 44px;
  }

  .logo-text{
    max-width: 180px;
  }

  .logo-text .brand-line-1{
    font-size: 0.9rem;
  }

  .logo-text .brand-line-2{
    font-size: 0.7rem;
  }
}

@media (max-width: 480px){
  .header-inner{
    height: 72px;
    gap: 0.8rem;
  }

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

  .logo-text{
    max-width: 155px;
  }

  .logo-text .brand-line-1{
    font-size: 0.84rem;
  }

  .logo-text .brand-line-2{
    font-size: 0.66rem;
  }
}

/* FOOTER */
.site-footer { background: linear-gradient(180deg, #0f172a 0%, #020617 100%); color: #cbd5e1; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr; gap: 2.5rem; align-items: flex-start; }
.footer-col h4 { color: #fff; margin-bottom: 1.2rem; font-size: 1.05rem; }
.footer-col p, .footer-col li, .footer-col a { font-size: 0.9rem; line-height: 1.75; color: #cbd5e1; }
.footer-col a { transition: color var(--transition); }
.footer-col a:hover { color: var(--color-accent); }
.footer-logo a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-bottom: 1rem; }
.footer-logo img { width: 96px; }
.footer-logo .logo-text { font-size: 1rem; font-weight: 700; color: var(--color-accent) !important; line-height: 1.3; display: block !important; }
.footer-desc { max-width: 280px; font-size: 0.88rem; }
.footer-links ul li { margin-bottom: 0.4rem; }
.footer-contact p { margin-bottom: 0.6rem; }
.credentials-list { list-style: none; }
.credentials-list li { margin-bottom: 0.4rem; font-size: 0.88rem; }
.credentials-list strong { color: #fff; }
.footer-bottom { margin-top: 3rem; padding: 1.2rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; }
.footer-bottom p { color: #6b7a8d; margin: 0; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--color-accent); }

.footer-social svg{
  width:18px;
  height:18px;
}

@media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(2,1fr); gap: 2rem; } .footer-desc { max-width: 100%; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } .site-footer { padding-top: 2.5rem; } }
