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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    text-transform: none;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Secondary Header */
.secondary-header {
    background-color: #f8f9fa;
    padding: 0.25rem 0;
    padding-top: 9px;
}

.secondary-cta {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.secondary-cta-item {
    color: #333333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.secondary-cta-item:hover {
    color: #bf1e2e;
}

.secondary-cta-item i {
    font-size: 0.8rem;
    color: #bf1e2e;
}

.cta-text-mobile {
    display: none;
}

/* Navigation */
#site-nav {
    background-color: #333333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 4px;
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    margin-top: 6px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e5e5e5;
}

.nav-link.active {
    color: #e5e5e5;
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #bf1e2e;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Hero Section */
.hero {
    min-height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('/lovable-uploads/4b425dd2-8c8b-41ba-af07-8bf0d5838e21.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.cta-button:hover {
    background-color: #a01825;
    transform: translateY(-2px);
}

/* Combined Tagline and Clients Section */
.tagline-clients-section {
    background-color: white;
    padding: 80px 0;
    text-align: center;
    margin: 0;
    overflow: hidden;
}

.tagline-clients-section h2 {
    color: #333333;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 1rem;
    font-style: normal;
}

.tagline-clients-section h3 {
    color: #666666;
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
    padding-top: 10px;
}

.client-logos {
    display: flex;
    align-items: center;
    animation: scroll 60s linear infinite;
    width: calc(150px * 24);
}

.client-logos:hover {
    animation-play-state: paused;
}

.client-logos img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 2rem;
    filter: grayscale(60%);
    transition: filter 0.3s ease;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.client-logos img:hover {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-150px * 16 - 32rem));
    }
}

/* Services Section */
.services-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333333;
    font-style: normal;
}

.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.services-intro p {
    font-size: 1.1rem;
    color: #666666;
    max-width: 800px;
    margin: 0 auto;
}

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

.service {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: white;
    border: 1px solid #e5e5e5;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service .icon {
    margin-bottom: 1.5rem;
}

.service .icon i {
    font-size: 3rem;
    color: #bf1e2e;
}

.service h3 {
    color: #333333;
    margin-bottom: 1rem;
}

.service p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Impact Quote */
.impact-quote {
    background: linear-gradient(rgba(191, 30, 46, 0.8), rgba(191, 30, 46, 0.8)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.impact-quote h2 {
    font-size: 2rem;
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto;
    font-style: normal;
}

/* Contact Section */
.contact-section {
    background-color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-section h2 {
    color: #333333;
    margin-bottom: 2rem;
}

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

.contact-content p {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 2rem;
}

.contact-info {
    font-style: normal;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-info a {
    color: #bf1e2e;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #333333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background-color: #bf1e2e;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background-color: #a01825;
    transform: translateY(-2px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    /* Secondary Header */
    .secondary-header {
        padding: 0.25rem 0;
        padding-top: 9px;
    }
    
    .secondary-cta {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }
    
    .cta-text-desktop {
        display: none;
    }
    
    .cta-text-mobile {
        display: inline;
    }
    
    /* Navigation */
    #site-nav {
        margin-top: 4px;
    }
    
    .nav-container {
        height: 70px;
        padding: 10px 15px;
        justify-content: center;
    }
    
    .nav-brand {
        justify-content: center;
        flex: 1;
    }
    
    .nav-brand .logo {
        height: 31px;
        width: auto;
        margin-top: 0;
    }
    
    /* Hide desktop menu on mobile */
    .nav-menu {
        display: none;
    }
    
    /* Hero */
    .hero {
        margin-top: -20px;
        min-height: 50vh;
        background-attachment: scroll;
        background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.05)), url('/lovable-uploads/4b425dd2-8c8b-41ba-af07-8bf0d5838e21.png');
        background-size: cover;
        background-position: center;
    }
    
    .hero h1 {
        font-size: 1.55rem;
        line-height: 1.3;
    }
    
    /* Typography */
    h2 {
        font-size: 1.75rem;
    }
    
    /* Sections */
    .tagline-clients-section,
    .services-section,
    .contact-section {
        padding: 48px 0;
    }
    
    .impact-quote {
        padding: 80px 30px;
        background-attachment: scroll;
    }
    
    .impact-quote h2 {
        font-size: 1.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service {
        margin: 0 20px;
    }
    
    /* Client Logos */
    .tagline-clients-section {
        overflow: hidden;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .client-logos {
        animation: mobileScroll 40s linear infinite;
        width: auto;
    }
    
    @keyframes mobileScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 8 - 16rem));
        }
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .service {
        padding: 1.5rem;
    }
    
    .client-logos img {
        width: 120px;
        height: 120px;
        margin: 0 1rem;
    }
    
    .secondary-cta-item {
        font-size: 0.8rem;
    }
}
