/**
 * NONETRACE Custom Styles for WordPress
 * Optimized for Astra Theme
 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-teal: #00D9A3;
    --primary-blue: #1B2B5E;
    --light-bg: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --text-dark: #1B2B5E;
    --text-medium: #6C757D;
    --text-light: #ADB5BD;
}

/* ===== GLOBAL OVERRIDES ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Remove default Astra margins for homepage */
.page-template-template-home .site-content {
    padding: 0;
}

.page-template-template-home .ast-container {
    max-width: 100%;
    padding: 0;
}

.page-template-template-home #primary {
    margin: 0;
    padding: 0;
}

/* ===== HEADER STYLING ===== */
/* Strong overrides to prevent Astra blue header */
.site-header,
.main-header-bar,
.ast-primary-header,
.site-header .main-header-bar,
.ast-header-break-point .site-header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray) !important;
    padding: 20px 60px !important;
    transition: all 0.3s ease;
}

.site-header.scrolled,
.main-header-bar.scrolled {
    padding: 12px 60px !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Menu link colors override */
.site-header a,
.main-header-menu a,
.ast-primary-header a,
.main-navigation a {
    color: var(--text-dark) !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-header a:hover,
.main-header-menu a:hover,
.main-navigation a:hover {
    color: var(--primary-teal) !important;
}

.custom-logo-link img {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
    transition: height 0.3s ease;
}

.site-header.scrolled .custom-logo-link img {
    height: 40px !important;
    max-height: 40px !important;
}

/* Menu styling */
.main-navigation ul,
.main-header-menu,
.ast-header-navigation {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-navigation a,
.main-header-menu a {
    color: var(--text-dark) !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-header-menu a:hover {
    color: var(--primary-teal) !important;
}

.main-navigation .menu-item:last-child a,
.main-header-menu .menu-item:last-child a {
    background: var(--primary-teal) !important;
    color: white !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
}

.main-navigation .menu-item:last-child a:hover,
.main-header-menu .menu-item:last-child a:hover {
    background: var(--primary-blue) !important;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.nonetrace-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.05), rgba(27, 43, 94, 0.05));
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    padding: 0 60px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nonetrace-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 28px;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

.nonetrace-hero h1 .highlight {
    color: var(--primary-teal);
}

.nonetrace-hero .subtitle {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--text-medium);
    margin-bottom: 48px;
    line-height: 1.5;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary {
    background: var(--primary-teal);
    color: white !important;
    padding: 18px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--primary-teal);
}

.btn-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 217, 163, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue) !important;
    padding: 18px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white !important;
    transform: translateY(-3px);
}

.trust-badges {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.trust-badge {
    font-size: 14px;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badge::before {
    content: '✓';
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 18px;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-hint svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-teal);
}

/* ===== SECTION COMMON ===== */
.nonetrace-homepage section {
    padding: 100px 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.nonetrace-homepage section.visible {
    opacity: 1;
    transform: translateY(0);
}

.nonetrace-hero {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-tag {
    color: var(--primary-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-blue);
    line-height: 1.3;
}

.section-description {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 700px;
}

/* ===== INTRO SECTION ===== */
.intro-section {
    background: white;
    text-align: center;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-box {
    padding: 30px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--primary-teal);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-medium);
    font-weight: 500;
}

/* ===== SPLIT SECTIONS ===== */
.split-section .section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-section.reverse .section-container {
    direction: rtl;
}

.split-section.reverse .section-container > * {
    direction: ltr;
}

.split-content h2 {
    margin-bottom: 24px;
}

.split-content p {
    margin-bottom: 20px;
}

.split-content ul {
    list-style: none;
    margin: 32px 0;
    padding: 0;
}

.split-content li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.6;
}

.split-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 20px;
}

.video-box {
    aspect-ratio: 16/9;
    background: var(--light-gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.video-box::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-teal);
    border-radius: 50%;
    opacity: 0.3;
}

.video-box::after {
    content: 'Video with AI Avatar';
    position: absolute;
    bottom: 20px;
    background: var(--primary-teal);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-link {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    background: var(--light-gray);
    text-align: center;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--medium-gray);
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    border-radius: 12px 12px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-teal);
    box-shadow: 0 12px 30px rgba(0, 217, 163, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    border: 2px solid var(--primary-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-teal);
    fill: none;
    stroke-width: 2;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 20px;
}

/* ===== TECHNOLOGY SECTION ===== */
.tech-section {
    background: white;
    text-align: center;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.tech-feature {
    padding: 32px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 2px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.tech-feature:hover {
    background: white;
    border-color: var(--primary-teal);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 217, 163, 0.15);
}

.tech-feature-icon {
    margin-bottom: 20px;
}

.tech-feature-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary-teal);
    fill: none;
    stroke-width: 2;
}

.tech-feature h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-blue);
}

.tech-feature p {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.6;
}

/* ===== VISION SECTION ===== */
.vision-section {
    background: white;
    text-align: center;
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
}

.vision-quote {
    font-size: 28px;
    font-style: italic;
    color: var(--primary-blue);
    line-height: 1.6;
    margin: 40px 0;
    padding: 40px;
    background: var(--light-gray);
    border-left: 5px solid var(--primary-teal);
    border-radius: 8px;
}

/* ===== CTA SECTION ===== */
.cta-wrapper {
    padding: 100px 60px;
}

.cta-section {
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    border-radius: 16px;
    text-align: center;
    padding: 80px 60px;
}

.cta-section .section-title {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 40px;
}

/* ===== FOOTER OVERRIDES ===== */
.site-footer {
    background: var(--primary-blue) !important;
    color: white;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-teal);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .split-section .section-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .split-section.reverse .section-container {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 24px !important;
    }

    .nonetrace-homepage section,
    .cta-wrapper {
        padding: 60px 24px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 24px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-navigation ul {
        gap: 20px;
        flex-direction: column;
    }
}
