/* ==========================================================================
   Design System & Custom Properties - Instituto da Visão
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary-dark: #071E36;    /* Deep Petrol Blue */
    --color-primary: #0A2540;         /* Petrol Blue */
    --color-primary-light: #1A365D;   /* Dark Blue Accent */
    --color-secondary: #00B4D8;       /* Turquoise */
    --color-secondary-light: #EBF8FA; /* Soft Turquoise / Ice Blue */
    --color-secondary-dark: #0077B6;  /* Deep Turquoise */
    --color-accent: #00F5D4;          /* Mint / Bright Teal */
    --color-gold: #FFB703;            /* Soft Gold (Stars) */
    
    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray-divider: #E9ECEF;
    
    /* Typography Colors */
    --text-dark: #1D2D44;             /* Dark Slate Blue */
    --text-muted: #5C677D;            /* Grayish Blue */
    --text-light: #F8F9FA;
    
    /* Shadows - Premium Soft */
    --shadow-sm: 0 4px 12px rgba(11, 37, 69, 0.03);
    --shadow-md: 0 10px 30px rgba(11, 37, 69, 0.06);
    --shadow-lg: 0 20px 40px rgba(11, 37, 69, 0.1);
    --shadow-secondary: 0 10px 25px rgba(0, 180, 216, 0.15);
    
    /* Border Radii - Consistent Rounded Theme */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-round: 50%;
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;
}

/* ==========================================================================
   CSS Reset & Base Setup
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Utility Classes & Layout Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.bg-gradient-light {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

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

.text-primary {
    color: var(--color-secondary) !important;
}

.text-white {
    color: var(--text-light) !important;
}

.font-semibold {
    font-weight: 600;
}

/* ==========================================================================
   Button Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 10px;
    font-size: 1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 12px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--bg-white);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 180, 216, 0.35);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: rgba(0, 180, 216, 0.08);
    color: var(--color-primary-light);
    border: 2px solid rgba(0, 180, 216, 0.2);
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.03);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--bg-white);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 180, 216, 0.25);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-light);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Header & Fixed Navigation Menu
   ========================================================================== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(11, 37, 69, 0.05);
    z-index: 1000;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fixed-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo Styling */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.logo-area:hover .logo-icon {
    transform: rotate(15deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.logo-area.light .logo-subtitle {
    color: var(--color-secondary);
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 4px;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-secondary-dark);
}

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

.nav-link.active {
    color: var(--color-secondary-dark);
}

/* Hamburger Menu Toggle (Mobile) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Hamburger State */
.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 999;
    padding: calc(var(--header-height) + 20px) 24px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-gray-divider);
}

.mobile-nav-link:hover {
    color: var(--color-secondary);
    padding-left: 8px;
}

.mobile-cta-li {
    margin-top: 20px;
    list-style: none;
}

/* ==========================================================================
   Section Headers (Title System)
   ========================================================================== */
.section-header {
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 18px;
    color: var(--color-primary-dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 120px;
    background: radial-gradient(circle at 85% 15%, var(--color-secondary-light) 0%, var(--bg-white) 65%);
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-accent {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.15);
    color: var(--color-secondary-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary);
    border-radius: var(--radius-round);
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    max-width: 680px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Floating UI details in Hero */
.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 12px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 37, 69, 0.04);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: translateY(-5px);
}

.hero-main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.14);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-badge-ui {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-gray-divider);
    animation: float 4s ease-in-out infinite;
}

.ui-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-round);
}

.ui-dot.green {
    background-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

.ui-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* Hero Badge Cards Grid */
.hero-badges-container {
    display: flex;
    gap: 16px;
    width: 100%;
}

.hero-badge-card {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(11, 37, 69, 0.03);
    transition: all 0.3s ease;
}

.hero-badge-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 180, 216, 0.15);
}

.badge-card-icon {
    width: 42px;
    height: 42px;
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-card-text {
    display: flex;
    flex-direction: column;
}

.badge-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.badge-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Seção sobre o Instituto
   ========================================================================== */
.instituto-section {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.instituto-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.instituto-media {
    position: relative;
}

.image-stack {
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 12px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 37, 69, 0.03);
}

.img-main-stack {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: 30% 42%; /* horizontal offset to keep letter I of logo visible */
    transform: scale(1.12); /* slightly lower zoom to prevent crop issues */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-title {
    font-size: 1.85rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.info-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Differentials Cards */
.differentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.diff-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--bg-gray-divider);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.diff-card:hover {
    background-color: var(--bg-white);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.diff-icon-box {
    width: 44px;
    height: 44px;
    background-color: var(--bg-white);
    color: var(--color-secondary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.diff-card:hover .diff-icon-box {
    background-color: var(--color-secondary-dark);
    color: var(--bg-white);
}

.diff-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
}

.diff-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Seção Dra. Larissa Scuta
   ========================================================================== */
.doctor-section {
    padding: 120px 0;
    position: relative;
}

.doctor-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.doctor-name {
    font-size: 2.85rem;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.doctor-specialty {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.doctor-bio {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.bio-paragraph {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.doctor-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.doctor-image-container {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 12px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 37, 69, 0.04);
}

.doctor-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.14);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.credentials-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cred-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Seção Exames e Serviços
   ========================================================================== */
.services-section {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid rgba(0, 180, 216, 0.15);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 180, 216, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 52px;
    height: 52px;
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--color-secondary);
    color: var(--bg-white);
    transform: scale(1.08) translateY(-2px);
}

.service-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}

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

/* ==========================================================================
   Seção Destaque Educativo (Olhos Cansados)
   ========================================================================== */
.educational-highlight {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.education-card {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-secondary-dark) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.education-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.education-badge {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.education-title {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.education-text {
    color: rgba(248, 249, 250, 0.85);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.education-content .btn {
    margin-top: 16px;
}

.education-media {
    position: relative;
}

.education-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Seção Convênios
   ========================================================================== */
.convenios-section {
    padding: 120px 0;
}

.convenios-grid-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.convenios-media {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 12px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 37, 69, 0.04);
}

.convenios-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.convenios-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.convenios-info-title {
    font-size: 1.85rem;
    margin-bottom: 18px;
    color: var(--color-primary);
}

.convenios-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.convenios-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.convenios-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.check-icon {
    width: 22px;
    height: 22px;
    color: var(--color-secondary-dark);
    background-color: var(--color-secondary-light);
    border-radius: var(--radius-round);
    padding: 4px;
    flex-shrink: 0;
}

.convenios-cta-card {
    background-color: rgba(0, 180, 216, 0.05);
    border: 1px solid rgba(0, 180, 216, 0.12);
    border-radius: var(--radius-md);
    padding: 24px;
}

.cta-card-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--color-primary-dark);
}

/* ==========================================================================
   Seção Galeria
   ========================================================================== */
.gallery-section {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 30, 54, 0) 40%, rgba(7, 30, 54, 0.8) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: var(--bg-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

/* ==========================================================================
   Seção Depoimentos
   ========================================================================== */
.testimonials-section {
    padding: 120px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-gray-divider);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 180, 216, 0.1);
}

.stars-rating {
    color: var(--color-gold);
    font-size: 1.15rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.98rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 28px;
    flex-grow: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.patient-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.patient-details {
    display: flex;
    flex-direction: column;
}

.patient-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary-dark);
}

.patient-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Seção FAQ Accordions
   ========================================================================== */
.faq-section {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--bg-gray-divider);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    cursor: pointer;
    gap: 16px;
}

.faq-question:hover {
    color: var(--color-secondary-dark);
}

.faq-icon {
    width: 24px;
    height: 24px;
    background-color: var(--bg-light);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

/* Accordion open behavior */
.faq-item.active {
    border-color: rgba(0, 180, 216, 0.25);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-question {
    color: var(--color-secondary-dark);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 24px 24px 24px;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer-inner {
    border-top-color: var(--bg-gray-divider);
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   Seção CTA Final
   ========================================================================== */
.final-cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 40%, var(--color-secondary-dark) 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.final-cta-title {
    color: var(--bg-white);
    font-size: 2.75rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.final-cta-text {
    max-width: 650px;
    margin: 0 auto 36px;
    color: rgba(248, 249, 250, 0.85);
    font-size: 1.1rem;
}

.final-cta-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer-section {
    background-color: var(--color-primary-dark);
    color: rgba(248, 249, 250, 0.7);
    padding: 80px 0 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-tagline {
    margin-top: 20px;
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.5;
}

.medical-register {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a:hover {
    color: var(--color-secondary);
    padding-left: 4px;
}

.address-col {
    grid-column: span 1;
}

.address-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.footer-svg-icon {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: 30px 0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bottom-links {
    display: flex;
    gap: 24px;
}

.bottom-links a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   Botão Flutuante de WhatsApp
   ========================================================================== */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--bg-white);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-icon {
    width: 30px;
    height: 30px;
}

.whatsapp-badge-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background-color: #FF3B30;
    border: 2px solid var(--bg-white);
    border-radius: var(--radius-round);
}

.whatsapp-badge-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-round);
    box-shadow: 0 0 0 2px #FF3B30;
    animation: badgePulse 2s infinite;
}

/* ==========================================================================
   Keyframes Animations
   ========================================================================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 180, 216, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsividade (Breakpoints)
   ========================================================================== */

/* Tablet (1024px e inferior) */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badges-container {
        justify-content: center;
    }
    
    .hero-main-img {
        height: 420px;
        max-width: 480px;
    }
    
    .instituto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .doctor-media {
        order: -1;
    }
    
    .doctor-img {
        max-width: 480px;
        height: 420px;
    }
    
    .education-card {
        grid-template-columns: 1fr;
    }
    
    .education-media {
        height: 300px;
    }
    
    .convenios-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .convenios-media {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (768px e inferior) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.35rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .doctor-name {
        font-size: 2.25rem;
    }
    
    .education-title {
        font-size: 1.85rem;
    }
    
    .education-content {
        padding: 40px 24px;
    }
    
    .differentials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-badges-container {
        flex-direction: column;
    }
    
    .nav-menu, .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Screen Adjustments */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .whatsapp-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float-icon {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   Refinamentos Extras & Microinterações
   ========================================================================== */

/* Zoom wrappers for images to maintain card boundaries */
.img-zoom-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: block;
}

/* Image Hovers and Zoom Effects */
.hero-image-wrapper:hover .hero-main-img {
    transform: scale(1.20) translateY(-3px);
}

.doctor-image-container:hover .doctor-img {
    transform: scale(1.20) translateY(-3px);
}

.image-stack:hover .img-main-stack {
    transform: scale(1.18);
}

/* Reveal-on-scroll implementation details */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation entries for Hero fold */
.hero-content .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content .fade-in.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .fade-in:nth-child(1) { transition-delay: 100ms; }
.hero-content .fade-in:nth-child(2) { transition-delay: 200ms; }
.hero-content .fade-in:nth-child(3) { transition-delay: 350ms; }
.hero-content .fade-in:nth-child(4) { transition-delay: 500ms; }
.hero-content .fade-in:nth-child(5) { transition-delay: 650ms; }

/* Responsive adjustments for screen sizes below 1200px to ensure menu stays on a single line */
@media (max-width: 1200px) {
    .nav-menu ul {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.88rem;
        padding: 6px 2px;
    }
    #btn-header-agendar {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

#btn-header-agendar {
    padding: 8px 18px;
    font-size: 0.88rem;
    border-radius: 10px;
    white-space: nowrap;
}

