/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
}

body {
    background-color: #f2f2f2;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #0047AB;
    padding: 20px 0;
}

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

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

.logo img {
    height: 50px;
    border-radius: 10px;
    box-shadow: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    font-weight: 400;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Hero Section */
.hero {
    background-color: #00317B;
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    width: 50%;
}

.hero-image {
    width: 40%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.hero-image img {
    max-width: 90%;
    height: auto;
    border-radius: 20px;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(13, 71, 161, 0.3);
}

.social-icons {
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: white;
    color: #00317B;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 18px;
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero h1 {
    font-size: 46px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #25D366;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-primary i {
    margin-right: 10px;
    font-size: 20px;
}

/* Features Section */
.features {
    position: relative;
    background-color: transparent;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.features-container {
    max-width: 1200px;
    margin: -70px auto 30px;
    background-color: #0047AB;
    border-radius: 100px;
    display: flex;
    overflow: hidden;
    padding: 0 15px;
}

.feature-box {
    color: white;
    padding: 25px 10px;
    text-align: center;
    flex: 1;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 400;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #f2f2f2;
    color: #333;
    text-align: center;
    margin-top: 40px;
}

.services h2 {
    color: #0047AB;
    font-size: 46px;
    margin-bottom: 20px;
    font-weight: 800;
}

.services-desc {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
}

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

/* Ajuste para os dois últimos cards */
.services-grid > *:nth-last-child(-n+2) {
    grid-column: span 1;
}

/* Para telas maiores que 1200px, faça os últimos dois cards ocuparem mais espaço */
@media (min-width: 1200px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto auto;
        gap: 30px;
    }
    
    .services-grid > *:nth-child(1),
    .services-grid > *:nth-child(2),
    .services-grid > *:nth-child(3) {
        grid-column: span 2;
        grid-row: 1;
    }
    
    .services-grid > *:nth-child(4) {
        grid-column: 1 / span 3;
        grid-row: 2;
    }
    
    .services-grid > *:nth-child(5) {
        grid-column: 4 / span 3;
        grid-row: 2;
    }
    
    .services-grid > *:nth-child(4) .service-image,
    .services-grid > *:nth-child(5) .service-image {
        height: 280px;
    }
    
    .services-grid > *:nth-child(4) .service-card,
    .services-grid > *:nth-child(5) .service-card {
        height: calc(100% - 10px);
    }
    
    .services-grid > *:nth-child(4) p,
    .services-grid > *:nth-child(5) p {
        font-size: 21px;
        padding-bottom: 35px;
    }
}

/* Make the last row centered */
.services-grid:last-child {
    grid-column-gap: 30px;
}

.service-card {
    background-color: #0047AB;
    border-radius: 10px;
    overflow: hidden;
    color: white;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 250px;
    overflow: hidden;
    margin: 10px;
    border-radius: 10px;
}

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

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

.service-card h3 {
    padding: 10px 15px;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.service-card p {
    padding: 0 20px 25px;
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
    flex-grow: 1;
    margin-top: 10px;
    font-weight: 300;
}

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

.btn-large {
    padding: 15px 35px;
    font-size: 20px;
    font-weight: 400;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Antes e Depois Section */
.antes-depois {
    padding: 80px 0;
    background-color: #f2f2f2;
    color: #333;
    text-align: center;
}

.antes-depois h2 {
    color: #0047AB;
    font-size: 46px;
    margin-bottom: 20px;
    font-weight: 800;
}

.antes-depois-desc {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-image {
    position: relative;
    height: 400px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.antes-depois .cta-container {
    margin-top: 60px;
}

/* FAQ Section */
.faq {
    background-color: #00317B;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.faq h2 {
    font-size: 46px;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: capitalize;
}

.title-underline {
    width: 150px;
    height: 3px;
    background-color: #fff;
    margin: 0 auto 50px;
}

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

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: rgba(0, 61, 150, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.faq-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    font-size: 14px;
}

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

.faq-question h3 {
    font-size: 20px;
    font-weight: 400;
    flex: 1;
    line-height: 1.4;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #e9e9e9;
    color: #333;
    line-height: 1.6;
    font-size: 20px;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 15px;
    color: #444;
    font-weight: 400;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq .cta-container {
    margin-top: 60px;
}

/* Responsividade */
@media (max-width: 1199px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Os três primeiros cards na primeira linha */
    .services-grid > *:nth-child(1),
    .services-grid > *:nth-child(2) {
        grid-column: span 1;
    }
    
    .services-grid > *:nth-child(3) {
        grid-column: 1 / span 2;
        max-width: 80%;
        margin: 0 auto;
    }
    
    /* Os dois últimos dividem a largura */
    .services-grid > *:nth-child(4),
    .services-grid > *:nth-child(5) {
        grid-column: span 1;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .services h2, .faq h2 {
        font-size: 38px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .features-container {
        flex-direction: column;
        border-radius: 25px;
        margin: 0 20px;
        padding: 0;
    }
    
    .feature-box {
        padding: 15px 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .faq-question h3 {
        font-size: 18px;
    }
    
    .faq .cta-container {
        margin-top: 40px;
    }
    
    body, .hero p, .feature-box, .services-desc, .service-card p, .faq-answer, .faq-answer p {
        font-size: 16px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .features {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .menu-toggle {
        display: block;
        z-index: 101;
        position: relative;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #0047AB;
        z-index: 100;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }
    
    nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    nav.active {
        right: 0;
    }
    
    nav.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        padding-top: 70px;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li a {
        display: block;
        font-size: 18px;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .antes-depois h2 {
        font-size: 32px;
    }
    
    .antes-depois-desc {
        font-size: 16px;
    }
    
    .gallery-image {
        height: 300px;
    }
    
    .impermeabilizacao {
        padding: 70px 0;
    }
    
    .impermeabilizacao .container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .video-container {
        flex: none;
        width: 100%;
        max-width: 340px;
        height: 600px;
        margin: 0 auto;
        aspect-ratio: 9/16;
        position: relative;
    }
    
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .impermeabilizacao-content {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }
    
    .impermeabilizacao h2 {
        font-size: 32px;
    }
    
    .impermeabilizacao p {
        font-size: 16px;
    }
}

/* Impermeabilização Section */
.impermeabilizacao {
    padding: 100px 0;
    background-color: #00317B;
    color: #fff;
}

.impermeabilizacao .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.video-container {
    flex: 0 0 40%;
    height: 600px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 9/16;
    width: calc(600px * 9/16); /* Para manter proporção 9:16 */
    max-width: 40%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.impermeabilizacao-content {
    flex: 0 0 55%;
}

.impermeabilizacao h2 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #fff;
}

.impermeabilizacao h2 span {
    color: #25D366;
    display: block;
}

.impermeabilizacao p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.9;
}

.impermeabilizacao .cta-container {
    margin-top: 40px;
}

@media (max-width: 1199px) and (min-width: 769px) {
    .impermeabilizacao .container {
        padding: 0 30px;
    }
    
    .video-container {
        height: 500px;
    }
    
    .impermeabilizacao h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .features-container {
        flex-direction: column;
        border-radius: 25px;
        margin: 0 20px;
        padding: 0;
    }
    
    .feature-box {
        padding: 15px 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .faq-question h3 {
        font-size: 18px;
    }
    
    .faq .cta-container {
        margin-top: 40px;
    }
    
    body, .hero p, .feature-box, .services-desc, .service-card p, .faq-answer, .faq-answer p {
        font-size: 16px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .features {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .menu-toggle {
        display: block;
        z-index: 101;
        position: relative;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #0047AB;
        z-index: 100;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }
    
    nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    nav.active {
        right: 0;
    }
    
    nav.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        padding-top: 70px;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li a {
        display: block;
        font-size: 18px;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .antes-depois h2 {
        font-size: 32px;
    }
    
    .antes-depois-desc {
        font-size: 16px;
    }
    
    .gallery-image {
        height: 300px;
    }
    
    .impermeabilizacao {
        padding: 70px 0;
    }
    
    .impermeabilizacao .container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .video-container {
        flex: none;
        width: 100%;
        max-width: 340px;
        height: 600px;
        margin: 0 auto;
        aspect-ratio: 9/16;
        position: relative;
    }
    
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .impermeabilizacao-content {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }
    
    .impermeabilizacao h2 {
        font-size: 32px;
    }
    
    .impermeabilizacao p {
        font-size: 16px;
    }
} 