/*
|================================================================================
| CSS COMPLETO E OTIMIZADO (Mobile-First com Media Queries)
|================================================================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #000000; /* text-dark */
    line-height: 1.6;
    background-color: #f8f7f6; /* bg-light */
}

.container {
    /* Otimizado: Define largura máxima para telas grandes e garante margem auto */
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Garante que ocupe a largura total em telas menores */
}

.section-padding {
    padding: 80px 0;
}

/* BOTÕES GERAIS */
.btn-primary, .btn-secondary, .btn-agendar-header {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s; /* Somente propriedade performática */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden; 
    text-align: center; 
}

.btn-primary {
    background-color: #b48229; /* primary-color */
    color: #fdfdfd; /* text-light */
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #b48229; /* primary-color */
    color: #b48229; /* primary-color */
    margin-top: 20px;
}

/* Efeito Shine no Botão Primário (CSS3 pseudo-elemento) */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg); 
    transition: left 0.6s ease;
}

.btn-primary:hover {
    background-color: #a07425;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::after {
    left: 110%;
}

.btn-secondary:hover {
    background-color: #b48229; /* primary-color */
    color: #fdfdfd; /* text-light */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* HEADER (FIXO E GRADIENTE CSS3) */
header {
    background: linear-gradient(135deg, #604412, #604412); /* secondary-color */
    color: #fdfdfd; /* text-light */
    position: fixed;
    padding-bottom: 0;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    top: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

/* Alinha a seção abaixo do header fixo */
#sobre .container{
    margin-top: 70px; 
}

/* CORREÇÃO: Remoção de posicionamento fixo para o H2 fora do fluxo */
#sobre h2 {
    position: static;
    text-align: center;
    color: #604412; /* secondary-color */
    margin: 50px auto 20px;
}

.navbar-container {
    display: flex;
    justify-content: space-between; /* Distribui logo e nav */
    align-items: center;
    padding: 10px 20px; 
    height: auto;
    margin: 0 auto;
    max-width: 1200px; /* Alinha com o .container */
    width: 100%;
    position: relative;
    z-index: 10;
}

.navbar-container nav {
    display: flex;
    justify-content: flex-end;
    /* CORREÇÃO: Removido margin-left fixo (350px) para não quebrar no mobile */
    margin-left: auto; 
    flex-wrap: nowrap;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px; 
}

.name {
    color: #fdfdfd; 
    font-weight: 300;
    font-size: 1.1em;
    white-space: nowrap;
}

.header-logo {
    width: 60px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    margin-right: 10px;
}

.logo {
    font-size: 1.3em;
    font-weight: 200;
    color: #fdfdfd; 
    /* CORREÇÃO: Removido margin-left fixo (200px) */
    margin-left:0; 
    white-space: nowrap;
}

nav {
    display: flex; 
    align-items: center;
    margin-right: 0; 
    flex-wrap:nowrap;
}

nav a {
    color: #fdfdfd; 
    text-decoration: solid;
    margin-left: 20px;
    font-weight: 300;
    position: relative; 
    padding-bottom: 5px; 
    transition: color 0.3s, transform 0.3s ease-in-out;
    display: inline-block;
}

/* Efeito Underline Hover (CSS3) */
nav a::after {
    content: '';
    position: absolute;
    width: 0%; 
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fdfdfd; 
    transition: width 0.3s ease-in-out; 
}

nav a:hover, nav a.active {
    color: #fdfdfd; 
    transform: scale(1.1);
}

nav a:hover::after, nav a.active::after {
    width: 100%; 
    background-color: #b48229; 
}

.btn-agendar-header {
    background-color: #fdfdfd; 
    color: #604412; 
    padding: 8px 10px;
    font-size: 0.7em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    align-items: center;
    white-space: nowrap;
    transition: transform 0.2s; 
    margin-left: 20px; 
}

.btn-agendar-header:hover {
    background-color: #fdfdfd; 
    color: #b48229; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-content {
    text-align: center;
    padding-top: 10px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #fdfdfd; 
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #fdfdfd; 
}

/* SEÇÕES DE CONTEÚDO */
.bg-light {
    background-color: #f8f7f6; 
}

/* SEÇÃO SOBRE (Flexbox CSS3) */
.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 0;
}

.profile-image-container {
    width: 300px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    margin-top: 20px;
    flex-shrink: 0;
}

.profile-pic {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: block;
}

.about-content p {
    flex: 1;
    font-size: 1.1em;
    color: #000000; 
    text-align: justify;
    line-height: 1.7;
}

/* SEÇÃO QUEIXAS - CARROSSEL HORIZONTAL */
.queixa-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 10px 10px 10px 10px;
    width: 100%;
    
    -webkit-overflow-scrolling: touch; 
    
    align-items: stretch;
    position: relative;
}


/* Personalizar a barra de rolagem (Webkit - Chrome, Safari, Edge) */
.queixa-scroll-container::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.queixa-scroll-container::-webkit-scrollbar-track {
    background: #f8f7f6; 
    border-radius: 10px;
    margin: 0 20px;
}

.queixa-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #b48229, #604412); 
    border-radius: 10px;
    border: 2px solid #f8f7f6; 
}

.queixa-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #604412, #b48229); 
}

/* CARDS DAS QUEIXAS - Flexbox para alinhamento de conteúdo */
.cards-grid {
    display: flex;
    gap: 25px;
    flex-shrink: 0;
    padding: 10px 5px;
    align-items: stretch;
    height: auto;
}

.card {
    background-color: #fdfdfd; 
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: justify;
    transition: transform 0.3s;
    border-bottom: 3px solid #b48229; 
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: auto;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Indicador de texto truncado */
.ver-mais {
    color: #b48229;
    font-style: italic;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 8px;
}

.ver-mais em {
    color: #604412;
    font-weight: 600;
}

/* Garantir que o texto não ultrapasse o card */
.testimonial-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: none; /* Remove qualquer limite de altura fixo */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* TÍTULOS DOS CARDS CENTRALIZADOS */
.card h3 {
    color: #b48229; 
    margin-bottom: 5px;
    font-size: 1.2em;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card p {
    color: #000000; 
    line-height: 1.45;
    flex-grow: 1;
    display: flex;
    font-size: 0.85em;
    text-align: left;
}

/* SETAS DE NAVEGAÇÃO NO CANTO DIREITO (Geralmente requer JavaScript) */
.scroll-navigation {
    bottom: 10px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.scroll-arrow {
    background-color: #b48229; 
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: none;
    font-size: 1.2em;
}

.scroll-arrow:hover {
    background-color: #604412; 
    transform: scale(1.1);
}

.scroll-arrow.hidden {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-arrow.hidden:hover {
    transform: none;
    background-color: #b48229; 
}

/* Seção Benefícios */
#beneficios ul {
    list-style: none;
    max-width: 800px;
    margin: 10px auto;
    height: auto;
    padding: 0;
}

#beneficios li {
    background-color: #fdfdfd; 
    padding: 15px 25px;
    margin-bottom: 10px;
    border-left: 5px solid #b48229; 
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #000000; 
    font-size: 0.9em;
    font-weight: normal;
}

#beneficios .btn-secondary {
    display: block;
    width: max-content;
    margin: 30px auto 0;
}

/* Seção Contato (Flexbox CSS3) */
.contact-flex {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    /* Margin negativa para desktop, será anulada no mobile */
    margin-top: -100px; 
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info p {
    color: #000000; 
}

.contact-form {
    background-color: #fdfdfd; 
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #b48229; 
}

.contact-form h3 {
    margin-bottom: 25px;
    color: #604412; 
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    color: #000000; 
    background-color: #fdfdfd; 
}

.fa-calendar-days{
    margin-right: 10px;
}

.contact-form button {
    width: 100%;
}

/* RODAPÉ */
footer {
    background-color: #604412; 
    color: #fdfdfd; 
    padding: 30px 0;
    text-align: center;
    font-size: 0.7em;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    line-height: 60px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float span {
    display: none;
    white-space: nowrap;
    font-size: 16px;
    margin-left: 10px;
    font-weight: 600;
}

.whatsapp-float:hover {
    width: 170px;
    background-color: rgb(2, 189, 136);
    border-radius: 30px;
    padding: 0 5px;
    justify-content: flex-start;
}

.whatsapp-float:hover span {
    display: block;
    line-height: normal;
}

/* ANIMAÇÕES DE SCROLL (CSS3 Transitions e Transforms) */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animações específicas para os cards de queixas */
.queixa-scroll-container .card {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s ease-out;
}

.queixa-scroll-container.visible .card {
    opacity: 1;
    transform: translateX(0);
}

/* Delay para os cards aparecerem em sequência */
.queixa-scroll-container.visible .card:nth-child(1) { transition-delay: 0.1s; }
.queixa-scroll-container.visible .card:nth-child(2) { transition-delay: 0.2s; }
.queixa-scroll-container.visible .card:nth-child(3) { transition-delay: 0.3s; }
.queixa-scroll-container.visible .card:nth-child(4) { transition-delay: 0.4s; }

/* Efeito para a imagem de perfil */
.profile-image-container {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.profile-image-container.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-container {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    background-color: #fdfdfd; 
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.about-content p {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.about-content p.visible {
    opacity: 1;
    transform: translateX(0);
}

#beneficios li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}

#beneficios ul.visible li {
    opacity: 1;
    transform: translateX(0);
}

#beneficios ul.visible li:nth-child(1) { transition-delay: 0.1s; }
#beneficios ul.visible li:nth-child(2) { transition-delay: 0.2s; }
#beneficios ul.visible li:nth-child(3) { transition-delay: 0.3s; }
#beneficios ul.visible li:nth-child(4) { transition-delay: 0.4s; }
#beneficios ul.visible li:nth-child(5) { transition-delay: 0.5s; }

.text-content {
    flex: 1;
}

.paragraph-spacing {
    font-size: 1.1em;
    color: #000000; 
    text-align: justify;
    line-height: 1.7;
    text-indent: 0;
}

.text-content p:first-child {
    margin-top: 0;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.text-content p:first-child {
    font-weight: 600;
    font-size: 1.3em;
    color: #604412; 
    text-align: left;
    margin-bottom: 0.6em;
    margin-top: 30px;
}

.text-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    margin-bottom: 1em;
    line-height: 1.3;
    margin-right: 10px;
}

.text-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RELATOS (TESTIMONIALS)
================================ */
.testimonials-scroll-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
 
    padding-bottom: 10px;
}

.testimonial-card {
    width: 500px;
    max-width: 100%;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-top:10px;
    display:flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: flex-start;
    height:300px;
    flex-shrink: 0;
    
    overflow: hidden; /* evita overflow visual */
    
}
.testimonial-scroll-content {
    flex: 1;/* define altura máxima visível */
    overflow-y: auto;
    max-height: none;
    padding-right: 6px; /* espaço pro scroll */
}

.testimonial-scroll-content::-webkit-scrollbar {
    width: 6px;
}
.testimonial-scroll-content::-webkit-scrollbar-thumb {
    background-color: #b48229;
    border-radius: 6px;
}
.testimonial-scroll-content::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}



.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card .quote-icon {
    color: #b48229;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.testimonial-content p {
    font-size: 1em;
    color: #333;
    word-wrap: break-word;
    line-height: 1.4;
    overflow: hidden;
    transition: all 0.3s ease;
    justify-content: flex-start;
    white-space: pre-wrap;
}

.testimonial-content.expanded p {
    max-height: none;
}


.testimonial-card .ver-mais-btn {
    display: block;
    margin-top: 10px;
    background: none;
    border: none;
    color: #b48229;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-size: 0.9rem;
}

.testimonial-card .ver-mais-btn:hover {
    text-decoration: underline;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 90%;  /* ocupa 90% do container */
        max-width: 400px; /* limite máximo */
        width: auto;      /* evita conflito */
        padding: 20px;
    }

    .testimonial-content p {
        font-size: 0.9rem;
        
    }
}


/* Personalizar a barra de rolagem (Webkit - Chrome, Safari, Edge) */
.testimonials-scroll-container::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.testimonials-scroll-container::-webkit-scrollbar-track {
    background: #f8f7f6; 
    border-radius: 10px;
    margin: 0 20px;
}

.testimonials-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #b48229, #604412); 
    border-radius: 10px;
    border: 2px solid #f8f7f6; 
}

.testimonials-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #604412, #b48229); 
}





.quote-icon {
    font-size: 1.8em;
    color: #b48229; 
    margin-bottom: 15px;
    display: block;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(180, 130, 41, 0.05) 0%, transparent 70%); 
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: -1;
}

#relatos h2{ 
    text-align: center;
    margin: auto;
    margin-bottom: 0px;
    color: #604412; 
}
#queixas h2{
    text-align: center;
    color: #604412; 
    margin-bottom: 5px;
    font-size: 1.5em;
}

#beneficios h2{
    text-align: center;
    color: #604412; 
    font-size: 1.4em;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-text {
    font-size: 0.8em;
    margin-bottom: 20px;
    font-style: italic;
    color: #000000; 
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.testimonial-author {
    border-top: 1px solid #f8f7f6; 
    padding-top: 10px;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #604412; 
}

.author-detail {
    display: block;
    font-size: 0.9em;
    color: #555;
}

/* RESPONSIVIDADE (Media Queries CSS3) */

/* Dispositivos Médios (Tablets e Laptops) */

/* ============================
   CORREÇÕES MOBILE GERAIS 2025
   ============================ */

/* Header e botão centralizado */
@media (max-width: 768px) {
  header {
    padding-bottom: 10px;
  }

  .navbar-container {
      display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
    gap: 10px;
    width: 100%;
  }

  .navbar-container nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
  }
  .logo-container{
      display: flex;
      align-items: center;
      margin-right: 20px;
      
  }

  .btn-agendar-header {
    display: block;
    margin: 10px auto 0 auto;
    text-align: center;
    width: 90%;
    max-width: 250px;
    font-size: 0.9em;
  }

  .name {
    font-size: 1em;
  }
}

/* Seção SOBRE MIM (texto e imagem empilhados) */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 20px;
  }

  .profile-image-container {
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
  }

  .text-content {
    width: 100%;
  }

  .text-content p {
    font-size: 1em;
    line-height: 1.6;
  }
}

/* Corrige título de seções longas */
@media (max-width: 768px) {
  #beneficios h2, #relatos h2, #queixas h2 {
    font-size: 1.3em;
    line-height: 1.3;
    padding: 0 10px;
    text-align: center;
    word-break: break-word;
  }
}

/* Ajusta lista de benefícios */
@media (max-width: 768px) {
  #beneficios ul {
    padding: 0 10px;
  }

  #beneficios li {
    font-size: 0.95em;
    line-height: 1.5;
    text-align: left;
  }
}

/* Ajusta cards e setas do carrossel */
@media (max-width: 768px) {
  .scroll-navigation {
    justify-content: center;
    right: auto;
    bottom: -10px;
  }

  .scroll-arrow {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  .queixa-scroll-container {
    padding-bottom: 30px;
  }

  .card {
    min-width: 260px;
    max-width: 260px;
  }
}

/* Corrige altura do header fixo no scroll suave */


@media (max-width: 480px) {

    .logo-container {
        justify-content: center;
    }

    .navbar-container nav {
        justify-content: center;
        text-align: center;
    }

    .btn-agendar-header {
        align-self: center;
        width: 100%;
        max-width: 240px;
        text-align: center;
    }
}
