/* ==========================================================================
   PRODRIVERS - HIGH-END ENHANCEMENTS
   Conversion, NLP, Responsive Polish, Premium Aesthetics
   ========================================================================== */

:root {
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   REVEAL ANIMATIONS (Scroll-triggered)
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up.delay-1 { transition-delay: 0.1s; }
.reveal-up.delay-2 { transition-delay: 0.2s; }
.reveal-up.delay-3 { transition-delay: 0.3s; }
.reveal-up.delay-4 { transition-delay: 0.4s; }
.reveal-up.delay-5 { transition-delay: 0.5s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   RESPONSIVE SECTION SPACING (Mobile-first polish)
   ========================================================================== */
@media (max-width: 768px) {
    section {
        padding: 4rem 1.25rem !important;
    }
    .section-header {
        margin-bottom: 2.5rem !important;
    }
    .section-title {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
    }
    .section-subtitle {
        font-size: 1rem !important;
    }
    .hero-section {
        padding: 3rem 1.25rem 3.5rem !important;
        min-height: 60vh !important;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem) !important;
    }
    .hero-subtitle {
        font-size: 1.05rem !important;
        margin-bottom: 2rem !important;
    }
    .hero-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    .trust-strip {
        padding: 1.25rem 1rem !important;
    }
    .trust-strip-header {
        font-size: 0.9rem !important;
    }
    .trust-items-grid {
        flex-direction: column;
        gap: 1rem !important;
        font-size: 0.9rem !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .feature-card {
        padding: 2rem 1.5rem !important;
    }
    .local-seo-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .local-seo-content h2 {
        font-size: 1.75rem !important;
    }
    .local-list {
        grid-template-columns: 1fr !important;
    }
    .testimonial-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .testimonial-card {
        padding: 2rem 1.5rem !important;
    }
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .pricing-card {
        padding: 2rem 1.5rem !important;
    }
    .pricing-card.popular {
        transform: none; /* Avoid scale on small screens */
    }
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem !important;
    }
    .current-price {
        font-size: 2.25rem !important;
    }
}

/* ==========================================================================
   STICKY CTA BAR (Mobile conversion)
   ========================================================================== */
.sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky-cta, 4000);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.875rem 1.25rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .sticky-cta-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    body { padding-bottom: 72px; } /* Prevent content from hiding behind sticky bar */
}

/* Hide sticky CTA when user has scrolled past packages (optional - can be toggled via JS) */
.sticky-cta-bar[aria-hidden="true"] {
    display: none !important;
}

.sticky-cta-bar .cta-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.sticky-cta-bar .cta-btn {
    flex-shrink: 0;
    background: var(--brand-primary);
    color: white !important;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm, 10px);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 20px -4px var(--brand-glow-40, rgba(22, 163, 74, 0.35));
    transition: all 0.2s ease;
}

.sticky-cta-bar .cta-btn:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -4px var(--brand-glow-40, rgba(22, 163, 74, 0.35));
}

/* ==========================================================================
   URGENCY & SOCIAL PROOF BADGES
   ========================================================================== */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #fcd34d;
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.live-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-section .live-count-badge {
    color: #cbd5e1;
}

.live-count-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 2px var(--brand-glow-22, rgba(34, 197, 94, 0.25));
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ==========================================================================
   TRUST BADGES (Footer & conversion)
   ========================================================================== */
.trust-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2rem;
    padding: 1.5rem 0;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.trust-badge-item svg {
    width: 18px;
    height: 18px;
    color: var(--brand-primary);
    flex-shrink: 0;
}

/* ==========================================================================
   PREMIUM CARD HOVER (Micro-interactions)
   ========================================================================== */
.feature-card,
.pricing-card,
.testimonial-card,
.faq-item {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pricing-card:not(.popular):hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FOCUS STATES (Accessibility)
   ========================================================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   SMOOTH SCROLL
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   FOOTER ENHANCEMENTS
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark, #0f172a);
    color: #94a3b8;
    padding: 5rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: var(--layout-max, 1220px);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand-name {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4,
.footer-quick-links h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul,
.footer-quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links li,
.footer-quick-links li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-contact a,
.footer-quick-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-quick-links a:hover {
    color: var(--brand-primary);
}

.footer-contact li {
    color: #cbd5e1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* Conversion extras grid */
/* ==========================================================================
   QUICK LINKS BAR - Light, flows from hero
   ========================================================================== */
.quick-links-bar {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}
.quick-links-inner {
    max-width: var(--layout-max, 1220px);
    margin: 0 auto;
}
.quick-links-title-light {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 1.5rem 0;
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 840px;
    margin: 0 auto;
}
.quick-link-btn-light {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.quick-link-btn-light:hover {
    border-color: var(--brand-primary);
    background: var(--brand-tint-subtle, #f0fdf4);
    box-shadow: 0 6px 20px -6px var(--brand-glow-22, rgba(22, 163, 74, 0.12));
}
.quick-link-emoji {
    font-size: 1.5rem;
}
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 0.75rem;
    }
    .quick-link-btn-light {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Social Icons */
.social-icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
    transition: all 0.2s ease;
}
.social-icon-link:hover {
    background: var(--brand-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}
.social-icon-link svg {
    width: 20px;
    height: 20px;
}
.social-icon-dark {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}
.social-icon-dark:hover {
    background: var(--brand-primary) !important;
    color: white !important;
}

@media (max-width: 768px) {
    .conversion-extras .conversion-card {
        padding: 2rem 1.5rem !important;
    }
}

/* Final CTA button */
.btn-final-cta:hover {
    background: var(--brand-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px var(--brand-glow-40, rgba(22, 163, 74, 0.4)) !important;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 1.25rem 5rem !important; /* Extra bottom for sticky CTA */
    }
    .footer-grid {
        gap: 2.5rem;
    }
}
