﻿/* assets/css/nav.css (NAV ONLY) */
:root{
  --nav-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --nav-font-tight: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;

  --nav-bg:#f7f2e9;
  --nav-glass:rgba(247,242,233,.92);

  --nav-ink:#0b1f33;
  --nav-muted:rgba(11,31,51,.68);

  --nav-blue:#1f6feb;
  --nav-cyan:#2bc4e3;

  --nav-line:rgba(11,31,51,.16);
  --nav-line2:rgba(11,31,51,.10);

  --nav-panel:rgba(255,255,255,.56);
  --nav-panel2:rgba(255,255,255,.82);

  --nav-shadow:0 16px 44px rgba(0,0,0,.14);
  --nav-shadow2:0 10px 26px rgba(0,0,0,.12);

  --nav-radius:18px;
  --nav-max:1280px;

  --nav-cta-bg:linear-gradient(135deg, rgba(11,31,51,1), rgba(31,111,235,1));
  --nav-cta-bg-hover:linear-gradient(135deg, rgba(9,25,41,1), rgba(23,92,203,1));
  --nav-cta-ink:#ffffff;

  --nav-blur:14px;
  --nav-z-header:900;
  --nav-z-backdrop:980;
  --nav-z-drawer:1000;

  --nav-header-offset:72px;
}

.site-header, .site-header *{box-sizing:border-box}
.site-header{
  font-family:var(--nav-font);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:var(--nav-z-header);
  background:var(--nav-glass);
  backdrop-filter:saturate(1.25) blur(var(--nav-blur));
  -webkit-backdrop-filter:saturate(1.25) blur(var(--nav-blur));
  border-bottom:1px solid var(--nav-line);
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 10px 26px rgba(0,0,0,.06);
}

.nav-shell{
  max-width:var(--nav-max);
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width:0;
  color:var(--nav-ink);
}

.brand-logo{
  width:46px;
  height:46px;
  border-radius:12px;
  object-fit:contain;
  background:var(--nav-bg);
  border:0;
  box-shadow:0 6px 14px rgba(0,0,0,.10);
}

.brand-name{
  font-family:var(--nav-font-tight);
  display:flex;
  flex-direction:column;
  gap:2px;
  letter-spacing:.1px;
  white-space:normal;
  overflow:visible;
  max-width:142px;
  min-height:40px;
  line-height:1.08;
}

.brand-line{
  display:block;
  white-space:nowrap;
}

.brand-line-1{
  font-weight:900;
  font-size:17px;
}

.brand-line-2{
  font-weight:820;
  font-size:12.5px;
  line-height:1.08;
  opacity:.9;
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:4px;
  border-radius:999px;
  background:var(--nav-panel);
  border:1px solid var(--nav-line2);
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset;
  flex:1;
  min-width:0;
}

.nav-links a{
  position:relative;
  text-decoration:none;
  font-weight:850;
  font-size:13px;
  letter-spacing:.15px;
  color:rgba(11,31,51,.92);
  padding:8px 10px;
  border-radius:999px;
  white-space:nowrap;
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    color .18s ease;
  border:1px solid transparent;
}

.nav-links a:hover{
  background:var(--nav-panel2);
  border-color:rgba(11,31,51,.08);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  transform:translateY(-1px);
}

.nav-links a.is-active,
.nav-links a[aria-current="page"]{
  background:rgba(31,111,235,.12);
  border-color:rgba(31,111,235,.22);
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset;
  color:rgba(11,31,51,.98);
}

.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:5px;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg, rgba(31,111,235,.85), rgba(43,196,227,.65));
}

.call-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  background:var(--nav-cta-bg);
  color:var(--nav-cta-ink);
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  box-shadow:var(--nav-shadow2);
  font-weight:950;
  letter-spacing:.2px;
  white-space:nowrap;
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.call-btn:hover{
  background:var(--nav-cta-bg-hover);
  transform:translateY(-1px);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.call-num{opacity:.94;font-weight:950}

.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border-radius:999px;
  border:1px solid var(--nav-line2);
  background:rgba(255,255,255,.72);
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset;
}

.lang-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:30px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:900;
  font-size:12.5px;
  letter-spacing:.06em;
  color:rgba(11,31,51,.82);
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.lang-link:hover{
  background:rgba(255,255,255,.92);
  border-color:rgba(11,31,51,.12);
  transform:translateY(-1px);
}

.lang-link.is-active{
  background:rgba(31,111,235,.14);
  border-color:rgba(31,111,235,.24);
  color:rgba(11,31,51,.98);
}

.call-btn--full{
  width:100%;
  justify-content:center;
}

.site-header.is-mobile{display:none}

.nav-toggle{
  display:none;
  width:46px;
  height:46px;
  border:1px solid rgba(11,31,51,.18);
  background:rgba(255,255,255,.80);
  border-radius:16px;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
  padding:12px 12px;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
  position:relative;
  isolation:isolate;
}

.nav-toggle:hover{
  background:rgba(255,255,255,.92);
  transform:translateY(-1px);
}

.nav-toggle span{
  display:block;
  height:2px;
  width:100%;
  background:var(--nav-ink);
  border-radius:2px;
  margin:6px 0;
  position:relative;
  z-index:2;
}

.nav-toggle.is-open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

@media (max-width:1180px){
  .brand-name{max-width:132px}
  .brand-line-1{font-size:16px}
  .brand-line-2{font-size:12px}
  .brand-logo{width:44px;height:44px}
  .nav-links{gap:3px}
  .nav-links a{padding:8px 9px;font-size:12.5px}
}
@media (max-width:1060px){
  .brand-name{max-width:122px}
  .brand-line-1{font-size:15px}
  .brand-line-2{font-size:11px}
  .brand-logo{width:42px;height:42px}
  .nav-links{gap:2px;padding:4px}
  .nav-links a{padding:7px 8px;font-size:12px}
  .lang-link{min-width:32px;min-height:28px;padding:5px 8px}
  .call-btn{padding:9px 12px}
}

@media (max-width:980px){
  #siteHeader .nav-shell{
    display:grid;
    grid-template-columns:1fr auto auto;
    grid-template-rows:auto auto;
    gap:10px 12px;
    align-items:center;
  }
  #siteHeader .brand{grid-column:1/2;grid-row:1/2}
  #siteHeader .lang-switch{grid-column:2/3;grid-row:1/2;justify-self:end}
  #siteHeader .call-btn{grid-column:3/4;grid-row:1/2;justify-self:end}
  #siteHeader .nav-links{grid-column:1/4;grid-row:2/3}
}

@media (max-width:900px){
  #siteHeader{display:none}
  .site-header.is-mobile{display:block}

  .nav-shell{padding:10px 16px}
  .brand-name{max-width:108px}
  .brand-line-1{font-size:14px}
  .brand-line-2{font-size:10.5px}
  .brand-logo{width:40px;height:40px}
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}

  .mobile-cta-row{
    max-width:var(--nav-max);
    margin:0 auto;
    padding:10px 16px 14px;
    border-top:1px solid rgba(11,31,51,.10);
    background:rgba(247,242,233,.88);
  }
}

.drawer-backdrop{
  position:fixed;
  inset:0;
  z-index:var(--nav-z-backdrop);
  background:rgba(8,10,12,.52);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  transition:opacity .22s ease;
}

.drawer-backdrop.is-open{opacity:1}

.drawer{
  position:fixed;
  top:0; right:0;
  height:100vh;
  width:min(420px, 100vw);
  z-index:var(--nav-z-drawer);
  background:rgba(247,242,233,.96);
  backdrop-filter:saturate(1.25) blur(12px);
  -webkit-backdrop-filter:saturate(1.25) blur(12px);
  border-left:1px solid rgba(11,31,51,.12);
  box-shadow:var(--nav-shadow);
  transform:translateX(110%);
  transition:transform .28s cubic-bezier(.2,.8,.2,1);
  display:flex;
  flex-direction:column;
  will-change:transform;
}

.drawer.is-open{transform:translateX(0)}

.drawer-top{
  height:64px;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(11,31,51,.12);
}

.drawer-title{
  font-weight:950;
  letter-spacing:.2px;
  color:var(--nav-ink);
}

.drawer-close{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid rgba(11,31,51,.18);
  background:rgba(255,255,255,.84);
  cursor:pointer;
  transition:transform .18s ease, background .18s ease;
}

.drawer-close:hover{background:rgba(255,255,255,.94);transform:translateY(-1px)}

.drawer-nav{
  padding:12px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  flex:1;
}

.drawer-nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-decoration:none;
  font-weight:950;
  padding:14px 14px;
  border-radius:16px;
  color:rgba(11,31,51,.94);
  border:1px solid rgba(11,31,51,.08);
  background:rgba(255,255,255,.46);
  transition:background .18s ease, transform .18s ease, border-color .18s ease;
  margin-bottom:10px;
}

.drawer-nav a:hover{
  background:rgba(255,255,255,.82);
  border-color:rgba(31,111,235,.22);
  transform:translateX(2px);
}

.drawer-nav a.is-active,
.drawer-nav a[aria-current="page"]{
  background:rgba(31,111,235,.12);
  border-color:rgba(31,111,235,.22);
}

.drawer-bottom{
  padding:14px 16px 18px;
  border-top:1px solid rgba(11,31,51,.12);
}

.drawer-lang{
  margin-bottom:12px;
}

.drawer-lang .lang-switch{
  width:100%;
  justify-content:center;
}

.drawer-lang .lang-link{
  min-width:56px;
}

@media (max-width:360px){
  .brand-name{max-width:98px}
  .brand-line-1{font-size:13px}
  .brand-line-2{font-size:10px}
  .brand-logo{width:40px;height:40px;border-radius:14px}
}
