/* ============================================================================== */
/* Arquivo: static/core/css/style.css                                         */
/* Este ficheiro contém todos os estilos personalizados e aprimorados.            */
/* ============================================================================== */

/* Importação de Fontes */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Nunito+Sans:wght@400;700;800&display=swap');

/* Estilos de Base */
body {
    font-family: 'Lato', sans-serif;
    color: #374151; /* Cinza mais suave */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Evita rolagem horizontal acidental */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito Sans', sans-serif;
}

/* Efeito de Fundo Fixo (Paralaxe Suave) */
#inicio {
    background-attachment: fixed;
}

/* -- CORREÇÃO 2 (MELHORIA DE PERFORMANCE) -- */
/* Desativa a paralaxe "fixed" em dispositivos móveis, pois causa "lag" */
@media (max-width: 768px) {
    #inicio {
        background-attachment: scroll;
    }
}
/* -- FIM DA CORREÇÃO 2 -- */


/* Efeito de texto em gradiente para títulos */
.gradient-text {
  background: linear-gradient(45deg, #F9A825, #9C27B0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Animações de entrada com atraso */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 200ms; }
.reveal-delay-2 { transition-delay: 400ms; }

/* Animação Stagger para listas de cards */
.reveal-stagger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active .reveal-stagger:nth-child(1) { transition-delay: 100ms; }
.reveal.active .reveal-stagger:nth-child(2) { transition-delay: 200ms; }
.reveal.active .reveal-stagger:nth-child(3) { transition-delay: 300ms; }
.reveal.active .reveal-stagger {
    opacity: 1;
    transform: translateY(0);
}


/* ESTILOS DO HEADER */
/* Estado padrão do header (para páginas internas) */
#header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
#header .nav-link, #header #logo-text, #header #mobile-menu-button {
    color: #1C1C1E; /* Cor escura para texto */
}
#header .cta-button {
    color: white !important;
    background-image: linear-gradient(to right, #9C27B0, #7B1FA2);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: scale(1);
    /* -- CORREÇÃO 1 (BUG DA FOTO) -- */
    white-space: nowrap;
}
#header .cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ##-- IMPLEMENTADO: Estilos para o Slideshow da Seção Hero --## */
#hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0; /* atalho para top, right, bottom, left = 0 */
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Animação de fade longa e suave */
    z-index: 1;
}

.hero-slide.is-visible {
    opacity: 1;
    z-index: 2; /* Garante que o slide visível esteja na frente */
}

/* Estado do header na página inicial, no topo */
.is-homepage #header {
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
}
.is-homepage #header .nav-link, .is-homepage #header #logo-text, .is-homepage #header #mobile-menu-button {
    color: white;
}

/* Estado do header na página inicial, após o scroll */
.is-homepage #header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.is-homepage #header.header-scrolled .nav-link, .is-homepage #header.header-scrolled #logo-text, .is-homepage #header.header-scrolled #mobile-menu-button {
    color: #1C1C1E;
}


/* Estilos de Botões Globais com Gradiente */
.button-primary {
    background-image: linear-gradient(to right, #F9A825, #f59e0b);
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    line-height: 1.75rem;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    /* -- CORREÇÃO 1 (BUG DA FOTO) -- */
    /* Impede que o texto quebre em telas pequenas */
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}
.button-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.button-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-weight: bold;
    padding: 0.625rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    line-height: 1.75rem;
    transition: all 0.3s ease;
    transform: scale(1);
    backdrop-filter: blur(5px);
    /* -- CORREÇÃO 1 (BUG DA FOTO) -- */
    white-space: nowrap;
    display: inline-block;
}
.button-secondary:hover {
    transform: scale(1.05);
    background-color: white;
    color: #1C1C1E;
}

.button-cta {
    width: 100%;
    background-image: linear-gradient(to right, #9C27B0, #7B1FA2);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    transform: scale(1);
    /* -- CORREÇÃO 1 (BUG DA FOTO) -- */
    white-space: nowrap;
}
.button-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}


/* Estilos de Cards de Serviço */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid #e5e7eb;
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    border-color: #F9A825;
}

/* Estilos de Formulários Modernos */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all 0.3s ease;
    
    /* -- CORREÇÃO 3 (A) -- */
    /* Remove a aparência padrão (seta feia) do browser, especialmente para <select> */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* -- CORREÇÃO 3 (B) -- */
/* Adiciona uma seta personalizada para <select> que usa a classe .form-input */
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem; /* Abre espaço para a seta */
}
/* -- FIM DA CORREÇÃO 3 -- */

.form-input:focus {
    outline: none;
    --tw-ring-color: #F9A825;
    box-shadow: 0 0 0 2px var(--tw-ring-color);
    border-color: transparent;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4b5563;
}

/* ##-- NOVO: Estilo para limitar texto a N linhas com "..." --## */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* ## NOVO: Estilos para o contentor de vídeo responsivo (16:9) ## */
.video-container-responsive {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Proporção 16:9 (cálculo: 9 / 16 = 0.5625) */
    border-radius: 0.75rem; /* 12px, para combinar com o design */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.video-container-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Remove a renderização padrão de <p> do Django */
form > p {
    all: unset;
    display: contents;
}

/* Estilos para Testemunhos */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ## NOVO: Estilo para limitar texto a 5 linhas com "..." ## */
.line-clamp-5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

/* ## NOVO: Estilo para o link "Ver mais" ## */
.read-more-link {
    cursor: pointer;
    font-weight: bold;
    color: #9C27B0; /* Cor secundária */
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #7B1FA2; /* Cor secundária escura */
}

/* Estilos para a barra lateral (menu móvel) */
.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #1C1C1E;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}
.sidebar-link:hover {
    background-color: #F3E5F5;
    color: #9C27B0;
}

/* ESTILOS PARA FAQ (ACORDEÃO) */
details > summary {
    list-style: none; /* Remove a seta padrão */
    cursor: pointer;
}
details > summary::-webkit-details-marker {
    display: none; /* Remove a seta padrão no Chrome/Safari */
}
.faq-icon {
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
}
.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}
details[open] .faq-answer {
    max-height: 1000px; /* Um valor alto para permitir qualquer conteúdo */
    margin-top: 1rem;
}

/* ==========================================================================
   CORREÇÃO FINAL (Responsividade, Cards e Carrossel)
   ========================================================================== */

/* 1. Container Flexível */
.team-container, 
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

/* 2. CARDS: Tamanho Seguro (IMPORTANTE: min-width impede o texto vertical) */
.team-member, 
.service-card, 
.testimonial-card {
    /* Define limites rígidos */
    width: 100%;
    min-width: 300px;  /* <--- SEGURANÇA: Nunca fica menor que 300px */
    max-width: 400px;  /* Limite máximo confortável */
    
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;    /* Centraliza */
}

.team-member:hover, 
.service-card:hover, 
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 3. CORREÇÃO DE TEXTO (Final) */
.break-words-fix, 
.testimonial-card p, 
.quote-text,
.service-card p {
    /* 'anywhere' só quebra se não houver espaço. 'normal' protege palavras comuns */
    overflow-wrap: anywhere !important; 
    word-break: normal !important;      
    hyphens: auto;
    white-space: normal !important;
}

/* 4. ESTILOS DO CARROSSEL (SWIPER) */
.swiper {
    width: 100%;
    padding-bottom: 50px !important;
}

/* Força o container do carrossel a ocupar espaço total */
.swiper-wrapper {
    width: 100%;
}

.swiper-slide {
    height: auto !important;
    display: flex;
    justify-content: center;
    /* Padding lateral para evitar que o card cole na borda em telas pequenas */
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box; 
}

.swiper-pagination-bullet {
    background: #1C1C1E;
    opacity: 0.3;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #F9A825 !important;
    opacity: 1;
    transform: scale(1.2);
}