/* --- CSS RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #0d2c4f;
    --secondary-color: #ffffff;
    --accent-color: #c6a468;
    --text-color: #e0e0e0;
    --dark-text: #333;
    --section-padding: 60px 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--dark-text);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--secondary-color);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 100px;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--accent-color);
}

/* --- HERO SECTION --- */
#hero {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: var(--secondary-color);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text p {
    font-size: 1.1rem;
    margin: 20px 0;
    color: var(--text-color);
}

.hero-image {
    flex: 0 0 300px;
}

.hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
}

/* --- BUTTONS --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.cta-button.large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- CONTENT SECTIONS --- */
.content-section {
    padding: var(--section-padding);
}

#sobre .subtitle {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- SERVICES SECTION --- */
.dark-bg {
    background-color: var(--primary-color);
}

.dark-bg h2 {
    color: var(--secondary-color);
}

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

.service-card {
    background-color: #0f345c;
    padding: 30px;
    border-radius: 10px;
    color: var(--text-color);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Adicionado para indicar que é clicável */
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: #c0c0c0;
}

/* --- CONTACT SECTION --- */
#contato {
    background-color: #f4f7f6;
}

.text-center {
    text-align: center;
}

#contato p {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* --- WHATSAPP FLOAT BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- MODAL STYLES --- */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border-radius: 10px;
    z-index: 2001;
    background-color: white;
    width: 80%;
    max-width: 600px;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    padding: 30px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    text-align: left;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content ul {
    list-style-position: inside;
    padding-left: 10px;
}
.modal-content ul li {
    margin-bottom: 10px;
}


.close-button {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #555;
}

#overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 2000;
}

#overlay.active {
    opacity: 1;
    pointer-events: all;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar nav ul {
        gap: 15px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image {
        flex-basis: 250px;
        margin-bottom: 20px;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
}