/* =========================================================
   SSA Consultancy — styles.css (FINAL, clean & conflict-free)
   Controls: change logo size via --logo-h, container width via --container
   ========================================================= */

/* -------------------- Theme Variables -------------------- */
:root{
  --container: 1200px;
  --space: 16px;

  --bg: #f6f9ff;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0e1b2a;
  --muted: #667085;

  --primary: #2563eb;
  --primary-2: #06b6d4;

  --radius: 16px;
  --shadow: 0 12px 30px rgba(17,24,39,.06);

  /* Controls */
  --logo-h: 56px;              /* header logo height */
  --banner-art-w: 420px;       /* banner right image width */

  /* Nav polish */
  --nav-hover-bg: rgba(2,6,23,.04);
  --nav-pill1: rgba(37,99,235,.12);
  --nav-pill2: rgba(6,182,212,.12);
}

/* -------------------- Base / Reset -------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
img, svg, video { max-width: 100%; height: auto; display: block; }
body{
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(37,99,235,.06), transparent 60%),
    radial-gradient(1000px 500px at 100% 10%, rgba(6,182,212,.08), transparent 60%),
    var(--bg);
}
.container, .wrap { width: min(calc(100% - 2*var(--space)), var(--container)); margin-inline: auto; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

/* -------------------- Header / Nav (ROW LOCK + POLISH) -------------------- */
.header{
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(2,6,23,.06);
}
.header .nav{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px; min-height:72px;
  position:relative !important;
  flex-wrap:nowrap !important;              /* desktop = single row */
}
.header .brand{
  display:flex !important; align-items:center !important; gap:12px;
  white-space:nowrap !important; flex:0 0 auto !important;
  position:static !important; z-index:1;
  text-decoration:none; color:inherit;
}
.header .brand img{ height:var(--logo-h); width:auto; display:block; }

#nav-toggle{ display:none; }

.header .nav .nav-links{
  margin-left:auto !important;
  display:flex !important; align-items:center !important; gap:22px;
  flex:1 1 auto !important; white-space:nowrap !important; flex-wrap:nowrap !important;
  position:static !important; left:auto !important; right:auto !important; top:auto !important; transform:none !important;
  min-width:0;
}
.header .nav .nav-links a,
.header .nav .nav-links a:visited{
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 2px 2px;
  border-radius: 5px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 2px;
  white-space: nowrap !important;
}
.header .nav .nav-links a:hover{ background: var(--nav-hover-bg); }
.header .nav .nav-links a.active{
  color: var(--text);
  background: linear-gradient(90deg, var(--nav-pill1), var(--nav-pill2));
  outline: 1px solid rgba(37,99,235,.18);
}
/* animated underline */
.header .nav .nav-links a::after{
  content:""; position:absolute; left:12px; right:12px; bottom:6px; height:2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; border-radius:2px;
}
.header .nav .nav-links a:hover::after,
.header .nav .nav-links a:focus-visible::after{ transform: scaleX(1); }
.header .nav .nav-links a:focus-visible{ outline: 2px solid rgba(37,99,235,.35); }

/* --- HEADER: force visual order regardless of DOM (brand left, links right) --- */
.header .nav > .brand{ order:0 !important; }
.header .nav > .hamburger{ order:1 !important; }
.header .nav > #nav-toggle{ order:2 !important; }
.header .nav > .nav-links{ order:3 !important; margin-left:auto !important; }

/* Extra safety: no default underline/purple (header-only) */
.header .nav .nav-links a,
.header .nav .nav-links a:link,
.header .nav .nav-links a:visited,
.header .nav .nav-links a:hover,
.header .nav .nav-links a:active{
  color: var(--text) !important;
  text-decoration: none !important;
}

/* Mobile dropdown only inside header scope */
.hamburger{ display:none; cursor:pointer; padding:10px; border-radius:12px; }
.hamburger span{ display:block; width:22px; height:2px; background:#111; margin:4px 0; border-radius:2px; }
@media (max-width:980px){
  .hamburger{ display:block; }
  .header #nav-toggle:not(:checked) ~ .nav-links{ display:none !important; }
  .header #nav-toggle:checked ~ .nav-links{
    display:flex !important;
    position:absolute !important; right:16px; top:64px;
    flex-direction:column; align-items:stretch; width:min(92vw,360px);
    background:#fff; border:1px solid rgba(2,6,23,.08); box-shadow:var(--shadow);
    padding:8px; border-radius:14px; white-space:normal !important;
  }
  .header .nav .nav-links a{ width:100%; }
  .header .nav .nav-links a::after{ display:none; } /* no underline bar in dropdown */
}
@media (max-width:420px){ .header .brand span{ display:none; } }
/* ===== Series Hero Slider (Redmi-like) ===== */
/* ============================
   Series Hero Slider — Polished
   (drop-in replacement)
   ============================ */
.series-hero{ padding:10px 0 14px }

/* Card look with subtle gradient + soft corners */
.hero-slider{
  position:relative; overflow:hidden;
  border-radius:22px;
  background:linear-gradient(180deg, #fff, #fafcff);
  border:1px solid rgba(2,6,23,.06);
  box-shadow:var(--shadow);
  isolation:isolate; /* for overlay effects */
}

/* Decorative soft glows (no interaction) */
.hero-slider::before,
.hero-slider::after{
  content:""; position:absolute; inset:auto;
  width:420px; height:420px; border-radius:50%;
  filter:blur(28px); opacity:.18; pointer-events:none; z-index:0;
}
.hero-slider::before{
  left:-140px; top:-140px;
  background:radial-gradient(closest-side, var(--primary) 0%, transparent 70%);
}
.hero-slider::after{
  right:-140px; bottom:-160px;
  background:radial-gradient(closest-side, var(--primary-2) 0%, transparent 70%);
}

/* Slides area */
.hero-slider .slides{
  position:relative; z-index:1;
  min-height:clamp(320px, 40vw, 520px);
}

/* Slide states */
.hero-slider .slide{ display:none; padding:clamp(18px, 2vw, 24px) }
.hero-slider .slide.active{ display:block; animation:fadeUp .45s ease both }
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(10px) scale(.98) }
  to{ opacity:1; transform:none }
}

/* Layout */
.slide-grid{
  display:grid; align-items:center;
  grid-template-columns: 1.08fr 1fr;
  gap:clamp(16px, 2.2vw, 28px);
}

/* Copy */
.slide .copy h2{
  margin:0 0 8px; line-height:1.15;
  font-size:clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight:900;
}
.slide .copy p{ margin:0 0 14px; color:#64748b; max-width:60ch }
.slide .cta{ display:flex; gap:10px; flex-wrap:wrap }

/* Art */
.slide .art{ display:flex; align-items:center; justify-content:center }
.hero-img{
  width:100%;
  max-height:clamp(280px, 38vw, 420px);
  object-fit:contain;
  background:linear-gradient(180deg,#f6f9ff,#f3f6ff);
  border-radius:14px; border:1px solid rgba(2,6,23,.06);
  padding:10px; box-shadow:0 6px 26px rgba(20,30,60,.08);
}

/* Controls */
.hero-slider .nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; display:grid; place-items:center;
  border-radius:999px; cursor:pointer; z-index:2;
  background:color-mix(in srgb, #fff 86%, transparent);
  border:1px solid rgba(2,6,23,.12);
  box-shadow:0 10px 30px rgba(15,23,42,.10);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  backdrop-filter:blur(6px);
}
.hero-slider .nav.prev{ left:12px }
.hero-slider .nav.next{ right:12px }
.hero-slider .nav:hover{ transform:translateY(-50%) scale(1.05) }
.hero-slider .nav:active{ transform:translateY(-50%) scale(.98) }
.hero-slider .nav.is-disabled{ opacity:.45; pointer-events:none }

/* Dots */
.hero-slider .dots{
  position:absolute; left:0; right:0; bottom:12px;
  display:flex; gap:8px; justify-content:center; z-index:2;
}
.hero-slider .dot{
  width:9px; height:9px; border-radius:999px; border:none; cursor:pointer;
  background:#cdd7ff; transition:width .22s ease, background .22s ease, transform .22s ease;
  box-shadow:0 2px 6px rgba(37,99,235,.18);
}
.hero-slider .dot:hover{ transform:translateY(-1px) }
.hero-slider .dot.active{
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  width:22px;
}
.hero-slider .dot:focus-visible{
  outline:2px solid color-mix(in srgb, var(--primary) 50%, transparent);
  outline-offset:2px;
}

/* Responsive */
@media (max-width:1024px){
  .slide-grid{ grid-template-columns:1fr }
  .hero-img{ max-height:320px }
  .hero-slider{ border-radius:18px }
}
@media (max-width:768px){
  .slide .copy h2{ font-size:clamp(1.4rem, 1rem + 3vw, 1.8rem) }
}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  .hero-slider .slide.active{ animation:none }
  .hero-slider .nav{ transition:none }
  .hero-slider .dot{ transition:none }
}

/* -------------------- Buttons -------------------- */
.btn{
  display:inline-block; padding:12px 18px; border-radius:14px;
  text-decoration:none; font-weight:800; color:#fff;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(37,99,235,.2);
}
.btn-outline{ background:#fff; color:var(--text); border:1px solid rgba(2,6,23,.08); }

/* -------------------- Layout helpers -------------------- */
.section{ padding: 56px 0; }
.grid{ display:grid; gap:16px; }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
.grid.auto-fit-240{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 900px){ .grid-3, .grid-4{ grid-template-columns: 1fr; } }
.card{
  background: var(--card);
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* -------------------- Banner / Titlebar -------------------- */
.kicker{ font-weight:800; letter-spacing:.18em; text-transform:uppercase; font-size:.8rem; color:var(--muted) }
.banner{
  position:relative; overflow:hidden; padding:60px 0;
  background: linear-gradient(180deg, rgba(37,99,235,.05), transparent);
}
.banner .container{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:26px; align-items:center;
}
.banner img{ max-width:100%; border-radius:16px; border:1px solid rgba(2,6,23,.06); box-shadow: var(--shadow); }
.banner .banner-art{ width: var(--banner-art-w); justify-self: end; }
@media (max-width: 900px){ .banner .container{ grid-template-columns: 1fr; } }
.titlebar{ display:flex; align-items:center; gap:14px; flex-wrap:wrap }
.titlebar img{ width:55px; height:auto; }

/* -------------------- Badges / Chips -------------------- */
.badge{ padding:6px 10px; border-radius:999px; border:1px solid rgba(2,6,23,.08); font-size:.8rem; color:var(--muted) }
.badge-soft{ font-size:.75rem; padding:4px 8px; border-radius:999px; border:1px solid rgba(2,6,23,.12); color:var(--muted) }
.badges{ display:flex; gap:10px; flex-wrap:wrap; }
.chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top:8px }
.chip{ display:inline-flex; align-items:center; padding:8px 12px; font-size:.9rem; color:#1f2937;
  background:#f6f9ff; border:1px solid rgba(2,6,23,.08); border-radius:999px; box-shadow:var(--shadow) }

/* -------------------- Gallery (home snapshots) -------------------- */
.gallery{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:16px }
.shot{ background:#fff; border:1px solid rgba(2,6,23,.06); border-radius:18px; overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column }
.shot img{ width:100%; height:180px; object-fit:contain; background:#f6f9ff; padding:10px }
.cap{ padding:10px 12px; font-weight:600 }

/* -------------------- Tables / Sidebar -------------------- */
.table{ width:100%; border-collapse: collapse; }
.table th, .table td{ padding:12px 14px; border-bottom:1px solid rgba(2,6,23,.08); text-align:left }

.sidebar{
  position:sticky; top:72px; height:fit-content;
  padding:18px; border-radius:16px; background:#fff; border:1px solid rgba(2,6,23,.06);
}
.two-col{ display:grid; grid-template-columns:280px 1fr; gap:24px; }
@media (max-width: 1000px){ .two-col{ grid-template-columns:1fr; } }

/* -------------------- Preloader -------------------- */
.preloader{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--bg); z-index:1000; transition:opacity .5s ease, visibility .5s ease;
}
.preloader img{ width: clamp(160px, 34vw, 340px); filter: drop-shadow(0 10px 30px rgba(0,0,0,.2)); animation: breathe 2.2s ease-in-out infinite; }
.preloader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
@keyframes breathe{ 0%{transform:scale(1);opacity:.92} 50%{transform:scale(1.03);opacity:1} 100%{transform:scale(1);opacity:.92} }

/* -------------------- Page hero (generic) -------------------- */
.page-hero{ padding:34px 0 18px }
.hero-grid{ display:grid; grid-template-columns:1fr 340px; gap:28px; align-items:center }
.hero-art .art-card{ background:#f6f9ff; border-radius:18px; border:1px solid rgba(2,6,23,.06); padding:14px; box-shadow:var(--shadow) }
.hero-art img{ border-radius:12px }
@media (max-width:1024px){ .hero-grid{ grid-template-columns:1fr } .hero-art{ display:none } }

/* -------------------- Release timeline cards -------------------- */
.timeline .card{ background:var(--card); border-radius:18px; padding:18px; margin-bottom:16px; box-shadow:var(--shadow); border:1px solid rgba(2,6,23,.06) }
.timeline .head{ display:flex; justify-content:space-between; align-items:center; gap:12px }
.timeline .ver{ font-weight:800 }
.timeline .date{ color:var(--muted); font-size:.92rem }
.timeline .note{ margin-top:8px; white-space:pre-wrap }

/* -------------------- Pricing detail / product big card -------------------- */
.product-xxxl{ display:flex; flex-direction:column; gap:10px }
.thumb-xxxl{ width:100%; max-height:420px; object-fit:contain; background:#f6f9ff; border:1px solid rgba(2,6,23,.06); border-radius:16px; padding:10px }
.product-xxxl .meta .small{ margin-top:4px }

.price-card{ display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; align-items:start; }
.price-card .media .main{
  height:260px; display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid rgba(2,6,23,.08); border-radius:16px; padding:10px;
}
.price-card .media .main img{ max-width:100%; max-height:100%; object-fit:contain; }
.price-card .thumbs{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.price-card .thumbs img{
  width:72px; height:60px; object-fit:cover; cursor:pointer; opacity:.85;
  border:1px solid rgba(2,6,23,.1); border-radius:10px; background:#fff;
}
.price-card .thumbs img.active{ outline:2px solid var(--primary); opacity:1; }
.price-card .details .ttl{ margin:0 0 6px; }
.price-card .price-row{ display:flex; gap:16px; align-items:baseline; margin:8px 0 6px; }
.price-card .price-big{ font-size:28px; font-weight:800; }
.price-card .actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.price-card .cat{ margin-top:12px; }

@media (max-width: 900px){
  .price-card{ grid-template-columns:1fr; }
  .price-card .media .main{ height:210px; }
}

/* -------------------- Home: “Welcome” hero -------------------- */
.hero-welcome{ padding:18px 0 8px }
.hero-grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:28px; align-items:center }
.hero-copy h1{ font-weight:900; line-height:1.1; margin:6px 0 12px; font-size: clamp(2rem, 3.2vw + 1rem, 3.2rem) }
.hero-copy .lead{ color:#6b7280; margin:0 0 16px; max-width:56ch }
.eyebrow{ display:flex; align-items:center; gap:10px; margin-bottom:8px }
.eyebrow-kicker{ font-weight:800; letter-spacing:.12em; font-size:.85rem; color:#64748b }
.mini-logo{ display:inline-flex; width:36px; height:36px; border-radius:10px; background:#f6f9ff; border:1px solid rgba(2,6,23,.06); box-shadow:var(--shadow); align-items:center; justify-content:center }
.mini-logo img{ width:22px; height:auto; display:block }
.cta{ display:flex; gap:12px; margin:12px 0 }
.hero-art .art-card{ background:#fff; border-radius:22px; border:1px solid rgba(2,6,23,.06); padding:18px; box-shadow:var(--shadow) }
.hero-art img{ max-width:100%; max-height:420px; width:100%; object-fit:contain }
@media (max-width:1024px){ .hero-grid{ grid-template-columns:1fr } .hero-art{ display:block } }
@media (max-width:768px){ .hero-copy h1{ font-size: clamp(2rem, 5vw + 1rem, 2.4rem) } .mini-logo{ width:32px; height:32px } }
.hero-welcome .hero-art img{ max-height:300px } /* slightly smaller */

/* -------------------- Footer -------------------- */
.footer{ padding:30px 0; color:var(--muted) }
.hr{ height:1px; background:rgba(2,6,23,.08); margin:24px 0 }
.footer .link-cols{ display:grid; gap:16px; grid-template-columns:1fr 1fr; }
@media (max-width: 768px){ .footer .link-cols{ grid-template-columns:1fr; } }

/* -------------------- Extra utilities -------------------- */
.table-responsive{ overflow-x:auto }
.wrap h1{ margin-top:8px }
