/**
 * TrackTech Theme Extra Styles
 * 
 * Additional styles for components and utilities
 */

/* ============================================
   Mobile Navigation
   ============================================ */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* ============================================
   Font Awesome Fixes - Force Correct Font & Weight
   ============================================ */
.fa,
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}



.mobile-nav.active {
    max-height: 400px;
    padding: var(--spacing-6) 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.mobile-nav a {
    display: block;
    padding: var(--spacing-3) 0;
    color: var(--color-white);
    font-size: var(--font-size-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   Video Modal
   ============================================ */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 900px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 40px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.video-modal-close:hover {
    opacity: 1;
}

.video-modal-iframe {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.video-modal-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-dark);
    transform: translateY(-5px);
}

/* ============================================
   NUCLEAR SCROLL FIX: Force scrollability on all pages
   ============================================ */
html,
body {
    overflow: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    position: static !important;
}

#page,
.site,
.site-main {
    overflow: visible !important;
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
}

/* ============================================
   Industry Specific Hero Styles
   ============================================ */
.hero-real-estate {
    background: linear-gradient(135deg, #1A365D 0%, #2D3748 100%);
    color: var(--color-white);
}

.hero-healthcare {
    background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
    color: var(--color-white);
}

.hero-legal {
    background: #2D3748;
    color: var(--color-white);
}

.hero-saas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-white);
}

.hero-restaurant {
    background: linear-gradient(135deg, #744210 0%, #975A16 100%);
    color: var(--color-white);
}

.hero-construction {
    background: #1A202C;
    color: var(--color-white);
}

.hero-fitness {
    background: linear-gradient(135deg, #C53030 0%, #9B2C2C 100%);
    color: var(--color-white);
}

/* Ensure hero content inherits color from parent hero style */
.hero-real-estate .hero-title,
.hero-healthcare .hero-title,
.hero-legal .hero-title,
.hero-saas .hero-title,
.hero-restaurant .hero-title,
.hero-construction .hero-title,
.hero-fitness .hero-title {
    color: var(--color-white);
}

.hero-real-estate .hero-subtitle,
.hero-healthcare .hero-subtitle,
.hero-legal .hero-subtitle,
.hero-saas .hero-subtitle,
.hero-restaurant .hero-subtitle,
.hero-construction .hero-subtitle,
.hero-fitness .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}