/* Variáveis de Identidade Visual */
:root {
    --green: #009b3a;
    --blue: #002776;
    --yellow: #fedf00;
    --white: #ffffff;
    --off-white: #fcfdfe;
    --text-dark: #2d3436;
    --text-soft: #636e72;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --poppins: 'Poppins', sans-serif;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--poppins);
}

html { scroll-behavior: smooth; }

body {
    background: var(--off-white);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Elementos de Fundo */
.glass-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--green);
    top: -100px;
    left: -150px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blue);
    bottom: 5%;
    right: -180px;
}

/* --- HEADER --- */
header {
    width: 100%;
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    transition: 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 70px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue);
}

.logo-text span {
    color: var(--green);
    font-weight: 300;
}

/* Links Desktop */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active-btn {
    color: var(--green);
    font-weight: 700;
}

.btn-nav {
    background: var(--green);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 155, 58, 0.15);
    font-weight: 500 !important;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--blue);
}

/* --- HOME HERO --- */
.home-hero {
    padding: 180px 0 100px;
    text-align: center;
}

.tag-hero {
    background: #e8f5e9;
    color: var(--green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 25px;
}

.home-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--blue);
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero h1 span { color: var(--green); }

.home-hero p {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--blue);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0, 39, 118, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #003da8;
}

.btn-secondary {
    background: white;
    color: var(--blue);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid #e3f2fd;
}

.btn-secondary:hover {
    border-color: var(--blue);
}

/* --- FEATURES SECTION --- */
.features-section { padding: 50px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2.5rem; color: var(--green); margin-bottom: 20px; }
.feature-card h3 { color: var(--blue); margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { color: var(--text-soft); font-size: 0.95rem; }

/* --- SERVICES PREVIEW (UPDATED IMAGES) --- */
.services-preview { padding: 80px 0 50px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--blue); margin-bottom: 15px; }
.section-header h2 span { color: var(--green); }
.section-header p { color: var(--text-soft); }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.p-card {
    background: white;
    padding: 0 0 40px 0; /* Padding inferior apenas, topo zerado para imagem */
    border-radius: 25px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
    overflow: hidden; /* Para imagem não vazar */
    text-align: center;
}

.p-card:hover { border-color: var(--green); transform: translateY(-5px); }

/* IMAGEM DO SERVIÇO */
.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 25px;
    border-bottom: 5px solid var(--green);
}

.p-card h3 { font-size: 1.4rem; color: var(--blue); margin-bottom: 15px; padding: 0 25px; }
.p-card p { color: var(--text-soft); margin-bottom: 25px; line-height: 1.6; padding: 0 25px; }
.p-card a { 
    color: var(--blue); 
    text-decoration: none; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    justify-content: center; /* Centraliza botão */
    gap: 8px; 
    font-size: 0.9rem; 
    padding-bottom: 10px;
}
.p-card a:hover { color: var(--green); gap: 12px; transition: 0.3s; }

/* --- GALERIA DE FOTOS --- */
.gallery-section {
    padding: 50px 0 100px;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    border: 2px solid #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- FOOTER --- */
.modern-footer { padding: 80px 0 40px; border-top: 1px solid #eee; background: white; }
.footer-flex { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer-info p, .footer-contacts p { color: #a4b0be; font-size: 0.9rem; margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.footer-contacts a { text-decoration: none; color: inherit; transition: 0.3s; }
.footer-contacts a:hover { color: var(--green); }
.copy { width: 100%; text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #f5f5f5; font-size: 0.8rem; color: #ccc; }

.social-bar { display: flex; gap: 15px; }
.social-bar a {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}
.social-bar a:hover { background: var(--green); color: white; }

/* --- MOBILE --- */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 50px;
    transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -20px 0 50px rgba(0,0,0,0.05);
    display: none;
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: none;
}
.side-menu.active { right: 0; }
.menu-overlay.show { opacity: 1; visibility: visible; }
.side-header { display: flex; justify-content: flex-end; font-size: 2.2rem; color: #8395a7; margin-bottom: 50px; cursor: pointer; }
.side-nav { display: flex; flex-direction: column; gap: 35px; }
.side-nav a { text-decoration: none; font-size: 1.4rem; font-weight: 700; color: var(--blue); }
.side-nav a.active-mobile { color: var(--green); }
.btn-side { color: var(--green) !important; border-bottom: 4px solid var(--yellow); width: max-content; }

@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .side-menu, .menu-overlay { display: block; }
    .home-hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}