/* =====================================================================
   Nexodesk – /assets/web.css
   ===================================================================== */

/* -------------------- Theme tokens (light) ------------------------- */
:root{
  --bg:#ffffff;
  --panel:#f8fafc;
  --text:#0f172a;
  --muted:#475569;

  --line:#e2e8f0;
  --accent:#0ea5e9;
  --accent-2:#8b5cf6;

  --cta:#ef4444;
  --cta-hover:#dc2626;

  --shadow-nav:0 10px 30px rgba(0,0,0,.08);
  --shadow-cta:0 10px 24px rgba(239,68,68,.28);

  /* hero */
  --hero-h: clamp(520px, 72vh, 860px);
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}

/* -------------------- Auto-dark (system) --------------------------- */
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"]{
    --bg:#0a0f1f;
    --panel:#0f172a;
    --text:#e5e7eb;
    --muted:#97a3b6;

    --line:#1e293b;
    --accent:#7dd3fc;
    --accent-2:#a78bfa;

    --cta:#ef4444;
    --cta-hover:#dc2626;

    --shadow-nav:0 10px 30px rgba(0,0,0,.45);
    --shadow-cta:0 10px 24px rgba(239,68,68,.35);

    --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.7));
  }
}

/* -------------------- Forced dark ---------------------------------- */
html[data-theme="dark"]{
  --bg:#0a0f1f;
  --panel:#0f172a;
  --text:#e5e7eb;
  --muted:#97a3b6;

  --line:#1e293b;
  --accent:#7dd3fc;
  --accent-2:#a78bfa;

  --cta:#ef4444;
  --cta-hover:#dc2626;

  --shadow-nav:0 10px 30px rgba(0,0,0,.45);
  --shadow-cta:0 10px 24px rgba(239,68,68,.35);

  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.7));
}

/* -------------------- Base ----------------------------------------- */
*{ box-sizing:border-box }
html,body{ margin:0; padding:0 }
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
.container{ max-width:1200px; margin:0 auto; padding:0 22px }

.page-h2{
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  margin: 0 0 18px; font-weight:900;
}

/* -------------------- Navbar --------------------------------------- */
.nav-wrap{
  position:sticky; top:0; z-index:100;           /* keep above everything */
  background:linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border-bottom:1px solid var(--line);
  box-shadow:var(--shadow-nav);
}
.nav-accent{ height:2px; background:linear-gradient(90deg,var(--accent),var(--accent-2)) }
.nav-bar{ display:flex; align-items:center; gap:20px; min-height:82px }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); font-weight:800 }
.brand img{ height:46px; width:auto; display:block }
.brand .title{ font-size:24px; letter-spacing:.3px }

.nav-center{ display:flex; align-items:center; gap:32px; margin-left:8px }
.nav-link{
  position:relative; text-decoration:none; color:var(--muted);
  font-weight:800; font-size:18px; letter-spacing:.2px;
  padding:10px 6px; border-radius:10px;
  transition:color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-link:hover{ color:var(--text); box-shadow:0 0 0 2px rgba(124,58,237,.18) inset }
.nav-link:after{
  content:''; position:absolute; left:10px; right:10px; bottom:6px; height:2px; border-radius:2px;
  background:linear-gradient(90deg,var(--accent),transparent); opacity:0; transition:opacity .15s ease;
}
.nav-link:hover:after{ opacity:1 }
.spacer{ flex:1 }

.theme-toggle,.mobile-theme{
  width:42px; height:42px; display:grid; place-items:center;
  border:1px solid var(--line); background:var(--panel); color:var(--text);
  border-radius:12px; cursor:pointer; font-size:20px;
}

.cta{
  background:var(--cta); color:#fff; text-decoration:none; font-weight:900;
  padding:12px 20px; border-radius:12px; border:0; cursor:pointer;
  box-shadow:var(--shadow-cta);
  transition:background .15s ease, transform .05s ease;
}
.cta:hover{ background:var(--cta-hover) }
.cta:active{ transform:translateY(1px) }

.burger{ display:none; margin-left:12px; border:0; background:transparent; font-size:28px; color:var(--muted); cursor:pointer; }
.mobile-panel{ display:none!important }

/* -------------------- Mobile breakpoint ---------------------------- */
@media (max-width:980px){
  .nav-center{ display:none }
  .cta{ display:none }
  .burger{ display:block }

  .mobile-panel{
    display:none!important; position:absolute; left:0; right:0; top:82px;
    background:var(--panel); border-top:1px solid var(--line); box-shadow:var(--shadow-nav);
    z-index: 99;
  }
  .mobile-panel.open{ display:block!important }
  .mobile-links{ display:flex; flex-direction:column; padding:10px 16px }
  .mobile-links a{ padding:12px 18px; text-decoration:none; color:var(--text); font-weight:800; border-radius:10px }
  .mobile-links a:hover{ background:rgba(0,0,0,.06) }
  html[data-theme="dark"] .mobile-links a:hover{ background:rgba(255,255,255,.06) }

  .mobile-actions{ display:flex; gap:10px; margin:12px 18px 18px }
  .mobile-cta{
    flex:1; background:var(--cta); color:#fff; text-align:center;
    padding:14px 18px; border-radius:12px; font-weight:900; text-decoration:none;
  }
}

/* =====================================================================
   HERO SLIDER
   ===================================================================== */

/* Full-bleed across the page */
.hero-slider{ width:100vw; margin-left:calc(50% - 50vw) }

.hero{
  position:relative;
  z-index:1;
  isolation:isolate;
  height:var(--hero-h);
  width:100%;
  display:grid; align-items:center;
  overflow:hidden;                                  /* contain overlay */
  color:#fff;
}

/* slide strip */
.hero .slides{ position:absolute; inset:0; width:100%; height:100% }
.hero .slide{
  position:absolute; inset:0;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  background-color:#000;
  transform:scale(1.02);
  opacity:0; transition:opacity .7s ease, transform .7s ease;
}
.hero .slide.active{ opacity:1; transform:scale(1) }

/* overlay for legibility */
.hero::after{
  content:""; position:absolute; inset:0; background:var(--hero-overlay);
  pointer-events:none; mix-blend-mode:multiply;
}

/* hero content */
.hero .content{
  position:relative; z-index:2;
  max-width:1200px; margin:0 auto; padding: clamp(18px, 4vw, 28px);
}
.kicker{
  display:inline-block; font-weight:900; letter-spacing:.12em;
  font-size: clamp(.72rem, .9rem + .3vw, .95rem);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  padding: 10px 16px; border-radius: 12px; margin-bottom: 16px;
}
.title{
  font-weight:900; line-height:.95; margin: 6px 0 12px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.lead{
  max-width: 980px;
  font-size: clamp(1rem, 1.1vw + .45rem, 1.25rem);
  color: #e5e7eb; opacity:.98; margin-bottom: 24px;
}
.hero .cta{ display:inline-block; font-weight:900; text-decoration:none; border-radius:12px; padding:14px 22px }

/* arrows + dots */
.controls{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between;
  pointer-events:none; padding:0 10px; z-index:2;
}
.btn-ctrl{
  pointer-events:auto; width:46px; height:46px; border-radius:50%;
  background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35);
  color:#fff; display:grid; place-items:center; font-size:20px; cursor:pointer;
  transition: background .15s ease; backdrop-filter: blur(6px);
}
.btn-ctrl:hover{ background:rgba(255,255,255,.28) }

.dots{ position:absolute; left:50%; transform:translateX(-50%); bottom:16px; display:flex; gap:10px; z-index:2 }
.dot{
  width:9px; height:9px; border-radius:99px; background:rgba(255,255,255,.45);
  border:1px solid rgba(255,255,255,.6); cursor:pointer; transition:all .2s;
}
.dot.active{ width:26px; background:#fff }

@media (max-width:720px){
  :root{ --hero-h: clamp(420px, 64vh, 720px) }
  .title{ font-size: clamp(2rem, 9vw, 3.2rem) }
  .kicker{ font-size:.8rem }
  .lead{ font-size:1rem }
}

/* =====================================================================
   Modal (quote)
   ===================================================================== */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:1000 }
.modal.open{ display:flex }
.backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55) }
.panel{
  position:relative; width:min(640px,94vw);
  background:var(--panel); color:var(--text);
  border:1px solid var(--line); border-radius:16px;
  box-shadow:0 30px 80px rgba(0,0,0,.25); overflow:hidden;
}
.panel header{ padding:16px 18px; border-bottom:1px solid var(--line); font-weight:900 }
.panel .body{ padding:16px 18px }
.panel footer{ padding:12px 18px; border-top:1px solid var(--line); display:flex; gap:10px; justify-content:flex-end }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:10px }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr } }
.input{ width:100%; padding:12px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#0f172a }
html[data-theme="dark"] .input, html[data-theme="auto"] .input{ background:#0b1220; color:#e5e7eb; border-color:#334155 }
.error{ color:#f87171; font-size:.9rem; margin-top:6px }
.btn{ background:var(--cta); color:#fff; border:0; border-radius:12px; padding:10px 16px; font-weight:900; cursor:pointer }
.btn.secondary{ background:#334155; color:#fff }
.alert-success{ background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.35); padding:12px; border-radius:10px; margin-bottom:10px }

/* =====================================================================
   Services grid
   ===================================================================== */
.svc-wrap{ padding:70px 0 40px }
.svc-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap:22px; }
@media (max-width:1200px){ .svc-grid{ grid-template-columns: repeat(4, 1fr) } }
@media (max-width:980px){  .svc-grid{ grid-template-columns: repeat(2, 1fr) } }
@media (max-width:560px){  .svc-grid{ grid-template-columns: 1fr } }

.svc-card{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.svc-card:hover{ transform: translateY(-2px); box-shadow:0 14px 30px rgba(0,0,0,.08); border-color: rgba(14,165,233,.35); }
.svc-icon{ width:64px; height:64px; object-fit:contain; display:block; border-radius:10px; background:#0f172a10; margin-bottom:12px; }
.svc-title{ margin:6px 0 6px; font-size:1.06rem; font-weight:800 }
.svc-blurb{ margin:0 0 10px; color:var(--muted); font-size:.94rem; line-height:1.45 }
.svc-link{ text-decoration:none; font-weight:800; font-size:.92rem; color:var(--accent-2); }
.svc-link:hover{ text-decoration:underline }

/* =====================================================================
   ABOUT (image + metric + content)
   ===================================================================== */
.about-wrap{ padding: clamp(52px, 8vw, 98px) 0; background: var(--bg); }
.about-grid{ display:grid; grid-template-columns: 1.05fr 1fr; gap: clamp(22px, 3vw, 42px); align-items:center; }
.about-figure{ position:relative; min-height: 420px; }
.about-photo{ width:100%; height: clamp(420px, 52vw, 640px); object-fit: cover; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.15); display:block; }

/* 870+ metric */
.about-metric{ position:absolute; top:22px; left:150px; display:flex; align-items:flex-start; gap:12px; z-index:2; color:#000; font-weight:bold; }
.about-metric .count{ font-weight:900; line-height:.9; transform: translate(160px, 15px); font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--text); text-shadow: 0 8px 30px rgba(0,0,0,.10); }
.about-metric .label{ writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing:.28em; font-weight:900; color: var(--accent-2); font-size:.9rem; }
@media (max-width:1100px){ .about-metric{ left:12px; top:12px } }

/* 25y badge */
.about-exp{ position:absolute; left:22px; bottom:22px; display:flex; align-items:center; gap:10px; background: var(--panel); color: var(--text); border:1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.about-exp .years{ font-size: 1.8rem; font-weight: 900; line-height:1 }
.about-exp .txt{ font-size:.9rem; line-height:1.15; color: var(--muted) }

/* content */
.about-content .eyebrow{ display:inline-block; font-weight:900; letter-spacing:.22em; color: var(--accent-2); text-transform:uppercase; font-size:.92rem; margin-bottom:10px; }
.about-title{ font-weight:900; line-height:1.02; margin:6px 0 12px; font-size: clamp(1.9rem, 3.2vw + 1rem, 3rem) }
.about-lead{ color: var(--muted); font-size: clamp(1rem, .5vw + .95rem, 1.125rem); margin: 6px 0 18px }
.about-list{ display:flex; flex-direction:column; gap:14px; margin:16px 0 8px }
.about-item{ display:flex; align-items:flex-start; gap:12px }
.about-ico{ width:36px; height:36px; object-fit:contain; background:#0f172a10; border-radius:8px; padding:6px; flex:0 0 auto; }
.about-ico--emoji{ width:36px; height:36px; display:grid; place-items:center; font-size:26px; line-height:1; background:#0f172a10; border-radius:8px; flex:0 0 auto; }
.about-item-title{ margin:0 0 4px; font-weight:800; font-size:1.02rem }
.about-item-text{ margin:0; color: var(--muted); font-size:.98rem; line-height:1.45 }

.about-bullets{ margin:8px 0 18px; padding-left:22px }
.about-bullets li{ margin:6px 0; color: var(--text) }

.about-cta{ display:inline-block; text-decoration:none; font-weight:900; background: var(--cta); color:#fff; border-radius:12px; padding:14px 22px; box-shadow: var(--shadow-cta); }
.about-cta:hover{ background: var(--cta-hover) }

@media (max-width:980px){
  .about-grid{ grid-template-columns:1fr }
  .about-figure{ min-height:0 }
  .about-photo{ height: clamp(360px, 58vw, 520px) }
}

/* =====================================================================
   WHY CHOOSE US (wc) — fully isolated & theme-aware
   ===================================================================== */

/* Light defaults for this section */
html:not([data-theme="dark"]) #wc{
  --wc-bg:#ffffff;
  --wc-text:#0b1422;
  --wc-muted:#445166;
  --wc-card:#f8fafc;
  --wc-card-border:#e6edf5;
  --wc-icon-bg:#ffffff;
  --wc-stat-bg:#f5f8fc;
}
/* Dark palette */
html[data-theme="dark"] #wc{
  --wc-bg:#0b1422;
  --wc-text:#eef3fb;
  --wc-muted:#cfd9ea;
  --wc-card:#1b2737;
  --wc-card-border:#243449;
  --wc-icon-bg:#112438;
  --wc-stat-bg:#0f1b2d;
}

#wc{
  position:relative;
  z-index:5;                       /* above hero */
  isolation:isolate;               /* its own stacking context */
  background:var(--wc-bg);
  color:var(--wc-text);
  padding:56px 0;
}

/* HARD reset so nothing can fade this section */
#wc, #wc *{
  mix-blend-mode: normal !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}

#wc .wc-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:36px; align-items:center; }
#wc .wc-eyebrow{ margin:0 0 8px; font-weight:700; font-size:14px; letter-spacing:.12em; text-transform:uppercase; color:var(--wc-muted); }
#wc .wc-heading{ margin:0 0 10px; font-size:40px; line-height:1.15; font-weight:800; color:var(--wc-text); }
#wc .wc-lead{ margin:0 0 18px; font-size:17px; color:var(--wc-muted); }
#wc .wc-bullets{ margin:10px 0 22px; padding-left:18px; color:var(--wc-text); }
#wc .wc-bullets li{ margin:7px 0; }

#wc .wc-cards{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
#wc .wc-card{
  display:flex; gap:12px; align-items:flex-start;
  background:var(--wc-card) !important;
  border:1px solid var(--wc-card-border) !important;
  border-radius:14px; padding:14px 16px;
  transition:transform .15s ease, box-shadow .15s ease;
}
#wc .wc-card:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(23,43,77,.08); }
#wc .wc-ico{
  width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center;
  border-radius:12px; background:var(--wc-icon-bg) !important; border:1px solid var(--wc-card-border) !important; font-size:18px;
}
#wc .wc-card-title{ margin:0 0 2px; font-size:17px; font-weight:800; color:var(--wc-text); }
#wc .wc-card-text{ margin:0; font-size:14.5px; color:var(--wc-muted); }

#wc .wc-stats{ display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
#wc .wc-stat{ background:var(--wc-stat-bg) !important; border:1px solid var(--wc-card-border) !important; border-radius:12px; padding:12px 16px; min-width:180px; }
#wc .wc-stat-val{ font-size:22px; font-weight:900; line-height:1.1; }
#wc .wc-stat-cap{ font-size:13px; color:var(--wc-muted); }

#wc .wc-figure{ display:block; }
#wc .wc-photo{
  width:100%; max-width:560px; aspect-ratio:4 / 5; height:auto;
  object-fit:cover; object-position:center; border-radius:18px; display:block;
  box-shadow:0 26px 60px rgba(0,0,0,.18); background:#eef2f7;
}

@media (max-width:1024px){
  #wc .wc-grid{ grid-template-columns:1fr; }
  #wc .wc-heading{ font-size:34px; }
  #wc .wc-cards{ grid-template-columns:1fr; }
}

/* =====================================================================
   Footer
   ===================================================================== */
.nx-footer {
  background:#0b0f14; color:#e9edf2; border-top:1px solid rgba(255,255,255,0.08); font-size:15px;
}
.nx-foot-inner{ max-width:1200px; margin:0 auto; padding:48px 20px; display:grid; gap:32px; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
.nx-logo img{ height:42px; width:auto; display:block; margin-bottom:12px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.2)); }
.nx-tag{ margin:0 0 12px; color:#d4dbe7; }
.nx-contact a{ color:#cfe1ff; text-decoration:none; }
.nx-addr{ color:#b8c2d0; }
.nx-h{ font-size:16px; margin:0 0 12px; color:#ffffff; letter-spacing:.3px; }
.nx-links{ list-style:none; margin:0; padding:0; }
.nx-links li{ margin:8px 0; }
.nx-links a{ color:#cfe1ff; text-decoration:none; }
.nx-links a:hover{ text-decoration:underline; }
.nx-socials a{ display:inline-flex; width:36px; height:36px; border-radius:999px; background:#121923; align-items:center; justify-content:center; margin-right:8px; }
.nx-socials a:hover{ background:#182233; }
.nx-socials i{ font-size:18px; color:#cfe1ff; }
.nx-news{ display:flex; gap:8px; margin-top:8px; }
.nx-news input{ flex:1; min-width:0; padding:10px 12px; border-radius:8px; border:1px solid #283143; background:#0f141c; color:#e9edf2; }
.nx-news button{ padding:10px 14px; border-radius:8px; border:0; background:#2a6cff; color:#fff; cursor:pointer; font-weight:600; }
.nx-news button:hover{ background:#245be0; }
.nx-badges{ margin-top:12px; display:flex; gap:8px; align-items:center; opacity:.9; }
.nx-badges img{ height:22px; width:auto; }

.nx-foot-bottom{ border-top:1px solid rgba(255,255,255,.08); display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 20px; max-width:1200px; margin:0 auto; color:#aeb9c8; font-size:14px; }
.nx-bottom-links a{ color:#bfcbe0; text-decoration:none; margin-left:14px; }
.nx-bottom-links a:hover{ text-decoration:underline; }

@media (max-width: 1024px){
  .nx-foot-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .nx-foot-inner{ grid-template-columns: 1fr; }
  .nx-news{ flex-direction:column; }
  .nx-foot-bottom{ flex-direction:column; text-align:center; }
}

/* Screen-reader only helper */
.sr-only{ position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
