/* ==========================================================================
   Aadivora Header — Elementor widget stylesheet
   All colors/sizes below are DEFAULT fallbacks. Elementor's Style tab
   controls write real values into inline custom-property overrides scoped
   to each widget instance (see class-header-widget.php "selectors"), so
   editing colors/sizes in Elementor overrides these defaults with no
   need to touch this file.
   ========================================================================== */

:root{
  --aad-bg: rgba(250,250,249,0.86);
  --aad-bg-solid:#FAFAF9;
  --aad-ink:#0B0F19;
  --aad-muted:#5B6472;
  --aad-hairline: rgba(11,15,25,0.08);
  --aad-hairline-strong: rgba(11,15,25,0.14);
  --aad-accent:#2A3FE0;
  --aad-accent-ink:#1E2CB0;
  --aad-radius:10px;
  --aad-ease: cubic-bezier(.4,0,.2,1);
  --aad-font-display:'Space Grotesk','Inter',system-ui,sans-serif;
  --aad-font-body:'Inter',system-ui,-apple-system,sans-serif;
}

.aad-header, .aad-header *, .aad-header *::before, .aad-header *::after,
.aad-panel, .aad-panel *, .aad-panel *::before, .aad-panel *::after{
  box-sizing:border-box;
}

/* ---------------- Skip link ---------------- */
.aad-skip-link{
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1100;
  background: var(--aad-ink);
  color: #fff;
  font-family: var(--aad-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  transition: top .2s var(--aad-ease);
}
.aad-skip-link:focus{
  top: 12px;
  outline: 2px solid var(--aad-accent);
  outline-offset: 3px;
}

/* ---------------- Header shell ---------------- */
.aad-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--aad-header-h-mobile, 64px);
  background: var(--aad-bg);
  backdrop-filter: saturate(180%) blur(var(--aad-header-blur, 14px));
  -webkit-backdrop-filter: saturate(180%) blur(var(--aad-header-blur, 14px));
  border-bottom: 1px solid var(--aad-hairline);
  font-family: var(--aad-font-body);
  transition: height .28s var(--aad-ease), box-shadow .28s var(--aad-ease), border-color .28s var(--aad-ease), background-color .28s var(--aad-ease);
  will-change: height;
}
@media (min-width: 1024px){
  .aad-header{ height: var(--aad-header-h, 80px); }
}
.aad-header.is-scrolled{
  height: var(--aad-header-h-mobile-scrolled, 56px);
  box-shadow: 0 8px 28px -10px rgba(11,15,25,0.14);
  border-color: var(--aad-hairline-strong);
}
@media (min-width: 1024px){
  .aad-header.is-scrolled{ height: var(--aad-header-h-scrolled, 64px); }
}
.aad-header--static{ position: static; }
.aad-header--no-border{ border-bottom-color: transparent; }
.aad-header--no-shadow.is-scrolled{ box-shadow: none; }
.aad-header--transparent{ background: transparent; border-bottom-color: transparent; }
.aad-header--transparent.is-scrolled{ background: var(--aad-bg); border-bottom-color: var(--aad-hairline-strong); }

.aad-container{
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---------------- Logo ---------------- */
.aad-logo{
  display: flex;
  align-items: center;
  gap: var(--aad-logo-gap, 10px);
  text-decoration: none;
  color: var(--aad-ink);
  flex-shrink: 0;
  border-radius: 6px;
  padding: 4px 2px;
  transition: opacity .18s var(--aad-ease);
}
.aad-logo:hover{ opacity: 0.82; }
.aad-logo:focus-visible{
  outline: 2px solid var(--aad-accent);
  outline-offset: 4px;
}
.aad-logo-mark{
  width: var(--aad-logo-w, 28px);
  height: var(--aad-logo-w, 28px);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform .3s var(--aad-ease);
}
.aad-logo:hover .aad-logo-mark{ transform: scale(var(--aad-logo-hover-scale, 1.03)) translateY(-1px); }
.aad-logo-word{
  font-family: var(--aad-font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------------- Desktop nav ---------------- */
.aad-nav{ display: none; }
@media (min-width: 1024px){
  .aad-nav{
    display: flex;
    align-items: center;
    gap: var(--aad-nav-gap, clamp(20px, 2.4vw, 36px));
    flex: 1;
    justify-content: center;
  }
}
.aad-nav a{
  position: relative;
  text-decoration: none;
  color: var(--aad-muted);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 2px;
  white-space: nowrap;
  transition: color .28s cubic-bezier(.4,0,.2,1);
}
.aad-nav a::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--aad-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .32s cubic-bezier(.4,0,.2,1);
}
.aad-nav a:hover, .aad-nav a:focus-visible{ color: var(--aad-ink); }
.aad-nav a:hover::after, .aad-nav a:focus-visible::after{ width: 100%; }
.aad-nav a[aria-current="page"]{ color: var(--aad-ink); font-weight: 600; }
.aad-nav a[aria-current="page"]::after{ width: 100%; }
.aad-nav a:focus-visible{
  outline: 2px solid var(--aad-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------------- Actions / CTA ---------------- */
.aad-actions{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.aad-cta{
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--aad-font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--aad-radius);
  background: var(--aad-ink);
  overflow: hidden;
  white-space: nowrap;
  transition: background .3s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 640px){ .aad-cta{ display: inline-flex; } }
.aad-cta::before{
  content:"";
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: rgba(255,255,255,0.16);
  transform: skewX(-20deg);
  transition: left .5s var(--aad-ease);
}
.aad-cta:hover{
  background: var(--aad-accent-ink);
  transform: translateY(-1.5px);
  box-shadow: 0 12px 28px -10px rgba(42,63,224,0.38), 0 2px 8px -2px rgba(11,15,25,0.18);
}
.aad-cta:hover::before{ left: 130%; }
.aad-cta:active{
  background: var(--aad-accent-ink);
  transform: translateY(0);
  box-shadow: 0 4px 12px -6px rgba(42,63,224,0.3);
}
.aad-cta:focus-visible{
  outline: 2px solid var(--aad-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(42,63,224,0.15);
}
.aad-cta-icon{ display: inline-flex; align-items: center; }
.aad-cta-icon svg{ width: 16px; height: 16px; }

/* ---------------- Hamburger ---------------- */
.aad-burger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 1024px){ .aad-burger{ display: none; } }
.aad-burger:focus-visible{ outline: 2px solid var(--aad-accent); outline-offset: 2px; }
.aad-burger-box{ width: 20px; height: 14px; position: relative; }
.aad-burger-box span{
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--aad-ink);
  transition: transform .3s var(--aad-ease), opacity .2s var(--aad-ease), top .3s var(--aad-ease);
}
.aad-burger-box span:nth-child(1){ top: 0; }
.aad-burger-box span:nth-child(2){ top: 6px; }
.aad-burger-box span:nth-child(3){ top: 12px; }
.aad-burger[aria-expanded="true"] .aad-burger-box span:nth-child(1){ top: 6px; transform: rotate(45deg); }
.aad-burger[aria-expanded="true"] .aad-burger-box span:nth-child(2){ opacity: 0; }
.aad-burger[aria-expanded="true"] .aad-burger-box span:nth-child(3){ top: 6px; transform: rotate(-45deg); }

/* ---------------- Mobile drawer ---------------- */
.aad-backdrop{
  position: fixed; inset: 0;
  background: rgba(11,15,25,0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--aad-ease);
  z-index: 998;
}
.aad-backdrop.is-open{ opacity: 1; pointer-events: auto; }

.aad-panel{
  position: fixed; top: 0; right: 0;
  height: 100%; height: 100dvh;
  width: var(--aad-panel-w, min(84vw, 360px));
  background: var(--aad-bg-solid);
  border-left: 1px solid var(--aad-hairline);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 24px;
  transform: translateX(100%);
  transition: transform .32s var(--aad-ease);
  box-shadow: -12px 0 32px -12px rgba(11,15,25,0.2);
}
.aad-panel.is-open{ transform: translateX(0); }

.aad-panel-head{ display: flex; align-items: center; justify-content: flex-end; height: 64px; flex-shrink: 0; }
.aad-panel-close{
  width: 40px; height: 40px; border: none;
  background: rgba(11,15,25,0.05);
  border-radius: 8px; cursor: pointer; position: relative; flex-shrink: 0;
  transition: background .18s var(--aad-ease);
}
.aad-panel-close:hover{ background: rgba(11,15,25,0.09); }
.aad-panel-close:focus-visible{ outline: 2px solid var(--aad-accent); outline-offset: 2px; }
.aad-panel-close::before, .aad-panel-close::after{
  content:""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; background: var(--aad-ink); border-radius: 2px;
}
.aad-panel-close::before{ transform: translate(-50%,-50%) rotate(45deg); }
.aad-panel-close::after{ transform: translate(-50%,-50%) rotate(-45deg); }

.aad-panel-nav{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding: 0;
  overflow-y: auto;
}
.aad-panel-nav a{
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--aad-ink);
  font-size: 17px;
  font-weight: 500;
  padding: 15px 8px;
  border-radius: 8px;
  min-height: 44px;
  transition: background .2s var(--aad-ease);
}
.aad-panel-nav a:hover, .aad-panel-nav a:focus-visible{ background: rgba(42,63,224,0.06); }
.aad-panel-nav a:focus-visible{ outline: 2px solid var(--aad-accent); outline-offset: -2px; }
.aad-panel-nav a[aria-current="page"]{ color: var(--aad-accent); font-weight: 600; }

.aad-panel-footer{ margin-top: auto; padding-top: 16px; border-top: 1px solid var(--aad-hairline); }
.aad-panel-cta{
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px;
  border-radius: var(--aad-radius);
  background: var(--aad-ink);
  transition: background .18s var(--aad-ease);
}
.aad-panel-cta:hover{ background: var(--aad-accent-ink); }
.aad-panel-cta:focus-visible{ outline: 2px solid var(--aad-accent); outline-offset: 3px; }

body.aad-lock{ overflow: hidden; }

@media (prefers-reduced-motion: reduce){
  .aad-header, .aad-nav a, .aad-nav a::after, .aad-cta, .aad-cta::before,
  .aad-burger-box span, .aad-panel, .aad-backdrop, .aad-skip-link, .aad-logo-mark{
    transition: none !important;
    animation: none !important;
  }
}
