@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════
   TEKNOSET — Design Tokens
   Brand: #302D7E (indigo) · #E20E18 (red)
   ═══════════════════════════════════════════════ */
:root {
  /* Brand */
  --brand:        #302D7E;
  --brand-dark:   #21205a;
  --brand-light:  #4844a3;
  --brand-50:     #eeedf8;
  --brand-100:    #d5d4ef;
  --accent:       #E20E18;
  --accent-dark:  #b50b13;
  --accent-light: #ff3341;

  /* Light mode surface */
  --bg:           #f4f5fb;
  --surface:      #ffffff;
  --surface-2:    #f0f1f9;
  --border:       #dcddf0;
  --text:         #1a1a3e;
  --text-muted:   #5c5c8a;
  --text-subtle:  #9898bb;

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(48,45,126,.08);
  --shadow-sm:    0 2px 8px rgba(48,45,126,.1);
  --shadow:       0 6px 24px rgba(48,45,126,.14);
  --shadow-lg:    0 16px 48px rgba(48,45,126,.2);
  --shadow-xl:    0 24px 64px rgba(48,45,126,.28);

  /* Radii */
  --r-sm:  6px;
  --r:     10px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Transitions */
  --t:     .22s cubic-bezier(.4,0,.2,1);

  /* Layout */
  --nav-h: 72px;
}

/* ── Dark Mode ─────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0e0d1f;
  --surface:      #16153a;
  --surface-2:    #1f1e44;
  --border:       #2d2b60;
  --text:         #e8e8f4;
  --text-muted:   #9898bb;
  --text-subtle:  #5a5a80;
  --shadow-xs:    0 1px 3px rgba(0,0,0,.3);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.4);
  --shadow:       0 6px 24px rgba(0,0,0,.5);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.6);
  --shadow-xl:    0 24px 64px rgba(0,0,0,.7);
}

/* ── System dark auto ──────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #0e0d1f;
    --surface:      #16153a;
    --surface-2:    #1f1e44;
    --border:       #2d2b60;
    --text:         #e8e8f4;
    --text-muted:   #9898bb;
    --text-subtle:  #5a5a80;
    --shadow-xs:    0 1px 3px rgba(0,0,0,.3);
    --shadow-sm:    0 2px 8px rgba(0,0,0,.4);
    --shadow:       0 6px 24px rgba(0,0,0,.5);
    --shadow-lg:    0 16px 48px rgba(0,0,0,.6);
    --shadow-xl:    0 24px 64px rgba(0,0,0,.7);
  }
}

/* ═══════════════════════════════════════════════
   BASE RESET
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--t), color var(--t);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-light); }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════ */
.topbar {
  background: var(--brand-dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: 6px 0;
  letter-spacing: .02em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a {
  color: rgba(255,255,255,.75);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--t);
}
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-light,
.logo-dark { transition: opacity var(--t); }
.logo-light { display: block; }
.logo-dark  { display: none; }
[data-theme="dark"] .logo-light,
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light }
{ display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.logo img { height: 40px; width: auto; }

/* Nav menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-shrink: 0;
  align-items: center;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: var(--brand-50);
  color: var(--brand);
}
.nav-arrow {
  font-size: .6rem;
  opacity: .6;
  transition: transform var(--t);
}
.nav-menu > li:hover > a .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  z-index: 2000;
  padding: 8px 0;
  animation: ddFadeIn .18s ease;
}
@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-menu > li:hover > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: .865rem;
  color: var(--text);
  transition: background var(--t), color var(--t);
}
.dropdown a:hover {
  background: var(--brand-50);
  color: var(--brand);
}
.dd-sep {
  padding: 8px 18px 3px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  pointer-events: none;
}
.dd-sep:first-child { border-top: none; margin-top: 0; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--t), border-color var(--t), color var(--t), transform .15s;
}
.theme-toggle:hover { background: var(--brand-50); color: var(--brand); transform: rotate(15deg); }
.icon-sun, .icon-moon { transition: opacity var(--t); }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: inline; }
[data-theme="light"] .icon-sun  { display: inline; }
[data-theme="light"] .icon-moon { display: none; }
.icon-moon { display: none; }
.icon-sun  { display: inline; }

/* CTA btn in header */
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: .84rem;
  border: none;
  cursor: pointer;
  transition: background var(--t), transform .15s, box-shadow var(--t);
  white-space: nowrap;
}
.btn-header:hover { background: var(--brand-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  transition: background var(--t), border-color var(--t);
}
.menu-toggle:hover { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  max-height: 82vh;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
  font-size: .9rem;
  transition: background var(--t), color var(--t);
}
.mobile-nav a:hover { background: var(--brand-50); color: var(--brand); }
.mob-group-header {
  padding: 8px 24px 4px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--surface-2);
  pointer-events: none;
}
.mob-parent { cursor: pointer; }
.mob-sub { display: none; background: var(--surface-2); }
.mob-sub a { padding-left: 40px; font-size: .85rem; }
.mob-sub.open { display: block; }

/* ═══════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════ */
.breadcrumb {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  transition: background var(--t);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  font-size: .8rem;
  align-items: center;
}
.breadcrumb li { display: flex; align-items: center; color: var(--text-muted); }
.breadcrumb li + li::before {
  content: '›';
  margin: 0 6px;
  opacity: .4;
  font-size: 1rem;
}
.breadcrumb li a { color: var(--brand); font-weight: 500; }
.breadcrumb li a:hover { color: var(--brand-light); }
.breadcrumb li:last-child { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  color: #fff;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(226,14,24,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.4); }
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, #82c4ff, #c9b8ff);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-desc {
  font-size: 1.08rem;
  opacity: .88;
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 500px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  font-size: .93rem;
  border: none;
  cursor: pointer;
  transition: background var(--t), transform .15s, box-shadow var(--t);
  font-family: inherit;
}
.btn-primary:hover { background: #eeedfd; color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: .93rem;
  border: 2px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform .15s;
  font-family: inherit;
}
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .93rem;
  border: none;
  cursor: pointer;
  transition: background var(--t), transform .15s, box-shadow var(--t);
  font-family: inherit;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(226,14,24,.3); }

/* Hero stats */
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r);
  padding: 14px 20px;
  backdrop-filter: blur(10px);
  text-align: center;
  min-width: 90px;
}
.stat-pill strong { display: block; font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; }
.stat-pill span { font-size: .75rem; opacity: .78; }

/* Hero image */
.hero-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(48,45,126,.6));
  z-index: 1;
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title .eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand);
  background: var(--brand-50);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.section-title p {
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 540px;
  margin-inline: auto;
  font-size: .98rem;
}

/* ═══════════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: inherit; }
.service-card:hover::before { transform: scaleX(1); }
.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.service-card:hover .card-img img { transform: scale(1.07); }
.card-body {
  padding: 20px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-body p {
  font-size: .845rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.55;
}
.card-link {
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .01em;
}
.card-link .arrow { transition: transform var(--t); }
.service-card:hover .card-link .arrow { transform: translateX(5px); }

/* ═══════════════════════════════════════════════
   FEATURE BOXES
   ═══════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.feature-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.feature-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.feature-box:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--r);
  background: var(--brand-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}
.feature-box h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feature-box p  { font-size: .84rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   PAGE LAYOUT (inner pages)
   ═══════════════════════════════════════════════ */
.page-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  padding: 40px 0 72px;
  align-items: start;
}
.page-content { min-width: 0; }

/* Content typography */
.page-content h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--brand);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
}
.page-content h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}
.page-content p   { margin-bottom: 14px; font-size: .95rem; line-height: 1.75; color: var(--text); }
.page-content ul,
.page-content ol  { margin: 0 0 16px 24px; }
.page-content li  { margin-bottom: 6px; font-size: .94rem; line-height: 1.6; color: var(--text); }
.page-content hr  { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.page-content a   { color: var(--brand); font-weight: 500; border-bottom: 1px solid var(--brand-100); }
.page-content a:hover { color: var(--brand-light); border-bottom-color: var(--brand-light); }
.page-content img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin: 10px 0;
  width: 100%;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */
.sidebar { position: sticky; top: calc(var(--nav-h) + 16px); }

.contact-card {
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  border-radius: var(--r-lg);
  padding: 24px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.contact-card h4 { font-size: .82rem; font-weight: 600; opacity: .8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.contact-card .phone { font-size: 1.25rem; font-weight: 800; margin: 6px 0 14px; letter-spacing: -.01em; }
.contact-card .phone a { color: #fff; }
.contact-card .cc-links { display: flex; flex-direction: column; gap: 8px; }
.contact-card .cc-links a {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  transition: color var(--t);
}
.contact-card .cc-links a:hover { color: #fff; }
.contact-card .btn-contact {
  display: block;
  margin-top: 16px;
  padding: 10px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--t);
}
.contact-card .btn-contact:hover { background: rgba(255,255,255,.25); color: #fff; }

.sidebar-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sidebar-nav-head {
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav .snav-group {
  padding: 10px 18px 4px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.sidebar-nav .snav-group:first-child { border-top: none; margin-top: 0; }
.sidebar-nav li a {
  display: block;
  padding: 8px 18px 8px 24px;
  font-size: .855rem;
  color: var(--text-muted);
  transition: background var(--t), color var(--t), padding-left var(--t);
  border-left: 3px solid transparent;
  margin: 1px 0;
}
.sidebar-nav li a:hover { background: var(--brand-50); color: var(--brand); padding-left: 28px; border-left-color: var(--brand); }
.sidebar-nav li a.is-active { background: var(--brand-50); color: var(--brand); border-left-color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════
   CTA STRIP
   ═══════════════════════════════════════════════ */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.cta-strip-inner { position: relative; z-index: 1; }
.cta-strip h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.cta-strip p  { opacity: .88; margin-bottom: 28px; font-size: 1.03rem; }
.cta-strip .cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  background: #0c0b22;
  color: #8888aa;
  font-size: .875rem;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 280px; }
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { line-height: 1.7; color: #6666aa; }
.footer-grid h4 {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.footer-grid h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #7777aa; transition: color var(--t); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
  color: #5555aa;
}
.footer-bottom a { color: #7777aa; }
.footer-bottom a:hover { color: #fff; }

/* ═══════════════════════════════════════════════
   BLOG CARDS
   ═══════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t), box-shadow var(--t);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; flex: 1; }
.blog-card-body h3 { font-size: .97rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.blog-card-body p  { font-size: .845rem; color: var(--text-muted); line-height: 1.5; }
.blog-card-footer {
  padding: 12px 20px 16px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand);
  display: flex; align-items: center; gap: 4px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  padding: 48px 0 72px;
  align-items: start;
}
.contact-info-grid {
  display: grid;
  gap: 18px;
}
.ci-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t), box-shadow var(--t);
}
.ci-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.ci-icon {
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: var(--brand-50);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ci-text h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ci-text p, .ci-text a { font-size: .875rem; color: var(--text-muted); }
.ci-text a:hover { color: var(--brand); }

/* Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-2);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(48,45,126,.12);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  width: 100%;
  padding: 13px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--t), transform .15s, box-shadow var(--t);
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow); }
.map-wrap {
  margin-top: 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════════ */
#to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, background var(--t);
  z-index: 990;
}
#to-top.visible { opacity: 1; pointer-events: auto; }
#to-top:hover { background: var(--brand-light); transform: translateY(-3px); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .btn-header { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .hero { padding: 52px 0 40px; }
  .hero-actions { flex-direction: column; }
  .cards-grid, .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 20px; }
}
