/*
Theme Name: NextLogic NEO
Theme URI: https://nextlogic.ai/
Author: NextLogic
Description: Advanced, animated theme for a blue/white tech brand. Homepage + Blog, sticky header, mega footer, motion system (scroll-reveal, parallax), dark-mode aware.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: nextlogic-neo
Tags: blog, landing-page, accessibility-ready, custom-logo, custom-menu, featured-images, responsive-layout, rtl-language-support
*/

/* === Base & Palette === */
:root{
  --bg:#ffffff;
  --ink:#0b1220;
  --muted:#566079;
  --blue:#1f6fff;      /* Primary */
  --blue-600:#1553c5;
  --blue-100:#eaf2ff;
  --cyan:#4fd2ff;
  --ring:rgba(31,111,255,.35);
  --surface:#ffffff;
  --radius:18px;
  --shadow:0 1px 2px rgba(2,6,23,.06), 0 12px 36px rgba(31,111,255,.08);
}
@media (prefers-color-scheme: dark){
  :root{--bg:#0b1220;--ink:#e5ecff;--muted:#a2b0cd;--surface:#0f1730;--blue-100:#0c2252;--shadow:0 1px 2px rgba(0,0,0,.25),0 12px 36px rgba(0,0,0,.45)}
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.6 ui-sans-serif,system-ui,-apple-system,Segoe UI,Inter,Roboto,Helvetica,Arial}
img,svg,video{max-width:100%;height:auto;display:block}
.container{width:100%;max-width:1240px;margin:0 auto;padding:0 1rem}
.section{padding:4rem 0}
.lede{color:var(--muted)}
h1,h2,h3{line-height:1.15;margin:.2rem 0 .6rem}
h1{font-size:clamp(2.2rem,4.2vw,3.4rem)}
h2{font-size:clamp(1.6rem,3vw,2.1rem)}
.badge{display:inline-block;background:var(--blue-100);color:var(--blue-600);padding:.3rem .7rem;border-radius:999px;font-weight:700}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.05rem;border-radius:999px;border:1px solid transparent;text-decoration:none;font-weight:700;transition:transform .08s ease,background .2s,border-color .2s,opacity .2s}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--blue);color:#fff;box-shadow:var(--shadow)}
.btn-outline{border-color:rgba(31,111,255,.35);color:var(--blue);background:transparent}
.btn-ghost{border-color:rgba(2,6,23,.12);border-style:solid;border-width:1px;color:inherit;background:transparent;opacity:.9}
.card{background:var(--surface);border:1px solid rgba(2,6,23,.08);border-radius:var(--radius);box-shadow:var(--shadow)}
.card.pad{padding:1.25rem}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
@media (max-width: 980px){.grid-3,.grid-4{grid-template-columns:1fr}}

/* === Header === */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.72);backdrop-filter:blur(10px);border-bottom:1px solid rgba(2,6,23,.08)}
@media (prefers-color-scheme: dark){.site-header{background:rgba(15,23,52,.6)}}
.site-header .inner{display:flex;align-items:center;justify-content:space-between;padding:.8rem 0}
.brand a{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:#111827;font-weight:900;letter-spacing:.2px}
.primary-nav ul{list-style:none;display:flex;gap:1rem;margin:0;padding:0}
.primary-nav a{text-decoration:;color:inherit;opacity:.9;padding:.35rem .55rem;border-radius:8px}
.primary-nav a:hover,.primary-nav a:focus{opacity:1;outline:2px solid var(--ring);outline-offset:2px}
.header-cta{display:flex;gap:.5rem;align-items:center}
.nav-toggle{display:none}
@media (max-width:880px){
  .primary-nav{display:none}
  .nav-toggle{display:inline-flex}
}
.mobile-sheet{position:fixed;inset:0;background:rgba(0,10,20,.5);backdrop-filter:blur(2px);display:none}
.mobile-sheet .panel{position:absolute;right:0;top:0;bottom:0;width:min(86vw,380px);background:var(--surface);padding:1rem;box-shadow:var(--shadow)}
.mobile-sheet.open{display:block}

/* === Homepage === */
.hero{padding:5rem 0 2.5rem;position:relative;overflow:hidden}
.hero .orb{position:absolute;inset:auto auto -20% -10%;width:700px;height:700px;background:radial-gradient(ellipse at 30% 30%,rgba(31,111,255,.35),transparent 60%), radial-gradient(ellipse at 70% 50%,rgba(79,210,255,.25),transparent 60%)}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center}
.hero .ui{border-radius:22px;border:1px solid rgba(2,6,23,.1);box-shadow:var(--shadow);overflow:hidden}
.kpis{margin-top:1.25rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.kpi{background:var(--surface);border:1px solid rgba(2,6,23,.08);border-radius:16px;padding:.9rem .9rem;text-align:center}
.kpi .v{font-weight:800;font-size:1.3rem}
.marquee{display:flex;gap:3rem;animation:scroll 40s linear infinite;opacity:.8}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

.module-card{position:relative;overflow:hidden;transform-style:preserve-3d;transition:transform .2s ease, box-shadow .2s ease}
.module-card:hover{transform:translateY(-2px)}
.module-card .shine{position:absolute;inset:0;background:radial-gradient(600px 200px at var(--mx) var(--my), rgba(255,255,255,.45), transparent 40%);pointer-events:none;opacity:.35}

/* How it works */
.hiw{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.step{padding:1rem;border-radius:16px;border:1px dashed rgba(2,6,23,.12)}

/* === Blog === */
.blog-hero{padding:2rem 0 1rem;display:grid;grid-template-columns:1fr .8fr;gap:2rem;align-items:center}
.latest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.post-card{display:flex;flex-direction:column;border:1px solid rgba(2,6,23,.08);border-radius:var(--radius);overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}
.post-card .thumb{aspect-ratio:16/9;background:var(--blue-100)}
.post-card .content{padding:1rem}

/* === Footer === */
.site-footer{background:var(--surface);border-top:1px solid rgba(2,6,23,.08)}
.footer-top{padding:2.25rem 0;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:1.25rem}
.footer-links{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.footer-bottom{border-top:1px solid rgba(2,6,23,.08);padding:1rem 0;color:var(--muted);display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}

/* === Motion (scroll reveal) === */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease, transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* About — hero */
.nlx-about-hero{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg,#f3f7ff 0%,#ffffff 50%);
  padding:3rem 0 1.5rem;
}
.nlx-about-hero__inner{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center}
.nlx-about-hero__copy h1{font-size:clamp(2rem,3vw,2.6rem);line-height:1.1;margin:.6rem 0 1rem}
.nlx-about-hero__copy .lede{color:#5b6472;max-width:65ch}
.nlx-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}
.nlx-about-hero__art{
  height:320px;border-radius:22px;background:
  radial-gradient(closest-side, rgba(31,111,255,.18), transparent 70%),
  linear-gradient(135deg,#e6eeff,#ffffff);
  box-shadow:0 12px 32px rgba(2,6,23,.12); 
}
@media (max-width:1080px){ .nlx-about-hero__inner{grid-template-columns:1fr} .nlx-about-hero__art{height:200px} }

/* Cards, grids, timeline, logos, team */
.nlx-card{background:#fff;border:1px solid rgba(2,6,23,.08);border-radius:18px;box-shadow:0 1px 2px rgba(2,6,23,.06),0 12px 32px rgba(2,6,23,.08);padding:1.2rem}
.nlx-card.p{padding:1.2rem}
.nlx-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
@media (max-width:900px){ .nlx-grid-3{grid-template-columns:1fr 1fr} }
@media (max-width:640px){ .nlx-grid-3{grid-template-columns:1fr} }

.nlx-timeline{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.nlx-timeline li{display:grid;grid-template-columns:24px 1fr;gap:.75rem;align-items:start}
.nlx-timeline .dot{width:14px;height:14px;border-radius:50%;background:#1F6FFF;margin-top:.3rem}

.nlx-logo-rail{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.nlx-logo{height:40px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.9}
.nlx-logo--text{display:grid;place-items:center;height:40px;padding:0 14px;border:1px solid rgba(2,6,23,.1);border-radius:12px;background:#fff;color:#5b6472}

.team .avatar{height:90px;width:90px;border-radius:50%;background:
  radial-gradient(circle at 30% 30%, #cfe0ff, #eaf1ff 60%);margin-bottom:.5rem}
  
  /* Contact — hero */
.nlx-contact-hero{background:linear-gradient(180deg,#f3f7ff 0%,#ffffff 60%);padding:2.5rem 0 1rem}
.nlx-contact-hero__inner .lede{color:#5b6472;max-width:65ch}

/* Grid + cards */
.nlx-grid-2{display:grid;grid-template-columns:1.4fr .8fr;gap:1rem}
@media (max-width:980px){ .nlx-grid-2{grid-template-columns:1fr} }

.nlx-card{background:#fff;border:1px solid rgba(2,6,23,.08);border-radius:18px;box-shadow:0 1px 2px rgba(2,6,23,.06),0 12px 32px rgba(2,6,23,.08);padding:1.2rem}
.nlx-list{list-style:none;margin:.5rem 0 0;padding:0;display:grid;gap:.4rem}

/* Form */
.nlx-form label{display:grid;gap:.35rem;font-weight:600}
.nlx-form input,.nlx-form select,.nlx-form textarea{
  width:100%;padding:.75rem .85rem;border-radius:12px;border:1px solid rgba(2,6,23,.15);font:inherit;
}
.nlx-form input:focus,.nlx-form select:focus,.nlx-form textarea:focus{
  outline:2px solid rgba(31,111,255,.35);outline-offset:2px
}
.nlx-form-row{margin-bottom:.8rem}
.nlx-form-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.nlx-hp{position:absolute;left:-9999px;top:-9999px;height:1px;width:1px;opacity:0}

/* Map placeholder */
.nlx-map{margin-top:1rem;border-radius:12px;border:1px dashed rgba(2,6,23,.15);padding:1rem;background:#f7f9ff}
.nlx-map__ph{color:#5b6472}

/* Alert */
.nlx-alert{border-radius:12px;padding:.9rem 1rem;margin-bottom:1rem}
.nlx-alert--success{background:#ecfdf5;color:#065f46;border:1px solid #34d399}
.nlx-alert--error{background:#fef2f2;color:#991b1b;border:1px solid #fca5a5}

/* Sidebar bits */
.nlx-contact-aside h3{margin-top:0}
.nlx-quick-faq details{border:1px solid rgba(2,6,23,.08);border-radius:12px;padding:.6rem .8rem;background:#fff}
.nlx-quick-faq details+details{margin-top:.5rem}

.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem}
@media (max-width:960px){.blog-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.blog-grid{grid-template-columns:1fr}}

.post-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(2,6,23,.08);
  border-radius:18px;background:#fff;box-shadow:0 1px 2px rgba(2,6,23,.06),0 12px 32px rgba(2,6,23,.08)}
.post-card .thumb{display:block;aspect-ratio:16/9;background:#eef2ff}
.post-card .content{padding:1rem}
.meta{color:#5b6472}

.trusted-by {
  text-align: center;
  padding: 2rem 0;
}

.trusted-by h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto;
  display: inline-block;
  border-bottom: 3px solid #1f6fff; /* matches brand blue */
  padding-bottom: 0.25rem;
}

.trusted-by {
  text-align: center;
  padding: 2rem 0;
}

.trusted-by h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto;
  display: inline-block;
  border-bottom: 3px solid #1f6fff; /* matches brand blue */
  padding-bottom: 0.25rem;
}

.marquee {
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
  flex-wrap: wrap;          /* wrap on smaller screens */
  gap: 2rem;                /* spacing between logos */
  padding: 1.5rem 0;
}

.marquee img {
  height: 28px;             /* your requested smaller size */
  width: auto;              /* keep aspect ratio */
  object-fit: contain;
  filter: grayscale(1);     /* optional: make them uniform */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.marquee img:hover {
  opacity: 1;
  filter: grayscale(0);     /* optional: color on hover */
}

/* ---------------------------
   RESPONSIVE PATCH (GLOBAL)
   --------------------------- */

/* Fluid type & spacing */
:root{
  --container: 1240px;
  --gutter: 1rem;
  --radius: 18px;
}
html { scroll-behavior: smooth; }
body { font-size: clamp(15px, 1.1vw, 18px); }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

/* Container */
.container{
  width:100%;
  max-width: var(--container);
  margin:0 auto;
  padding:0 var(--gutter);
}

/* Media defaults */
img, video, svg { max-width:100%; height:auto; }

/* Buttons wrap on small screens */
.btn { white-space: nowrap; }
@media (max-width: 560px){ .btn { width:100%; justify-content:center; } }

/* --------------------------------
   HEADER / NAV (mobile drawer)
   -------------------------------- */
.site-header { position: sticky; top:0; z-index: 50; }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding:.8rem 0; }

/* Desktop nav visible, mobile hidden */
.nav { display:flex; gap:1rem; align-items:center; }
.mobile-toggle { display:none; }

/* Switch at tablet size */
@media (max-width: 920px){
  .nav { display:none; }
  .mobile-toggle { display:inline-flex; }
  .drawer { display:block; }
}

/* Drawer sizing */
.drawer { position:fixed; inset:0; background:rgba(2,6,23,.45); backdrop-filter:blur(2px); z-index:60; }
.drawer-panel { position:absolute; right:0; top:0; height:100%; width:min(90%, 360px); overflow:auto; }

/* Improve tap targets */
.menu a { padding:.5rem .6rem; display:inline-block; }

/* --------------------------------
   HERO / GRIDS / MODULES
   -------------------------------- */

/* Hero two-column → single column */
.hero-grid{ display:grid; grid-template-columns:1.3fr .7fr; gap:2rem; align-items:center; }
@media (max-width: 1080px){ .hero-grid{ grid-template-columns:1fr; } }

/* Generic grids */
.grid-4{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:1rem; }
.grid-3{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:1rem; }
.steps { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1rem; }

@media (max-width: 1080px){
  .grid-4{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px){
  .grid-4, .grid-3, .steps { grid-template-columns:1fr; }
}

/* Cards flex nicely on small screens */
.card { display:block; height:auto; }
.card .thumb { aspect-ratio: 16/9; object-fit: cover; }

/* --------------------------------
   BLOG (index, single, archives)
   -------------------------------- */
.blog-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1.1rem; }
@media (max-width: 1080px){ .blog-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px){ .blog-grid{ grid-template-columns:1fr; } }

.post-card .thumb { aspect-ratio: 16/9; background: rgba(31,111,255,.06); overflow:hidden; }
.post-card img { width:100%; height:100%; object-fit:cover; }

/* Single post images scale nicely */
.single .wp-block-image img,
.single article img { height:auto; max-width:100%; border-radius:12px; }

/* Tables in posts */
.single table { width:100%; overflow:auto; display:block; }
.single table th, .single table td { padding:.6rem .75rem; }

/* --------------------------------
   FOOTER
   -------------------------------- */
.footer-top{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:1rem; }
@media (max-width: 1080px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width: 720px){ .footer-top{ grid-template-columns:1fr; } }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:.75rem; }

/* --------------------------------
   FORMS (Contact page)
   -------------------------------- */
.nlx-grid-2{ display:grid; grid-template-columns:1.4fr .8fr; gap:1rem; }
@media (max-width:980px){ .nlx-grid-2{ grid-template-columns:1fr; } }
.nlx-form input, .nlx-form select, .nlx-form textarea{
  width:100%; max-width:100%;
}

/* --------------------------------
   LOGO RAIL (no scroll; responsive)
   -------------------------------- */
.marquee{
  display:flex; flex-wrap:wrap; gap:2rem;
  justify-content:center; align-items:center; padding:1.5rem 0;
}
.marquee img{
  height:20px; width:auto; object-fit:contain;
  max-width: 140px; /* prevent super-wide logos */
}
@media (max-width: 640px){
  .marquee{ gap:1rem; }
  .marquee img{ height:18px; max-width: 120px; }
}

/* --------------------------------
   UTILITIES
   -------------------------------- */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.lede { color:#5b6472; max-width: 70ch; }

/* Make decorative layers never block taps */
.orb, .hero::before, .hero::after { pointer-events:none; }

/* BLOG GRID: 3 → 2 → 1 columns, with safe media and images */
.blog-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.1rem; }
@media (max-width:1080px){ .blog-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px){  .blog-grid{ grid-template-columns:1fr; } }

.post-card{ border:1px solid rgba(2,6,23,.08); border-radius:18px; overflow:hidden; background:#fff; }
.post-card .thumb{ aspect-ratio:16/9; background:rgba(31,111,255,.06); }
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Pagination wraps nicely on mobile */
.posts-navigation, .navigation{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem; }
/* SINGLE: responsive content, media, code, tables */
.single article{ max-width:760px; margin-inline:auto; }
.single header .badge{ display:inline-block; background:#eef2ff; color:#1F6FFF; padding:.25rem .65rem; border-radius:999px; font-weight:700; font-size:.9rem; }
.single .meta{ color:#5b6472; }

.single .prose{ font-size:clamp(16px,1.1vw,18px); line-height:1.7; }
.single .prose h2{ font-size:clamp(22px,2.4vw,30px); margin-top:1.6rem; }
.single .prose h3{ font-size:clamp(18px,2vw,24px); margin-top:1.2rem; }
.single .prose p, .single .prose li{ max-width:70ch; }
.single .prose img{ max-width:100%; height:auto; border-radius:12px; }
.single .prose blockquote{ margin:1rem 0; padding:.8rem 1rem; border-left:4px solid #1F6FFF; background:#f7f9ff; border-radius:8px; }

.single .prose pre, .single .prose code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.single .prose pre{
  overflow:auto; padding:1rem; background:#0f172a; color:#e2e8f0; border-radius:12px;
}

/* Tables don’t overflow on phones */
.single .prose table{ display:block; width:100%; overflow:auto; border-collapse:collapse; }
.single .prose th, .single .prose td{ padding:.6rem .75rem; border-bottom:1px solid rgba(2,6,23,.08); }

/* Responsive iframes (YouTube, etc.) */
.embed-responsive{ position:relative; width:100%; padding-top:56.25%; }
.embed-responsive iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.mobile-toggle{ display:none; align-items:center; gap:.5rem; }
@media (max-width:920px){ .mobile-toggle{ display:inline-flex; } }

.mobile-toggle svg{ display:block; }
.menu{ display:flex; flex-wrap:wrap; gap:.6rem; }
.menu a{ padding:.45rem .6rem; display:inline-block; }

/* layout */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);backdrop-filter:blur(10px);border-bottom:1px solid rgba(2,6,23,.08)}
.container.inner{display:flex;align-items:center;justify-content:space-between;padding:.8rem 0}
.primary-nav .menu{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.menu a{padding:.45rem .6rem;display:inline-block;text-decoration:none}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1rem;border-radius:999px;border:1px solid transparent;font-weight:700;text-decoration:none}
.btn-primary{background:#1f6fff;color:#fff}
.btn-outline{border:1px solid rgba(31,111,255,.35);color:#1f6fff;background:transparent}

/* mobile toggle visibility */
.mobile-toggle{display:none}
@media (max-width:920px){
  .primary-nav{display:none}
  .mobile-toggle{display:inline-flex}
}

/* drawer */
.nlx-drawer{position:fixed;inset:0;z-index:60;display:block}
.nlx-drawer__backdrop{position:absolute;inset:0;background:rgba(2,6,23,.45);backdrop-filter:blur(2px);border:0}
.nlx-drawer__panel{
  position:absolute;right:0;top:0;height:100%;width:min(90%,360px);
  background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.15);padding:1rem;display:flex;flex-direction:column;gap:1rem
}
.nlx-drawer__head{display:flex;justify-content:space-between;align-items:center}
.nlx-drawer .menu{display:grid;gap:.75rem;list-style:none;margin:0;padding:0}
.nlx-drawer__cta{display:flex;gap:.5rem;flex-wrap:wrap}

/* skip link (accessible) */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;padding:.5rem 1rem;background:#1f6fff;color:#fff;border-radius:6px;z-index:1000}


/* ---------- HEADER FIX ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(2,6,23,.08);
}
.container.inner{ display:flex; align-items:center; justify-content:space-between; padding:.8rem 0; gap:1rem; }

/* desktop nav */
.primary-nav .menu{ display:flex; gap:1rem; list-style:none; margin:0; padding:0; }
.primary-nav .menu a{ display:inline-block; padding:.45rem .6rem; text-decoration:none; }

/* CTA and mobile toggle */
.header-cta{ display:flex; gap:.6rem; align-items:center; }
.mobile-toggle{ display:none; } /* hidden on desktop */

/* show mobile toggle and hide desktop nav at mobile width */
@media (max-width: 920px){
  .primary-nav{ display:none; }
  .mobile-toggle{ display:inline-flex; }
}

/* ---------- DRAWER FIX ---------- */
.nlx-drawer[hidden]{ display:none !important; } /* truly hide when 'hidden' attribute is present */
.nlx-drawer{
  position: fixed; inset: 0; z-index: 110; /* above header */
  display: block;
}
.nlx-drawer__backdrop{
  position:absolute; inset:0;
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(2px);
  border:0;
}
.nlx-drawer__panel{
  position:absolute; right:0; top:0; height:100%; width:min(90%, 360px);
  overflow:auto;
  background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.15);
  padding:1rem; display:flex; flex-direction:column; gap:1rem;
}
.nlx-drawer .menu{ display:grid; gap:.75rem; list-style:none; margin:0; padding:0; }
.nlx-drawer__cta{ display:flex; gap:.5rem; flex-wrap:wrap; }

/* prevent page scroll when drawer open */
body.noscroll{ overflow:hidden; }

/* Make decorative hero layers never block header clicks */
.hero::before, .hero::after, .orb{ pointer-events:none; }

/* Skip link stays hidden until focused (accessibility, no visual glitch) */
.skip-link{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ left:1rem; top:1rem; width:auto; height:auto; padding:.5rem 1rem; background:#1f6fff; color:#fff; border-radius:6px; z-index:999; }

/* Ensure any hero content can't overlap header */
.hero, .nlx-cta-band{ position:relative; z-index:0; }

/* Menu link color */
.primary-nav .menu a {
  color: #111827; /* dark text for better contrast */
  font-weight: 500;
}
.primary-nav .menu a:hover {
  color: #1f6fff; /* brand blue hover */
/* Blog card title in Keep Reading section */
.post-card h2.entry-title,
.keep-reading .post-card h2,
.keep-reading .post-card a.entry-title {
  color: #111827 !important;   /* dark, accessible text */
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: .5rem 0;
  text-decoration: none;
}

.post-card h2.entry-title a {
  color: inherit !important;   /* ensure link uses same dark color */
  text-decoration: none;
}

.post-card h2.entry-title a:hover {
  color: #1f6fff !important;   /* brand blue hover */
}
