/*
Theme Name: Avante Segurança
Description: Tema personalizado para Avante Segurança e Medicina do Trabalho
Version: 1.0
Author: Avante Segurança
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2e2e2e;
    background-color: #ffffff;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #2e2e2e;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2e2e2e;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 87, 152, 0.4);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    background: #005798;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 87, 152, 0.3);
}

/* Form Section */
.form-section {
    background: white;
    padding: 80px 0;
    position: relative;
    margin-top: -50px;
    z-index: 10;
}

.form-container {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #005798;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #005798;
}

.submit-button {
    background: #005798;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background: #004080;
    transform: translateY(-2px);
}

.success-message {
    text-align: center;
    color: #28a745;
    font-weight: 600;
    margin-top: 15px;
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

/* Services Section */
.services {
    background: #005798;
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: #005798;
}

.services .section-title {
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Clients Section */
.clients {
    background: white;
    padding: 100px 0;
}

.clients .section-title {
    color: #005798;
}

.clients-slider {
    overflow: hidden;
    margin: 0 -20px;
}

.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 60px;
    align-items: center;
}

.clients-track img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.clients-track img:hover {
    filter: grayscale(0%);
}

/* Training Section */
.training {
    background: white;
    padding: 100px 0;
}

.training .section-title {
    color: #005798;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.training-card {
    background: linear-gradient(180deg, #005798 0%, #006b50 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.training-card:hover {
    transform: translateY(-10px);
}

.training-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Address Section */
.address {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #005798 0%, #006b50 100%);
    overflow: hidden;
}

.address-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.address-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.address-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.address-info {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    color: white;
}

.location-icon {
    font-size: 3rem;
}

.address-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.address-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.footer-center {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-right {
    justify-self: end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #005798;
    transform: translateY(-2px);
}

.social-link:hover svg path {
    fill: white;
}

.footer-right p {
    font-weight: 600;
    color: #2e2e2e;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 40px 30px;
        margin: 0 20px;
    }

    .form-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

    .training-grid {
        grid-template-columns: 1fr;
    }

    .address-info {
        flex-direction: column;
        text-align: center;
        margin: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-right {
        justify-self: center;
    }

    .clients-track {
        gap: 40px;
    }

    .clients-track img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .form-container {
        padding: 30px 20px;
    }

    .service-card,
    .training-card {
        padding: 30px 20px;
    }

    .address-info {
        padding: 30px 20px;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Intersection Observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}