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

:root {
    --primary: #2D407D;
    --secondary: #f7931e;
    --dark: #1a274f;
    --text: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    overflow-x: hidden;
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo img {
    height: 60px;
    width: auto;
}

nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:not(.btn-header):after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

nav a:not(.btn-header):hover:after {
    width: 100%;
}

nav a:hover {
    color: var(--secondary);
}

.btn-header {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-header:hover {
    background: #e08518;
    transform: translateY(-2px);
}

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(45, 64, 125, 0.92), rgba(26, 39, 79, 0.88)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 85px;
    position: relative;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 3.2em;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-block;
    transition: all 0.3s;
    border: 2px solid var(--secondary);
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: #e08518;
    border-color: #e08518;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 147, 30, 0.3);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1em;
    opacity: 0.9;
}

/* Quem Somos */
#quem-somos {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2em;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), #ffa940);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1em;
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(45,64,125,0.8), rgba(247,147,30,0.6));
}

.about-image:after {
    content: '15+ Anos de Excelência';
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    z-index: 2;
}

/* Serviços */
#servicos {
    padding: 100px 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover:before {
    transform: scaleX(1);
}

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

.service-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.service-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Filosofia */
#filosofia {
    padding: 100px 0;
    background: var(--primary);
    color: var(--white);
}

.section-header.white h2,
.section-header.white p {
    color: var(--white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.philosophy-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.philosophy-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.philosophy-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.philosophy-card h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: var(--secondary);
}

.philosophy-card p,
.philosophy-card ul {
    opacity: 0.95;
    line-height: 1.8;
    flex-grow: 1;
}

.philosophy-card ul {
    list-style: none;
}

.philosophy-card ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.philosophy-card ul li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Galeria */
#galeria {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    background: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,64,125,0.95), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: white;
    font-weight: 600;
    font-size: 1.1em;
}

.cta-section {
    text-align: center;
    margin-top: 60px;
}

/* FAQ */
#faq {
    padding: 100px 0;
    background: var(--light-bg);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1em;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-icon {
    font-size: 1.5em;
    color: var(--secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
}

/* Contato */
#contato {
    padding: 100px 0;
    background: var(--dark);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1em;
    transition: all 0.3s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form button {
    width: 100%;
    padding: 18px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.contact-form button:hover {
    background: #e08518;
    transform: translateY(-2px);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info h3 {
    font-size: 1.8em;
    color: var(--secondary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
}

.contact-item-text h4 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.contact-item-text p {
    opacity: 0.9;
    line-height: 1.6;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 10px;
    border: 2px solid #4CAF50;
}

.form-success h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 2em;
}

.form-success p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    border: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* Modal - CORRIGIDO */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark);
    padding: 30px;
    border-radius: 15px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    color: white;
    animation: fadeInUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 5px 10px;
    line-height: 1;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.modal-content h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.5em;
    padding-right: 30px;
}

.modal-content form input,
.modal-content form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.95em;
    transition: all 0.3s;
    font-family: inherit;
}

.modal-content form input:focus,
.modal-content form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
}

.modal-content form input::placeholder,
.modal-content form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.modal-content form textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-content form button {
    width: 100%;
    padding: 14px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 10px;
}

.modal-content form button:hover {
    background: #e08518;
    transform: translateY(-2px);
}

.modal-content form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: #0f1829;
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

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

/* Honeypot */
#sobrenome_fantasma,
#sobrenome_fantasma_modal {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    z-index: -10 !important;
    pointer-events: none !important;
}

/* Responsividade */
@media (max-width: 1024px) {
    .services-grid,
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 0;
        gap: 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    nav.active {
        left: 0;
    }

    nav a {
        font-size: 1.2em;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .stats-row,
    .services-grid,
    .philosophy-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2 {
        font-size: 2em;
    }

    .philosophy-card {
        min-height: auto;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    .about-image {
        height: 300px;
    }

    .modal-content {
        padding: 25px;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .btn-primary {
        padding: 15px 30px;
        font-size: 1em;
    }

    .stats-row {
        gap: 20px;
    }

    .stat-number {
        font-size: 2.2em;
    }

    .faq-question {
        font-size: 1em;
        padding: 20px;
    }

    .faq-question span:first-child {
        padding-right: 10px;
    }

    .modal-content {
        padding: 20px;
        margin: 10px;
    }

    .modal-content h3 {
        font-size: 1.3em;
    }
}