:root {
    --green-dark: #0f3b2f;
    --terracota: #b35b3a;
    --nude: #f2e9e1;
    --white: #ffffff;
    --dark-moss: #0f3b2f;
    /* Verde Escuro/Musgo */
    --terracota: #b35b3a;
    /* Terracota */
    --nude: #f2e9e1;
    --star-color: #ffc107;
    --background-light: var(--nude);
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    --text-dark: #1f1f1f;
    --card-width: 320px;
    --card-gap: 1.5rem;
    --original-cards: 10;
    --total-cards: 13;
    /* 10 originais + 3 cópias */
    /* CÁLCULO CRÍTICO: Distância exata para mover 10 cards + 10 gaps */
    --scroll-distance: calc(var(--original-cards) * var(--card-width) + var(--original-cards) * var(--card-gap));
    --scroll-speed: 40s;
    /* Velocidade do ciclo completo */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

/* ==================== RESET GERAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: #f8ece2;
    /* cor nude, se quiser manter */
    overflow-x: hidden;
    /* Previne scroll horizontal */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ==================== HEADER FINO E ESTÁTICO ==================== */
.site-header {
    position: static;
    /* Cabeçalho permanece no topo, sem fixar */
    width: 100%;
    padding: 12px 0;
    /* Altura reduzida */
    background: #0f3b2f;
    /* Verde escuro elegante */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO AJUSTADA */
.logo img {
    height: 80px;
    /* Menor e proporcional */
    filter: brightness(0) invert(1);
    /* Deixa branca */
}

/* NAVEGAÇÃO */
.nav {
    display: flex;
    align-items: center;
    /* Alinha verticalmente os links */
    gap: 2rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--terracota);
}

/* MENU MOBILE */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

/* Ajustes responsivos do Header */
@media (max-width: 900px) {
    .logo img {
        height: 80px;
    }

    .nav {
        display: none;
        flex-direction: column;
        background: #0f3b2f;
        position: absolute;
        top: 104px;
        /* Ajustado para a altura do header + padding */
        left: 0;
        right: 0;
        width: 100%;
        padding: 1rem;
        border-radius: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        /* Garante que o menu fique por cima */
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 0.5rem 0;
    }

    .nav-toggle {
        display: block;
    }
}

/* ==================== HERO ==================== */
.hero {
    min-height: 90vh;
    /* Ajuste de altura para considerar o header */
    display: flex;
    align-items: center;
    background: url("img/banner.webp") no-repeat center center/cover;
    padding: 60px 0;
    /* Espaçamento interno em vez de padding-top grande */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: .5rem;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffe6d5;
    margin-top: 50px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    margin-top: 50px;
}

/* RESPONSIVO HERO */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image img {
        margin-top: 1.5rem;
        max-width: 80%;
        /* Ajuste para celular */
    }

    .hero-text {
        margin-top: 20px;
        /* Reduz margem no topo */
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text .subtitle {
        font-size: 1.1rem;
        margin-top: 15px;
    }

    .hero-actions {
        justify-content: center;
    }
}

.btn {
    padding: .7rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-cta {
    background: var(--terracota);
    color: #fff;
}

.btn-cta:hover {
    background: #a24d36;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    /* Removido o justify-content: center; pois já está no media query */
}

/* ==================== SOBRE (AJUSTADO PARA MOBILE) ==================== */
.section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    color: var(--green-dark);
    margin-bottom: 1rem;
    margin-top: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    padding-top: 20px;
    box-shadow: var(--shadow);
}

.btn-outline-dark {
    border: 2px solid var(--green-dark);
    color: var(--green-dark);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--green-dark);
    color: var(--white);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: 1;
        margin-top: 1.5rem;
    }

    .about-text {
        order: 0;
        margin-top: 20px;
    }
}

/* ==================== FORMAÇÕES (AJUSTADO PARA MOBILE) ==================== */
.formacoes-container {
    margin-top: 3rem;
    text-align: center;
    background: #f7efea;
    padding: 3rem 1rem;
    border-radius: 12px;
}

.formacoes-container h3 {
    color: var(--green-dark);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.formacoes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* Mantido 6 para o desktop, mas o media query abaixo corrige */
    gap: 1.5rem;
    justify-items: stretch;
}

.formacao-item {
    background: var(--white);
    border: 1px solid rgba(15, 59, 47, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 180px;
    height: 100%;
}

.formacao-icon {
    font-size: 2.5rem;
    color: var(--terracota);
    margin-bottom: 1rem;
}

.formacao-item h4 {
    font-size: 1.1rem;
    color: var(--green-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.formacao-item p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
    word-break: break-word;
    white-space: normal;
}

.formacao-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(15, 59, 47, 0.15);
}

/* Responsividade Formações */
@media (max-width: 992px) {
    .formacoes-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablets: 3 colunas */
    }
}

@media (max-width: 576px) {
    .formacoes-grid {
        grid-template-columns: 1fr;
        /* Celulares: 1 coluna */
    }

    .formacao-item {
        min-height: 160px;
        /* Ajuste para celular */
    }
}

/* ==================== SERVIÇOS ==================== */
#servicos {
    text-align: center;
    padding: 60px 0;
    background: #fff;
}

#servicos .section-title {
    color: #b65a41;
    font-weight: 600;
    margin-bottom: 2rem;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Mantido flexível para desktop */
    gap: 1.5rem;
    justify-items: stretch;
    align-items: stretch;
}

.servico-card {
    position: relative;
    width: 100%;
    /* ocupa espaço do grid */
    min-height: 380px;
    /* altura fixa padrão */
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.servico-card:hover {
    transform: scale(1.03);
}

.servico-card .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    color: #fff;
    padding: 1.5rem;
    text-align: left;
}

.servico-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.servico-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-card {
    display: block;
    margin: 0 auto;
    background-color: #b65a41;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-card:hover {
    background-color: #a24d36;
}

/* Responsividade serviços */
@media (min-width: 992px) {
    .servicos-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Força 3 cards em linha no desktop */
    }
}

@media (max-width: 768px) {
    .servicos-grid {
        grid-template-columns: 1fr;
        /* Mobile: 1 por linha */
    }

    .servico-card {
        max-width: 100%;
        /* Ocupa a largura total do container */
    }
}


/* ==================== SEÇÃO SERVIÇOS 2 - BANNER DE FUNDO ==================== */
#experiencias {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url("img/banner-experiencia.webp") no-repeat center center/cover;
    background-attachment: fixed;
    /* Efeito Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.experiencias-content ul {
  list-style: none; /* Remove os marcadores */
  padding: 0;
  margin: 20px 0;
  text-align: left; /* Alinha o texto à esquerda */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.experiencias-content li {
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: left;
}


.banner-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 120px 30px;
    width: 100%;
}

.experiencias-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.experiencias-content h4 {
    color: #f5c9b1;
    font-size: 1rem;
    margin-bottom: 10px;
}

.experiencias-content h1 {
    /* Alterei de h2 para h1 para corresponder ao HTML */
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.lista-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem 1.2rem;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.lista-servicos li {
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
}

.lista-servicos li::before {
    content: "•";
    color: #f5c9b1;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-center {
    text-align: center;
}

.btn-fale {
    display: inline-block;
    background-color: #b65a41;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-fale:hover {
    background-color: #a24d36;
}

.section-title,
.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--green-dark);
    font-size: 2rem;
}

#servicos-destaque .section-title {
    color: #b65a41;
    font-weight: 600;
}

/* Responsividade Experiências */
@media (max-width: 768px) {
    #experiencias {
        min-height: auto;
        padding: 60px 20px;
        background-attachment: scroll;
        /* Desliga parallax no mobile */
    }

    .banner-overlay {
        padding: 60px 20px;
    }

    .experiencias-content h1 {
        font-size: 1.6rem;
    }

    .experiencias-content h3 {
        /* Adicionado estilo para os h3 dentro do banner */
        font-size: 1.1rem;
    }

    .lista-servicos {
        grid-template-columns: 1fr;
        /* Mobile: 1 por linha */
    }
}


/* ==================== DEPOIMENTOS (AJUSTE CRÍTICO DE RESPONSIVIDADE) ==================== */
.testimonials {
    padding: 4rem 0;
    background-color: var(--background-light);
    text-align: center;
}

.testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonials-header {
    margin-bottom: 3rem;
    text-align: center;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.1;
}

.testimonials-header .depoimentos-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    margin-bottom: 0.5rem;
    border: 2px solid var(--dark-moss);
    color: var(--dark-moss);
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.testimonials-header .highlight-text {
    color: var(--terracota);
    font-weight: 700;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Removido o mask-image para permitir a rolagem manual no mobile */
}

.testimonials-carousel {
    display: flex;
    gap: var(--card-gap);
    padding: 0.5rem 0;
    /* Ajustes para o desktop (animação) */
    width: calc(var(--total-cards) * var(--card-width) + var(--total-cards) * var(--card-gap));
    animation: scroll-carousel var(--scroll-speed) linear infinite;
    animation-play-state: running;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(var(--scroll-distance) * -1));
    }
}

.testimonial-card {
    min-width: var(--card-width);
    max-width: var(--card-width);
    flex-shrink: 0;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
    border-top: 5px solid var(--terracota);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsividade Depoimentos (Ajustes Críticos) */
@media (max-width: 768px) {
    .testimonials-header h2 {
        font-size: 2rem;
    }

    .carousel-wrapper {
        /* Permite a rolagem horizontal no mobile */
        overflow-x: scroll;
        padding-bottom: 10px;
        /* Espaço para a barra de scroll */
    }

    .testimonials-carousel {
        width: auto;
        /* Deixa o flexbox determinar a largura */
        animation: none;
        /* Desativa a animação contínua */
        scroll-snap-type: x mandatory;
        /* Habilita o scroll-snapping */
    }

    .testimonial-card {
        min-width: calc(100% - 3rem);
        /* Ocupa quase a largura total, deixando espaço para o gap */
        max-width: calc(100% - 3rem);
        scroll-snap-align: start;
        /* Faz o card parar no início da tela */
    }
}

/* ==================== AGENDAMENTO APP ==================== */
.agendamento {
    position: relative;
    padding: 80px 20px;
    background: url('img/bg-agendamento.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agendamento-overlay {
    background: rgba(18, 74, 56, 0.7);
    padding: 40px;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.agendamento .section-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.agendamento-text {
    color: #eee;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-agendar {
    background: linear-gradient(135deg, var(--terracota), #b95b3d);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.btn-agendar:hover {
    background: linear-gradient(135deg, #b95b3d, var(--terracota));
    transform: translateY(-2px);
}

/* Responsividade Agendamento */
@media (max-width: 768px) {
    .agendamento {
        padding: 60px 15px;
        background-attachment: scroll;
    }

    .agendamento-overlay {
        padding: 30px 20px;
    }

    .agendamento .section-title {
        font-size: 1.7rem;
    }

    .agendamento-text {
        font-size: 1rem;
    }

    .btn-agendar {
        width: 100%;
        max-width: 300px;
        /* Limita para não ficar muito largo */
        padding: 14px;
    }
}


/* ==================== FLOATING BUTTONS ==================== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-buttons a {
    width: 50px;
    /* Reduzido para mobile */
    height: 50px;
    /* Reduzido para mobile */
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    /* Reduzido para mobile */
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-buttons a.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.floating-buttons a:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

/* Mantendo o tamanho maior para desktop */
@media (min-width: 769px) {
    .floating-buttons a {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* ==================== RODAPÉ (FOOTER) ==================== */
/* Estilos no HTML foram mantidos mas ajustei o CSS para o mobile */

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.footer-contact p {
    margin: 4px 0;
    font-size: 1rem;
}

/* Responsividade Rodapé */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        /* Empilha os elementos */
        text-align: center;
    }

    .footer-contact {
        margin-top: 10px;
        text-align: center;
    }

    .footer-contact p {
        font-size: 0.95rem;
    }
}