/* ==========================================================================
   CERNE - DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-color: #f8f7f4;
    --text-color: #111111;
    --btn-bg: #a3c4c8;
    --border-color: rgba(17, 17, 17, 0.2);
    --nav-bg: #020D15;
    --nav-text: #ffffff;
    
    /* Cores Chatbot */
    --chat-bg: #ffffff;
    --chat-user: #111111;
    --chat-bot: #f4f4f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

/* ==========================================================================
   NAVIGATION & MENU
   ========================================================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 2vw !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: var(--nav-bg); 
    color: var(--nav-text); 
    transition: color 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    width: 35px;
    height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    transition: transform 0.4s ease;
    transform-origin: center;
}

nav.menu-open .hamburger-line:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
nav.menu-open .hamburger-line:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

.menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--text-color);
    color: var(--bg-color);
    z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-overlay.active { clip-path: inset(0 0 0 0); }

.menu-links { display: flex; flex-direction: column; text-align: center; gap: 2vh; }

.menu-links a {
    font-size: clamp(3rem, 7vw, 7rem);
    text-transform: uppercase; 
    letter-spacing: -0.04em; 
    line-height: 0.9;
    transition: opacity 0.3s ease;
}

.menu-links a:hover { 
    opacity: 0.6; 
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding: 20vh 3vw 3vw 3vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-title-container {
    margin-bottom: 5rem;
    opacity: 0; 
}

.title-sans {
    font-family: 'Inter', sans-serif;
    font-size: 8vw !important;
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.85;
}

.title-serif-container {
    display: flex;
    align-items: center;
    margin-left: 8vw; 
}

.title-serif {
    font-family: 'Inter', sans-serif;
    font-size: 7vw !important;
    font-weight: 400;
    line-height: 0.8;
    font-style: italic;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: auto;
}

.hero-intro {
    width: 35%; 
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.0rem, 1.6vw, 1.6rem); 
    line-height: 1.3; 
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: none; 
    opacity: 0; 
}

.hero-image {
    width: 65%;
    height: 60vh;
}

/* ==========================================================================
   IMAGE REVEAL ENGINE
   ========================================================================== */

.img-reveal-container {
    overflow: hidden;
    position: relative;
    clip-path: inset(100% 0 0 0); 
}

.img-reveal-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3); 
    display: block;
}

.full-width-wrapper {
    padding: 0 3vw;
}

.full-width-img {
    width: 100%;
    height: 80vh; 
    margin-bottom: 4rem;
}

/* ==========================================================================
   STATEMENT & TEAM
   ========================================================================== */

.statement-section {
    padding: 8rem 3vw;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
}

.statement-large-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.0rem, 1.6vw, 1.6rem); 
    line-height: 1.3; 
    font-weight: 400;
    letter-spacing: -0.02em;
    max-width: 800px; 
    margin-bottom: 3rem;
}

.statement-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    border: 1px solid var(--text-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.team-section {
    padding: 8rem 3vw;
    border-top: 1px solid var(--border-color);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6rem;
    gap: 4rem;
}

.team-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
    flex: 1;
}

.team-intro {
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    line-height: 1.4;
    flex: 1;
    max-width: 600px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 8rem;
}

.team-card {
    display: flex;
    flex-direction: column;
}

.member-image {
    width: 100%;
    aspect-ratio: 3 / 4; 
    margin-bottom: 2rem;
}

.member-image img {
    filter: grayscale(100%); 
    transition: filter 0.5s ease; 
}

.team-card:hover .member-image img {
    filter: grayscale(0%); 
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.member-bio {
    font-size: 1rem;
    line-height: 1.5;
    color: #444; 
}

.team-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.team-footer-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

.team-footer-text {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.4;
}

.team-tagline {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 1rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-section {
    padding: 0 3vw 8rem 3vw;
}

.service-row {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    align-items: center;
    cursor: pointer;
}

.service-row:last-child {
    border-bottom: 1px solid var(--border-color);
}

.service-row:hover .service-title {
    padding-left: 2rem;
    transition: padding-left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
    transition: padding-left 0.4s ease;
}

.service-desc { 
    font-size: 12px; 
    text-transform: uppercase; 
}

.service-action {
    font-size: 12px; 
    text-transform: uppercase; 
    text-align: right;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    position: relative; 
    padding: 8rem 3vw 2rem 3vw;
    color: var(--bg-color); 
    overflow: hidden; 
}

.footer-bg {
    position: absolute !important; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 0;
}

.footer-bg img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
}

.footer-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(17, 17, 17, 0.75); 
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex; 
    flex-direction: column;
}

.footer-title-container {
    margin-bottom: 6rem;
}

.footer-cta-link {
    display: block;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

.footer-cta-link:hover { 
    opacity: 0.7; 
}

.footer-bottom {
    display: flex; 
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}

.footer-links { 
    display: flex; 
    gap: 2rem; 
}

/* ==========================================================================
   MODAIS (Serviços e Contato)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.6); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 4rem;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.modal-close:hover { opacity: 0.5; }

.modal-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.modal-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    color: #333;
}

.modal-pillars { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.modal-pillars li { font-size: 0.95rem; line-height: 1.5; padding-left: 1.5rem; position: relative; }
.modal-pillars li::before { content: '—'; position: absolute; left: 0; top: 0; color: var(--text-color); }
.modal-pillars strong { font-weight: 500; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; display: block; margin-bottom: 0.3rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.form-row { display: flex; gap: 1.5rem; }
.form-row .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; color: #555; }
.form-group input { width: 100%; padding: 10px 0; border: none; border-bottom: 1px solid var(--border-color); background: transparent; font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-color); outline: none; transition: border-color 0.3s ease; }
.form-group input:focus { border-bottom-color: var(--text-color); }

.btn-submit { margin-top: 2rem; background-color: var(--text-color); color: var(--bg-color); border: none; padding: 16px 32px; font-family: 'Inter', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; cursor: pointer; transition: opacity 0.3s ease; }
.btn-submit:hover { opacity: 0.8; }

/* ==========================================================================
   ELEMENTOS FLUTUANTES (Scroll, WhatsApp)
   ========================================================================== */

.floating-left {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 990;
}

.floating-right {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 990;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.05) translateY(-5px);
}

.scroll-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(17,17,17,0.05);
    padding: 5px;
    border-radius: 50px;
}

.scroll-group .float-btn {
    background-color: transparent;
    color: var(--text-color);
    box-shadow: none;
    width: 35px;
    height: 35px;
}

.scroll-group .float-btn:hover { background-color: var(--text-color); color: var(--bg-color); transform: none;}

.float-btn svg {
    transition: transform 0.3s ease;
}

.wa-btn { background-color: #25D366; color: #fff; }
.wa-btn:hover { background-color: #1EAB52; }
.wa-btn:hover svg { transform: rotate(12deg); }

.chat-btn { width: 60px; height: 60px; background-color: var(--text-color); border: 2px solid white;}

/* ==========================================================================
   NOVO ASSISTENTE VIRTUAL CONVERSACIONAL
   ========================================================================== */

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 520px;
    background-color: var(--chat-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.hidden-chat {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

.chatbot-header {
    background-color: var(--chat-bot);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; color: var(--text-color); letter-spacing: 0.05em; }
.chatbot-subtitle { font-size: 0.75rem; color: #666; margin-top: 2px; }

.chatbot-close-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.chatbot-close-btn:hover { color: var(--text-color); }

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.chat-bubble {
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 1rem;
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bot-bubble {
    background-color: var(--chat-bot);
    color: var(--text-color);
    border-radius: 12px 12px 12px 2px;
    align-self: flex-start;
    border: 1px solid var(--border-color);
}

.user-bubble {
    background-color: var(--chat-user);
    color: var(--chat-bg);
    border-radius: 12px 12px 2px 12px;
    align-self: flex-end;
}

/* Scroll de Sugestões estilo Dra. Elcidia */
.chat-suggestions {
    padding: 0 1.5rem 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.chat-suggestions::-webkit-scrollbar { display: none; }

.suggestion-btn {
    flex-shrink: 0;
    background-color: var(--chat-bot);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    scroll-snap-align: start;
}

.suggestion-btn:hover {
    background-color: var(--chat-user);
    color: var(--chat-bg);
}

.chat-input-area {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background-color: var(--chat-bot);
}

.chat-input-area input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus { border-color: var(--text-color); }

.chat-send-btn {
    background-color: var(--chat-user);
    color: var(--chat-bg);
    border: none;
    border-radius: 8px;
    width: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-send-btn:hover { opacity: 0.8; }
.chat-send-btn svg { transform: rotate(45deg); margin-left: -2px; }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 900px) {
    .hero-bottom { flex-direction: column; gap: 3rem; }
    .hero-intro { width: 100%; }
    .hero-image { width: 100%; height: 40vh; }
    .title-serif-container { margin-left: 0; }
    .service-row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
    .footer-bottom { flex-direction: column; gap: 2rem; }
    .team-header { flex-direction: column; gap: 2rem; }
    .team-grid { grid-template-columns: 1fr; gap: 4rem; }
    .team-intro { width: 100%; }
}

@media (max-width: 768px) {
    .modal-content { padding: 3rem 1.5rem; }
    .modal-close { top: 1rem; right: 1rem; }
    .form-row { flex-direction: column; gap: 1.5rem; }
    .floating-left { left: 1rem; bottom: 1rem; }
    .floating-right { right: 1rem; bottom: 1rem; }
    .chatbot-window { width: 320px; bottom: 70px; right: 0; height: 480px;}
}