/* Critical CSS - Shared across all pages */
/* Performance-focused styles loaded immediately */

/* Reset and base styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Hero section styles */
.hero { 
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fef7f0 0%, #ffb382 100%);
    padding: 120px 0 100px 0;
}

/* Main hero section (with video) needs more space */
.hero.main-hero {
    min-height: 70vh;
    padding: 80px 0 60px 0;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
}

.hero-video-wrapper {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* Layout and typography */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

h1 { 
    font-size: 3rem; 
    font-weight: bold; 
    margin-bottom: 1rem; 
    color: #2c3e50; 
}

.hero h1 { 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin-bottom: 1rem; 
    color: #2c3e50;
    line-height: 1.4;
    overflow: visible;
}

.hero-subtitle { 
    font-size: 1.25rem; 
    margin-bottom: 2rem; 
    color: #546e7a; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
}

/* Button styles */
.cta-button { 
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3);
}

/* Header styles */
header { 
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

header.scrolled .logo-icon {
    opacity: 0;
    width: 0;
    margin: 0;
}

.logo-text { 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: #2c3e50; 
    transition: all 0.3s ease;
    opacity: 0;
    width: 0;
    overflow: hidden;
}

header.scrolled .logo-text {
    opacity: 1;
    width: auto;
}

/* Header height adjustments */
header {
    padding: 1.5rem 0;
}

header.scrolled {
    padding: 0.75rem 0;
}

.logo-robot {
    font-family: 'Oxanium', monospace;
    font-weight: 700;
}

.logo-rails {
    font-family: 'Montserrat Underline', sans-serif;
    font-weight: 500;
}

.nav-center { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
}

.nav-center a { 
    text-decoration: none; 
    color: #2c3e50; 
    font-weight: 500; 
    font-family: 'Montserrat Underline', sans-serif;
}

.nav-center a:hover, 
.nav-center a.active { 
    color: #e67e22; 
}

.nav-cta {
    margin-left: 2rem;
}

.nav-cta .contact-button {
    background: #e67e22;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat Underline', sans-serif;
    transition: all 0.2s ease;
    border: 2px solid #e67e22;
}

.nav-cta .contact-button:hover {
    background: #d35400;
    border-color: #d35400;
    transform: translateY(-1px);
}

/* Legacy nav-links for compatibility */
.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center;
}

.nav-links a:not(.contact-button) { 
    text-decoration: none; 
    color: #2c3e50; 
    font-weight: 500; 
    font-family: 'Montserrat Underline', sans-serif;
}

.nav-links a:hover, 
.nav-links a.active { 
    color: #e67e22; 
}

.nav-links .contact-button {
    background: #e67e22;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat Underline', sans-serif;
    transition: all 0.2s ease;
    border: 2px solid #e67e22;
    margin-left: 1rem;
}

.nav-links .contact-button:hover {
    background: #d35400;
    border-color: #d35400;
    transform: translateY(-1px);
    color: white;
}

/* Content section styles */
.content-section { 
    padding: 4rem 0; 
}

.team-section { 
    background: #f8f9fa; 
}

.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
    margin-top: 3rem; 
}

.team-card { 
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    background: #f1f3f4;
}

.team-name { 
    font-size: 1.5rem; 
    font-weight: bold; 
    margin-bottom: 0.5rem; 
    color: #2c3e50; 
}

.team-role { 
    font-size: 1rem; 
    color: #e67e22; 
    font-weight: 500; 
}

h2 { 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin-bottom: 2rem; 
    color: #2c3e50; 
    text-align: center; 
}

h3 { 
    font-size: 1.5rem; 
    font-weight: bold; 
    margin-bottom: 1rem; 
    color: #2c3e50; 
}

p { 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
    color: #555; 
}

strong { 
    color: #e67e22; 
}

a { 
    color: #e67e22; 
    text-decoration: none; 
}

a:hover { 
    text-decoration: underline; 
}

/* FAQ specific styles */
.faq-section { 
    padding: 4rem 0; 
}

.faq-intro { 
    text-align: center; 
    margin-bottom: 3rem; 
}

.faq-intro h2 { 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin-bottom: 2rem; 
    color: #2c3e50; 
}

.faq-list { 
    max-width: 800px; 
    margin: 0 auto; 
}

.faq-item {
    margin-bottom: 0.5rem;
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover { 
    border-color: #e67e22; 
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover { 
    background: #f8f9fa; 
}

.faq-chevron {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: #666;
}

.faq-item.open .faq-chevron { 
    transform: rotate(180deg); 
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    font-size: 1rem;
    color: #555;
    display: none;
}

.faq-item.open .faq-answer { 
    display: block; 
}

.faq-answer ul { 
    margin-left: 1rem; 
    margin-bottom: 1rem; 
}

.faq-answer li { 
    margin-bottom: 0.5rem; 
}

.faq-answer strong { 
    color: #e67e22; 
    font-weight: 600; 
}

/* Insights specific styles */
.insights-section { 
    padding: 4rem 0; 
}

.insights-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 3rem; 
    max-width: 1000px; 
    margin: 0 auto; 
}

.insight-card {
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #e67e22;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.insight-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

.insight-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.insight-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.read-more:hover {
    background: #d35400;
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) { 
    h1 { 
        font-size: 2rem; 
    }
    
    .hero h1 { 
        font-size: 2rem; 
    }
    
    .nav-links { 
        display: none; 
    }
    
    .team-grid { 
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    }
    
    .faq-question { 
        font-size: 1.1rem; 
        padding: 1.2rem 1.5rem; 
    }
    
    .faq-answer { 
        padding: 0 1.5rem 1.2rem; 
    }
    
    .faq-intro h2 { 
        font-size: 2rem; 
    }
    
    .insight-card { 
        padding: 2rem; 
    }
    
    .insight-title { 
        font-size: 1.5rem; 
    }
    
    .insight-meta { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0.5rem; 
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}
