:root {
    --color-primary: #9b662dec;
    --color-secondary: #4c662d;
    --color-accent: #c1a68d;
    --color-light: #f5f5f5;
    --color-dark: #333333;
}

/* Fonte padrão */
body {
  font-family: 'Poppins', sans-serif;
}

.social-bar {
    background-color: #9b662dec;
    padding: 10px 0;
    position: relative;
}

.social-bar a {
    color: white;
    margin-right: 9px;
    font-size: 20px;
    text-decoration: none;
    left: 50px;
}

/* Social Icons */
.facebook.svg, .instagram.svg, .tiktok.svg {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    display: inline-block;
    filter: brightness(0) saturate(100%) invert(100%);
    transition: transform 0.3s ease;
}

.facebook.svg {
    background-image: url('imagens/logos svgs/facebook.svg');
}

.instagram.svg {
    background-image: url('imagens/logos svgs/instagram.svg');
}

.tiktok.svg {
    background-image: url('imagens/logos svgs/tiktok.svg');
}

.facebook.svg:hover, .instagram.svg:hover, .tiktok.svg:hover {
    transform: scale(1.2);
}

header {
    background-color: #4c662d;
    position: relative;
}

.mt-5{
    margin-top: 2rem !important;
}

.hero {
    height: 60vh; /* Altura ajustada */
    min-height: 300px; /* Altura mínima para dispositivos menores */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('imagens/backgrounds/fazendaatal.jpeg') center/cover no-repeat; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    text-align: start;
    border-radius: 8px; /* Borda arredondada */
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem; /* Tamanho do título */
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: 66px;
}

h2 {
    color: #9b662dec;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid #9b662dec;
    padding-bottom: 0.5rem;
    font-size: 3rem;
}

.hero h2 {
    color: #f5f5f5;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1.2rem; /* Tamanho do texto */
    max-width: 600px; /* Limita o texto em largura */
}

/* Features Grid */
.features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #9b662dec;
    margin-bottom: 1rem;
    font-weight:bold;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4c662d;
}

.content-section { /*Aqui muda para outra 'aba'*/
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
}

#proprietario img {
  width: 100%;
  height: auto;
}

.certificados {
    display: flex;
    gap: 1rem; /* Espaço entre as imagens */
    flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
    margin-top: 1rem;
    justify-content: flex-start; /* Alinhamento à esquerda (pode mudar para center se preferir) */
    align-items: center;
}

.certificado-img {
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.certificado-img:hover {
    transform: scale(1.05); /* Efeito sutil ao passar o mouse */
}

/*contato*/
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.2rem;
    color: #9b662dec;
    flex-shrink: 0;
}

/* Forms */
input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background-color: #9b662dec;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #c1a68d;
}

.navbar-toggler {
    border: none; /* Remove a borda padrão do botão */
    background-color: #9b662dec;
    width: 60px;
    height: 42px;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    margin-right: 4px;
    transition: width 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
}

.navbar-collapse {
    background-color: #4c662d;
    border-radius: 8px;
    padding: 0.5rem;
}

.navbar-toggler:not(.collapsed) {
    width: 72px;
}

.navbar-nav {
    text-align: center;
}

header h1, 
header .nav-link {
  color: white !important; /* Texto em branco */
  font-family: 'Poppins', sans-serif; /* Fonte amigável */
}

/* Mudança de cor ao passar o mouse nos links */
header .nav-link:hover {
  color: #d3e8b0 !important; /* Cor clara ao hover */
}

#btnTopo {
  position: fixed;
  bottom: 60px;
  right: 55px;
  z-index: 999; 
  width: 50px;
  height: 50px;
  color: #9b662dec /* marrom escuro */;
  font-size: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0); /* cor clara para o botão */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#btnTopo:hover {
  background-color: white; /* marrom claro ou dourado */
  transform: scale(1.1);
}

.btnTopo svg {
  position: absolute;
  right: -2px;
  top: 2%;
  width: 60px;
  height: 39px;
  fill: #9b662dec; /* Cor do ícone */
}

.btn-primary {
  background-color: #9b662dec;
  border-color: #9b662dec;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.mostrar {
    opacity: 1;
}

.popup-box {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    animation: popupShow 0.25s ease;
}

.popup-box.sucesso {
    color: green;
}

.popup-box.erro {
    color: red;
}

.legenda {
    font-style: italic;
    size: 21px;
    text-align: center;
    padding-bottom: 9%;
    
}

.navbar {
    background-color: #4c662d;
}

.navbar .nav-link {
  color: white;
}

.navbar .nav-link:hover {
  color: #c1a68d;
}

.container p {
    max-width: 65ch;
}

.carousel-inner{
    max-width: 600px;
}

.carousel-inner img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.h3 {
    font-size: 1.8rem;
    color: #9b662dec;
}

@keyframes popupShow {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 1399px){
    main {
        max-width: 1200px;
        margin: auto;
        padding: 0 15px;
    }

    .h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .m-0 {
        top: 30px; /* Ajusta a posição do título em telas menores */;
        font-size: 0.6rem; /* Tamanho do título reduzido em telas menores */
    }

    .hero {
        height: 50vh; /* Reduz altura em telas menores */
    }

    .hero h1 {
        font-size: 1.5rem; /* Reduz tamanho do título */
    }

    .hero h2 {
        font-size: 0.9rem;
    }
}

@media(max-width: 576px) {
    section p {
        font-size: 0.96rem;
    }

    h2 {
        font-size: 2rem;
    }
}