/*
Theme Name: Voxnik Theme
Theme URI: https://voxnik.in
Author: Voxnik
Author URI: https://voxnik.in
Description: Official Voxnik Digital Agency WordPress theme. Blank Elementor canvas with full Poppins + Inter typography, brand colors, and custom header/footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: voxnik
Tags: elementor, custom-header, custom-footer, full-width-template

*/

/* === BRAND CSS VARIABLES === */
:root {
  --c-bg: #ffffff;
  --c-bg2: #f8f9fc;
  --c-bg3: #eef0f5;
  --c-text: #0f172a;
  --c-text2: #475569;
  --c-text3: #94a3b8;
  --c-accent: #2563eb;
  --c-accent2: #1d4ed8;
  --c-accent3: #3b82f6;
  --c-green: #10b981;
  --c-border: #e2e8f0;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --r: 12px;
  --r-lg: 20px;
  --maxw: 1280px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === ELEMENTOR CANVAS RESET === */
.elementor-page .site-main,
.elementor-page #content {
  padding: 0;
  margin: 0;
}

/* === TOPBAR === */
.voxnik-topbar {
  background: var(--c-accent);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  letter-spacing: .2px;
  font-family: var(--font-body);
}

/* === HEADER === */
.voxnik-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.voxnik-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
}

.voxnik-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: var(--c-text);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.5px;
  text-decoration: none;
  max-height: 60px;
  overflow: hidden;
}

.voxnik-logo span { color: var(--c-accent); }
.voxnik-logo img {
  display: block;
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain;
}

.voxnik-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
}

.voxnik-nav a {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--r);
  color: var(--c-text2);
  transition: all .2s;
  text-decoration: none;
  font-family: var(--font-body);
}

.voxnik-nav a:hover,
.voxnik-nav a.active,
.voxnik-nav .current-menu-item > a,
.voxnik-nav .current-page-ancestor > a {
  color: var(--c-accent);
  background: rgba(37,99,235,.08);
}

/* Dropdown */
.voxnik-nav .menu-item-has-children { position: relative; }
.voxnik-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 8px 0;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
  z-index: 1000;
  list-style: none;
}

.voxnik-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.voxnik-nav .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--c-text2);
  transition: all .15s;
  border-radius: 0;
}

.voxnik-nav .sub-menu li a:hover {
  background: rgba(37,99,235,.05);
  color: var(--c-accent);
  padding-left: 26px;
}

.voxnik-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.voxnik-btn-call {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  padding: 10px 20px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  transition: all .2s;
  background: #fff;
  text-decoration: none;
  font-family: var(--font-body);
}

.voxnik-btn-call:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  box-shadow: var(--shadow-md);
}

.voxnik-btn-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  padding: 12px 24px;
  border-radius: var(--r);
  transition: all .2s;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  font-family: var(--font-body);
}

.voxnik-btn-cta:hover {
  background: linear-gradient(135deg, var(--c-accent2), var(--c-accent));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  color: #fff;
}

/* Mobile toggle */
.voxnik-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin-left: 8px;
  flex-shrink: 0;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  border-radius: 8px;
  transition: background .2s;
}
.voxnik-menu-toggle:hover { background: rgba(37,99,235,.08); }

.voxnik-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

.voxnik-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.voxnik-menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.voxnik-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === FOOTER === */
.voxnik-footer {
  background: #0f172a;
  color: rgba(255,255,255,.8);
  padding: 80px 24px 32px;
}

.voxnik-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.voxnik-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.voxnik-footer-brand h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.voxnik-footer-logo {
  display: inline-flex;
  align-items: center;
  max-height: 40px;
  overflow: hidden;
  margin-bottom: 14px;
}
.voxnik-footer-logo img {
  display: block;
  height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  object-fit: contain;
}
.voxnik-footer-logo h3 { margin-bottom: 0; }

.voxnik-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}

.voxnik-footer-social {
  display: flex;
  gap: 10px;
}

.voxnik-footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  transition: all .2s;
  text-decoration: none;
}

.voxnik-footer-social a:hover {
  border-color: var(--c-accent3);
  background: rgba(37,99,235,.2);
  color: #fff;
}

.voxnik-footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.voxnik-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.voxnik-footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
  text-decoration: none;
}

.voxnik-footer-col ul li a:hover { color: #fff; }

.voxnik-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.voxnik-footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* === MOBILE DOCK === */
.voxnik-mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--c-border);
  z-index: 9998;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.voxnik-dock-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.voxnik-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--c-text3);
  font-size: 10px;
  font-weight: 600;
  transition: color .15s;
  font-family: var(--font-body);
}

.voxnik-dock-item:hover,
.voxnik-dock-item.active { color: var(--c-accent); }

.voxnik-dock-item svg {
  width: 22px;
  height: 22px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .voxnik-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* ── HEADER ── */
  .voxnik-header {
    padding: 0 16px;
    height: 64px;
  }
  .voxnik-header-inner {
    display: flex;
    align-items: center;
    gap: 0;
  }

  /* Hide desktop nav and phone number */
  .voxnik-nav,
  .voxnik-btn-call { display: none !important; }

  /* Show hamburger */
  .voxnik-menu-toggle {
    display: flex !important;
    order: 10;
    margin-left: auto;
  }

  /* Keep CTA but smaller, between logo and hamburger */
  .voxnik-header-actions {
    margin-left: auto;
    margin-right: 4px;
    gap: 8px;
  }
  .voxnik-header-actions .voxnik-btn-call { display: none !important; }
  .voxnik-header-actions .voxnik-btn-cta {
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  /* Remove the margin-left:auto from actions since toggle handles spacing */
  .voxnik-menu-toggle { margin-left: 8px; }

  /* Mobile nav drawer */
  .voxnik-nav.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 0 24px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 16px 40px rgba(0,0,0,.10);
    z-index: 9997;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Top-level links */
  .voxnik-nav.is-open > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
    border-bottom: 1px solid var(--c-border);
  }
  .voxnik-nav.is-open > li:last-child > a { border-bottom: none; }

  /* Chevron indicator for parent items */
  .voxnik-nav.is-open .menu-item-has-children > a::after {
    content: '';
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
    flex-shrink: 0;
    margin-left: 8px;
    opacity: .5;
  }
  .voxnik-nav.is-open .menu-item-has-children.is-sub-open > a::after {
    transform: rotate(-135deg);
  }

  /* Submenu — hidden by default, shown when is-sub-open */
  .voxnik-nav.is-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--c-accent);
    border-radius: 0;
    padding: 4px 0;
    margin: 0 0 0 20px;
    background: rgba(37,99,235,.03);
    display: none;
  }
  .voxnik-nav.is-open .menu-item-has-children.is-sub-open > .sub-menu {
    display: block;
    animation: vox-sub-slide .2s ease;
  }
  @keyframes vox-sub-slide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .voxnik-nav.is-open .sub-menu li a {
    padding: 11px 16px 11px 20px;
    font-size: 14px;
    border-radius: 0;
  }

  /* ── FOOTER ── */
  .voxnik-footer-grid { grid-template-columns: 1fr; }
  .voxnik-footer-bottom { flex-direction: column; text-align: center; }
  .voxnik-footer-logo img { height: 30px !important; max-height: 30px !important; }

  /* ── MOBILE DOCK ── */
  .voxnik-mobile-dock { display: block; }
  body { padding-bottom: 72px; }
}
