/* ============================================
   NTPL HEADER STYLES - COMPLETE FIXED VERSION
   ============================================ */

/* ============================================
   CSS RESET FOR HEADER
   ============================================ */
.ntpl-header *,
.ntpl-header *::before,
.ntpl-header *::after,
.ntpl-mobile-nav *,
.ntpl-mobile-nav *::before,
.ntpl-mobile-nav *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   BODY STATE WHEN MENU IS OPEN
   ============================================ */
body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* ============================================
   HEADER BASE
   ============================================ */
.ntpl-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.ntpl-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.ntpl-header.is-hidden {
    transform: translateY(-100%);
}

/* ============================================
   HEADER WRAPPER
   ============================================ */
.ntpl-header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 5%;
    gap: 30px;
}

/* Header Spacer */
.ntpl-header-spacer {
    height: 70px;
}

/* ============================================
   LOGO
   ============================================ */
.ntpl-header__logo {
    flex-shrink: 0;
    z-index: 1001;
}

.ntpl-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ntpl-logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntpl-logo__icon svg {
    display: block;
    width: 36px;
    height: 36px;
}

.ntpl-logo__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ntpl-logo__name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.ntpl-logo__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */
.ntpl-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ntpl-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ntpl-nav__item {
    position: relative;
}

.ntpl-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
}

.ntpl-nav__link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, #89F336, #00BF33);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ntpl-nav__link:hover {
    color: #1a1a2e;
    background: rgba(137, 243, 54, 0.08);
}

.ntpl-nav__link:hover::after {
    transform: scaleX(1);
}

.ntpl-nav__link.is-active {
    color: #00BF33;
    font-weight: 600;
}

.ntpl-nav__link.is-active::after {
    transform: scaleX(1);
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.ntpl-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ntpl-header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ntpl-header__phone-icon {
    color: #00BF33;
}

.ntpl-header__phone:hover {
    background: #f5f5f5;
    color: #00BF33;
}

.ntpl-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #89F336, #00BF33);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(137, 243, 54, 0.3);
    transition: all 0.3s ease;
}

.ntpl-header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(137, 243, 54, 0.4);
}

/* ============================================
   MOBILE MENU TOGGLE BUTTON
   ============================================ */
.ntpl-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.ntpl-header__toggle:focus {
    outline: none;
}

.ntpl-header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1a1a2e;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Hamburger to X animation */
.ntpl-header__toggle.is-active .ntpl-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #00BF33;
}

.ntpl-header__toggle.is-active .ntpl-header__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ntpl-header__toggle.is-active .ntpl-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #00BF33;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.ntpl-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.ntpl-mobile-nav.is-open {
    display: block;
}

/* Overlay */
.ntpl-mobile-nav__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ntpl-mobile-nav.is-open .ntpl-mobile-nav__overlay {
    opacity: 1;
}

/* Panel */
.ntpl-mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.ntpl-mobile-nav.is-open .ntpl-mobile-nav__panel {
    transform: translateX(0);
}

/* Panel Header */
.ntpl-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.ntpl-mobile-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.ntpl-mobile-nav__logo svg {
    width: 32px;
    height: 32px;
}

.ntpl-mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.ntpl-mobile-nav__close:hover {
    background: #fee;
    color: #e74c3c;
}

/* Panel Content */
.ntpl-mobile-nav__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.ntpl-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ntpl-mobile-nav__item {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ntpl-mobile-nav.is-open .ntpl-mobile-nav__item {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation */
.ntpl-mobile-nav.is-open .ntpl-mobile-nav__item:nth-child(1) {
    transition-delay: 0.05s;
}

.ntpl-mobile-nav.is-open .ntpl-mobile-nav__item:nth-child(2) {
    transition-delay: 0.1s;
}

.ntpl-mobile-nav.is-open .ntpl-mobile-nav__item:nth-child(3) {
    transition-delay: 0.15s;
}

.ntpl-mobile-nav.is-open .ntpl-mobile-nav__item:nth-child(4) {
    transition-delay: 0.2s;
}

.ntpl-mobile-nav.is-open .ntpl-mobile-nav__item:nth-child(5) {
    transition-delay: 0.25s;
}

.ntpl-mobile-nav.is-open .ntpl-mobile-nav__item:nth-child(6) {
    transition-delay: 0.3s;
}

/* Mobile Nav Link */
.ntpl-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ntpl-mobile-nav__icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    flex-shrink: 0;
}

.ntpl-mobile-nav__text {
    flex: 1;
}

.ntpl-mobile-nav__arrow {
    color: #ccc;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ntpl-mobile-nav__link:hover,
.ntpl-mobile-nav__link:active {
    background: #f0fff4;
    border-color: #89F336;
}

.ntpl-mobile-nav__link:hover .ntpl-mobile-nav__arrow {
    color: #00BF33;
    transform: translateX(3px);
}

/* Active Link */
.ntpl-mobile-nav__link.is-active {
    background: linear-gradient(135deg, #f0fff4, #e8fff0);
    border-color: #89F336;
    color: #00BF33;
    font-weight: 600;
}

.ntpl-mobile-nav__link.is-active .ntpl-mobile-nav__icon {
    background: linear-gradient(135deg, #89F336, #00BF33);
}

.ntpl-mobile-nav__link.is-active .ntpl-mobile-nav__arrow {
    color: #00BF33;
}

/* Panel Footer */
.ntpl-mobile-nav__footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ntpl-mobile-nav__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ntpl-mobile-nav__phone svg {
    color: #00BF33;
}

.ntpl-mobile-nav__phone:hover {
    border-color: #00BF33;
    background: #f0fff4;
}

.ntpl-mobile-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #89F336, #00BF33);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(137, 243, 54, 0.3);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ntpl-mobile-nav__cta:hover {
    box-shadow: 0 6px 20px rgba(137, 243, 54, 0.4);
}

.ntpl-mobile-nav__cta svg {
    transition: transform 0.2s ease;
}

.ntpl-mobile-nav__cta:hover svg {
    transform: translateX(3px);
}

/* Social Links */
.ntpl-mobile-nav__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #888;
}

.ntpl-mobile-nav__social-links {
    display: flex;
    gap: 10px;
}

.ntpl-mobile-nav__social-links a {
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.ntpl-mobile-nav__social-links a:hover {
    transform: scale(1.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .ntpl-nav__link {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .ntpl-header__phone span {
        display: none;
    }

    .ntpl-header__phone {
        padding: 8px;
        background: #f5f5f5;
        border-radius: 8px;
    }
}

@media (max-width: 900px) {
    .ntpl-header__nav {
        display: none;
    }

    .ntpl-header__actions {
        display: none;
    }

    .ntpl-header__toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .ntpl-logo__text {
        display: none;
    }

    .ntpl-header__wrapper {
        padding: 10px 4%;
    }

    .ntpl-header-spacer {
        height: 64px;
    }

    .ntpl-mobile-nav__panel {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .ntpl-header,
    .ntpl-mobile-nav__overlay,
    .ntpl-mobile-nav__panel,
    .ntpl-mobile-nav__item,
    .ntpl-header__toggle-bar {
        transition: none !important;
    }
}