/* =========================================================================
   Stefano Kanace - Design System & CSS
========================================================================= */

:root {
    /* Color Palette - Psychology Aesthetic */
    --color-primary: #4a6c6f;       /* Calm Teal/Sage */
    --color-primary-dark: #375355;  
    --color-secondary: #e6e9e8;     /* Soft Light Gray-Green */
    --color-accent: #b78a62;        /* Earthy Sand/Gold */
    --color-accent-hover: #9c734e;
    
    --color-logo-bg: #0C2E2F;       /* Deep dark teal from Logo */
    
    --color-bg: #fdfdfc;            /* Off-White */
    --color-surface: #ffffff;
    --color-text: #2d3a3a;          /* Dark Slate (Softer than black) */
    --color-text-light: #6a7c7c;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif; /* Elegant, traditional, trustworthy */
    --font-body: 'Inter', sans-serif;            /* Modern, clean, readable */
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --container-width: 1200px;
    
    /* Effects */
    --shadow-sm: 0 4px 12px rgba(45, 58, 58, 0.05);
    --shadow-md: 0 10px 30px rgba(45, 58, 58, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

/* =========================================================================
   Reset & Base Styles
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* =========================================================================
   Typography Utilities
========================================================================= */
.section-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.section-header.center {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================================================
   Buttons
========================================================================= */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* =========================================================================
   Header / Navbar
========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(12, 46, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-surface);
}

.text-logo .logo-icon {
    font-size: 1.8rem;
}

.text-logo:hover {
    color: var(--color-accent);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-surface);
    transition: var(--transition);
}

/* =========================================================================
   Hero Section
========================================================================= */
.hero {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 3rem;
    min-height: 75vh;
    min-height: 75svh;
    display: flex;
    align-items: center;
    /* Soft background from generated image overlay */
    background-image: linear-gradient(rgba(253, 253, 252, 0.85), rgba(253, 253, 252, 0.95)), url('hero_bg_1775440011775.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 1rem;
    background-color: var(--color-secondary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    line-height: 1.4;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Sobre Section
========================================================================= */
.sobre {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-surface);
}

.sobre-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-image {
    position: relative;
    max-width: 420px;
}

.sobre-image img {
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(45, 58, 58, 0.15);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    border: 4px solid rgba(183, 138, 98, 0.25);
    filter: contrast(1.03) brightness(1.02);
    transition: var(--transition);
}

.sobre-image img:hover {
    box-shadow: 0 25px 60px rgba(45, 58, 58, 0.2);
    transform: translateY(-4px);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-primary);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}



.crp {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.sobre-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.sobre-list {
    margin-top: 2rem;
}

.sobre-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 500;
}

.sobre-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* =========================================================================
   Abordagens Section
========================================================================= */
.abordagens {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-secondary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--color-accent);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* =========================================================================
   Video Section
========================================================================= */
.video-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-surface);
}

.video-frame-container {
    max-width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-frame-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    display: block;
}

/* =========================================================================
   Formação Badge
========================================================================= */
.formacao-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(74,108,111,0.1), rgba(183,138,98,0.15));
    border: 1px solid rgba(183,138,98,0.4);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

/* =========================================================================
   Sobre CTA Buttons
========================================================================= */
.sobre-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================================================================
   Neurociência Section
========================================================================= */
.neurociencia {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #2a4a4d 50%, #1e3538 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.neurociencia::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(183,138,98,0.08);
    pointer-events: none;
}

.neurociencia::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(74,108,111,0.12);
    pointer-events: none;
}

.neuro-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.neuro-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

.neuro-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(183,138,98,0.5));
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(183,138,98,0.4)); }
    50% { filter: drop-shadow(0 0 30px rgba(183,138,98,0.7)); }
}

.neuro-badge .section-subtitle {
    color: var(--color-accent);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 3px;
}

.neuro-title {
    color: #fff !important;
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.15;
}

.neuro-title em {
    font-style: italic;
    color: var(--color-accent);
}

.neuro-text-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.neuro-text-blocks p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}

.neuro-text-blocks p strong {
    color: var(--color-accent);
    font-weight: 600;
}

.neuro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.neuro-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(183,138,98,0.35);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
    cursor: default;
}

.neuro-tag:hover {
    background: rgba(183,138,98,0.2);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================================
   Avaliações Section
========================================================================= */
.avaliacoes {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-surface);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--color-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(45, 58, 58, 0.05);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: #FFD700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.review-author {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.review-source {
    font-size: 0.8rem;
    color: #999;
}

/* =========================================================================
   CTA Section
========================================================================= */
.cta {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary-dark);
    color: #fff;
    text-align: center;
}

.cta-container h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-light {
    background-color: #fff;
    color: var(--color-primary-dark);
    border-color: #fff;
}

.btn-light:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================================
   Floating WhatsApp Button
========================================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65);
    transform: translateY(-4px) scale(1.05);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.4;
    animation: whatsapp-pulse 2.5s ease-out infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================================================
   Footer Section
========================================================================= */
.footer {
    background-color: var(--color-logo-bg);
    padding: var(--spacing-md) 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-text-logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    align-items: flex-start;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer ul li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom p a {
    color: var(--color-accent);
    font-weight: 500;
}

.footer-bottom p a:hover {
    color: var(--color-primary-dark);
}

/* =========================================================================
   Media Queries
========================================================================= */
@media (max-width: 992px) {
    .sobre-container {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        right: 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .neuro-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .neuro-badge {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    
    .neuro-badge .section-subtitle {
        writing-mode: horizontal-tb;
        transform: none;
    }
    
    .neuro-title {
        font-size: 2.25rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 6.5rem;
        padding-bottom: 2.5rem;
        min-height: auto;
    }
    
    .sobre-image {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .subtitle {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        letter-spacing: 1px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: flex;
    }

    .text-logo {
        color: #fff !important;
        font-size: 1.7rem;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-logo-bg);
        box-shadow: var(--shadow-sm);
        padding: 2rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}
