/* 
  MODERN FACELIFT - DR. GOTARDO
  Style: Organic Tech Luxury
  Geometry: Extreme Rounded (24px)
  Palette: Deep Navy + Clinical Teal
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');

:root {
    --color-primary: #0f172a;
    /* Deep Navy */
    --color-primary-light: #1e293b;
    --color-secondary: #0d9488;
    /* Teal 600 */
    --color-secondary-bright: #14b8a6;
    /* Teal 500 */
    --color-accent: #f97316;
    /* Signal Orange */

    --color-bg: #f8fafc;
    /* Slate 50 */
    --color-surface: #ffffff;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-inverse: #f8fafc;

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;

    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --shadow-premium: 0 20px 40px -5px rgba(15, 23, 42, 0.1), 0 10px 20px -5px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 0 20px rgba(20, 184, 166, 0.3);

    --transition-smooth: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Spring physics */
}

/* GLOBAL RESET OVERRIDES */
body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    /* Moving to Sans mostly for modern feel, Serif for emphasis */
    color: var(--color-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* HEADER OVERRIDES */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 0;
    box-shadow: none;
    /* Removing default shadow */
}

.header-top {
    background-color: var(--color-primary);
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.header-main {
    background-color: transparent;
    /* Remove red */
    padding: 1rem 0;
}

/* Navigation - Modern Pill Style */
.nav-menu {
    background: var(--color-surface);
    padding: 5px;
    border-radius: 999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: inline-flex;
    gap: 0;
}

.nav-menu li a {
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 999px;
    text-transform: none;
    /* Remove Uppercase aggressive */
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    transition: var(--transition-smooth);
}

.nav-menu li a:hover {
    color: var(--color-secondary-bright);
    background: rgba(20, 184, 166, 0.05);
}

.nav-menu li a.active {
    /* Using class active if script applies it */
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* ============================================
   BANNER/HERO - IMMERSIVE KEN BURNS
   ============================================ */

.banner {
    position: relative;
    height: 100vh;
    /* Full Viewport Height */
    width: 100%;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    background: #000;
}

/* Background Slider Container */
.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Ken Burns Effect Animation */
.banner-slide.active {
    animation: kenBurns 20s linear infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Overlay to ensure text readability */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.4) 0%,
            rgba(15, 23, 42, 0.6) 50%,
            rgba(15, 23, 42, 0.9) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Content Layer */
.banner .container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
}

/* Updated Banner Header Layout */
.banner-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    max-width: 800px;
}

.icon-box,
.banner-video-placeholder {
    display: none !important;
    /* Hiding old elements as requested for immersive look */
}

/* Typography Overrides for Hero */
.banner-title-area {
    text-align: left;
}

.banner-title-area h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.banner-title-area h2 {
    font-size: 2rem;
    color: var(--color-secondary-bright) !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    font-weight: 300;
}

.banner-motto {
    text-align: left;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 0 3rem 0;
    font-weight: 300;
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.highlight-box::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-secondary-bright);
}

/* Respobsive Adjustments */
@media (max-width: 768px) {
    .banner-title-area h1 {
        font-size: 3rem;
    }

    .banner-title-area h2 {
        font-size: 1.25rem;
    }
}

/* DESTAQUES OVERRIDES (Clinical Highlights) */
.destaques-clinicos {
    background: var(--color-bg);
    border-top: none;
    /* Remove red bar */
    padding: 80px 0;
}

.destaques-sidebar {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.sidebar-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: background 0.3s;
}

.sidebar-item:hover {
    background: #f1f5f9;
}

.sidebar-item h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.destaque-img-box {
    border-radius: var(--radius-lg);
    border: none;
    padding: 0;
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.destaque-card:hover .destaque-img-box {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.destaque-card h3 {
    margin-top: 20px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* CARROSSEL OVERRIDES (3ª Dobra) */
.casos-carrossel-secao {
    background: var(--color-bg);
    /* Slate background to contrast white sidebar */
    padding: 80px 0;
}

.casos-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    /* Fixed sidebar width */
    gap: 40px;
    align-items: start;
}

.carrossel-area {
    min-width: 0;
    /* Prevent grid blowout from carousel */
}

.carrossel-container {
    background-color: var(--color-primary);
    /* Navy */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Force Glide visible */
.glide__slides {
    display: flex;
}

.carrossel-header h2 {
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Slide Items */
.tier-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    height: 160px;
    /* Enforcing height */
    background: #000;
}

.tier-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.tier-box:hover img {
    transform: scale(1.05);
}

.sidebar-casos {
    background: white;
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    position: sticky;
    top: 100px;
    /* Sticky sidebar effect */
    display: block !important;
    /* Force visibility */
}

.sidebar-casos-header {
    background: var(--color-secondary);
    /* Teal */
    border-bottom: none;
    padding: 25px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.sidebar-casos-header h3 {
    color: white;
    text-shadow: none;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
    margin: 0;
}

.sidebar-casos-list {
    padding: 10px 0;
}

.sidebar-casos-list li a {
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    padding: 15px 25px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-casos-list li a:hover {
    background-color: #f0fdfa;
    /* Teal light */
    color: var(--color-secondary);
    padding-left: 30px;
}

/* Responsive Grid Fix */
@media (max-width: 1024px) {
    .casos-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-casos {
        position: static;
        margin-top: 30px;
    }
}

/* HEADLINE SECTION */
.headline-container {
    background: white;
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    padding: 60px;
    max-width: 1000px;
}

.headline-container h2 {
    color: var(--color-primary);
    font-size: 2rem;
    line-height: 1.3;
    text-transform: none;
    font-family: var(--font-serif);
}

/* SEÇÃO SOBRE OVERRIDES */
.sobre-texto-container {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    border: 1px solid #f1f5f9;
}

.sobre-texto-container h2 {
    color: var(--color-primary);
    font-family: var(--font-serif);
}

/* FOOTER OVERRIDES */
.footer {
    background: var(--color-primary);
    border-top: 5px solid var(--color-secondary);
    /* Accent Line */
}

.footer-secao h3 {
    color: var(--color-secondary-bright);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* UTILS & ANIMATION */
.btn {
    border-radius: 99px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-secondary-bright);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.4);
}

/* Animation Utilities for Facelift */
.reveal-on-scroll {
    /* Base class for JS or default state */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pure CSS Animation (If no JS intersection observer is present) */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Custom Scrollbar for Text Areas */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 99px;
}