/*
Theme Name: GI America Gutenberg Complete
Description: Complete WordPress Block Theme for GI America with Polylang support, all pages, and proper navigation
Version: 1.0
Author: GI America
Text Domain: gi-america
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 120px; /* Fixed header spacing */
}

/* Remove problematic animations */
.fade-in,
.fade-up,
.animate-fade-in,
.animate-fade-up {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-height: 100px;
    max-height: 120px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    height: 80px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e40af;
    text-decoration: none;
}

.main-navigation {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: #f1f5f9;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher a {
    padding: 0.5rem 1rem;
    border: 1px solid #1e40af;
    border-radius: 4px;
    text-decoration: none;
    color: #1e40af;
    background: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.current {
    background: #1e40af;
    color: white;
}

.contact-info {
    font-size: 0.875rem;
    color: #1e40af;
    text-align: right;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* White Separator */
.white-separator {
    height: 120px;
    background: white;
    width: 100%;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.75rem;
    text-align: center;
}

.service-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    text-align: center;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #1e40af;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Nearshoring Section */
.nearshoring-section {
    padding: 4rem 0;
    background: white;
}

.nearshoring-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.nearshoring-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.nearshoring-text p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.nearshoring-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* White Paper Section */
.whitepaper-section {
    padding: 4rem 0;
    background: #f8fafc;
    text-align: center;
}

.whitepaper-content {
    max-width: 600px;
    margin: 0 auto;
}

.whitepaper-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.whitepaper-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.download-button {
    display: inline-block;
    background: #1e40af;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background: #1e3a8a;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.submit-button {
    background: #1e40af;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #1e3a8a;
}

/* Footer */
.site-footer {
    background: #1e40af;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

/* Language Display Rules */
.lang-en, .lang-es, .lang-fr {
    display: none;
}

body.english .lang-en,
body.spanish .lang-es,
body.french .lang-fr {
    display: block !important;
}

body.english .lang-es,
body.english .lang-fr,
body.spanish .lang-en,
body.spanish .lang-fr,
body.french .lang-en,
body.french .lang-es {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .main-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .header-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-section img {
        height: 60px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nearshoring-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.page-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.content-section p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.6;
}
