/*
Theme Name: Data Analytics Stack
Theme URI: https://dataanalyticsstack.com
Author: Data Analytics Stack
Author URI: https://dataanalyticsstack.com
Description: Retail Growth Intelligence WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: das-theme
*/

@import url("css/style.css");





  /* ── NAV BASE ── */
    nav {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      transition: box-shadow var(--transition);
    }
    nav.scrolled { box-shadow: var(--shadow-sm); }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 68px;
      gap: 32px;
    }

    .nav-logo-img {
      max-height: 80px;
      width: auto;
      cursor: pointer;
      transition: opacity 0.3s ease;
    }
    .nav-logo-img:hover { opacity: 0.8; }

    /* ── DESKTOP NAV LINKS ── */
    .nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
      margin: 0; padding: 0;
    }
    .nav-links a {
      font-size: 14px;
      font-weight: 500;
      color: var(--ink-mid);
      text-decoration: none;
      padding: 7px 14px;
      border-radius: var(--radius-sm);
      transition: all var(--transition);
    }
    .nav-links a:hover { background: var(--green-pale); color: var(--green-dark); }

    .nav-links .has-dropdown { position: relative; }
    .nav-links .has-dropdown > a { display: flex; align-items: center; gap: 4px; }
    .nav-links .has-dropdown > a::after {
      content: '';
      width: 6px; height: 6px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
      display: inline-block;
      transition: transform 0.2s;
    }
    .has-dropdown::before {
      content: '';
      position: absolute;
      top: 100%; left: 0; width: 100%; height: 12px;
    }
    .dropdown {
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s ease;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 8px;
      min-width: 220px;
      box-shadow: var(--shadow-md);
      z-index: 200;
    }
    .has-dropdown:hover .dropdown {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
    }
    .dropdown a {
      display: block;
      font-size: 13px;
      padding: 9px 14px;
      color: var(--ink-mid);
      white-space: nowrap;
    }

    /* ── DESKTOP CTA ── */
    .nav-cta {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* ── HAMBURGER ── */
    .hamburger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      flex-direction: column;
      gap: 5px;
      z-index: 1100;
    }
    .hamburger span {
      display: block;
      width: 22px; height: 2px;
      background: var(--ink);
      border-radius: 2px;
      transition: 0.3s;
    }
    .menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-open .hamburger span:nth-child(2) { opacity: 0; }
    .menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── OVERLAY ── */
    .nav-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 998;
    }
    body.menu-open .nav-overlay { display: block; }
    body.menu-open { overflow: hidden; }

    /* ── MOBILE DRAWER ── */
    @media (max-width: 1024px) {

      /* Hide desktop-only items */
      .nav-links,
      .nav-cta { display: none; }

      .hamburger { display: flex; }

      /* Drawer slides in from right */
      .nav-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        z-index: 999;
        display: flex;
        flex-direction: column;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0,0,0,0.12);
        overflow-y: auto;
      }
      body.menu-open .nav-drawer { right: 0; }

      /* Drawer header row */
      .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
      }
      .drawer-close {
        background: #f4f4f4;
        border: none;
        width: 32px; height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
        color: #555;
        display: flex; align-items: center; justify-content: center;
      }

      /* Drawer nav links */
      .drawer-links {
        list-style: none;
        margin: 0; padding: 8px 0;
        flex: 1;
      }
      .drawer-links li {
        border-bottom: 1px solid #f5f5f5;
      }
      .drawer-links > li > a,
      .drawer-links > li > button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
        font-family: inherit;
      }
      .drawer-links > li > button .chevron {
        display: inline-block;
        width: 7px; height: 7px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: transform 0.25s;
        flex-shrink: 0;
      }
      .drawer-links > li.active > button .chevron {
        transform: rotate(-135deg);
      }

      /* Sub-dropdown */
      .drawer-dropdown {
        display: none;
        padding: 4px 0 8px 0;
        background: #fafafa;
      }
      .drawer-links > li.active .drawer-dropdown { display: block; }
      .drawer-dropdown a {
        display: block;
        padding: 10px 20px 10px 32px;
        font-size: 14px;
        color: #444;
        text-decoration: none;
      }
      .drawer-dropdown a:hover { color: var(--green-dark, #1a5c3a); }

      /* Drawer CTA buttons */
      .drawer-cta {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-shrink: 0;
        border-top: 1px solid #f0f0f0;
      }
      .drawer-cta a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        text-decoration: none;
        box-sizing: border-box;
      }
    }