﻿/*
Theme Name: VariLogic Enterprise
Theme URI: https://varilogic.in
Author: VariLogic
Description: Enterprise WordPress theme for IT solutions and SaaS products.
Version: 1.0.0
Text Domain: varilogic-enterprise
*/

:root {
  --vl-primary: #0f172a;
  --vl-accent: #0ea5e9;
  --vl-accent-2: #22c55e;
  --vl-bg: #f8fafc;
  --vl-card: #ffffff;
  --vl-text: #0b1220;
  --vl-muted: #5b6b81;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Inter", sans-serif;
  color: var(--vl-text);
  background: var(--vl-bg);
}

.container { width: min(1140px, 92vw); margin: 0 auto; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(6px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: 0.4px; }
.nav-links a { color: #dbe7ff; text-decoration: none; margin-left: 18px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.menu-btn {
  display: none;
  border: 1px solid #334155;
  background: #0b1220;
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 36px;
  font-size: 1.1rem;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 120;
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  margin-left: auto;
  width: min(88vw, 320px);
  height: 100%;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.menu-close {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
}
.mobile-menu a {
  text-decoration: none;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
}

.hero {
  background: radial-gradient(circle at 10% 10%, #0ea5e9 0%, #0f172a 45%, #0b1220 100%);
  color: #fff;
  padding: 84px 0 64px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 12px; }
.hero p { color: #d7e5ff; font-size: 1.08rem; max-width: 760px; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
}
.btn-primary { background: var(--vl-accent); color: #00111a; }
.btn-primary:hover { background: #38bdf8; }
.btn-secondary { background: #1e293b; color: #dbeafe; border: 1px solid #334155; }
.btn-light { background: #fff; color: #0b1220; }

.section { padding: 62px 0; }
.section-title { margin: 0 0 10px; font-size: 1.75rem; }
.section-subtitle { color: var(--vl-muted); margin: 0 0 22px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--vl-card);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  padding: 18px;
}
.card h3 { margin-top: 0; margin-bottom: 8px; }
.card p { margin-top: 0; color: var(--vl-muted); }
.card ul { margin-top: 0; padding-left: 18px; }
.card-media {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #dbe3ee;
}
.card-media-portrait {
  width: 48%;
  max-width: 280px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #dbe3ee;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #dbeafe;
  color: #1e3a8a;
}

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid #e2e8f0; }
.kpi .num { font-size: 1.3rem; font-weight: 700; }
.kpi .lbl { color: #64748b; font-size: 0.85rem; }

.cta {
  background: linear-gradient(105deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
}

.footer {
  margin-top: 40px;
  background: #0b1220;
  color: #d2dbe8;
  padding: 28px 0;
}
.footer a { color: #d2dbe8; text-decoration: none; }
.footer a:hover { color: #fff; }

.form-control {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
textarea.form-control { min-height: 110px; }

.alert { border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }

.media-placeholder {
  min-height: 190px;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #334155;
  font-weight: 600;
  padding: 12px;
}

.timeline {
  border-left: 3px solid #cbd5e1;
  margin-left: 6px;
  padding-left: 16px;
}
.timeline-step {
  margin-bottom: 18px;
}
.timeline-step h4 {
  margin: 0 0 8px;
}

.calc-result {
  margin-top: 8px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
}

.responsive-table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
}

.tools-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}
.tools-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.calc-card .btn {
  width: 100%;
}
.tools-tray {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}
.tools-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.tools-links a {
  text-decoration: none;
  text-align: center;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #312e81;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 0.82rem;
}
.tray-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.tray-summary {
  color: #475569;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.chart-box {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  height: 280px;
}
.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}
.tools-tray-fab {
  display: none;
}
.tools-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.56);
  z-index: 150;
}
.tools-modal.open { display: block; }
.tools-modal-card {
  width: min(94vw, 560px);
  max-height: 88vh;
  overflow: auto;
  margin: 6vh auto;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
}
.tools-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-block; }
  .hero { padding-top: 58px; }
  .grid-2 { grid-template-columns: 1fr; }
  .tools-layout {
    grid-template-columns: 1fr;
  }
  .tools-tray { display: none; }
  .tools-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-tray-fab {
    display: inline-block;
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 140;
  }
  .card-media-portrait {
    width: 100%;
    max-width: none;
  }
}
