/* =========================================================
   AURELIA IT 2026 — CLEAN THEME.CSS (FRESH)
   ========================================================= */

/* =========================
   TOKENS
   ========================= */
:root{
  --bg:#070A12;
  --surface:#0B1020;
  --surface-2:#0D1329;

  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --line:rgba(234,240,255,.10);

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 22px;
  --radius-sm: 16px;

  --brand-1:#6D5BFF;
  --brand-2:#28D8FF;
  --brand-3:#78FFB3;

  --container: 1200px;

  /* Header + Logo */
  --header-pad-y: 10px;
  --brand-logo-width: 140px;         /* fallback (Customizer will override) */
  --brand-logo-max-height: 70px;     /* increase if you want bigger logo */
}

/* =========================
   BASE
   ========================= */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(109,91,255,.35), transparent 55%),
    radial-gradient(900px 600px at 110% 20%, rgba(40,216,255,.22), transparent 55%),
    radial-gradient(1100px 800px at 50% 120%, rgba(120,255,179,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}
.container{max-width:var(--container); margin:0 auto; padding:0 18px}

.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
.skip-link{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip-link:focus{left:18px; top:18px; width:auto; height:auto; padding:10px 14px; background:#000; border:1px solid var(--line); border-radius:12px; z-index:9999}

.section{padding:64px 0}
.section--alt{padding:64px 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.03), transparent)}
.spacer{height:28px}

.h1,.h2,.h3,.h4,.h5,.h6{margin:0 0 10px 0; line-height:1.15}
.h2{font-size:clamp(26px, 4vw, 40px)}
.h4{font-size:22px}
.h5{font-size:18px}
.h6{font-size:14px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}

.muted{color:var(--muted)}
.link{color:rgba(40,216,255,.95)}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.card--soft{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}
.card__link{display:block}
.card__body{padding:18px}
.divider{height:1px; background:var(--line); margin:18px 0}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(40,216,255,.35); box-shadow: 0 18px 60px rgba(0,0,0,.45)}
.btn--primary{
  border:none;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color:#071024;
  font-weight:700;
}
.btn--ghost{background:transparent}

/* =========================
   HEADER (Logo left | Menu | CTA right)
   ========================= */
.site-header{
  position:sticky; top:0; z-index:1000;
  backdrop-filter: blur(18px);
  background: rgba(7,10,18,.55);
  border-bottom:1px solid var(--line);
}

.site-header .header__inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  padding: var(--header-pad-y) 0;
}
/* Brand area */
.site-header .brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
}
/* IMPORTANT: LOGO sizing that actually responds */
.site-header .custom-logo-link{
  display:flex;
  align-items:center;
}
/* Nav grows */
.site-header .nav{
  flex:1 1 auto;
  display:flex;
  align-items:center;
}

/* Desktop panel: menu left, CTA right */
.site-header .nav__panel{
  width:100%;
  display:flex;
  align-items:center;
  gap:18px;
}

.site-header .nav__list{
  display:flex;
  gap:14px;
  list-style:none;
  margin:0;
  padding:0;
}

.site-header .nav__list a{
  display:inline-flex;
  padding:10px 10px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
}
.site-header .nav__list a:hover{
  color:var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* CTA pushed far right */
.site-header .nav__cta{
  margin-left:auto;
  display:flex;
}

/* Toggle */
.nav__toggle{
  display:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:12px;
  width:44px; height:44px;
  align-items:center; justify-content:center;
}
.nav__toggle-icon{
  width:18px; height:2px; background:var(--text); position:relative; display:block; border-radius:99px;
}
.nav__toggle-icon::before, .nav__toggle-icon::after{
  content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text); border-radius:99px;
}
.nav__toggle-icon::before{top:-6px}
.nav__toggle-icon::after{top:6px}

/* =========================
   HERO (VIDEO BACKGROUND)
   ========================= */
.hero.hero--single{
  position:relative;
  overflow:hidden;
  padding: 0;         /* ✅ no gap */
  margin: 0;
}

/* video behind */
.hero.hero--single .hero__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

/* overlay above video */
.hero.hero--single .hero__fg{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* content above all */
.hero.hero--single .container{
  position:relative;
  z-index:2;
  padding-top: 22px;
  padding-bottom: 22px;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:24px;
  align-items:stretch;
}

.hero__content{
  padding: 34px 26px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.hero__title{font-size:clamp(34px, 5.2vw, 62px); margin:12px 0 10px}
.hero__text{font-size:18px; color:var(--muted); margin:0 0 18px}
.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin:0 0 18px}

.hero__meta{display:flex; gap:10px; flex-wrap:wrap}
.meta-card{
  min-width: 112px;
  padding: 12px 14px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.meta-card__kpi{font-weight:900; font-size:18px}
.meta-card__label{color:var(--muted); font-size:13px}

.hero__visual{display:flex; align-items:stretch}
.glass-card{
  width:100%;
  padding: 24px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,16,32,.85), rgba(11,16,32,.55));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.checklist{list-style:none; padding:0; margin:14px 0 0}
.checklist li{
  padding:10px 0 10px 32px;
  position:relative;
  border-bottom:1px solid rgba(234,240,255,.08)
}
.checklist li:last-child{border-bottom:none}
.checklist li::before{
  content:"✓";
  position:absolute; left:0; top:8px;
  width:22px; height:22px;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(120,255,179,.12);
  border:1px solid rgba(120,255,179,.22);
  color: rgba(234,240,255,.95);
  font-weight:900;
}

/* =========================
   GRIDS / EXTRAS
   ========================= */
.section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:0 0 18px}

.grid{display:grid; gap:16px}
.grid--cards{grid-template-columns: repeat(3, minmax(0, 1fr))}
.grid--two{grid-template-columns: 1.2fr .8fr}

.services-grid--icons{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.service-card{ padding:18px; }
.service-card__icon{
  width:46px; height:46px;
  border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(234,240,255,.10);
  background: rgba(255,255,255,.04);
  margin-bottom:12px;
}
.ico{ width:22px; height:22px; color: rgba(40,216,255,.95); }

.cta{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:22px;
  border-radius: calc(var(--radius) + 6px);
  border:1px solid rgba(40,216,255,.22);
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(109,91,255,.26), transparent 60%),
    radial-gradient(700px 260px at 90% 30%, rgba(40,216,255,.22), transparent 60%),
    rgba(255,255,255,.03);
}
.cta__actions{display:flex; gap:12px; flex-wrap:wrap}

.partners{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:12px;
}
.partner-badge{
  padding:14px;
  text-align:center;
  border-radius: 18px;
  font-weight:700;
  color: rgba(234,240,255,.92);
}

/* =========================
   MODAL
   ========================= */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 9999;
}
.modal.is-open{ display:block; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.62);
}
.modal__panel{
  position: relative;
  width: min(92vw, 680px);
  margin: 10vh auto;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(234,240,255,.12);
  background: linear-gradient(180deg, rgba(11,16,32,.92), rgba(11,16,32,.72));
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  backdrop-filter: blur(18px);
}
.modal__close{
  position:absolute;
  top:10px; right:12px;
  width:40px; height:40px;
  border-radius: 14px;
  border:1px solid rgba(234,240,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(234,240,255,.92);
  font-size: 22px;
  cursor:pointer;
}
body.is-modal-open{ overflow:hidden; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .grid--cards{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid--two{grid-template-columns:1fr}
  .partners{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .services-grid--icons{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .section{padding:54px 0}

  .nav__toggle{display:inline-flex}

  /* mobile panel (keep your JS toggle) */
  .nav__panel{
    position:absolute; right:18px; top:72px;
    width:min(92vw, 420px);
    flex-direction:column; align-items:stretch;
    padding:14px;
    border-radius:22px;
    border:1px solid var(--line);
    background: rgba(7,10,18,.85);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    display:none;
  }
  .nav__panel.is-open{display:flex}
  .nav__list{flex-direction:column}
  .nav__cta .btn{width:100%}

  .grid--cards{grid-template-columns:1fr}
}
/* =========================
   LOGO OVERRIDE (Customizer Width Works)
   Put this at the VERY END of theme.css
   ========================= *
/* =========================
   LOGO OVERRIDE (Customizer Width Works)
   Put this at the VERY END of theme.css
   ========================= */

/* Make sure logo container does NOT shrink */
/* Make sure logo container does NOT shrink */
/* ===== LOGO (Customizer) ===== */
.site-header .brand,
.site-header .custom-logo-link{
  flex: 0 0 auto;
}

.site-header img.custom-logo{
  width: var(--brand-logo-width, 140px) !important;
  height: auto !important;
  max-width: unset !important;
  max-height: 120px !important; /* raise if you want */
  object-fit: contain;
  display:block;
}


.site-header .brand img{
  max-width: unset !important;
  max-height: 90px !important;
  height:auto !important;
  width:auto !important;
  object-fit:contain;
}
/**
 * Output CSS variable for logo width (Frontend + Customizer preview)
 */
function aurelia_it_2026_logo_width_css_var(){
    $w = absint(get_theme_mod('aurelia_logo_width', 140));
    if ($w < 60)  $w = 60;
    if ($w > 320) $w = 320;

    echo '<style id="aurelia-logo-width-css">:root{--brand-logo-width:' . $w . 'px;}</style>';
}
add_action('wp_head', 'aurelia_it_2026_logo_width_css_var');

