/* Importando as fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Lato:wght@400;700&display=swap');

:root {
    /* Cores de Fundo - Azul aprofundado */
    --bg: #E0EBF7;
    /* Um azul muito claro e elegante, menos branco */
    --bg-alt: #CADFF2;
    /* Um azul claro um pouco mais saturado para seções alternadas */
    --card: #FFFFFF;
    /* Manter branco para o card, para contraste com os fundos azuis */

    /* Cores de Texto - Adaptadas ao novo fundo */
    --text-primary: #1A3866;
    /* Azul escuro profundo, ainda ótimo para legibilidade */
    --text-muted: #5B7A9F;
    /* Cinza azulado para texto secundário, funciona bem */

    /* Cores Principais - Púrpura */
    --primary: #8A2BE2;
    /* Púrpura vibrante para botões e destaques */
    --primary-dark: #6A1BA9;
    /* Versão mais escura do púrpura para hover */
    --primary-rgb: 138, 43, 226;
    /* Valores RGB do púrpura */

    /* Cor de Destaque - Ciano Suave para Pontos Específicos */
    --accent: #00BCD4;
    /* Reutilizando o ciano anterior como um acento secundário */

    --white: #FFFFFF;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Sombra um pouco mais visível */
    --radius: 12px;
    --transition-speed: .3s;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', system-ui, sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto
}

.section {
    padding: 100px 0;
    position: relative;
}

.section--alt {
    background: var(--bg-alt)
}

h1,
h2,
h3 {
    font-family: "Montserrat", sans-serif;
}

.section__title {
    font-size: clamp(26px, 4vw, 38px);
    margin: 0 0 12px;
}

.section__title.center {
    text-align: center
}

.section__subtitle.center {
    text-align: center;
    color: var(--text-muted);
    margin-top: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lead {
    color: var(--text-muted);
    font-size: 1.1rem
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 249, 250, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(var(--primary-rgb), .15);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.logo {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo__title {
    font-weight: 700;
    color: var(--text-primary);
}

.logo__subtitle {
    font-size: 12px;
    color: var(--text-muted)
}

.nav__menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0
}

.nav__menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: var(--radius);
    transition: background var(--transition-speed) ease;
}

.nav__menu a:hover {
    background: rgba(var(--primary-rgb), .1)
}

.nav__menu .btn-primary {
    color: var(--white) !important;
}

.nav__toggle {
    display: none;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: filter var(--transition-speed) ease;
}

.btn-sm {
    padding: 8px 12px;
    font-size: .9rem
}

.btn-lg {
    padding: 14px 22px;
    font-size: 1.05rem
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .25)
}

.btn-primary:hover {
    filter: brightness(1.1)
}

.btn-outline {
    border: 1px solid rgba(var(--primary-rgb), .25);
    color: var(--text-primary);
    background: transparent
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), .08)
}

/* Hero */
.hero {
    padding: 92px 0 48px
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 36px;
    align-items: center
}

.hero__title {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
}

.hero__subtitle {
    color: var(--text-muted);
    margin: 16px 0 32px;
    font-size: 1.1rem;
}

.hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.hero__media img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Grids & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.card-image {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    box-shadow: var(--shadow);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.35);
}

.service-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Locais Grid */
.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Timeline */
.timeline {
    max-width: 700px;
    margin: 48px auto 0;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(var(--primary-rgb), .15);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.25);
}

/* Location Cards */
.location-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(var(--primary-rgb), .08);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.location-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.location-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.location-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.location-card .btn {
    align-self: flex-start;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.25);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.location-card:hover .location-image {
    transform: scale(1.03);
}

/* Blog Preview */
.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    margin-bottom: 15px;
}

#blog-preview .card {
    padding: 0;
}

#blog-preview .card h3,
#blog-preview .card p {
    padding: 0 22px;
}

#blog-preview .card a {
    padding-bottom: 22px;
    display: flex;
    /* Centering fix */
    width: fit-content;
    margin: 0 auto;
}

/* FAQ */
.faq {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), .08);
    border-radius: var(--radius);
    padding: 16px 18px
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 28px 0;
    border-top: 1px solid rgba(var(--primary-rgb), .15);
    background: var(--bg)
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center
}

.footer__links {
    display: flex;
    gap: 16px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none
}

.footer__links a svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}

/* WhatsApp Float */
.whats-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.whats-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-top: 2px;
}

.whats-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

/* Formulário e Cookies (Mantidos) */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(var(--primary-rgb), .08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--text-primary);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
}

.cookie-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: calc(100% - 40px);
    background: var(--card);
    color: var(--text-primary);
    border: 1px solid rgba(var(--primary-rgb), .1);
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: var(--shadow);
}

.cookie-bar a {
    color: var(--primary);
    text-decoration: none;
}

.cookie-bar.hide {
    opacity: 0;
    pointer-events: none;
}

/* Animações */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Apresentação (Freud) - FIX: Texto Branco */
#apresentacao {
    padding: 72px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#apresentacao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
}

#apresentacao .container {
    position: relative;
    z-index: 2;
}

.quote-card-expanded {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card);
    color: var(--text-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* FIX: Texto fora do card deve ser branco */
#apresentacao .section__title,
#apresentacao .section__subtitle,
#apresentacao p:not(.quote-text) {
    color: var(--white) !important;
}

/* Texto dentro do card deve ser escuro */
.quote-card-expanded p,
.quote-card-expanded blockquote,
.quote-card-expanded cite {
    color: var(--text-primary) !important;
}

/* Media Queries */
@media (max-width: 980px) {
    .nav__toggle {
        display: block;
        background: none;
        border: 2px solid var(--text-primary);
        color: var(--text-primary);
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1rem;
    }

    .nav__menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(248, 249, 250, .95);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(var(--primary-rgb), .15);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav__menu.show {
        display: flex;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    #apresentacao {
        background-attachment: scroll;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .footer__links {
        justify-content: center;
    }
}

/* --- Advanced Animations --- */

/* Base Active State for all reveals */
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* 1. Zoom In Effect */
.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom.active {
    transform: scale(1);
    opacity: 1;
}

/* 2. Slide from Left */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-left.active {
    transform: translateX(0);
    opacity: 1;
}

/* 3. Slide from Right */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* 4. Staggered Children */
.reveal-stagger .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.reveal-stagger.active .reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active .reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.active .reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger.active .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger.active .reveal:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-stagger.active .reveal:nth-child(5) {
    transition-delay: 0.5s;
}

.reveal-stagger.active .reveal:nth-child(6) {
    transition-delay: 0.6s;
}

/* Section Separators - Waves */
.section {
    position: relative;
    /* Ensure z-index works for dividers */
}

.section-divider {
    position: absolute;
    bottom: -1px;
    /* Fix scaling gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.section-divider svg {
    position: relative;
    display: none;
    width: calc(100% + 1.3px);
    height: 60px;
}

.section-divider .shape-fill {
    fill: var(--bg);
}

/* For dividers in 'alt' sections (grey background), they should transition to white or next color */
.section--alt .section-divider .shape-fill {
    fill: var(--white);
}

/* Spacing Fixes */
.grid-2 {
    gap: 80px;
    /* Increase gap from old value */
}

/* --- Thematic & Fixes --- */

/* Fix "risk" on main photo - pushing content up/divider down */
.hero {
    padding-bottom: 140px;
    /* Increased space before divider */
    position: relative;
    z-index: 5;
}

/* Floating Icons */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-icon {
    position: absolute;
    z-index: 1;
    /* Behind text but visible */
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
    pointer-events: none;
    /* Don't block clicks */
}

/* Specific Positions */
.icon-sun {
    top: 10%;
    right: 5%;
    width: 60px;
    height: 60px;
    fill: #FFD700;
    /* Gold */
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.icon-moon {
    top: 15%;
    left: 5%;
    width: 50px;
    height: 50px;
    fill: #C0C0C0;
    /* Silver */
    opacity: 0.6;
}

.icon-backpack {
    bottom: 20%;
    right: 8%;
    width: 55px;
    height: 55px;
    fill: var(--primary);
    opacity: 0.15;
    transform: rotate(15deg);
}

/* --- Blog & Internas --- */

.page-title {
    padding: 120px 0 60px;
    /* Mais espaço para o menu fixo */
    background: var(--bg-alt);
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.post-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-style: italic;
}

.breadcrumbs {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Post Content Typography */
.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: rgba(26, 56, 102, 0.9);
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 30px 0;
    padding: 10px 20px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

/* --- Blog Carousel (Infinite Loop + Drag Support) --- */

.blog-carousel-wrapper {
    /* Mudei de auto para hidden. 
       MOTIVO: Como o JS controla o movimento, 'hidden' evita que 
       a inércia nativa do celular "brigue" com o seu cálculo matemático. */
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;

    /* UX: Mostra a "mãozinha" para indicar que é arrastável */
    cursor: grab;

    /* Previne seleção de texto acidental enquanto arrasta */
    user-select: none;
    -webkit-user-select: none;
}

/* Classe adicionada pelo JS quando o usuário clica/toca */
.blog-carousel-wrapper.dragging {
    cursor: grabbing;
    /* A mãozinha "fechada" */
    scroll-behavior: auto !important;
    /* Garante resposta instantânea */
}

/* Previne que a imagem seja arrastada como "fantasma" */
.blog-carousel-track img {
    pointer-events: none;
}

.blog-carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
    /* Otimização de performance */
}



/* Cards */
.blog-carousel-track .card {
    min-width: 320px;
    max-width: 320px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

/* Nav Buttons (Restored) */


.blog-carousel-track p {
    flex-grow: 1;
}



.blog-carousel-track .card .btn {
    margin-top: auto;
}


/* Floating Icons (New) */
.floating-icon {
    position: absolute;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

.icon-sun {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon-moon {
    top: 15%;
    right: 15%;
    animation-delay: 2s;
}

.icon-backpack {
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
}



/* Responsive adjustments for Floating Icons */
@media (max-width: 980px) {
    .floating-icon {
        display: none;
        /* Hide decorative floating icons on mobile/tablet to prevent overlap */
    }

    .whats-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .whats-float svg {
        width: 28px;
        height: 28px;
    }
}