/* ============================================================== */
/*  CARDIO ASSIST — DESIGN SYSTEM (shared)                        */
/*  Fonte única de verdade para portal-do-paciente.html e blog.   */
/*  Caminhos de url() são ABSOLUTOS (/assets/...) para funcionar   */
/*  independentemente da profundidade da página que importa este  */
/*  arquivo (ex.: /portal-do-paciente/blog/<slug>/).               */
/* ============================================================== */

@font-face {
    font-family: 'Vonca';
    src: url('/assets/fonts/vonca-font/vonca-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Base & Resets */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
}

/* Remove default browser focus outline halos on interactive elements */
a:focus, button:focus, [role="button"]:focus, .ca-footer__link:focus,
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, .ca-footer__link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
}

/* Ambient Grid */
.ambient-grid {
    position: fixed;
    inset: 0;
    background-size: 48px 48px;
    background-image:
        linear-gradient(to right, rgba(174, 0, 6, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(174, 0, 6, 0.03) 1px, transparent 1px);
    pointer-events: none;
    z-index: -2;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 50; /* Over everything to add cinematic texture */
}

/* Glass Panel */
.glass-panel {
    background: rgba(15, 15, 15, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); 
    will-change: transform, background-color;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.7s;
    pointer-events: none;
    z-index: 20;
}

.glass-panel:hover::before {
    left: 100%;
    transition: 0.7s ease-in-out;
}

/* Glass Overlay Panel (for hero text/cards) */
.glass-overlay-panel {
    position: relative;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-radius: 2rem;
}

/* Beam Spin Box (adapted from design_system_1 with transparent glass support) */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: true; }

@keyframes beam-spin-angle { 
    to { --beam-angle: 360deg; }
}

.beam-spin-box {
    position: relative;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}

.beam-spin-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--beam-angle) at 50% 50%, transparent 0%, transparent 75%, #AE0006 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 15;
    animation: beam-spin-angle 3s linear infinite;
}

.beam-spin-box__beam-glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 20;
    background: radial-gradient(50% 50% at 50% 100%, rgba(174, 0, 6, 0.15) 0%, transparent 100%);
}

.beam-spin-box__content {
    position: relative;
    z-index: 30;
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll { animation-play-state: paused !important; }
.animate-on-scroll.animate { animation-play-state: running !important; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(174,0,6,0.4), 0 0 20px rgba(174,0,6,0.15); }
    50%       { box-shadow: 0 0 25px rgba(174,0,6,0.8), 0 0 60px rgba(174,0,6,0.35); }
}
.animate-glow-red {
    animation: pulse-glow 2.5s ease infinite;
}

/* CTA Buttons */
@property --btn-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.shiny-cta {
    --btn-angle: 0deg;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 1.15rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: linear-gradient(#080808, #080808) padding-box,
        conic-gradient(from var(--btn-angle), transparent 0%, #AE0006 10%, #AE0006 20%, transparent 40%, transparent 100%) border-box;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 24px -8px rgba(174, 0, 6, 0.5);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    animation: btn-spin 4s linear infinite;
    outline: none;
    overflow: hidden;
}

.shiny-cta:hover, .shiny-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 32px -8px rgba(174, 0, 6, 0.7);
}

.shiny-cta:active { transform: translateY(1px); }

@keyframes btn-spin { to { --btn-angle: 360deg; } }

.shiny-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(174, 0, 6, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.shiny-cta:hover::before { opacity: 1; }
.shiny-cta span { position: relative; z-index: 2; }

/* Secondary Premium WhatsApp Button */
.ghost-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 9999px;
    padding: 1.15rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    outline: none;
}

.ghost-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.06) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.ghost-cta:hover, .ghost-cta:focus-visible {
    color: #25D366; /* Cor verde do WhatsApp no hover, substituindo o branco */
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
}

.ghost-cta:active { transform: translateY(1px); }
.ghost-cta:hover::before { opacity: 1; }

.ghost-cta span, .ghost-cta img { 
    position: relative; 
    z-index: 2; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease; 
}

.ghost-cta:hover img {
    transform: scale(1.05);
}

/* Fonts & Titles */
.hero-title {
    font-family: 'Vonca', sans-serif !important;
    font-weight: 400;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Article / Document Cards */
.portal-card {
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow, background-color;
    position: relative;
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.portal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(174, 0, 6, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.portal-card:hover {
    transform: translateY(-4px);
    background: rgba(20, 20, 20, 0.55);
    border-color: rgba(174, 0, 6, 0.25);
    border-top-color: rgba(174, 0, 6, 0.35);
    border-left-color: rgba(174, 0, 6, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(174, 0, 6, 0.1);
}

.portal-card:hover::before {
    opacity: 1;
}

@media (hover: none) {
    .portal-card:hover {
        transform: translateZ(0);
        background: rgba(15, 15, 15, 0.4);
        border-color: rgba(255, 255, 255, 0.04);
        border-top-color: rgba(255, 255, 255, 0.08);
        border-left-color: rgba(255, 255, 255, 0.06);
        box-shadow: none;
    }
    .portal-card:hover::before {
        opacity: 0;
    }
}

/* Glass pill categories buttons */
.filter-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.filter-pill.active {
    background: rgba(174, 0, 6, 0.12);
    border-color: rgba(174, 0, 6, 0.4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(174, 0, 6, 0.2);
}

/* —— Botões pill (formato) + efeitos creative-agency —— */
.btn-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    cursor: pointer;
    outline: none;
    isolation: isolate;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease;
}
.btn-pill:active { transform: scale(0.98); }

.btn-pill__label,
.btn-pill > .btn-pill__label {
    position: relative;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.btn-pill iconify-icon { position: relative; z-index: 20; }

/* Glow pill — borda conic + radial blur */
.btn-pill--glow {
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
}
.btn-pill--glow .btn-pill__glow-far,
.btn-pill--glow .btn-pill__glow-near {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 1.2s ease-in-out;
}
.btn-pill--glow .btn-pill__glow-far {
    opacity: 1;
    background: radial-gradient(15% 50% at 50% 100%, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
    filter: blur(15px);
}
.btn-pill--glow:hover .btn-pill__glow-far { opacity: 0; }
.btn-pill--glow .btn-pill__glow-near {
    opacity: 0;
    background: radial-gradient(60% 50% at 50% 100%, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
    filter: blur(18px);
}
.btn-pill--glow:hover .btn-pill__glow-near { opacity: 1; }
.btn-pill--glow .btn-pill__glow-core-a,
.btn-pill--glow .btn-pill__glow-core-b {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 1.2s ease-in-out;
}
.btn-pill--glow .btn-pill__glow-core-a {
    opacity: 1;
    background: radial-gradient(10.7% 50% at 50% 100%, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
}
.btn-pill--glow:hover .btn-pill__glow-core-a { opacity: 0; }
.btn-pill--glow .btn-pill__glow-core-b {
    opacity: 0;
    background: radial-gradient(60% 50% at 50% 100%, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
}
.btn-pill--glow:hover .btn-pill__glow-core-b { opacity: 1; }
.btn-pill--glow .btn-pill__spin {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}
.btn-pill--glow .btn-pill__spin > i {
    position: absolute;
    inset: -300%;
    display: block;
    border-radius: inherit;
    background: conic-gradient(from 90deg at 50% 50%, transparent 0%, transparent 90%, #ffffff 100%);
    animation: spin 4s linear infinite;
}
.btn-pill--glow .btn-pill__surface {
    pointer-events: none;
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: #000000;
    z-index: 5;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Legal Text Modal */
.legal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.legal-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.legal-modal {
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    width: 92%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(174, 0, 6, 0.05);
}
.legal-modal-backdrop.active .legal-modal {
    transform: translateY(0) scale(1);
}
.legal-modal-header {
    padding: 2.5rem 3rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}
.legal-modal-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}
.legal-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    opacity: 0.4;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 9999px;
}
.legal-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}
.legal-modal-body {
    padding: 2rem 3rem 3rem;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    font-size: 0.925rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}
.legal-modal-body h3 {
    font-family: 'Manrope', sans-serif;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.legal-modal-body p {
    margin-bottom: 1rem;
}
.legal-modal-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.legal-modal-body li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .legal-modal-header {
        padding: 2.5rem 1.75rem 1.25rem;
    }
    .legal-modal-body {
        padding: 1.5rem 1.75rem 2.5rem;
    }
}

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .shiny-cta { animation: none !important; }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* ============================================================== */
/*  BLOG POST — estilos específicos da página de artigo           */
/*  (tipografia de leitura rica, reaproveitando o design system)  */
/* ============================================================== */

.article-prose {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}
.article-prose > *:first-child { margin-top: 0; }
.article-prose p {
    margin-bottom: 1.25rem;
}
.article-prose h2 {
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
}
.article-prose h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}
.article-prose ul,
.article-prose ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}
.article-prose ul { list-style-type: disc; }
.article-prose ol { list-style-type: decimal; }
.article-prose li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}
.article-prose li::marker { color: #AE0006; }
.article-prose strong { color: #ffffff; font-weight: 600; }
.article-prose a {
    color: #AE0006;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}
.article-prose a:hover { color: #ffffff; }
.article-prose blockquote {
    border-left: 3px solid #AE0006;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}
.article-prose blockquote p {
    margin-bottom: 0;
    line-height: 1.7;
}
.article-prose hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0;
}
.article-prose .article-figure {
    margin: 2rem 0;
}
.article-prose .article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}
.article-prose .article-figure figcaption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #a1a1aa;
    font-style: italic;
}
.article-prose img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 640px) {
    .article-prose { font-size: 1.0625rem; }
    .article-prose h2 { font-size: 1.5rem; }
}

/* ==============================================================
 *  NAVBAR — visibilidade por breakpoint + menu hamburguer premium
 *  Compartilhado por portal-do-paciente.html e paginas do blog.
 *  O tailwind.css pre-compilado nao inclui as variantes lg:* da
 *  navbar, entao controlamos a visibilidade aqui via IDs.
 *  Abaixo de 1024px (celular E tablet/iPad) usamos o hamburguer.
 * ============================================================== */
#navDesktopLinks { display: none; }
#navPortalCta { display: none; }
#mobileMenuBtn { display: inline-flex; }

@media (min-width: 1024px) {
    /* Links centralizados, ocupando o espaco entre logo e CTA para uma
       distribuicao equilibrada (logo a esquerda, links ao centro,
       Portal do Paciente a direita). */
    #navDesktopLinks {
        display: flex;
        flex: 1 1 0%;
        justify-content: center;
        gap: 2.5rem;
    }
    #navPortalCta { display: block; }
    #mobileMenuBtn { display: none; }
    #mobileMenu { display: none; }
}

/* Menu de navegacao mobile / tablet — efeitos premium */
#mobileMenu {
    transform-origin: top right;
    will-change: transform, opacity, filter;
    filter: blur(6px);
    transform: translateY(-12px) scale(0.96);
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobileMenu.opacity-100 {
    filter: blur(0);
    transform: translateY(0) scale(1);
}
/* Borda superior com brilho da marca */
#mobileMenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(174, 0, 6, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.6s ease 0.15s;
}
#mobileMenu.opacity-100::before { opacity: 1; }

/* Revelacao escalonada dos itens do menu */
#mobileMenu a {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}
#mobileMenu.opacity-100 a {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.opacity-100 a:nth-child(1) { transition-delay: 0.10s, 0.10s, 0s, 0s, 0s; }
#mobileMenu.opacity-100 a:nth-child(2) { transition-delay: 0.16s, 0.16s, 0s, 0s, 0s; }
#mobileMenu.opacity-100 a:nth-child(3) { transition-delay: 0.22s, 0.22s, 0s, 0s, 0s; }
#mobileMenu.opacity-100 a:nth-child(4) { transition-delay: 0.28s, 0.28s, 0s, 0s, 0s; }

/* Indicador deslizante nos links de ancora */
#mobileMenu a:not([href$=".html"]) {
    position: relative;
    padding-left: 0.9rem;
}
#mobileMenu a:not([href$=".html"])::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 9999px;
    background: #AE0006;
    box-shadow: 0 0 10px rgba(174, 0, 6, 0.8);
    transform: translateY(-50%);
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobileMenu a:not([href$=".html"]):hover {
    color: #ffffff;
    transform: translateX(4px);
}
#mobileMenu a:not([href$=".html"]):hover::before { height: 60%; }

/* Botao hamburguer — animacao do icone */
#mobileMenuBtn iconify-icon {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#mobileMenuBtn.is-open iconify-icon {
    transform: rotate(90deg) scale(1.08);
}
#mobileMenuBtn:active iconify-icon { transform: scale(0.88); }

@media (prefers-reduced-motion: reduce) {
    #mobileMenu,
    #mobileMenu a,
    #mobileMenuBtn iconify-icon {
        transition: opacity 0.2s ease !important;
        transform: none !important;
        filter: none !important;
    }
}
