:root {
    --primary-color: #0477B7; 
    --text-color-dark: #000000;
    --text-color-light: #fff;
    --header-bg: #fff;
    --header-shadow: rgba(0, 0, 0, 0.1);
    --button-contact-bg: #007bff; 
    --button-contact-text: #fff;
    --hero-overlay-color: rgba(0, 0, 0, 0.5); 
    --btn-color: #0477B7;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
     scroll-behavior: smooth; 
}

/* Fontes */

@font-face {
    font-family: Lato;
    src: url(../fonts/Lato/Lato-Regular.ttf);
}

@font-face {
    font-family: Space_Mono;
    src: url(../fonts/Space_Mono/SpaceMono-Regular.ttf);
}

@font-face {
    font-family: Matangi;
    src: url(../fonts/Matangi/Matangi-VariableFont_wght.ttf);
}

h1, h2, h3{
    font-family: Matangi;
}

p{
    font-family: Lato;
}

body {
    font-family: Matangi;
    line-height: 1.6;
    background-color: #f4f4f4;
}

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

/* Header */
.header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--header-shadow);
    padding: 0 40px;
    width: 100%;
    height: 8rem;
    z-index: 1000;
    margin-top: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo img {
    max-height: 90px;
}

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

.nav-list a{
    text-decoration: none;
    color: #000000;
}


.nav-item {
    text-decoration: none;
    margin-left: 30px;
    font-size: large;
    letter-spacing: 1px;
}

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

.nav-list a:hover {
    color: #F0F0F0;
    transition: 0.2s ease;
}

.btn-contact {
    background-color: #000000;
    color: #fff !important;
    padding: 7px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-contact:hover {
    background-color: #0477B7;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    min-width: 40px;
    min-height: 40px;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Responsividade */
@media (max-width: 992px) {
    .header{
        justify-content: center;
    }

    .logo img {
    max-height: 90px;
    }
    .hamburger-menu {
        display: block;
        margin-left: auto;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 102%;
        left: 0;
        width: 100%;
        background-color: #FFF;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        text-align: center;
        border-radius: 25px;
    }

    .nav-list li {
        margin: 15px 0;
    }

    .nav-list.active {
        display: flex;
    }

    /* Animação hambúrguer -> X */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden; 
    margin-top: -10rem;
    z-index: 1;
}



.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}


.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; 
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    opacity: 0;
    pointer-events: none; 
    transition: opacity 1.5s ease-in-out; /* Transição suave de fade */
}


.slide.active-slide {
    opacity: 1; 
    pointer-events: auto; 
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-color);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1450px; 
    padding: 0 20px;
}

.hero-text {
    flex-grow: 1; 
    /*max-width: 600px;*/
    width: 100%;
}

.hero-text.hero-text-left{
    text-align: left;
    margin-right: auto;
    margin-left: 100px;
}

.hero-text.hero-text-center{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-text.hero-text-right{
    text-align: right;
    margin-left: auto;
    margin-right: 100px;
}

.hero-text h1 {
    font-family: Lato;
    font-size: 4em; 
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-text h2{
    font-family: Lato;
}
.btn-primary {
    background-color: #0477B7; 
    color: var(--text-color-light);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-family: Lato;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.arrow-btn {
    background-color: rgba(255, 255, 255, 0.2); 
    color: var(--text-color-light);
    border: none;
    border-radius: 25px;
    width: 50px;
    height: 50px;
    font-size: 2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    margin: 0 20px;
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 3; 
}

.left-arrow {
    left: 20px; 
    transform: rotateY(180deg);
}

.right-arrow {
    right: 20px; 
}

.arrow-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 20px;
    background-color: #f0f0f0de;
    padding: 20px;
    border-radius: 30px;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: #999999;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.5s ease-in-out,
                width 0.5s ease-in-out,
                border-radius 0.5s ease-in-out;
}

.dot.active {
    background-color: #000000;
    width: 3rem;
    border-radius: 10px;
}

/* Responsividade */
@media (max-width: 992px) {
    .nav-list {
        display: none; 
    }

    .header-content {
        justify-content: center; 
    }

   .hero-text,
    .hero-text.hero-text-left,
    .hero-text.hero-text-center,
    .hero-text.hero-text-right {
        text-align: center;
        padding-left: 0; 
        padding-right: 0;
        margin-left: auto; 
        margin-right: auto;
    }


    .hero-content {
        flex-direction: column;
        justify-content: center;
    }

    .arrow-btn {     
        display: none; 
    }

    .btn-primary {
        margin-top: 20px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2em;
    }
    .hero-text {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .logo img {
        max-height: 90px;
    }
    .hero-text h1 {
        font-size: 1.8em;
    }
    .btn-primary {
        font-size: 1em;
        padding: 12px 25px;
    }
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.section-title {
    font-family: Matangi;
    letter-spacing: 3px;
    font-size: 3em;
    color: #0477B7; 
    margin-bottom: 60px;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 50px;
    justify-content: center; 
    margin-bottom: 50px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    height: 300px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    text-align: center;
}

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: var(--primary-color); 
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description {
    font-size: 1em;
    color: #9F9F9F;
    line-height: 1.5;
    margin-bottom: 0; 
}

.btn-container {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color); 
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; 
}

.btn-outline:hover {
    background-color: #4A90E2;
    color: #fff;
}

/* Responsividade para a seção de produtos */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; 
    }

    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .product-card {
        margin: 0 auto; 
        max-width: 350px; 
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8em;
    }
    .product-name {
        font-size: 1.3em;
    }
    .product-description {
        font-size: 0.9em;
    }
}

/* About Us Section */
.about-us-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-us-content {
    display: flex;
    align-items: center; 
    gap: 50px; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.about-us-image {
    min-width: 300px; 
    max-width: 50%; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    border-radius: 8px; 
    overflow: hidden;
}

.about-us-image img {
    width: auto;
    height: 50vh;
    display: block;
    object-fit: cover; 
}

.about-us-text {
    flex: 1; 
    min-width: 350px;
    max-width: 50%; 
}

.section-title-left {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
    text-align: left; 
}

.about-us-text p {
    font-size: 1.4em;
    letter-spacing: -1px;
    line-height: 1.7;
    color: #9F9F9F;
    margin-bottom: 20px;
    text-align: justify;
}

.about-us-text p:last-child {
    margin-bottom: 0; 
}

/* Responsividade para a seção "Sobre nós" */
@media (max-width: 992px) {
    .about-us-content {
        flex-direction: column; 
        gap: 40px;
    }

    .about-us-image,
    .about-us-text {
        max-width: 100%; 
        min-width: unset;
    }

    .about-us-image {
        padding: 0 20px; 
    }

    .section-title-left {
        text-align: center;
    }

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

    .about-us-text p {
        text-align: center; 
    }
}

@media (max-width: 768px) {
    .section-title-left {
        font-size: 2.2em;
    }
    .about-us-text p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .section-title-left {
        font-size: 1.8em;
    }
}

/* Areas Section */
.areas-section {
    padding: 80px 0;
    background-color: #f8f8f8; 
}

.areas-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    margin-bottom: 60px;
    flex-wrap: wrap; 
    gap: 20px; 
}

.areas-header .section-title-left { 
    margin-bottom: 0; 
    flex-basis: 40%; 
    min-width: 250px; 
}

.areas-description {
    font-size: 1.2em;
    color: #777;
    line-height: 1.6;
    flex-basis: 55%; 
    min-width: 300px; 
    text-align: justify;
}

.areas-slider-wrapper {
    overflow: hidden; 
    width: 100%;
    margin-bottom: 40px;
}

.areas-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding-bottom: 20px; 
}

.area-card {
    flex: 0 0 32%; 
    margin-right: 2%; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.area-card:last-child {
    margin-right: 0; 
}


.area-image-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex; 
    align-items: center;
    justify-content: center;
    background-color: #eee; 
}

.area-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit:scale-down; 
    display: block;
}

.area-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    color: #333;
    margin-top: 25px; 
    font-weight: 600;
}

.areas-slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; 
}

.areas-slider-dots {
    display: flex;
    gap: 8px;
}

.areas-slider-dots .dot { 
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.areas-slider-dots .dot.active {
    background-color: #868686; 
}

.areas-slider-arrows{
    display: flex;
    gap: 5px;
}

.areas-arrow-btn {
    background-color: #000000; 
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.areas-arrow-btn:hover {
    background-color: #9F9F9F; 
    color: #000000;
}

/* Responsividade para a seção "Áreas que atuamos" */
@media (max-width: 992px) {
    .areas-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .areas-header .section-title-left,
    .areas-description {
        flex-basis: 100%; 
        min-width: unset;
        text-align: center;
    }

    .areas-slider-container {
        /* Ajusta para mostrar 2 cards em telas médias */
        flex: 0 0 48%; /* Ex: para mostrar 2 cards e um pouco do próximo */
        margin-right: 4%; /* Espaçamento entre 2 cards */
    }

    .area-card {
        flex: 0 0 48%; 
        margin-right: 4%;
    }
}

@media (max-width: 768px) {
    .areas-slider-container {
        /* Ajusta para mostrar 1 card em telas pequenas */
        flex: 0 0 96%;
        margin-right: 4%;
    }

    .area-card {
        flex: 0 0 96%; 
        margin-right: 4%;
    }
}

@media (max-width: 576px) {
    .areas-header .section-title-left {
        font-size: 2.2em;
    }
    .areas-description {
        font-size: 1em;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-color); 
    color: #fff;
    letter-spacing: 1px;
}

.contact-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: flex-start; 
}

.contact-map-info {
    background-color: #222;
    flex: 1;
    min-width: 450px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

.google-map {
    border-radius: 8px;
    overflow: hidden; 
}

.google-map iframe {
    overflow: hidden; 
}

.contact-info-details {
    background-color: #222; 
    padding: 25px 0px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-details p {
    font-size: 1.4em;
    color: #eee;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.contact-info-details p i {
    margin-right: 15px;
    color: #4A90E2; 
    font-size: 1.4em;
    padding-top: 3px; 
}

.contact-info-details a{
   font-size: 1.4em;
   font-family: Lato;
   color: #eee;
   text-decoration: none;
}

.contact-info-details a:hover{
    text-decoration: underline;
    color: var(--primary-color);
    transition: 0.2s ease;
    cursor: pointer;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 450px; 
    display: flex;
    flex-direction: column;
}

.contact-form-wrapper .section-title-left {
    color: #fff; 
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 25px;
    position: relative; 
}

.contact-form .form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #bbb;
    font-size: 1.3em;
    transition: all 0.3s ease;
    pointer-events: none; 
    letter-spacing: 1px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color); 
    border: 2px solid #408fb9; 
    border-radius: 5px;
    color: #fff; 
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form textarea {
    resize: vertical; 
}

/* Efeito de placeholder flutuante */
.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8em;
    color: #4A90E2; 
    background-color: #222; 
    padding: 0 5px;
}


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fff; 
}

.contact-form .btn-submit {
    background-color: #000000; 
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    font-weight: 600;
    width: 10em; 
    display: block; 
    margin-right: auto; 
}

.contact-form .btn-submit:hover {
    background-color: #F0F0F0;
    color: #000000;
}

/* Footer Section */
.footer {
    background-color: #111; 
    padding: 30px 0;
    color: #bbb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    text-align: center;
}

.footer-logo img {
    max-height: 5rem; 
}

.copyright {
    font-size: 1.2em;
}

.credits{
    width: 100%;
    font-size: 0.9em;
    float: right;
}
.credits a{
    text-decoration: none;
    color: var(--primary-color);
}

/* Responsividade para a seção de contato e footer */
@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .contact-map-info,
    .contact-form-wrapper {
        min-width: unset;
        width: 100%; 
        padding: 0 20px; 
    }

    .contact-map-info {
        order: 2; 
    }

    .contact-form-wrapper {
        order: 1; 
    }

    .contact-form-wrapper .section-title-left {
        text-align: center;
    }

    

    .btn-submit {
        margin-left: auto;
        margin-right: auto; 
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .contact-info-details p {
        font-size: 1em;
    }
    .contact-form-wrapper .section-title-left {
        font-size: 2.2em;
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper .section-title-left {
        font-size: 1.8em;
    }
    .contact-info-details p i {
        margin-right: 10px;
        font-size: 1.2em;
    }
}

/* Botões flutuantes de contato - simples */
.floating-contact-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2000;
    align-items: flex-end;
}

.floating-contact-btn {
    background: #0477B7;
    color: #fff;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0.7rem 1.4rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    min-width: 2.8rem;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}

.floating-contact-btn i {
    font-size: 1.3em;
    width: 1.7em;
    height: 1.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-contact-btn .btn-text {
    margin-left: 0.5rem;
    display: inline-block;
}

.floating-contact-btn:hover {
    background: #fff;
    color: #0477B7;
    box-shadow: 0 4px 16px rgba(0,0,0,0.20);
}

.floating-contact-btn:hover i {
    color: #0477B7;
}