:root {
    --main-color: #472E2E;
    --secondary-color: #304B33;
    --contrast-color: #F4F4F4;
    --button-color: #2C5E1E;
    --button-hover-color: #234B18;
    --background-color: #c5c3c3;
    --color-3: #B99A5C;
    --text-color: #333333;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --font-normal: calc(0.75rem + 0.5vw);
    --tittle: calc(2rem + 0.5vw);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* background-color: transparent; */
    /* background: linear-gradient(180deg,rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 100%); */

    /* padding: 1rem; */
    padding: .5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

#nav-conent
{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar.solid {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.navbar.solid .nav-links a {
    
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--contrast-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--main-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(48, 75, 51, 0.5), rgba(48, 75, 51, 0.9));    
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    width: 100%;
    /* max-width: 1200px; */
}

.hero-left {
    text-align: left;
    color: white;
    max-width: 70%;
}

.hero-logo {
    /* width: 180px; */
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    background-color: var(--button-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--button-hover-color);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--gray-light);
    overflow: hidden; /* impede que os elementos ultrapassem o container */
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    overflow: visible; /* permitido agora */
    padding-inline: 1rem; /* protege contra elementos colando nas bordas em telas pequenas */
}

.about-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1 1 500px;
    z-index: 2;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    font-size: var(--font-normal);
}

.about-text p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.6;
}

.about-text blockquote {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
    border-left: 4px solid var(--main-color);
    font-style: italic;
    color: var(--text-color-light);
}

.cta-button-about {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button-about:hover {
    background-color: var(--secondary-color);
}

.about-image-wrapper {
    position: relative;
    flex: 1 1 500px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
}

.image-background {
    position: absolute;
    right: -50vw; /* empurra o quadrado para fora do wrapper */
    top: 10%;
    bottom: -10%;
    width: 70vw;
    background-color: var(--secondary-color);
    border-radius: 10px 0 0 10px;
    z-index: 0;
    animation: slideInRight 1s ease forwards;
    opacity: 0;
    max-width: 100vw; /* garante que não ultrapasse o viewport */
}

.about-image {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
    margin-top: 20%;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}


.about-values {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    font-size: var(--font-normal);
}

.value-block {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;    
    transition: 0.3s ease;

}

.value-block:hover {
    background-color: #417047;
}

.value-block h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.value-block p {
    color: white;
    line-height: 1.6;
}


.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--main-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    font-size: var(--font-normal);
}

.about-card {
    text-align: center;
    padding: 2rem;
    /* background-color: var(--color-3); */
    /* background-color: rgb(238, 237, 237); */
    background-color: var(--main-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-card:hover {
    background-color: #5a2c2e;
}

.about-card h3
{
    color: white;
}

.about-card p
{
    color: white;
}

.about-card i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}



.about-card i,
.value-block h3 i {
    transition: transform 0.3s ease;
}

.about-card:hover i,
.value-block:hover h3 i {
    transform: translateY(-5px) scale(1.1);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Section */
.services {
    padding: 5rem 0;
    overflow: hidden;
    background-color: white;
    position: relative;


  }

.services::after
{
    
    content: "";
    position:absolute;;
    inset: 0;
    background-image: url('image/services-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity:0.3;
    z-index: 0;
}

  .services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--main-color);
    z-index: 1;
    position: relative;
    font-size: var(--tittle);
    font-weight: bold;
  }

  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .service-item {
    position: relative;
    min-height: 300px;
    font-size: var(--font-normal);
  }

  .service-text {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 1;
    width: 60vw; /* ocupa 60% da largura da viewport */
    position: relative;
    min-height: 50vh;
    font-size: var(--font-normal);

  }

  .service-text h3 {
    color: var(--color-3);
    margin-bottom: 1rem;
    font-size: var(--tittle);
    font-weight: bold;
  }

  .service-text p {
    color: white;
    line-height: 1.6;
    max-width: 70%;
    text-align: justify;
    font-size: var(--font-normal);
  }

  .service-image {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 60%;
    height: 100%; /* Defina a altura padrão desejada aqui */
    z-index: 3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
  }

  .service-image img {
    width: 100%;
    height: 100%; /* Força a imagem a ocupar toda a altura do container */
    object-fit: cover; /* Mantém o aspecto visual recortando o excesso */
    border-radius: 10px;
  }

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-graphic {
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1226px)
{
    .about-image 
    {
        margin-top: 0;
    }
}


.service-item.reverse {
    grid-template-columns: 1fr auto 1fr;
    direction: rtl;
}
  

.service-item.reverse .service-graphic,
.service-item.reverse .service-image {
    direction: ltr;
}

.service-item.reverse .service-image
{
    right: auto;
    left: -10%;
}

.btn-saiba-mais {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--main-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
.btn-saiba-mais:hover {
    background-color: #835151;
  }

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--main-color);
    font-size: var(--tittle);
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Fullscreen Gallery */
.fullscreen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-gallery.active {
    display: flex;
    opacity: 1;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.gallery-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.gallery-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Contact Section */
.contact {
    background: url('image/contact-bg.jpg') center center/cover no-repeat;
    color: #fff;
    padding: 60px 20px;
    position: relative;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24, 54, 16, 0.7); /* Escurece um pouco para o texto se destacar */
    z-index: 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form-container h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #f0f0f0;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    margin-top: 10px;
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background-color: var(--buttom-hover-color);
}

/* Ajuste de layout horizontal para os campos email e telefone */
.form-group.duo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 600px) {
    .form-group.duo {
        flex-direction: row;
    }

    .form-group.duo > div {
        flex: 1;
    }
}

.contact-form-container h2 i {
    color: white;
    margin-right: 10px;
}

.form-group label i {
    margin-right: 6px;
    color: white;
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--secondary-color);
    background-color: white;
}

.submit-button i {
    margin-right: 8px;
}


.contact-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.contact-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}


/* Lead Capture Bar */
.lead-capture {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--main-color);
    padding: 0.5%;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 1000;
    height: 9vh;
}

.close-lead {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1000;
}


.lead-capture.show {
    transform: translateY(0);
}

.lead-content {
    
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5%;
    align-items: center;
}

.lead-content h3 {
    color: var(--contrast-color);
    
}

.lead-form {
    display: flex;
    gap: 1rem;
}

.lead-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    
}

.lead-form button {
    padding: 0.8rem 1.5rem;
    background-color: var(--button-color);
    color: var(--contrast-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lead-form button:hover {
    background-color: var(--button-hover-color);
}

/* Footer */
footer {
    background-color: var(--main-color);
    color: var(--contrast-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo 
{
  height: 70%;
}

.footer-logo img {    
    height: 100%;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--contrast-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-3);
}

.footer-contact i {
    margin-right: 0.5rem;
}

.footer-contact a
{
    color: var(--contrast-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--color-3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content
    {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-left
    {
        text-align: center;
        max-width: 100%;
    }

    .hero-logo
    {
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .service-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        min-height: unset;
        padding: 1rem;
        gap: 1.5rem;
      }
    
      .service-text {
        width: 120%;
        padding: 1.5rem;
        min-height: unset;
        text-align: left;
      }
    
      .service-text p {
        max-width: 100%;
      }
    
      .service-image {
        position: relative;
        width: 140%;
        height: auto;
        top: unset;
        
        left: unset;
      }
    
      .service-image img {
        height: auto;
        max-height: 300px;
        width: 100%;
        object-fit: cover;
        border-radius: 10px;
      }
    
    .contact
    {
        padding: 5% 0;
    }

    .lead-capture
    {
        height: 15vh;
        display: flex;
    }

    .lead-form {
        flex-direction: column;
    }

    .lead-form input,
    .lead-form button {
        width: 100%;
    }

    
}