/* style.css */
/* Reset and Base Styles */
:root {
    --primary-color: #3b82f6;      /* Modern Blue */
    --primary-hover: #2563eb;
    --secondary-color: #8b5cf6;    /* Vibrant Purple */
    --dark-bg: #0f172a;           /* Deep Navy */
    --dark-card: #1e293b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-dark: #334155;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img, table {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Backgrounds */
.bg-light {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.bg-light h2, .bg-light h3, .bg-light .about-list li {
    color: var(--dark-bg);
}

.bg-light p {
    color: #475569;
}

/* Spans */
span {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 1rem;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: transparent;
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.nav-link {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 6px;
    white-space: nowrap !important;
}

.nav-link small {
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 3px;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-bg.jpg');
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), image-set(url('hero-bg.webp') type('image/webp'), url('hero-bg.jpg') type('image/jpeg'));
    
    /* A mágica acontece aqui: */
    background-size: 110%; /* Aumenta levemente para esconder as bordas */
    background-position: left top; /* Fixa no topo para cortar apenas o rodapé da foto */
    background-repeat: no-repeat;
}

/* Internal Pages Hero Override */
.hero-internal {
    min-height: 40vh;
    padding-top: 8rem;
    align-items: flex-end;
    padding-bottom: 4rem;
}

.hero-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-shape::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title span {
    color: var(--white);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: var(--dark-card);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
}

/* Diagnostic Section Specifics */
.highlight-subtitle {
    color: var(--primary-color) !important;
    font-size: 1.25rem !important;
    font-weight: 500;
}

.technical-differential {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    margin: 4rem auto 0;
    max-width: 900px;
}

.technical-differential h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.differential-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.differential-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.differential-list li strong {
    color: var(--white);
}

.differential-list li i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.cta-container {
    margin-top: 4rem;
    text-align: center;
}

.btn-large {
    padding: 1.125rem 3rem;
    font-size: 1.125rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: -10px -10px 30px rgba(0,0,0,0.1);
}

.experience-badge .years {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--dark-bg);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about-list {
    margin-bottom: 2.5rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.about-list li i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Footer Section */
.footer {
    background: #0f172a;
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-links-wrapper {
    display: flex;
    gap: 5rem;
    justify-content: flex-start;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    border: 1px solid var(--border-color);
    font-size: 1.125rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.footer-bottom {
    background: #0b1121;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Info & WhatsApp */
.contact-info {
    margin-top: 1.5rem;
}
.contact-info p {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}
.contact-info i {
    color: var(--primary-color);
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-image {
        max-width: 700px;
        margin: 0 auto;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-links-wrapper {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 3rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 1100px) {
    .header, .nav {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .menu-toggle {
        display: block;
        position: fixed;
        right: 5%;
        z-index: 9999;
        color: #FFFFFF;
        background: rgba(0, 0, 0, 0.4);
        padding: 6px 12px;
        border-radius: 6px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
    }
    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }
    .nav-link {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Ajustes do Footer no Mobile */
    .footer {
        padding: 40px 0 !important;
        overflow: hidden !important;
    }
    
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .footer-section {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .footer-links-wrapper {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 20px !important;
        align-items: center !important;
    }

    .footer-brand p {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }

    .contact-info p {
        justify-content: center !important;
    }

    .footer-bottom .container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .hero-content {
        padding: 0 20px;
        box-sizing: border-box;
    }
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    .hero-internal .hero-title {
        font-size: 1.8rem !important;
    }
    .section {
        padding: 4rem 0;
    }
    .hero {
        padding-top: 8rem;
    }
    .experience-badge {
        padding: 1.5rem;
    }
    .experience-badge .years {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Engenharia Text Content Styling */
.main-container {
    max-width: 1000px;
    margin: 40px auto;
}

.engenharia-content-section {
    background-color: #eef2f7 !important;
}

.engenharia-article {
    max-width: 1000px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #2D3748;
    font-weight: 400;
    text-align: left;
}

.engenharia-title {
    color: #003366;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.engenharia-subtitle {
    color: #003366;
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    padding-left: 15px;
    border-left: 5px solid #003366;
}

.engenharia-highlight {
    font-size: 1.25rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 1.5rem;
}

.engenharia-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.engenharia-card {
    background: #F5F5F5;
    padding: 45px;
    margin-bottom: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid #003366;
}

@media (max-width: 768px) {
    .engenharia-card {
        padding: 20px;
        margin: 10px auto;
        width: 95%;
    }
    
    .engenharia-article {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-internal .hero-title {
        font-size: 1.8rem;
    }
}

.engenharia-prova-social {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.7;
    font-size: 0.85em;
    color: #666666;
}

.engenharia-list {
    list-style-type: none;
    padding-left: 0;
}

.engenharia-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.engenharia-list li::before {
    content: "\f00c"; /* Font Awesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #003366;
    position: absolute;
    left: 0;
    top: 0;
}

.engenharia-trust-box {
    background-color: #e2e8f0;
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.engenharia-trust-box .engenharia-subtitle {
    margin-top: 0;
    text-align: center;
    border-left: none; /* Remove a barra lateral para este subtítulo centralizado */
    padding-left: 0;
}

.btn-black-cta {
    background-color: #003366;
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-black-cta:hover {
    background-color: #004d99;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,51,102,0.6);
}

/* Botão Orçamento Fixo */
.btn-fixo {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    padding: 15px 25px;
    background: #003366;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: bold;
    transition: all 0.3s ease;
    animation: pulse-soft 2s infinite;
}

.btn-fixo:hover {
    background-color: #004d99;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .btn-fixo {
        bottom: 20px;
        z-index: 9999;
    }
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 51, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0);
    }
}

/* Galeria Especializações */
.galeria-legenda {
    color: #4A4A4A;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.galeria-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Gallery Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #003366;
    color: #003366;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #003366;
    color: #FFF;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.photo-placeholder {
    width: 100%;
    height: 180px;
    background-color: #E6E8EB;
    border-radius: 8px;
    border: 2px dashed #CBD5E1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: #A0AEC0;
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    background-color: #DEE2E6;
    transform: scale(1.02);
    color: #718096;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    /* Ajuste do tamanho do título principal (H1) */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    /* Sobre e Serviços em coluna única centralizada */
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-list li {
        justify-content: center;
        text-align: left;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .service-card {
        text-align: center;
    }
    
    .service-card .icon-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    /* Ajuste de imagens para celular */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Evita que botão WhatsApp/Fixo cubra texto importante no mobile */
    .footer-bottom {
        padding-bottom: 90px;
    }
}

/* --- Alinhamento Justificado de Conteúdo --- */
p, li {
    text-align: justify;
}

/* Regras de Restrição: Manter alinhamento original em Menu, Hero, Footer e Botões */
.nav-links li, .nav-link,
.footer p, .footer-brand p, .contact-info p, .footer-links li, .footer-bottom p,
.section-header p, .hero-subtitle, .hero-mission,
.btn, .btn-fixo, .whatsapp-float, .btn-enviar-form {
    text-align: left;
}

/* Força a centralização explícita de CTAs e subtítulos de seções */
.section-header p, .footer-bottom p, 
.btn, .btn-fixo, .whatsapp-float, .btn-enviar-form {
    text-align: center !important;
}

/* ===== SEÇÃO SERVIÇOS ===== */
.servicos {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.servicos h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #2c3e50;
}

.servicos-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.servico-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-top: 4px solid #3b82f6;
  display: flex;
  flex-direction: column;
}

.servico-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.servico-card.wallbox-card {
  border-top-color: #3b82f6;
}

.servico-card.engenharia-card {
  border-top-color: #8b5cf6;
}

.servico-card.icms-card {
  border-top-color: #10b981;
}

.servico-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  text-align: center;
}

.servico-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.servico-descricao {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.servico-features {
  list-style: none;
  margin: 20px 0;
  flex-grow: 1;
}

.servico-features li {
  color: #27ae60;
  margin: 10px 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.servico-preco {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3b82f6;
  margin: 20px 0;
  text-align: center;
}

.servico-card.engenharia-card .servico-preco {
  color: #8b5cf6;
}

.servico-card.icms-card .servico-preco {
  color: #10b981;
}

.btn-servico-wallbox {
  background: #3b82f6;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
  margin-top: auto;
}

.btn-servico-wallbox:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.btn-servico-engenharia {
  background: #8b5cf6;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
  margin-top: auto;
}

.btn-servico-engenharia:hover {
  background: #7c3aed;
  transform: scale(1.05);
}

.btn-servico-icms {
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
  margin-top: auto;
}

.btn-servico-icms:hover {
  background: #059669;
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .servicos h2 {
    font-size: 1.8rem;
  }
  
  .servicos-grid {
    grid-template-columns: 1fr;
  }
  
  .servico-card {
    padding: 25px;
  }
  
  .servico-icon {
    font-size: 2.5rem;
  }
  
  .servico-card h3 {
    font-size: 1.3rem;
  }
}

/* ===== CARD CONFORMIDADE ===== */
.conformidade-card {
  border-top: 5px solid #06b6d4;
}

.conformidade-card:hover {
  border-top-color: #0891b2;
}

.btn-servico-conformidade {
  background-color: #06b6d4;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-servico-conformidade:hover {
  background-color: #0891b2;
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== PULSE ANIMATION FOR BUTTONS ===== */
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(4, 42, 89, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(4, 42, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(4, 42, 89, 0);
  }
}

.btn-pulse {
  animation: pulse-animation 2s infinite;
}


/* ===== ESTILOS LAUDO DE ATERRAMENTO ===== */
        /* ─── Ajuste de menu (padrão do site) ─── */
        .nav-links a {
            font-size: 19px !important;
            font-weight: 700 !important;
            letter-spacing: 0.5px !important;
            padding: 0.5rem 10px !important;
            color: #ffffff !important;
        }

        @media (max-width: 1100px) {
            .nav-links a {
                font-size: 21px !important;
                padding: 1rem 15px !important;
            }
        }

        /* ─── Stats bar ─── */
        .stats-bar {
            background: linear-gradient(135deg, #002147 0%, #003c82 100%);
            padding: 2.5rem 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            text-align: center;
        }

        .stat-item { color: white; }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: #60a5fa;
            display: block;
            line-height: 1;
        }

        .stat-label {
            font-size: 0.88rem;
            color: #cbd5e1;
            margin-top: 0.5rem;
            display: block;
            line-height: 1.4;
        }

        /* ─── Risk section ─── */
        .risk-section {
            background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
            padding: 4rem 0;
        }

        .risk-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .risk-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1.75rem 1.5rem;
            text-align: center;
            transition: background 0.3s;
        }

        .risk-card:hover { background: rgba(255, 255, 255, 0.1); }

        .risk-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }

        .risk-card h4 {
            color: #f87171;
            font-weight: 700;
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }

        .risk-card p { color: #cbd5e1; font-size: 0.9rem; line-height: 1.5; margin: 0; }

        /* ─── Service comparison cards ─── */
        .service-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 2.5rem;
        }

        .svc-card {
            background: white;
            border-radius: 16px;
            padding: 2.25rem;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
            border-top: 5px solid;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .svc-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
        }

        .svc-card.analise { border-top-color: #3b82f6; }
        .svc-card.projeto { border-top-color: #10b981; }

        .svc-icon {
            width: 68px;
            height: 68px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.9rem;
            margin-bottom: 1.25rem;
        }

        .analise .svc-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
        .projeto .svc-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }

        .svc-card h3 {
            font-size: 1.4rem;
            font-weight: 800;
            color: #002147;
            margin-bottom: 0.75rem;
        }

        .svc-card > p {
            color: #555;
            line-height: 1.6;
            margin-bottom: 1.5rem;
            font-size: 0.97rem;
        }

        .svc-list {
            list-style: none;
            padding: 0;
            margin: 0 0 1.75rem 0;
        }

        .svc-list li {
            padding: 0.45rem 0;
            border-bottom: 1px solid #f0f0f0;
            color: #333;
            font-size: 0.93rem;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            line-height: 1.4;
        }

        .svc-list li:last-child { border-bottom: none; }

        .analise .svc-list li::before { content: '✓'; color: #3b82f6; font-weight: 800; flex-shrink: 0; }
        .projeto .svc-list li::before { content: '✓'; color: #10b981; font-weight: 800; flex-shrink: 0; }

        /* ─── Process steps ─── */
        .process-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-top: 2.5rem;
            position: relative;
        }

        .process-grid::before {
            content: '';
            position: absolute;
            top: 34px;
            left: calc(12.5% + 34px);
            right: calc(12.5% + 34px);
            height: 3px;
            background: linear-gradient(90deg, #3b82f6, #60a5fa);
            z-index: 0;
        }

        .step {
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .step-bubble {
            width: 68px;
            height: 68px;
            background: linear-gradient(135deg, #002147, #003c82);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 1.7rem;
            color: #60a5fa;
            border: 3px solid #3b82f6;
            position: relative;
        }

        .step-num {
            position: absolute;
            top: -6px;
            right: -6px;
            background: #3b82f6;
            color: white;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            font-size: 0.75rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .step-title { font-weight: 700; color: #002147; font-size: 1rem; margin-bottom: 0.4rem; }
        .step-desc { font-size: 0.88rem; color: #555; line-height: 1.5; }

        /* ─── Quem precisa grid ─── */
        .quem-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .quem-card {
            background: white;
            border-radius: 12px;
            padding: 1.75rem 1.25rem;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            border-bottom: 3px solid #3b82f6;
            transition: transform 0.3s;
        }

        .quem-card:hover { transform: translateY(-4px); }

        .quem-card .qi { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
        .quem-card h4 { color: #002147; font-weight: 700; margin-bottom: 0.4rem; font-size: 1rem; }
        .quem-card p { color: #666; font-size: 0.88rem; line-height: 1.5; margin: 0; }

        /* ─── FAQ accordion ─── */
        .faq-wrap { max-width: 860px; margin: 2.5rem auto 0; }

        details.faq-item {
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            margin-bottom: 0.85rem;
            overflow: hidden;
        }

        details.faq-item summary {
            padding: 1.15rem 1.5rem;
            background: white;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            color: #002147;
            font-size: 0.97rem;
            list-style: none;
            transition: background 0.2s;
            gap: 12px;
        }

        details.faq-item summary::-webkit-details-marker { display: none; }
        details.faq-item summary:hover { background: #f8fafc; }

        details.faq-item[open] summary {
            background: #002147;
            color: white;
        }

        details.faq-item[open] .faq-chevron {
            transform: rotate(180deg);
            color: #93c5fd;
        }

        .faq-chevron {
            transition: transform 0.3s;
            color: #3b82f6;
            flex-shrink: 0;
            font-size: 0.9rem;
        }

        .faq-body {
            padding: 1.4rem 1.5rem;
            background: #f8fafc;
            color: #555;
            line-height: 1.75;
            font-size: 0.95rem;
        }

        /* ─── Final CTA band ─── */
        .cta-band {
            background: linear-gradient(135deg, #002147 0%, #003c82 100%);
            padding: 4.5rem 0;
            text-align: center;
        }

        .cta-band h2 { color: white; font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
        .cta-band p { color: #cbd5e1; font-size: 1.05rem; max-width: 680px; margin: 0 auto 2rem; line-height: 1.6; }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-wpp-cta {
            background-color: #25D366;
            color: white;
            padding: 1.1rem 2.5rem;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1.05rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s;
        }

        .btn-wpp-cta:hover { background-color: #1ea855; transform: translateY(-2px); }

        .btn-tel-cta {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 1.1rem 2.5rem;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1.05rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s;
        }

        .btn-tel-cta:hover { background-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

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

        @media (max-width: 900px) {
            .risk-grid { grid-template-columns: repeat(2, 1fr); }
            .service-comparison { grid-template-columns: 1fr; }
            .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
            .process-grid::before { display: none; }
            .quem-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 600px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
            .stat-number { font-size: 1.9rem; }
            .risk-grid { grid-template-columns: 1fr; }
            .process-grid { grid-template-columns: 1fr; }
            .quem-grid { grid-template-columns: 1fr; }
            .cta-band h2 { font-size: 1.6rem; }
        }

/* ============================================================
   FIX: Correção de conflito .engenharia-card na home
   e adição de .aterramento-card ausente — Mai/2026
   ============================================================ */

/* Neutraliza o vazamento do estilo da página engenharia.html
   quando .engenharia-card é usada dentro do grid de serviços da home.
   Especificidade 0,2,0 sobrescreve a regra de linha 897 (0,1,0). */
.servicos-grid .engenharia-card {
    background: white;
    padding: 30px;
    margin-bottom: 0;
    border-radius: 12px;
    border: none;
    border-top: 4px solid #8b5cf6;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.servicos-grid .engenharia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card Aterramento — ausente do CSS original */
.aterramento-card {
    border-top: 4px solid #002147;
}

.aterramento-card:hover {
    border-top-color: #003580;
}
