/* ============================================================
   WaHoOLA — Shared Components CSS
   Nav, Footer, Hero, Product Cards, Tier Cards, CTA, Badges
   Requires: wahoola.css (loaded first)
   ============================================================ */


/* ============================================================
   NAVIGATION (.w-nav)
   ============================================================ */
.w-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(19, 20, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--w-twilight);
}

.w-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--w-space-lg);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.w-nav-brand img {
    width: 32px;
    height: 32px;
}

.w-nav-brand span {
    font-family: var(--w-font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--w-violet);
    letter-spacing: 0.02em;
}

.w-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.w-nav-links a {
    color: var(--w-text-silver);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.w-nav-links a:hover {
    color: var(--w-text-light);
}

.w-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--w-gradient);
    transition: width var(--w-duration) ease;
}

.w-nav-links a:hover::after {
    width: 100%;
}

/* Products dropdown */
.w-nav-dropdown {
    position: relative;
}

.w-nav-dropdown-trigger {
    cursor: pointer;
}

.w-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    background: var(--w-night);
    border: 1px solid var(--w-twilight);
    border-radius: var(--w-radius-lg);
    padding: 12px 0;
    min-width: 200px;
    box-shadow: var(--w-shadow-lg);
    z-index: 1001;
}

.w-nav-dropdown:hover .w-nav-dropdown-menu {
    display: block;
}

.w-nav-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--w-text-silver);
    transition: all 0.2s;
}

.w-nav-dropdown-menu a:hover {
    color: var(--w-text-light);
    background: rgba(107, 47, 214, 0.08);
}

.w-nav-dropdown-menu a::after {
    display: none;
}

.w-nav-cta {
    background: var(--w-violet);
    color: var(--w-text-light);
    padding: 8px 20px;
    border-radius: var(--w-radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--w-duration) ease;
    text-decoration: none;
}

.w-nav-cta:hover {
    background: var(--w-purple);
    box-shadow: 0 0 25px rgba(107, 47, 214, 0.4);
    color: var(--w-text-light);
}

.w-nav-cta::after {
    display: none !important;
}

/* Mobile toggle */
.w-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.w-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--w-text-light);
    border-radius: 2px;
    transition: all 0.3s;
}


/* ============================================================
   FOOTER (.w-footer)
   ============================================================ */
.w-footer {
    background: var(--w-night);
    border-top: 1px solid var(--w-twilight);
    padding: var(--w-space-2xl) 0 var(--w-space-lg);
}

.w-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: var(--w-space-xl);
    margin-bottom: var(--w-space-xl);
}

.w-footer-brand {
    max-width: 280px;
}

.w-footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--w-space-md);
    text-decoration: none;
}

.w-footer-brand-logo img {
    width: 32px;
    height: 32px;
}

.w-footer-brand-logo span {
    font-family: var(--w-font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--w-violet);
}

.w-footer-tagline {
    font-size: 14px;
    color: var(--w-text-slate);
    line-height: 1.6;
    margin-bottom: var(--w-space-md);
}

.w-footer-contact {
    font-size: 13px;
    color: var(--w-text-slate);
    line-height: 1.8;
}

.w-footer-col h4 {
    font-family: var(--w-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--w-text-light);
    margin-bottom: var(--w-space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.w-footer-col a {
    display: block;
    font-size: 14px;
    color: var(--w-text-slate);
    margin-bottom: var(--w-space-sm);
    transition: color 0.2s;
    text-decoration: none;
}

.w-footer-col a:hover {
    color: var(--w-purple);
}

.w-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--w-space-lg);
    border-top: 1px solid var(--w-twilight);
    font-size: 13px;
    color: var(--w-text-slate);
    flex-wrap: wrap;
    gap: var(--w-space-md);
}


/* ============================================================
   HERO (.w-hero)
   ============================================================ */
.w-hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
}

.w-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(107, 47, 214, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.w-hero-pill {
    margin-bottom: var(--w-space-lg);
}

.w-hero h1 {
    max-width: 900px;
    margin: 0 auto var(--w-space-lg);
    letter-spacing: -1px;
}

.w-hero-sub {
    font-size: 18px;
    color: var(--w-text-silver);
    max-width: 640px;
    margin: 0 auto var(--w-space-xl);
    line-height: 1.7;
}

.w-hero-actions {
    display: flex;
    gap: var(--w-space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--w-space-2xl);
}

.w-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--w-space-2xl);
    flex-wrap: wrap;
}

.w-hero-stat { text-align: center; }

.w-hero-stat-value {
    display: block;
    font-family: var(--w-font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--w-purple);
}

.w-hero-stat-label {
    font-size: 12px;
    color: var(--w-text-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================================
   PRODUCT CARDS (.w-product-card)
   ============================================================ */
.w-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--w-space-lg);
}

.w-product-card {
    background: var(--w-night);
    border: 1px solid var(--w-twilight);
    border-radius: var(--w-radius-lg);
    padding: 28px;
    transition: all var(--w-duration) ease;
    position: relative;
    overflow: hidden;
}

.w-product-card:hover {
    border-color: var(--w-violet);
    box-shadow: var(--w-shadow-glow);
    transform: translateY(-4px);
}

.w-product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--w-gradient);
    opacity: 0;
    transition: opacity var(--w-duration) ease;
}

.w-product-card:hover::before {
    opacity: 1;
}

.w-product-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--w-radius-md);
    background: rgba(124, 58, 237, 0.12);
    color: var(--w-purple);
    font-size: 1.5rem;
    margin-bottom: var(--w-space-md);
}

.w-product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--w-space-sm);
}

.w-product-card p {
    font-size: 0.95rem;
    color: var(--w-text-silver);
    line-height: 1.6;
    margin-bottom: var(--w-space-md);
}

.w-product-card-features {
    list-style: none;
    margin-bottom: var(--w-space-md);
}

.w-product-card-features li {
    font-size: 13px;
    color: var(--w-text-silver);
    padding: 3px 0 3px 20px;
    position: relative;
}

.w-product-card-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--w-green);
    font-weight: 700;
}


/* ============================================================
   TIER / PRICING CARDS (.w-tier-card)
   ============================================================ */
.w-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--w-space-lg);
    align-items: start;
}

.w-tier-card {
    background: var(--w-night);
    border: 1px solid var(--w-twilight);
    border-radius: var(--w-radius-xl);
    padding: 32px;
    position: relative;
    transition: all var(--w-duration) ease;
}

.w-tier-card:hover {
    border-color: var(--w-violet);
    transform: translateY(-4px);
}

.w-tier-card.featured {
    border-color: var(--w-violet);
    box-shadow: var(--w-shadow-glow);
}

.w-tier-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.w-tier-card-name {
    font-family: var(--w-font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--w-purple);
    margin-bottom: 8px;
}

.w-tier-card-price {
    font-family: var(--w-font-display);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.w-tier-card-period {
    font-size: 13px;
    color: var(--w-text-silver);
    margin-bottom: var(--w-space-md);
}

.w-tier-card-desc {
    font-size: 14px;
    color: var(--w-text-silver);
    line-height: 1.6;
    margin-bottom: 20px;
}

.w-tier-card-divider {
    height: 1px;
    background: var(--w-twilight);
    margin: var(--w-space-lg) 0;
}

.w-tier-card-features {
    list-style: none;
    margin-bottom: var(--w-space-lg);
}

.w-tier-card-features li {
    font-size: 14px;
    color: var(--w-text-silver);
    padding: 5px 0 5px 24px;
    position: relative;
}

.w-tier-card-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--w-green);
    font-weight: 700;
}


/* ============================================================
   CTA SECTION (.w-cta-section)
   ============================================================ */
.w-cta-section {
    text-align: center;
    padding: var(--w-space-3xl) 0;
    position: relative;
}

.w-cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(107, 47, 214, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.w-cta-section h2 {
    margin-bottom: var(--w-space-md);
}

.w-cta-section p {
    max-width: 540px;
    margin: 0 auto var(--w-space-xl);
    font-size: 16px;
}


/* ============================================================
   "A WaHoOLA Product" BADGE (.w-badge)
   ============================================================ */
.w-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-family: var(--w-font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--w-text-slate);
    border: 1px solid var(--w-twilight);
    border-radius: var(--w-radius-full);
}

.w-badge img {
    width: 16px;
    height: 16px;
}


/* ============================================================
   STEPS (.w-steps)
   ============================================================ */
.w-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--w-space-xl);
    counter-reset: step;
}

.w-step {
    text-align: center;
}

.w-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--w-radius-round);
    background: var(--w-gradient);
    font-family: var(--w-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--w-space-lg);
}

.w-step h3 {
    font-size: 1.15rem;
    margin-bottom: var(--w-space-sm);
}

.w-step p {
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}


/* ============================================================
   TESTIMONIALS (.w-testimonial)
   ============================================================ */
.w-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--w-space-lg);
}

.w-testimonial {
    background: var(--w-night);
    border: 1px solid var(--w-twilight);
    border-radius: var(--w-radius-lg);
    padding: 28px;
}

.w-testimonial-stars {
    color: #FBBF24;
    font-size: 1.1rem;
    margin-bottom: var(--w-space-md);
    letter-spacing: 2px;
}

.w-testimonial-quote {
    font-size: 15px;
    color: var(--w-text-silver);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--w-space-lg);
}

.w-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.w-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--w-radius-round);
    background: var(--w-dusk);
    border: 1px solid var(--w-violet);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--w-font-mono);
    font-size: 13px;
    color: var(--w-purple);
}

.w-testimonial-name {
    font-size: 14px;
    font-weight: 500;
}

.w-testimonial-role {
    font-size: 12px;
    color: var(--w-text-slate);
}


/* ============================================================
   FAQ (.w-faq)
   ============================================================ */
.w-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--w-space-md);
}

.w-faq-item {
    background: var(--w-night);
    border: 1px solid var(--w-twilight);
    border-radius: var(--w-radius-md);
    overflow: hidden;
}

.w-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--w-space-lg);
    font-family: var(--w-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--w-text-light);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
}

.w-faq-question:hover {
    color: var(--w-purple);
}

.w-faq-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--w-text-slate);
    transition: transform var(--w-duration) ease;
}

.w-faq-item.active .w-faq-icon {
    transform: rotate(45deg);
}

.w-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.w-faq-item.active .w-faq-answer {
    max-height: 500px;
}

.w-faq-answer-inner {
    padding: 0 var(--w-space-lg) var(--w-space-lg);
    color: var(--w-text-silver);
    line-height: 1.7;
    font-size: 0.95rem;
}


/* ============================================================
   CONTACT FORM (.w-contact)
   ============================================================ */
.w-contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--w-space-xl);
    align-items: start;
}

.w-contact-form {
    background: var(--w-dusk);
    border: 1px solid var(--w-twilight);
    border-radius: var(--w-radius-lg);
    padding: 32px;
}

.w-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--w-space-md);
}

.w-form-group {
    margin-bottom: var(--w-space-md);
}

.w-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--w-text-silver);
    margin-bottom: 6px;
}

.w-form-group input,
.w-form-group select,
.w-form-group textarea {
    width: 100%;
    background: var(--w-night);
    border: 1px solid var(--w-twilight);
    color: var(--w-text-light);
    padding: 12px 16px;
    border-radius: var(--w-radius-md);
    font-family: var(--w-font-body);
    font-size: 14px;
    transition: border-color 0.2s;
}

.w-form-group input:focus,
.w-form-group select:focus,
.w-form-group textarea:focus {
    border-color: var(--w-violet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 47, 214, 0.2);
}

.w-form-group textarea {
    resize: vertical;
    min-height: 80px;
}


/* ============================================================
   RESPONSIVE — Components
   ============================================================ */

@media (max-width: 768px) {
    /* Nav */
    .w-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(19, 20, 31, 0.95);
        backdrop-filter: blur(20px);
        padding: var(--w-space-lg);
        gap: var(--w-space-md);
        border-bottom: 1px solid var(--w-twilight);
    }

    .w-nav-links.open {
        display: flex;
    }

    .w-nav-toggle {
        display: flex;
    }

    .w-nav-dropdown-menu {
        position: static;
        transform: none;
        margin-top: 8px;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 var(--w-space-md);
    }

    /* Hero */
    .w-hero {
        padding: 120px 0 60px;
    }

    .w-hero-stats {
        gap: var(--w-space-lg);
    }

    /* Product grid */
    .w-product-grid {
        grid-template-columns: 1fr;
    }

    /* Tier grid */
    .w-tier-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .w-steps {
        grid-template-columns: 1fr;
        gap: var(--w-space-lg);
    }

    /* Footer */
    .w-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--w-space-lg);
    }

    .w-footer-brand {
        grid-column: 1 / -1;
    }

    .w-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Contact */
    .w-contact-grid {
        grid-template-columns: 1fr;
    }

    .w-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .w-footer-grid {
        grid-template-columns: 1fr;
    }

    .w-hero-stats {
        flex-direction: column;
        gap: var(--w-space-md);
    }
}
