/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #8B0000;        /* Deep Red (Coração) */
    --primary-light: #B22222;        /* Vermelho Ativo */
    --primary-dark: #4A0000;         /* Vermelho Escuro */
    --accent-color: #8B0000;         /* Vermelho Destaque */
    --accent-hover: #A30000;         /* Vermelho Hover */
    --accent-soft: rgba(139, 0, 0, 0.05);
    --gold-color: #C5A880;           /* Dourado Elegante */
    --gold-dark: #A58962;            /* Dourado Escuro */
    
    /* Neutral Colors */
    --bg-main: #F8F9FF;              /* Clinical White */
    --bg-card: #FFFFFF;              /* Pure White */
    --text-main: #334155;            /* Slate Gray Escuro */
    --text-light: #64748B;           /* Slate Gray */
    --text-white: #FFFFFF;           /* Branco */
    --border-color: #E2E8F0;         /* Linha Fina Cinza */
    --success-color: #2D6A4F;        /* Verde Clínico */
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(191, 30, 45, 0.35);

    /* Fonts */
    --font-heading: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    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-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-white);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 14px rgba(191, 30, 45, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 21, 34, 0.5);
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-light);
    border: 2px solid var(--border-color);
}

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

.btn-light {
    background-color: var(--bg-card);
    color: var(--primary-dark);
    border: 2px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    background-color: var(--bg-main);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
}

/* Sections Structure */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    position: relative;
}

.section-intro {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Reusable Dark Section Styling */
.section-dark {
    background: linear-gradient(135deg, #300707 0%, #150202 100%); /* Deep elegant burgundy/wine gradient */
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--text-white);
}

.section-dark .section-subtitle {
    color: var(--gold-color);
}

.section-dark .section-intro {
    color: rgba(255, 255, 255, 0.65);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.75);
}

.section-dark strong {
    color: var(--gold-color);
}

.section-dark .cred-icon {
    color: var(--gold-color);
}

/* Dark section badges adjustments for Convênios */
.section-dark .insurance-badge {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.section-dark .insurance-badge i {
    color: var(--gold-color);
}

.section-dark .insurance-badge:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-color);
    color: var(--text-white);
}

.section-dark .insurance-badge-particular {
    background-color: var(--gold-color);
    color: #120E0E;
    border-color: var(--gold-color);
}

.section-dark .insurance-badge-particular i {
    color: #120E0E;
}

.section-dark .insurance-badge-particular:hover {
    background-color: var(--gold-dark);
    color: #120E0E;
    border-color: var(--gold-dark);
}

.section-dark .insurances-notice {
    color: rgba(255, 255, 255, 0.55);
}

.section-dark .insurances-notice i {
    color: var(--gold-color);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: var(--transition-smooth);
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo-image-header {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

#main-header.scrolled .logo-image-header {
    height: 40px;
}

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

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-dark);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-top: 2px;
}

#nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(191, 30, 45, 0.08) 0%, rgba(244, 247, 251, 0) 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #F0F9FF;
    color: #0369A1;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    align-self: flex-start;
    margin-bottom: 24px;
    border: 1px solid #BAE6FD;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--accent-soft);
    z-index: -1;
    border-radius: 4px;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 36px;
}

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

.hero-footer-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-divider {
    width: 1px;
    height: 35px;
    background-color: var(--border-color);
}

/* Hero Image & Floatings */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.hero-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(191, 30, 45, 0.25) 0%, rgba(244, 247, 251, 0) 70%);
    z-index: -1;
}

.hero-image {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 22%;
    border-radius: var(--border-radius-md);
    border: 8px solid var(--bg-card);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--gold-color);
    z-index: 1;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
}

.hero-card-floating {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    width: 185px;
    transition: var(--transition-smooth);
}

.hero-card-floating:hover {
    transform: scale(1.03);
}

.hero-card-floating i {
    font-size: 1.4rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.hero-card-floating h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 2px;
}

.hero-card-floating p {
    font-size: 0.65rem;
    color: var(--text-light);
    line-height: 1.2;
}

.card-1 {
    bottom: -20px;
    left: -25px;
    top: auto;
    animation: floatAnim 6s infinite ease-in-out;
}

.card-2 {
    bottom: -20px;
    right: -25px;
    animation: floatAnim 6s infinite ease-in-out 3s;
}

/* ==========================================================================
   PILLARS SECTION
   ========================================================================== */
.pillars-section {
    padding: 60px 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.pillar-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-soft);
    color: var(--accent-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(191, 30, 45, 0.05);
}

.pillar-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

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

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background-color: inherit;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

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

.about-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.about-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 180px;
    text-align: center;
    z-index: 2;
    border-bottom: 4px solid var(--gold-color);
}

.badge-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 4px;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.about-content-side h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.med-registry {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-color);
    font-size: 1rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.about-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.credentials-list {
    margin: 32px 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cred-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cred-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.cred-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cred-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    background-color: var(--bg-main);
}

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

.service-card {
    background-color: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(191, 30, 45, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-main);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--accent-color);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ==========================================================================
   INSURANCES SECTION
   ========================================================================== */
.insurances-section {
    background-color: inherit;
}

.insurances-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.insurance-badge {
    padding: 14px 28px;
    background-color: var(--bg-main);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.insurance-badge i {
    color: var(--accent-color);
}

.insurance-badge:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.insurance-badge-particular {
    padding: 14px 28px;
    background-color: var(--accent-soft);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-hover);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(191, 30, 45, 0.2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.insurance-badge-particular:hover {
    background-color: var(--accent-color);
    color: var(--text-white);
    transform: scale(1.05);
}

.insurances-notice {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 40px;
}

.insurances-notice i {
    color: var(--accent-color);
    margin-right: 4px;
}

/* ==========================================================================
   LOCATIONS SECTION
   ========================================================================== */
.locations-section {
    background-color: var(--bg-main);
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 40px;
}

.location-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.location-body {
    padding: 48px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.city-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--accent-soft);
    color: var(--accent-hover);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 20px;
    align-self: flex-start;
}

.location-body h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.address-text {
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.5;
}

.address-text i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-light);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.contact-item:hover {
    color: var(--accent-hover);
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.buttons-container .btn {
    width: 100%;
}

/* ==========================================================================
   CTA BANNER SECTION
   ========================================================================== */
.cta-banner-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--accent-soft);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
    filter: blur(80px);
}

.cta-banner-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-banner-content h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-banner-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
}

.cta-banner-actions {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
    background-color: var(--bg-card);
}

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

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: var(--bg-main);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-align: left;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--accent-color);
    transition: var(--transition-smooth);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: var(--bg-card);
    border-top: 0px solid var(--border-color);
}

.faq-answer p {
    padding: 24px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-item.active {
    background-color: var(--bg-card);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-side {
    display: flex;
    flex-direction: column;
}

.logo-image-footer {
    max-height: 64px;
    width: auto;
    filter: invert(1) grayscale(1) brightness(2);
    mix-blend-mode: screen;
}

.footer-tagline {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-crm {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

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

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-contact-icon {
    color: var(--accent-color);
    margin-right: 8px;
}

.footer-col li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding: 30px 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.cfm-compliance {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    color: var(--text-white);
    font-size: 1.6rem;
    cursor: pointer;
}

.btn-whatsapp {
    background-color: #25D366;
    animation: whatsappPulse 2s infinite ease-in-out;
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-top {
    background-color: var(--primary-color);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    align-self: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-top:hover {
    background-color: var(--primary-light);
    transform: scale(1.1);
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-init {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left-init {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right-init {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0) !important;
}

/* Stagger transitions for grid items */
.reveal-init:nth-child(2) { transition-delay: 0.1s; }
.reveal-init:nth-child(3) { transition-delay: 0.2s; }
.reveal-init:nth-child(4) { transition-delay: 0.3s; }
.reveal-init:nth-child(5) { transition-delay: 0.4s; }
.reveal-init:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.12);
    }
    28% {
        transform: scale(1.04);
    }
    42% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet & Mobile Layouts */
@media (max-width: 1024px) {
    .container {
        padding-right: 20px;
        padding-left: 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .badge-premium {
        align-self: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-footer-info {
        justify-content: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-side {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .experience-badge {
        bottom: -20px;
        right: -20px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta-banner-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .cta-banner-actions {
        justify-content: center;
    }
}

/* Small Screens Navigation */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-card);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        transition: var(--transition-smooth);
        padding: 100px 40px 40px 40px;
        border-left: 1px solid var(--border-color);
    }
    
    #nav-menu.active {
        right: 0;
    }
    
    #nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
    }
    
    .header-cta {
        display: none; /* Hide top CTA on mobile, actions in Hero/Locations are enough */
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Mobile Screens */
@media (max-width: 580px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-image-container {
        flex-direction: column;
    }

    .hero-image {
        order: 1;
    }

    .card-1 {
        order: 2;
    }

    .card-2 {
        order: 3;
    }

    .hero-card-floating {
        position: relative;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin: 16px auto;
        max-width: 290px;
        box-shadow: var(--shadow-md);
    }
    
    .card-1, .card-2 {
        animation: floatAnim 6s infinite ease-in-out;
    }
    
    .pillars-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-content-side h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .location-body {
        padding: 24px;
    }
    
    .location-body h3 {
        font-size: 1.5rem;
    }
    
    .cta-banner-content h2 {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 16px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-side {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .experience-badge {
        padding: 16px;
        bottom: -10px;
        right: -10px;
        max-width: 140px;
    }
    
    .badge-number {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   ECG BACKGROUND ANIMATION
   ========================================================================== */
.ecg-background {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
}

.ecg-background svg {
    width: 100%;
    height: 320px;
}

.ecg-line-back {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2px;
    opacity: 0.05;
    filter: blur(2px);
}

.ecg-line-glow {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 4.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.25;
    filter: blur(4px);
    stroke-dasharray: 120 1600;
    animation: ecgPulse 5.5s linear infinite;
}

@keyframes ecgPulse {
    0% {
        stroke-dashoffset: 1720;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
