/**
 * Pulse Components CSS
 * 
 * Header, footer, navigation, and mobile menu styles.
 * 
 * @package Pulse_Starter
 */

/* ============================================
   SKIP LINK
   ============================================ */
.pulse-skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--pulse-primary);
    color: var(--pulse-black);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

.pulse-skip-link:focus {
    top: 0;
}

/* ============================================
   HEADER
   ============================================ */
.pulse-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--pulse-z-sticky);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--pulse-transition-normal);
}

.pulse-header--scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pulse-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--pulse-container-wide);
    margin: 0 auto;
    padding: 16px 24px;
}

/* Logo */
.pulse-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.pulse-header__logo .pulse-logo {
    height: 40px;
    width: auto;
}

.pulse-header__logo .pulse-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pulse-white);
    letter-spacing: -0.02em;
}

/* Desktop Navigation */
.pulse-header__nav {
    display: none;
}

.pulse-header__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pulse-header__menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pulse-gray-300);
    text-decoration: none;
    border-radius: var(--pulse-radius-md);
    transition: all var(--pulse-transition-fast);
}

.pulse-header__menu li a:hover {
    color: var(--pulse-white);
    background: rgba(255, 255, 255, 0.05);
}

.pulse-header__menu li.current-menu-item a,
.pulse-header__menu li.current_page_item a {
    color: var(--pulse-primary);
}

/* Header Actions */
.pulse-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pulse-header__phone {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--pulse-gray-300);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--pulse-transition-fast);
}

.pulse-header__phone:hover {
    color: var(--pulse-primary);
}

.pulse-header__phone-icon {
    width: 18px;
    height: 18px;
}

.pulse-header__phone-icon svg {
    width: 100%;
    height: 100%;
}

.pulse-header__cta {
    display: none;
}

/* Hamburger Toggle */
.pulse-header__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: calc(var(--pulse-z-modal) + 1);
}

.pulse-header__toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
}

.pulse-header__toggle-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pulse-white);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.pulse-header__toggle-icon span:nth-child(1) {
    top: 6px;
}

.pulse-header__toggle-icon span:nth-child(2) {
    top: 11px;
}

.pulse-header__toggle-icon span:nth-child(3) {
    top: 16px;
}

/* Toggle Active State */
.pulse-header__toggle[aria-expanded="true"] .pulse-header__toggle-icon span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.pulse-header__toggle[aria-expanded="true"] .pulse-header__toggle-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.pulse-header__toggle[aria-expanded="true"] .pulse-header__toggle-icon span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.pulse-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--pulse-z-modal);
    pointer-events: none;
    visibility: hidden;
}

.pulse-mobile-menu[aria-hidden="false"] {
    pointer-events: auto;
    visibility: visible;
}

/* Background */
.pulse-mobile-menu__bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__bg {
    opacity: 1;
}

/* Content */
.pulse-mobile-menu__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 32px 40px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__content {
    transform: translateY(0);
    opacity: 1;
}

/* Navigation */
.pulse-mobile-menu__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.pulse-mobile-menu__list li {
    margin-bottom: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__list li {
    transform: translateY(0);
    opacity: 1;
}

.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__list li:nth-child(1) { transition-delay: 0.15s; }
.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__list li:nth-child(2) { transition-delay: 0.2s; }
.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__list li:nth-child(3) { transition-delay: 0.25s; }
.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__list li:nth-child(4) { transition-delay: 0.3s; }
.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__list li:nth-child(5) { transition-delay: 0.35s; }
.pulse-mobile-menu[aria-hidden="false"] .pulse-mobile-menu__list li:nth-child(6) { transition-delay: 0.4s; }

.pulse-mobile-menu__list li a {
    display: inline-block;
    padding: 16px 24px;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--pulse-white);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all var(--pulse-transition-fast);
}

.pulse-mobile-menu__list li a:hover {
    color: var(--pulse-primary);
}

.pulse-mobile-menu__list li.current-menu-item a,
.pulse-mobile-menu__list li.current_page_item a {
    color: var(--pulse-primary);
}

/* Footer */
.pulse-mobile-menu__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-mobile-menu__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pulse-gray-300);
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
}

.pulse-mobile-menu__phone:hover {
    color: var(--pulse-primary);
}

.pulse-mobile-menu__phone-icon {
    width: 20px;
    height: 20px;
}

.pulse-mobile-menu__phone-icon svg {
    width: 100%;
    height: 100%;
}

.pulse-mobile-menu__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pulse-mobile-menu__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    color: var(--pulse-gray-400);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all var(--pulse-transition-fast);
}

.pulse-mobile-menu__social a:hover {
    color: var(--pulse-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.pulse-footer {
    background: var(--pulse-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pulse-footer__inner {
    max-width: var(--pulse-container-max);
    margin: 0 auto;
    padding: 0 var(--pulse-space-lg);
}

.pulse-footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--pulse-space-2xl);
    padding: var(--pulse-space-3xl) 0;
}

/* Brand Column */
.pulse-footer__brand {
    text-align: center;
}

.pulse-footer__logo {
    display: inline-flex;
    margin-bottom: var(--pulse-space-md);
}

.pulse-footer__logo .pulse-logo {
    height: 48px;
    width: auto;
}

.pulse-footer__logo .pulse-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pulse-white);
}

.pulse-footer__tagline {
    color: var(--pulse-gray-400);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--pulse-space-lg);
}

.pulse-footer__social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pulse-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
    color: var(--pulse-gray-400);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pulse-radius-md);
    transition: all var(--pulse-transition-fast);
}

.pulse-footer__social-link:hover {
    color: var(--pulse-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer Columns */
.pulse-footer__column {
    text-align: center;
}

.pulse-footer__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pulse-white);
    margin-bottom: var(--pulse-space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer Menu */
.pulse-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pulse-footer__menu li {
    margin-bottom: 12px;
}

.pulse-footer__menu li a {
    color: var(--pulse-gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--pulse-transition-fast);
}

.pulse-footer__menu li a:hover {
    color: var(--pulse-primary);
}

/* Contact List */
.pulse-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pulse-footer__contact li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--pulse-gray-400);
    font-size: 0.9375rem;
}

.pulse-footer__contact li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pulse-gray-400);
    text-decoration: none;
    transition: color var(--pulse-transition-fast);
}

.pulse-footer__contact li a:hover {
    color: var(--pulse-primary);
}

.pulse-footer__contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--pulse-primary);
}

.pulse-footer__contact-icon svg {
    width: 100%;
    height: 100%;
}

/* CTA Column */
.pulse-footer__column--cta {
    padding: var(--pulse-space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--pulse-radius-xl);
}

.pulse-footer__cta-text {
    color: var(--pulse-gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--pulse-space-lg);
}

/* Footer Bottom */
.pulse-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: var(--pulse-space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.pulse-footer__copyright {
    color: var(--pulse-gray-500);
    font-size: 0.875rem;
}

.pulse-footer__legal {
    display: flex;
    gap: 24px;
}

.pulse-footer__legal a {
    color: var(--pulse-gray-500);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--pulse-transition-fast);
}

.pulse-footer__legal a:hover {
    color: var(--pulse-gray-300);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .pulse-footer__main {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .pulse-footer__brand,
    .pulse-footer__column {
        text-align: left;
    }
    
    .pulse-footer__social,
    .pulse-footer__contact li {
        justify-content: flex-start;
    }
    
    .pulse-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    /* Header Desktop */
    .pulse-header__nav {
        display: block;
    }
    
    .pulse-header__phone {
        display: flex;
    }
    
    .pulse-header__cta {
        display: inline-flex;
    }
    
    .pulse-header__toggle {
        display: none;
    }
    
    /* Footer Desktop */
    .pulse-footer__main {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

/* ============================================
   STARS
   ============================================ */
.pulse-stars {
    display: inline-flex;
    gap: 2px;
}

/* ============================================
   STATS BAR
   ============================================ */
.pulse-stats {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0;
}

.pulse-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: center;
}

.pulse-stats__item {
    padding: 0 16px;
}

.pulse-stats__number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--pulse-primary);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pulse-stats__label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
    .pulse-stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.pulse-faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.pulse-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.pulse-faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pulse-white);
    text-align: left;
    list-style: none;
}

.pulse-faq-item__question::-webkit-details-marker {
    display: none;
}

.pulse-faq-item__question::marker {
    display: none;
    content: '';
}

.pulse-faq-item__icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
    color: var(--pulse-primary);
    transition: transform 0.3s ease;
}

.pulse-faq-item__icon line {
    stroke: currentColor;
    stroke-width: 2;
}

.pulse-faq-item[open] .pulse-faq-item__icon {
    transform: rotate(45deg);
}

.pulse-faq-item__answer {
    padding: 0 24px 20px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.pulse-cta {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(180deg, #0a0a0f 0%, #050508 100%);
    position: relative;
    overflow: hidden;
}

.pulse-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(var(--pulse-primary-rgb), 0.15), transparent 70%);
    pointer-events: none;
}

.pulse-cta__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.pulse-cta__title {
    margin-bottom: 20px;
}

.pulse-cta__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 40px;
}

.pulse-cta__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pulse-star {
    width: 16px;
    height: 16px;
}

.pulse-star svg {
    width: 100%;
    height: 100%;
}

.pulse-star--filled {
    color: var(--pulse-primary);
}

.pulse-star--empty {
    color: var(--pulse-gray-600);
}

/* ============================================
   BADGE / LABEL
   ============================================ */
.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--pulse-space-sm);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--pulse-radius-full);
    background: rgba(var(--pulse-primary-rgb), 0.15);
    color: var(--pulse-primary);
    border: 1px solid rgba(var(--pulse-primary-rgb), 0.3);
}

.pulse-badge--popular {
    background: var(--pulse-primary);
    color: var(--pulse-black);
    border-color: var(--pulse-primary);
}
