/* 
   Diagnósticos Radiologia Oral - Style Sheet
   Author: Tiago Tilt / Antigravity
   Design: Premium Medical Glassmorphism Design System
*/

/* --- Design System Variables --- */
:root {
    /* Colors */
    --color-primary: #4c1b01;       /* Deep Brown */
    --color-primary-light: #5f280a; /* Warm Chocolate */
    --color-secondary: #78533e;     /* Medium Warm Terracotta */
    --color-secondary-hover: #5e3f2d;
    --color-accent: #c59b27;        /* Golden Amber */
    
    --color-bg-light: #faf8f5;      /* Warm Cream Off-white */
    --color-bg-white: #ffffff;
    --color-bg-dark: #200d02;       /* Dark Chocolate */
    
    --color-text-main: #3d3531;     /* Dark Charcoal Brown */
    --color-text-muted: #796c64;    /* Muted Brownish Gray */
    --color-text-light: #faf8f5;
    
    --color-border: #ebdcd3;
    --color-success: #10b981;
    --color-error: #ef4444;
    
    /* Layout & Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px -2px rgba(10,37,64,0.08);
    --shadow-lg: 0 10px 30px -5px rgba(10,37,64,0.12);
    --shadow-premium: 0 20px 40px -10px rgba(10, 37, 64, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --max-width: 1200px;
    --max-width-narrow: 800px;
}

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

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: --color-text-main;
    background-color: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: var(--color-text-main);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

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

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

.container-narrow {
    width: 100%;
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Section Formatting --- */
.section {
    padding: 96px 0;
}

.section-badge {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-text {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-bg-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: rgba(10, 37, 64, 0.03);
    border-color: var(--color-text-muted);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-full {
    width: 100%;
}

.btn-whatsapp-header {
    background-color: #25d366;
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-header:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

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

/* --- Header / Navigation Bar --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    height: 80px;
    transition: var(--transition-normal);
}

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

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-img {
    height: 66px; /* Increased logo size */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.logo-bold {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-primary);
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-top: -3px;
}

.nav-menu {
    display: flex;
    gap: 16px;
    margin: 0 auto; /* Perfectly centers the menu between the logo and the buttons */
    white-space: nowrap; /* Prevent links from wrapping into two lines */
}

.nav-menu a:first-child {
    margin-left: 32px; /* Distance Home link from the logo */
}

.nav-link {
    font-size: 0.95rem; /* Set font size to 0.95rem */
    font-weight: 600;
    color: var(--color-text-main);
    padding: 8px 6px; /* Set lateral padding to 6px to bring items closer */
    position: relative;
    white-space: nowrap;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-outline-header {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-outline-header:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 27, 1, 0.15);
}

@media (max-width: 576px) {
    .btn-portal-header {
        display: none; /* Hide on small phone screens to prevent header wrapping */
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

/* Prevent menu collision on desktop/tablet transition sizes */
@media (max-width: 1200px) and (min-width: 993px) {
    .nav-menu {
        gap: 8px;
    }
    .nav-link {
        font-size: 0.88rem;
        padding: 8px 6px;
    }
    .btn-portal-header {
        display: none; /* Hide the portal button on intermediate screens to give menu room to breathe */
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none; /* Mobile menu hidden by default */
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-bg-white);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* --- Hero / Banner --- */
/* --- Hero / Banner Background Carousel --- */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 140px;
    background-color: #1a0e07; /* Dark brown fallback */
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease-in-out, transform 7s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Enhanced Gradient Overlay for Text Readability */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: transparent; /* Completely transparent for full image clarity */
    z-index: 2;
    pointer-events: none;
}

/* Carousel Control Bar & Caption Badge */
.hero-carousel-bar {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    pointer-events: auto;
}

.hero-caption-badge {
    background: rgba(26, 14, 7, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 160, 23, 0.3);
    color: var(--color-white, #ffffff);
    padding: 8px 16px;
    border-radius: var(--radius-full, 50px);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
}

.hero-carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(26, 14, 7, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-full, 50px);
}

.hero-nav-arrow {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-nav-arrow:hover {
    color: var(--color-active, #d4a017);
    transform: scale(1.2);
}

.hero-dots-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    width: 26px;
    border-radius: 12px;
    background: var(--color-active, #d4a017);
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.6);
}

@media (max-width: 768px) {
    .hero-carousel-bar {
        flex-direction: column;
        gap: 12px;
        bottom: 16px;
        text-align: center;
    }
    
    .hero-caption-badge {
        font-size: 0.75rem;
    }
}

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

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

.hero-content .badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-bg-white);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-portal-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.portal-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: var(--radius-lg);
    color: var(--color-bg-white);
    transition: var(--transition-normal);
}

.portal-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.portal-card.premium-border {
    border: 1.5px solid rgba(59, 130, 246, 0.3);
}

.portal-icon {
    color: var(--color-accent);
    margin-bottom: 16px;
}

.portal-card h3 {
    color: var(--color-bg-white);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.portal-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.portal-link {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.95rem;
}

.portal-link:hover {
    color: var(--color-bg-white);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-portal-cards {
        flex-direction: row;
        gap: 24px;
    }
    
    .portal-card {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-portal-cards {
        flex-direction: column;
    }
}

/* --- Sobre Nós --- */
.sobre-section {
    background-color: var(--color-bg-white);
}

.sobre-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    max-width: 450px;
    height: 480px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: calc(var(--radius-lg) - 10px);
}

.stat-badge {
    position: absolute;
    bottom: 32px;
    left: -20px;
    background-color: var(--color-secondary);
    color: white;
    padding: 20px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
}

.founder-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.founder-title {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.founder-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .stat-badge {
        left: 20px;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Exames Section --- */
.exames-section {
    background-color: var(--color-bg-light);
}

.exames-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border-color: var(--color-primary);
}

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

.exame-card {
    background-color: var(--color-bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.exame-card.hidden {
    display: none !important;
}

.exame-card:not(.hidden) {
    animation: cardFadeIn var(--transition-normal) ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.exame-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(59, 130, 246, 0.2);
}

.exame-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.exame-card h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.exame-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.exame-card p:not(.exame-badge) {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .exames-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .exames-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Convênios --- */
.convenios-section {
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.convenios-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.convenio-logo {
    width: 100%;
    height: 90px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.convenio-logo:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .convenios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .convenios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Agendamento Wizard --- */
.agendamento-section {
    background-color: var(--color-bg-light);
}

.booking-wizard-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .booking-wizard-card {
        padding: 24px;
    }
}

/* Wizard Progress Bar */
.wizard-progress {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: var(--color-border);
    margin-bottom: 48px;
    border-radius: var(--radius-full);
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-secondary);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
}

.step-indicator {
    width: 28px;
    height: 28px;
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    z-index: 2;
}

.step-indicator.active {
    border-color: var(--color-secondary);
    background-color: var(--color-secondary);
    color: white;
}

.step-indicator.completed {
    border-color: var(--color-secondary);
    background-color: var(--color-bg-white);
    color: var(--color-secondary);
}

/* Wizard Steps Transitions */
.wizard-step {
    display: none;
    animation: fadeIn var(--transition-normal) forwards;
}

.wizard-step.active {
    display: block;
}

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

.step-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.step-desc {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--color-bg-light);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.select-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.error-msg {
    display: none;
    color: var(--color-error);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
}

.wizard-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
}

/* Step 2: Atendimento Option Cards */
.atendimento-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 600px) {
    .atendimento-options {
        grid-template-columns: 1fr;
    }
}

.option-card {
    cursor: pointer;
    position: relative;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    background-color: var(--color-bg-light);
    transition: var(--transition-normal);
    height: 100%;
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.option-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.option-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--color-secondary);
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-md);
}

.option-card input[type="radio"]:focus + .option-content {
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* Step 4: Calendar CSS Grid */
.calendar-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }
}

.calendar-container {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    background-color: var(--color-bg-light);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.cal-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

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

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--color-primary);
    color: white;
}

/* Dentist portal calendar: strong contrast on the dark app background */
#calendarDaysApp .calendar-day {
    color: #fff7f1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

#calendarDaysApp .calendar-day:hover:not(.disabled):not(.selected) {
    color: #1a0e07;
    background: #e7bd45;
    border-color: #e7bd45;
}

#calendarDaysApp .calendar-day.disabled {
    color: #806e65;
    background: rgba(255, 255, 255, 0.025);
    border-color: transparent;
    opacity: 0.65;
}

#calendarDaysApp .calendar-day.selected {
    color: #1a0e07;
    background: #e7bd45;
    border-color: #f4d777;
    box-shadow: 0 0 0 2px rgba(231, 189, 69, 0.2);
}

#hoursGridApp .hour-slot {
    color: #fff7f1;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
}

#hoursGridApp .hour-slot.disabled {
    color: #806e65;
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.06);
}

#hoursGridApp .hour-slot.selected,
#hoursGridApp .hour-slot:hover:not(.disabled):not(.selected) {
    color: #1a0e07;
    background: #e7bd45;
    border-color: #e7bd45;
}

.hours-loading-status {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: #d8c8bf;
    font-size: 0.72rem;
    text-align: center;
}

/* Dentist app v4 — cinematic medical experience */
.dro-splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #0d0502;
    transition: opacity .65s ease, visibility .65s ease;
}

.dro-splash.is-leaving { opacity: 0; visibility: hidden; }

.dro-splash-anatomy {
    position: absolute;
    width: min(112vw, 600px);
    height: 100%;
    object-fit: cover;
    opacity: .54;
    filter: contrast(1.08) saturate(.78);
    animation: droReveal 1.7s cubic-bezier(.2,.8,.2,1) both;
}

.dro-splash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, transparent 15%, rgba(13,5,2,.35) 58%, #0d0502 100%);
}

.dro-splash-scan {
    position: absolute;
    z-index: 2;
    left: 8%; right: 8%; height: 1px;
    background: linear-gradient(90deg, transparent, #e5c45a, transparent);
    box-shadow: 0 0 18px #e5c45a;
    animation: droScan 1.5s ease-in-out both;
}

.dro-splash-brand {
    position: relative;
    z-index: 3;
    align-self: end;
    margin-bottom: 15vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: droBrand .9s .35s both;
}

.dro-splash-brand img { width: 190px; height: auto; }
.dro-splash-brand span { color: #d8b34b; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.dro-splash-progress { position:absolute; z-index:3; bottom:8vh; width:112px; height:2px; background:rgba(255,255,255,.12); overflow:hidden; }
.dro-splash-progress span { display:block; height:100%; background:#d8b34b; animation:droProgress 1.45s ease both; }

@keyframes droReveal { from { opacity:0; transform:scale(1.08); } to { opacity:.54; transform:scale(1); } }
@keyframes droScan { from { top:18%; opacity:0; } 20% { opacity:1; } to { top:76%; opacity:0; } }
@keyframes droBrand { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
@keyframes droProgress { from { width:0; } to { width:100%; } }

.app-hero-v4 {
    position: relative;
    min-height: 310px;
    margin: -4px -4px 18px;
    overflow: hidden;
    border: 1px solid rgba(216,179,75,.22);
    border-radius: 22px;
    background: #160a04;
    box-shadow: 0 22px 50px rgba(0,0,0,.3);
}

.app-hero-v4 > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 43%; opacity:.73; }
.app-hero-v4-overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(11,4,1,.03) 15%,rgba(11,4,1,.62) 55%,#130803 100%); }
.app-hero-v4-content { position:absolute; z-index:2; left:22px; right:22px; bottom:20px; }
.app-eyebrow { display:inline-block; margin-bottom:8px; color:#e7c65e; font-size:.64rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.app-hero-v4 h2 { max-width:330px; margin:0 0 8px; color:#fffaf6; font-size:1.46rem; line-height:1.08; letter-spacing:-.035em; }
.app-hero-v4 p { max-width:350px; margin:0; color:#d0bbb0; font-size:.78rem; line-height:1.45; }

.app-quick-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.app-quick-card { min-height:132px; padding:15px; text-align:left; border:1px solid rgba(216,179,75,.16); border-radius:16px; color:#fff8f3; background:linear-gradient(145deg,rgba(59,27,13,.72),rgba(29,12,5,.88)); box-shadow:0 10px 24px rgba(0,0,0,.14); cursor:pointer; transition:transform .2s ease,border-color .2s ease,background .2s ease; }
.app-quick-card:hover { transform:translateY(-2px); border-color:rgba(231,198,94,.48); background:linear-gradient(145deg,rgba(76,37,17,.82),rgba(35,14,6,.94)); }
.app-quick-icon { display:grid; place-items:center; width:34px; height:34px; margin-bottom:14px; border-radius:10px; color:#1a0e07; background:#d8b34b; font-size:1.25rem; font-weight:800; }
.app-quick-icon.urgent { color:#fff; background:#d94b45; }
.app-quick-card strong,.app-quick-card small { display:block; }
.app-quick-card strong { margin-bottom:5px; font-size:.84rem; }
.app-quick-card small { color:#a99185; font-size:.67rem; line-height:1.35; }

@media (prefers-reduced-motion: reduce) {
    .dro-splash-anatomy,.dro-splash-scan,.dro-splash-brand,.dro-splash-progress span { animation:none; }
}

/* Dentist app v4.1 — patient workspace */
.dentist-hub-section { margin:24px 0; padding:18px; border:1px solid rgba(216,179,75,.15); border-radius:18px; background:linear-gradient(155deg,rgba(47,21,10,.72),rgba(22,9,4,.88)); box-shadow:0 14px 32px rgba(0,0,0,.18); }
.dentist-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.dentist-section-heading h3 { margin:0; color:#fff8f3; font-size:1rem; letter-spacing:-.02em; }
.dentist-section-heading .app-eyebrow { margin-bottom:4px; }
.hub-live-dot { display:inline-flex; align-items:center; gap:5px; color:#90d7aa; font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.hub-live-dot::before { content:""; width:6px; height:6px; border-radius:50%; background:#55c987; box-shadow:0 0 0 4px rgba(85,201,135,.12); }
.patient-search-box { display:flex; align-items:center; gap:9px; margin-bottom:12px; padding:0 12px; border:1px solid rgba(255,255,255,.1); border-radius:12px; color:#b79d90; background:rgba(0,0,0,.22); }
.patient-search-box input { width:100%; padding:11px 0; border:0; outline:0; color:#fff7f1; background:transparent; font:inherit; font-size:.78rem; }
.patient-hub-list { display:flex; flex-direction:column; gap:10px; }
.patient-hub-card { padding:13px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background:rgba(255,255,255,.035); }
.patient-hub-top { display:flex; align-items:center; gap:10px; }
.patient-initial { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:10px; color:#1a0e07; background:#d8b34b; font-size:.78rem; font-weight:900; }
.patient-hub-copy { min-width:0; flex:1; }
.patient-hub-copy strong,.patient-hub-copy small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.patient-hub-copy strong { color:#fff8f3; font-size:.8rem; }
.patient-hub-copy small { margin-top:3px; color:#9f887c; font-size:.62rem; }
.patient-status-pill { max-width:105px; padding:5px 8px; border-radius:999px; color:#e7c65e; background:rgba(216,179,75,.1); font-size:.56rem; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.patient-status-pill.stage-4 { color:#8ee3ad; background:rgba(85,201,135,.12); }
.patient-progress { display:grid; grid-template-columns:repeat(4,1fr); margin-top:13px; }
.patient-progress > span { position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; color:#705c52; font-size:.52rem; }
.patient-progress > span::before { content:""; position:absolute; top:4px; right:50%; width:100%; height:1px; background:#3d2b23; }
.patient-progress > span:first-child::before { display:none; }
.patient-progress i { position:relative; z-index:1; width:9px; height:9px; border:2px solid #4b382f; border-radius:50%; background:#1b0b05; }
.patient-progress .done { color:#c9b7ad; }
.patient-progress .done::before,.patient-progress .done i { border-color:#d8b34b; background:#d8b34b; }
.patient-hub-empty { padding:18px; text-align:center; color:#9f887c; font-size:.72rem; }
.hub-skeleton { height:76px; border-radius:13px; background:linear-gradient(90deg,rgba(255,255,255,.03),rgba(255,255,255,.08),rgba(255,255,255,.03)); background-size:200% 100%; animation:hubShimmer 1.2s infinite; }
.hub-skeleton.short { width:78%; }
@keyframes hubShimmer { to { background-position:-200% 0; } }
.protocol-chips { display:grid; gap:8px; }
.protocol-chips button { display:flex; align-items:center; gap:10px; width:100%; padding:12px 13px; border:1px solid rgba(255,255,255,.08); border-radius:12px; color:#eadfd9; background:rgba(255,255,255,.035); font:inherit; font-size:.72rem; font-weight:700; text-align:left; cursor:pointer; }
.protocol-icon { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:12px; color:#e3c254; background:linear-gradient(145deg,rgba(216,179,75,.17),rgba(216,179,75,.055)); box-shadow:inset 0 0 0 1px rgba(216,179,75,.16); }
.protocol-icon svg,.clinical-guide-mark svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.protocol-copy { min-width:0; flex:1; }
.protocol-copy strong,.protocol-copy small { display:block; }
.protocol-copy strong { margin-bottom:3px; color:#fff8f3; font-size:.73rem; }
.protocol-copy small { color:#9f887c; font-size:.58rem; font-weight:500; line-height:1.35; }
.protocol-arrow { color:#8e776b; font-size:1.25rem; font-weight:400; }
.protocol-chips button:hover { border-color:rgba(216,179,75,.35); background:rgba(216,179,75,.07); }
.clinical-guide-card { margin:24px 0; padding:19px; overflow:hidden; border:1px solid rgba(216,179,75,.18); border-radius:19px; background:radial-gradient(circle at 100% 0,rgba(216,179,75,.09),transparent 38%),linear-gradient(150deg,#281108,#140803); box-shadow:0 16px 38px rgba(0,0,0,.2); }
.clinical-guide-head { display:flex; align-items:flex-start; gap:12px; margin-bottom:17px; }
.clinical-guide-mark { display:grid; place-items:center; flex:0 0 42px; height:42px; border-radius:13px; color:#e3c254; background:rgba(216,179,75,.1); }
.clinical-guide-head h3 { margin:0; color:#fff8f3; font-size:.95rem; line-height:1.25; letter-spacing:-.02em; }
.clinical-guide-steps { display:flex; flex-direction:column; gap:8px; }
.clinical-guide-steps details { border:1px solid rgba(255,255,255,.075); border-radius:12px; background:rgba(255,255,255,.025); }
.clinical-guide-steps summary { display:flex; align-items:center; gap:9px; padding:11px 12px; color:#eaded7; font-size:.7rem; font-weight:750; cursor:pointer; list-style:none; }
.clinical-guide-steps summary::-webkit-details-marker { display:none; }
.clinical-guide-steps summary span { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; color:#1a0e07; background:#d8b34b; font-size:.55rem; font-weight:900; }
.clinical-guide-steps p { margin:0; padding:0 12px 12px 46px; color:#a99185; font-size:.65rem; line-height:1.55; }
.clinical-guide-note { margin:13px 2px 0; color:#79665d; font-size:.55rem; line-height:1.45; }
.radiologist-contact-card { display:flex; align-items:center; gap:12px; margin:22px 0; padding:15px; border:1px solid rgba(85,201,135,.18); border-radius:16px; text-decoration:none; background:linear-gradient(135deg,rgba(27,72,49,.35),rgba(17,32,23,.3)); }
.radiologist-avatar { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:12px; color:#e8fff0; background:#296845; font-size:.7rem; font-weight:900; }
.radiologist-copy { min-width:0; flex:1; }
.radiologist-copy small,.radiologist-copy strong,.radiologist-copy em { display:block; }
.radiologist-copy small { color:#83d7a3; font-size:.56rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.radiologist-copy strong { margin:3px 0; color:#f3fff7; font-size:.76rem; }
.radiologist-copy em { color:#87a893; font-size:.6rem; font-style:normal; }
.radiologist-arrow { color:#83d7a3; font-size:1.35rem; }

/* Hours Grid Selection */
.hours-container {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    background-color: var(--color-bg-white);
    max-height: 320px;
    overflow-y: auto;
}

.hours-title {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hour-slot {
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: var(--color-bg-light);
    transition: var(--transition-fast);
}

.hour-slot:hover:not(.disabled):not(.selected) {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: var(--color-bg-white);
}

.hour-slot.selected {
    background-color: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.hour-slot.disabled {
    background-color: rgba(0,0,0,0.02);
    color: #cbd5e1;
    border-color: #f1f5f9;
    cursor: not-allowed;
    text-decoration: line-through;
}

.no-date-msg {
    grid-column: 1 / -1;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 32px 0;
}

/* Step 5: Success Layout */
.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    font-size: 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.success-message-box {
    text-align: center;
    background-color: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.success-message-box p {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.success-message-box .highlight-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
}

.summary-details {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 32px;
}

.summary-details p {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.summary-details ul {
    list-style: none;
}

.summary-details li {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--color-text-muted);
}

.summary-details li strong {
    color: var(--color-text-main);
}

/* --- Contato & Forms --- */
.contato-section {
    background-color: var(--color-bg-white);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item-icon {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
}

.subtext-detail {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.contato-form-container {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
    .contato-form-container {
        padding: 24px;
    }
}

.contato-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 80px 0 0 0;
}

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

.footer-brand h4, .footer-links h4, .footer-social h4 {
    color: var(--color-bg-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 320px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

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

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
}

.footer-bottom {
    text-align: center;
    padding: 32px 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* --- Premium Aesthetic Updates (Animations & Images) --- */

/* Scroll Reveal base state and active state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered delay helpers */
.reveal-delay-1 {
    transition-delay: 0.15s;
}
.reveal-delay-2 {
    transition-delay: 0.3s;
}
.reveal-delay-3 {
    transition-delay: 0.45s;
}

/* Hero Image on the Right */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(120, 83, 62, 0.25) 0%, rgba(76, 27, 1, 0) 60%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    aspect-ratio: 4 / 3;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(0.95) contrast(1.05);
}

.hero-image-frame:hover .hero-img {
    transform: scale(1.03);
}

/* Floating overlay badge/card on hero image */
.floating-tech-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(76, 27, 1, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: floating 3s ease-in-out infinite;
}

.tech-card-icon {
    font-size: 1.5rem;
    background: rgba(197, 155, 39, 0.2);
    color: var(--color-accent);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-tech-card h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.floating-tech-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

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

/* Overlapping Portal Section styling */
.portal-section {
    position: relative;
    z-index: 100;
    margin-top: -60px; /* Overlaps bottom of hero */
    margin-bottom: 40px;
}

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

.portal-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1.5px solid var(--color-border);
    padding: 36px;
    border-radius: var(--radius-lg);
    color: var(--color-text-main);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.portal-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-bg-white);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-premium);
}

.portal-card.premium-border {
    border-color: rgba(197, 155, 39, 0.4);
}

.portal-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.portal-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.portal-link {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition-fast);
}

.portal-link:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

/* Masked Portal Forms */
.portal-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .portal-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.form-input-portal {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--color-text-main);
    background-color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-input-portal:focus {
    border-color: var(--color-accent);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

.btn-portal-submit {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-bg-white);
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-portal-submit:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 27, 1, 0.15);
}

.portal-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.portal-forgot-link {
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.portal-forgot-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.portal-app-link {
    color: var(--color-secondary);
    font-weight: 700;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portal-app-link:hover {
    color: var(--color-accent);
    transform: translateX(2px);
}

.portal-divider {
    color: var(--color-border);
    font-size: 0.8rem;
}

/* Sobre Nós Image filling wrapper */
.sobre-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(0.97) contrast(1.02);
}

.image-wrapper:hover .sobre-img {
    transform: scale(1.04);
}

@media (max-width: 992px) {
    .portal-section {
        margin-top: 24px;
        margin-bottom: 0;
    }
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Concept Blog Section --- */
.blog-section {
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.blog-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(197, 155, 39, 0.3);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-card-link {
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    align-self: flex-start;
}

.blog-card-link:hover {
    color: var(--color-accent);
}

/* Skeleton loader for blog */
.blog-skeleton {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
}

.skeleton-card {
    height: 380px;
    background: linear-gradient(90deg, #f3ede7 25%, #ebdcd3 50%, #f3ede7 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
    border-radius: var(--radius-lg);
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .blog-grid, .blog-skeleton {
        grid-template-columns: 1fr;
    }
}

/* --- Blog Modal (Glassmorphism Modal) --- */
/* --- Standalone Blog Page Specifics --- */
.blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.blog-search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.blog-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    color: var(--color-text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.blog-search-box input:focus {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    background-color: var(--color-bg-white);
}

.blog-search-box .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    pointer-events: none;
}

.blog-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-chip {
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.category-chip:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.category-chip.active {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border-color: var(--color-primary);
}

.blog-reader-view.hidden {
    display: none !important;
}

.blog-reader-view {
    animation: cardFadeIn var(--transition-normal) ease forwards;
}

.btn-back-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.btn-back-blog:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border-color: var(--color-primary);
    transform: translateX(-2px);
}

.single-post {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.modal-article-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}

.modal-article-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.modal-article-title {
    font-size: 2.25rem;
    color: var(--color-primary);
    line-height: 1.25;
}

.modal-article-image {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
}

.modal-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-article-body {
    font-size: 1.05rem;
    color: var(--color-text-main);
    line-height: 1.8;
}

.modal-article-body p {
    margin-bottom: 20px;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-search-box {
        max-width: 100%;
    }
    .single-post {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .modal-article-title {
        font-size: 1.75rem;
    }
    .modal-article-image {
        height: 200px;
    }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float-icon {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.4;
    z-index: -1;
    animation: whatsapp-pulse-anim 2s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #1a0e07;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(212, 160, 23, 0.3);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.5);
    background: linear-gradient(135deg, #2ae771 0%, #149c8c 100%);
}

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

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

/* Adjust button position on mobile */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float-icon {
        width: 26px;
        height: 26px;
    }
}

/* --- Hero Portals Wrapper (Right Column) --- */
.hero-portals-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    z-index: 5;
}

.hero-portals-wrapper .portal-card {
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1.5px solid var(--color-border);
    transition: var(--transition-normal);
    color: var(--color-text-main);
}

.hero-portals-wrapper .portal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    border-color: var(--color-accent);
}

.hero-portals-wrapper .portal-card.premium-border {
    border-color: rgba(197, 155, 39, 0.4);
}

.hero-portals-wrapper .portal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.hero-portals-wrapper .portal-card p {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.hero-portals-wrapper .portal-icon {
    display: none; /* Make it compact in the hero fold */
}

/* Responsive adjustment for portals in Hero */
@media (max-width: 992px) {
    .hero-portals-wrapper {
        max-width: 900px;
        flex-direction: row; /* Side-by-side on tablets */
    }
    .hero-portals-wrapper .portal-card {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-portals-wrapper {
        flex-direction: column; /* Stacked on mobile */
        max-width: 480px;
    }
}

/* --- Gallery Section (Vertical Photos Carousel) --- */
.gallery-section {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.gallery-slider-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.gallery-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar */
    padding: 10px 0;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 calc(33.333% - 16px); /* 3 cards visible on desktop */
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    position: relative;
    transition: var(--transition-normal);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Gallery Navigation Arrows */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: var(--transition-fast);
    font-size: 1.5rem;
    font-family: inherit;
    font-weight: bold;
    outline: none;
}

.gallery-nav-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    box-shadow: var(--shadow-lg);
}

.gallery-nav-btn.prev {
    left: -10px;
}

.gallery-nav-btn.next {
    right: -10px;
}

@media (max-width: 992px) {
    .gallery-card {
        flex: 0 0 calc(50% - 12px); /* 2 cards on tablet */
    }
}

@media (max-width: 576px) {
    .gallery-card {
        flex: 0 0 100%; /* 1 card on mobile */
    }
    .gallery-slider-wrapper {
        padding: 0 20px;
    }
    .gallery-nav-btn.prev {
        left: -5px;
    }
    .gallery-nav-btn.next {
        right: -5px;
    }
}
/* Pedido digital e central de conteúdo — v4.3 */
.request-intro-card,
.blog-intro-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 22px 18px;
    border: 1px solid rgba(218, 171, 65, .38);
    border-radius: 20px;
    background: radial-gradient(circle at 92% 5%, rgba(218,171,65,.2), transparent 38%), linear-gradient(145deg, #2a130b, #160a06 72%);
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.request-intro-card h3,
.blog-intro-card h3 { margin: 5px 0 7px; color: #fff; font-size: 1.35rem; line-height: 1.2; }
.request-intro-card > p,
.blog-intro-card > p { margin: 0; color: var(--color-app-text-muted); font-size: .82rem; line-height: 1.5; }

.request-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 18px; }
.request-flow div { position: relative; min-width: 0; padding: 11px 7px 9px; border: 1px solid rgba(218,171,65,.22); border-radius: 12px; background: rgba(255,255,255,.035); text-align: center; }
.request-flow span { display: grid; place-items: center; width: 22px; height: 22px; margin: 0 auto 6px; border-radius: 50%; background: var(--color-app-active); color: #241005; font-size: .7rem; font-weight: 900; }
.request-flow strong, .request-flow small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.request-flow strong { color: #fff; font-size: .7rem; }
.request-flow small { margin-top: 2px; color: var(--color-app-text-muted); font-size: .57rem; }

.request-step-heading { display: flex; align-items: center; gap: 10px; margin: 22px 2px 10px; }
.request-step-heading > span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid rgba(218,171,65,.55); border-radius: 9px; color: var(--color-app-active); background: rgba(218,171,65,.1); font-size: .73rem; font-weight: 900; }
.request-step-heading strong, .request-step-heading small { display: block; }
.request-step-heading strong { color: #fff; font-size: .9rem; }
.request-step-heading small { margin-top: 2px; color: var(--color-app-text-muted); font-size: .67rem; }
.request-step-card { margin-bottom: 0 !important; border-color: rgba(218,171,65,.28) !important; box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.request-exams-card details { overflow: hidden; transition: border-color .2s ease, background .2s ease; }
.request-exams-card details[open] { border-color: rgba(218,171,65,.55) !important; background: rgba(218,171,65,.07) !important; }
.request-exams-card input[type="checkbox"] { accent-color: var(--color-app-active); width: 17px; height: 17px; }
.request-patient-card { margin-bottom: 14px; padding: 16px; border: 1px solid rgba(218,171,65,.28); border-radius: var(--radius-md); background: rgba(255,255,255,.025); }
.request-patient-card .app-input-group { margin-bottom: 8px; }
.request-patient-card p { margin: 0; color: var(--color-app-text-muted); font-size: .67rem; line-height: 1.45; }

.blog-intro-card { padding-bottom: 18px; }
.blog-sync-note { display: flex; align-items: center; gap: 7px; margin-top: 15px; color: #dfcfae; font-size: .66rem; }
.blog-sync-note span { width: 7px; height: 7px; border-radius: 50%; background: #55d98b; box-shadow: 0 0 0 4px rgba(85,217,139,.12); }
.blog-feed-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.blog-feed-heading strong, .blog-feed-heading small { display: block; }
.blog-feed-heading strong { color: #fff; font-size: .95rem; }
.blog-feed-heading small { margin-top: 3px; color: var(--color-app-text-muted); font-size: .65rem; }
.blog-feed-heading button { width: 34px; height: 34px; border: 1px solid var(--color-app-border); border-radius: 10px; background: rgba(255,255,255,.04); color: var(--color-app-active); font-size: 1rem; cursor: pointer; }
.app-blog-feed { display: grid; gap: 12px; }
.app-blog-card { display: grid; grid-template-columns: 104px 1fr; overflow: hidden; border: 1px solid rgba(218,171,65,.2); border-radius: 16px; background: linear-gradient(145deg, rgba(52,24,14,.92), rgba(26,12,7,.95)); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.app-blog-card.featured { display: block; border-color: rgba(218,171,65,.48); }
.app-blog-card-image { position: relative; min-height: 128px; overflow: hidden; }
.app-blog-card-image img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; display: block; }
.app-blog-card.featured .app-blog-card-image { height: 178px; }
.blog-featured-label { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; background: #e3b94f; color: #281307; font-size: .62rem; font-weight: 900; }
.app-blog-card-content { min-width: 0; padding: 13px 13px 12px; }
.app-blog-card.featured .app-blog-card-content { padding: 16px; }
.blog-card-meta, .blog-reader-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--color-app-text-muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; }
.blog-card-meta span, .blog-reader-meta span { color: var(--color-app-active); font-weight: 800; }
.app-blog-card-title { margin: 0; color: #fff; font-size: .83rem; line-height: 1.32; }
.app-blog-card.featured .app-blog-card-title { font-size: 1.05rem; }
.app-blog-card-excerpt { display: -webkit-box; overflow: hidden; margin: 7px 0 9px; color: var(--color-app-text-muted); font-size: .67rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.app-blog-card.featured .app-blog-card-excerpt { font-size: .75rem; -webkit-line-clamp: 3; }
.app-blog-card-btn { padding: 0; border: 0; background: transparent; color: var(--color-app-active); font-size: .68rem; font-weight: 800; cursor: pointer; }
.app-blog-card-btn span { margin-left: 3px; }
.blog-nav-badge { position: absolute; top: 7px; right: calc(50% - 18px); width: 8px; height: 8px; border: 2px solid #160905; border-radius: 50%; background: #ef4444; }
.nav-item { position: relative; }
.blog-reader-title { margin: 7px 0 14px; color: #fff; font-size: 1.3rem; line-height: 1.3; }
.blog-reader-image { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 17px; }
.blog-reader-body { color: var(--color-app-text); font-size: .82rem; line-height: 1.7; }
.blog-reader-body p { margin: 0 0 14px; }

@media (max-width: 380px) {
    .request-flow small { display: none; }
    .app-blog-card { grid-template-columns: 92px 1fr; }
}

/* Acesso aos laudos e blog editorial — v4.4 */
.reports-intro-card { margin-bottom: 16px; padding: 22px 18px; border: 1px solid rgba(218,171,65,.38); border-radius: 20px; background: radial-gradient(circle at 95% 0, rgba(218,171,65,.18), transparent 38%), linear-gradient(145deg,#2a130b,#160a06 72%); }
.reports-intro-card h3 { margin: 5px 0 7px; color: #fff; font-size: 1.3rem; }
.reports-intro-card > p { margin: 0; color: var(--color-app-text-muted); font-size: .8rem; line-height: 1.5; }
.reports-access-steps { display: grid; gap: 10px; margin-top: 18px; }
.reports-access-steps > div { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid rgba(218,171,65,.18); border-radius: 12px; background: rgba(255,255,255,.03); }
.reports-access-steps > div > span { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 8px; background: rgba(218,171,65,.15); color: var(--color-app-active); font-size: .7rem; font-weight: 900; }
.reports-access-steps p { margin: 0; }
.reports-access-steps strong, .reports-access-steps small { display: block; }
.reports-access-steps strong { color: #fff; font-size: .76rem; }
.reports-access-steps small { margin-top: 3px; color: var(--color-app-text-muted); font-size: .64rem; line-height: 1.4; }
.reports-login-card { border-color: rgba(218,171,65,.3) !important; }
.reports-login-heading { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 13px; }
.reports-login-heading > span { padding: 5px 7px; border-radius: 6px; background: rgba(218,171,65,.14); color: var(--color-app-active); font-size: .55rem; font-weight: 900; letter-spacing: .08em; }
.reports-login-heading strong, .reports-login-heading small { display: block; }
.reports-login-heading strong { color: #fff; font-size: .83rem; }
.reports-login-heading small { color: var(--color-app-text-muted); font-size: .6rem; }

/* O feed usa capas tipográficas para evitar fotografias repetidas. */
.app-blog-card,
.app-blog-card.featured { display: block; grid-template-columns: none; border-left: 3px solid rgba(218,171,65,.65); }
.app-blog-card.featured { background: radial-gradient(circle at 100% 0, rgba(218,171,65,.15), transparent 45%), linear-gradient(145deg, rgba(52,24,14,.96), rgba(26,12,7,.98)); }
.app-blog-card-content,
.app-blog-card.featured .app-blog-card-content { padding: 17px 16px 16px; }
.app-blog-card-title,
.app-blog-card.featured .app-blog-card-title { font-size: 1rem; line-height: 1.35; }
.app-blog-card-excerpt,
.app-blog-card.featured .app-blog-card-excerpt { margin: 8px 0 12px; font-size: .73rem; -webkit-line-clamp: 3; }
.blog-reader-body { white-space: pre-line; }

@media (max-width: 380px) {
    .app-blog-card { grid-template-columns: none; }
}
