/* --- DESIGN SYSTEM & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700&display=swap');

:root {
    --primary: #0088cc;
    --primary-dark: #006699;
    --primary-light: #e6f4ff;
    --secondary: #00cc99;
    --accent: #ff9900;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

section {
    padding: 100px 0;
}

/* --- COMPONENTS --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 136, 204, 0.4);
}

/* --- HEADER & NAV --- */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    /* Mantém apenas para verticalizar a container se necessário, mas container agora tem width 100% */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-only {
    display: none;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-main);
    white-space: nowrap;
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    height: 80vh;
    min-height: 650px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
        url('assets/img1.jpeg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 140px;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 40px;
    color: var(--white);
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SERVICES --- */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-body);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    display: block;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.director-card {
    background: var(--primary-light);
    padding: 32px;
    border-radius: var(--radius-md);
    border-left: 6px solid var(--primary);
}

.director-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.director-card .role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.director-card .quote {
    font-style: italic;
    font-weight: 500;
    color: var(--text-main);
}

/* --- VALUES --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.value-item {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.value-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

/* --- INFRASTRUCTURE --- */
.infra-slider {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.infra-track {
    display: flex;
    width: calc(350px * 12 + 25px * 12);
    /* Dynamic width based on slides */
    animation: scroll 40s linear infinite;
}

.infra-slide {
    flex: 0 0 350px;
    height: 250px;
    margin-right: 25px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-375px * 6));
    }
}

/* --- CONTACT --- */
.contact-section {
    background-color: var(--bg-body);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-details strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.card-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* --- POLOS SECTION --- */
.polos-section {
    background-color: var(--white);
}

.polos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.polo-card {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.polo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    background: var(--white);
}

.polo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.polo-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.polo-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.address {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
}

.address i {
    color: var(--accent);
    margin-top: 4px;
}

.polo-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.polo-wa {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #25d366;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.polo-wa:hover {
    color: #128c7e;
    transform: translateX(4px);
}

.email {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-unit {
    grid-column: span 1;
}

/* --- CONTACT SECTION REFACTOR --- */
.contact-section {
    background-color: var(--bg-body);
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--white);
}

.btn-submit {
    width: 100%;
    padding: 16px;
}

/* --- FLOATING ELEMENTS --- */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .footer-logo {
    background: white;
    padding: 8px;
    border-radius: 8px;
    height: 80px;
    margin-bottom: 24px;
    display: inline-block;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-column h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #94a3b8;
}

.footer-links li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {

    .about-grid,
    .footer-grid {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* Simplificando para mobile se necessário, ou mantendo lógica js */
    }

    .logo {
        flex: 1;
    }

    .nav-actions {
        flex: 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card:hover {
        transform: none;
    }

    .about-image::after {
        display: none;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-actions .btn-cta-nav {
        display: none;
        /* Esconde o botão desktop no mobile */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: var(--transition);
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        /* Garante flex para a lista vertical */
        padding: 40px;
        flex: none;
        /* Remove o flex: 2 do desktop */
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-only {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }
}