/* ==========================================================================
   IDENT CLINIC - MODERN & ULTRA RESPONSIVE FRONTEND SYSTEM
   ========================================================================== */

:root {
    --brand-primary: #0284c7;       /* Azul médico moderno */
    --brand-primary-dark: #0369a1;  /* Azul profundo */
    --brand-secondary: #0ea5e9;     /* Ciano vibrante */
    --brand-accent: #38bdf8;        /* Destaque suave */
    --brand-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --brand-gradient-glow: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --surface-dark: #0f172a;        /* Fundo escuro premium */
    --surface-light: #f8fafc;       /* Fundo claro moderno */
    --surface-card: #ffffff;
    --text-main: #1e293b;           /* Slate 800 */
    --text-muted: #64748b;          /* Slate 500 */
    --text-light: #94a3b8;
    --border-soft: rgba(226, 232, 240, 0.8);
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-float: 0 20px 40px -15px rgba(2, 132, 199, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: var(--surface-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */

.modern-top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.modern-top-bar a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.modern-top-bar a:hover {
    color: var(--brand-primary);
}
.badge-light-custom {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.modern-main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    z-index: 1040;
}

/* Brand styling */
.brand-symbol {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.brand-text .brand-main {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    line-height: 1.1;
    display: block;
}
.brand-text .brand-sub {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--brand-primary);
}

/* Nav Links */
.navbar-nav .nav-link-custom {
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}
.navbar-nav .nav-link-custom:hover,
.navbar-nav .nav-item.active .nav-link-custom {
    color: var(--brand-primary) !important;
    background-color: rgba(2, 132, 199, 0.06);
}

.header-phone .phone-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0f2fe;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}
.header-phone:hover .phone-icon-circle {
    background: var(--brand-primary);
    color: #ffffff;
}

.btn-login-portal {
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-login-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    color: #ffffff;
}

.lang-selector-btn {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569 !important;
    padding: 8px 12px;
    border-radius: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-modern-section {
    position: relative;
    background: linear-gradient(135deg, #0b192e 0%, #0f3254 60%, #0369a1 100%);
    padding: 90px 0 160px;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

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

.hero-badge-trust {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    letter-spacing: -1px;
}
.text-gradient-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 580px;
}

.btn-hero-primary {
    background: #ffffff;
    color: #0369a1 !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

.btn-hero-video {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-hero-video:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-hero-video .video-circle {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #0284c7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.hero-stats-row {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
}
.hero-stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.82rem;
    color: #94a3b8;
}

.hero-visual-wrapper {
    position: relative;
    z-index: 2;
}
.hero-main-img {
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    object-fit: cover;
    max-height: 440px;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: floatAnim 4s ease-in-out infinite;
}
.badge-top-right {
    top: 20px;
    right: -15px;
}
.badge-bottom-left {
    bottom: -20px;
    left: -15px;
    animation-delay: 2s;
}
.badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
}

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

/* ==========================================================================
   APPOINTMENT SECTION (FORM CARD)
   ========================================================================== */

.appointment-floating-section {
    position: relative;
    margin-top: -100px;
    z-index: 10;
    padding-bottom: 50px;
}

.modern-appointment-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: var(--transition);
}

.card-header-gradient {
    background: var(--brand-gradient);
    padding: 30px 40px;
    color: #ffffff;
}
.card-header-gradient h4 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}
.card-header-gradient p {
    color: #e0f2fe;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.appointment-form-body {
    padding: 40px;
}

.form-group-modern {
    margin-bottom: 20px;
}
.form-group-modern label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}
.input-with-icon {
    position: relative;
}
.input-with-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
}
.input-with-icon .form-control {
    padding-left: 44px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: var(--transition);
}
.input-with-icon .form-control:focus {
    background-color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}
.input-with-icon .form-control:focus ~ .input-icon {
    color: var(--brand-primary);
}

textarea.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
    background-color: #f8fafc;
    padding: 14px 16px;
    transition: var(--transition);
}
textarea.form-control:focus {
    background-color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.btn-submit-appointment {
    background: var(--brand-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-submit-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.4);
    color: #ffffff;
}

/* ==========================================================================
   FEATURES / WELCOME SECTION
   ========================================================================== */

.section-padding {
    padding: 85px 0;
}

.section-badge {
    display: inline-block;
    background: #e0f2fe;
    color: var(--brand-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

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

.feature-box-modern {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    height: 100%;
}
.feature-box-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(2, 132, 199, 0.3);
}
.feature-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: #e0f2fe;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}
.feature-box-modern:hover .feature-icon-wrapper {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */

.stats-modern-section {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stat-card-modern {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}
.stat-card-modern:hover {
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    border-color: rgba(2, 132, 199, 0.3);
}
.stat-icon {
    font-size: 2.2rem;
    color: var(--brand-primary);
    margin-bottom: 12px;
}
.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin-top: 8px;
    margin-bottom: 4px;
}
.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   SERVICES PILLS / SHOWCASE
   ========================================================================== */

.services-badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.service-pill-item {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #334155;
    padding: 12px 20px;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}
.service-pill-item i {
    color: var(--brand-primary);
    margin-right: 10px;
    font-size: 1rem;
}
.service-pill-item:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
    text-decoration: none;
}
.service-pill-item:hover i {
    color: #ffffff;
}

/* ==========================================================================
   TESTIMONIALS (CAROUSEL)
   ========================================================================== */

.testimonials-section {
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.testimonial-card-modern {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    margin: 15px 5px;
}
.testimonial-quote-icon {
    position: absolute;
    right: 35px;
    top: 35px;
    font-size: 2.5rem;
    color: #e2e8f0;
}
.client-avatar-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0f2fe;
}
.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}
.client-role {
    font-size: 0.85rem;
    color: var(--brand-primary);
    font-weight: 500;
    margin-bottom: 0;
}
.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
}

/* ==========================================================================
   MODERN FOOTER
   ========================================================================== */

.modern-site-footer {
    background-color: #0b1329;
    color: #cbd5e1;
}

.footer-top-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
    font-size: 1.05rem;
    letter-spacing: -0.2px;
}

.footer-quick-links li {
    margin-bottom: 10px;
}
.footer-quick-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}
.footer-quick-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.social-icons-wrap {
    gap: 10px;
}
.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-icon-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.schedule-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.border-light-10 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.footer-bottom-bar {
    background-color: #070d1d;
}

.modern-movetop-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1030;
    transition: var(--transition);
}
.modern-movetop-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.55);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-first tuning)
   ========================================================================== */

@media (max-width: 991.98px) {
    .hero-modern-section {
        padding: 60px 0 130px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .appointment-floating-section {
        margin-top: -80px;
    }
    .appointment-form-body {
        padding: 24px;
    }
    .card-header-gradient {
        padding: 22px 24px;
    }
    .floating-badge {
        display: none; /* Evita poluição no tablet/mobile */
    }
    .navbar-collapse {
        background: #ffffff;
        padding: 20px;
        border-radius: var(--radius-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 12px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-subtitle {
        font-size: 0.98rem;
    }
    .btn-hero-primary,
    .btn-hero-video {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-right: 0 !important;
        margin-bottom: 12px;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .section-padding {
        padding: 55px 0;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .appointment-form-body {
        padding: 18px 15px;
    }
    .testimonial-card-modern {
        padding: 24px 20px;
    }
}