/* CSS Variables for Premium Dark/Blue Theme */
:root {
    --primary: #C5A866; /* Elegant gold/yellow from his highlights */
    --primary-hover: #D8BD80;
    --bg-dark: #0A0F1A; /* Very dark blue, almost black */
    --bg-darker: #060910;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --accent: #2563EB; /* Bright blue for accents */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(20, 25, 40, 0.6);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.dark-bg {
    background-color: var(--bg-darker);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #9B7E3E);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 168, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 168, 102, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(197, 168, 102, 0.2); }
    100% { box-shadow: 0 0 20px rgba(197, 168, 102, 0.6); }
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.badge-center {
    margin: 0 auto 1.5rem auto;
    display: table;
}

/* --- Navbar --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    background-image: url('assets/hero_bg.png'); /* Original abstract background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(10, 15, 26, 0.7) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 650px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

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

.hero-subtitle strong {
    color: var(--text-main);
}

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

.hero-doctor-img {
    position: absolute;
    bottom: 0;
    right: 5%;
    height: 95%; /* Adapts to hero height */
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    z-index: 1;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(197, 168, 102, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.about-image {
    width: 100%;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
}

.stats-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 1.5rem;
    z-index: 2;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
}

.stat-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.about-text .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.about-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(197, 168, 102, 0.2);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- Methodology --- */
.methodology .section-title {
    font-size: 2.5rem;
}

.methodology .section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

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

.method-card {
    padding: 2.5rem;
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 168, 102, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(197, 168, 102, 0.2), rgba(197, 168, 102, 0.05));
    border: 1px solid rgba(197, 168, 102, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.method-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.method-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Services --- */
.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-text .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--glass-border);
    transition: var(--transition);
}

.service-item:hover {
    border-left-color: var(--primary);
}

.service-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-item p {
    color: var(--text-muted);
}

.services-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decorative-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    filter: blur(30px);
}

.decorative-glass-box {
    position: relative;
    z-index: 2;
    padding: 3rem;
    text-align: center;
    max-width: 350px;
}

.decorative-glass-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.decorative-glass-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}

.cta-container {
    position: relative;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(197, 168, 102, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 5rem 3rem;
    text-align: center;
    border-color: rgba(197, 168, 102, 0.2);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* --- Cal.com Mockup V2 --- */
.cal-mockup {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.cal-left {
    flex: 1 1 350px;
    padding: 2.5rem;
    border-right: 1px solid var(--glass-border);
}

.cal-right {
    flex: 1 1 250px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.cal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cal-month {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.cal-nav {
    display: flex;
    gap: 0.5rem;
}

.cal-nav-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav-btn:hover {
    background: rgba(255,255,255,0.1);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem 0;
    text-align: center;
}

.cal-days span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.cal-days span:not(.empty):not(.disabled):hover {
    background: rgba(197, 168, 102, 0.2);
    color: var(--primary);
}

.cal-days span.empty {
    color: transparent;
    pointer-events: none;
}

.cal-days span.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    text-decoration: line-through;
    cursor: not-allowed;
}

.cal-days span.active {
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(197, 168, 102, 0.4);
}

.cal-right h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.cal-times-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cal-time-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.cal-time-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cal-time-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* --- Footer --- */
footer {
    background-color: #030509;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-muted);
}

.footer-links a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #4B5563;
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .services-content {
        grid-template-columns: 1fr;
    }
    
    .stats-card {
        right: 0;
        bottom: -20px;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-doctor-img {
        right: -10%;
        /* opacity removida para não ficar apagado */
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(10, 15, 26, 0.5) 0%, var(--bg-dark) 100%);
    }
    
    .section-padding {
        padding: 4rem 0;
    }

    .cta-content {
        padding: 3rem 1.5rem;
    }
}
