/* ==========================================================================
   VETNASA - Unified CSS Stylesheet (style2.css)
   ========================================================================== */

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s cubic-bezier(0.16, 1, 0.3, 1), transform .65s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Desktop: lateral */
@media (min-width: 768px) {
    .reveal-left  { opacity: 0; transform: translateX(-48px); transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1); }
    .reveal-right { opacity: 0; transform: translateX( 48px); transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1); }
}
.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: none;
}

/* ── Page Loader PREMIUM ── */
#site-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: #00096b;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    overflow: hidden;
    transition: opacity .7s cubic-bezier(0.4,0,0.2,1), transform .7s cubic-bezier(0.4,0,0.2,1);
}
#site-loader.hide {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
}
/* fundo gradiente animado */
#loader-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, #0a1e8a 0%, #00096b 50%, #000540 100%);
    animation: bgShift 4s ease-in-out infinite alternate;
}
@keyframes bgShift {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
/* orbs flutuantes */
.loader-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 5s ease-in-out infinite alternate;
    opacity: .35;
}
.loader-orb-1 { width:320px;height:320px;background:#2c9998;top:-80px;left:-80px;animation-delay:0s; }
.loader-orb-2 { width:260px;height:260px;background:#00096b;bottom:-60px;right:-60px;animation-delay:1.5s; }
.loader-orb-3 { width:180px;height:180px;background:#ffe100;top:60%;left:65%;animation-delay:.8s;opacity:.12; }
@keyframes orbFloat {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(20px,20px) scale(1.1); }
}
/* logo */
#loader-logo {
    position: relative; z-index: 2;
    width: 220px;
    animation: logoIn .9s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes logoIn {
    from { opacity:0; transform: scale(.7) translateY(20px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}
/* tagline */
#loader-tag {
    position: relative; z-index:2;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-top: 18px;
    animation: tagIn .9s .3s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes tagIn {
    from { opacity:0; transform: translateY(12px); }
    to   { opacity:1; transform: translateY(0); }
}
/* barra de progresso */
#loader-bar-wrap {
    position: relative; z-index:2;
    width: 180px; height: 3px;
    background: rgba(255,255,255,.15);
    border-radius: 99px;
    margin-top: 36px;
    overflow: hidden;
    animation: tagIn .9s .5s both;
}
#loader-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2c9998, #ffe100);
    border-radius: 99px;
    animation: barFill 1.6s .4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes barFill {
    to { width: 100%; }
}
/* pontos */
#loader-dots {
    position: relative; z-index:2;
    display: flex; gap: 8px;
    margin-top: 20px;
    animation: tagIn .9s .6s both;
}
#loader-dots span {
    width:7px; height:7px;
    background: rgba(255,255,255,.4);
    border-radius: 50%;
    animation: dotBounce 1.2s ease-in-out infinite;
}
#loader-dots span:nth-child(2) { animation-delay:.15s; }
#loader-dots span:nth-child(3) { animation-delay:.3s; }
@keyframes dotBounce {
    0%,80%,100% { transform:scale(1);   opacity:.4; }
    40%          { transform:scale(1.5); opacity:1; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.3); }
}
.pulse-dot {
    animation: pulse-dot 1.6s infinite;
}

#navbar.scrolled {
    background: rgba(0, 9, 107, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}
#navbar.scrolled img {
    height: 3.1rem !important;
}

.unit-row.hidden-unit {
    display: none;
}

/* Garante que o contêiner do Reflex Grid use flexbox e não o CSS Grid do Tailwind */
.grid {
    display: flex !important;
}

/* === HOVER GLOBAL: nenhum elemento usa amarelo (accent) no hover === */
*:hover.hover\:bg-accent,
.hover\:bg-accent:hover {
    background-color: #2c9998 !important;
}

/* Classe para controle facil da cor de fundo da secao de unidades */
.unidades-secao-bg {
    background-color: #0a3d62 !important;
    background-image:
        linear-gradient(
            rgba(8, 40, 70, 0.78),
            rgba(8, 40, 70, 0.78)
        ),
        url('../images/units-bg.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Ajusta textos da seção para contrastar com fundo escuro */
.unidades-secao-bg .unidades-title {
    color: #ffffff !important;
}
.unidades-secao-bg .unidades-title .text-secondary {
    color: #d6eeff !important;
}

/* Ajuste do espaçamento das colunas das unidades */
#unidades-grid {
    margin-right: -6px !important;
    margin-left: -6px !important;
}
#unidades-grid > [class*="col-"] {
    padding: 6px !important;
}
@media (min-width: 768px) {
    #unidades-grid {
        margin-right: -8px !important;
        margin-left: -8px !important;
    }
    #unidades-grid > [class*="col-"] {
        padding: 8px !important;
    }
}

.units-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .05) transparent;
}
.units-scroll::-webkit-scrollbar {
    width: 4px;
}
.units-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .1);
    border-radius: 10px;
}

.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 1.5px solid rgba(44, 153, 152, 0.08);
    box-shadow: 0 2px 20px rgba(0, 9, 107, 0.04);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Decorative corner accent */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle at top right, rgba(44,153,152,0.12), transparent 70%);
    pointer-events: none;
    border-radius: 0 2rem 0 100%;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(44, 153, 152, 0.04) 0%, rgba(0, 9, 107, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    background-color: #00096b !important;
    border-color: transparent !important;
    box-shadow: 0 20px 45px -12px rgba(0, 9, 107, 0.35);
}
.service-card:hover::after {
    opacity: 1;
}

/* Icon container */
.service-icon {
    background: linear-gradient(135deg, rgba(44,153,152,0.10) 0%, rgba(0,9,107,0.07) 100%);
    border: 1.5px solid rgba(44, 153, 152, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 6px 20px rgba(44, 153, 152, 0.12);
    color: #2c9998;
    transition: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
}
.service-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(44,153,152,0.5) 0%, rgba(255,225,0,0.25) 60%, transparent 100%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.55s ease;
    z-index: -1;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(4deg);
    background: #ffffff !important;
    border-color: rgba(44, 153, 152, 0.3) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 9, 107, 0.15);
}
.service-icon svg {
    transition: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-label {
    font-size: 0.82rem;
    color: #2c9998;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
    opacity: 0.8;
    transition: color 0.3s;
}

.service-card:hover h4,
.service-card:hover .text-primary {
    color: #ffffff !important;
}
.service-card:hover .service-label {
    color: #3ae3e1 !important;
    opacity: 1;
}

/* Inverte o hover apenas na seção de especialidades (que já possui fundo azul escuro) */
#especialidades .service-card:hover {
    background-color: #ffffff !important;
    border-color: #2c9998 !important;
    box-shadow: 0 20px 45px -12px rgba(44, 153, 152, 0.35);
}
#especialidades .service-card:hover h4,
#especialidades .service-card:hover .text-primary {
    color: #00096b !important;
}
#especialidades .service-card:hover .service-label {
    color: #2c9998 !important;
}

/* ── Snap Carousel scrollbar hiding ── */
#services-carousel::-webkit-scrollbar,
#specialties-carousel::-webkit-scrollbar {
    display: none;
}

/* ── Mobile Sidebar Drawer ── */
#mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
}
#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open {
    transform: translateX(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.hero-gradient {
    background: radial-gradient(circle at 70% 30%, #f8fbff 0%, #ffffff 100%);
}

.btn-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 9, 107, 0.15), 0 8px 10px -6px rgba(0, 9, 107, 0.1);
}

/* Wave Divider */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 80px;
}
.wave-divider .shape-fill {
    fill: #00096b;
}
.wave-divider.flipped {
    transform: rotate(180deg);
}

/* Exam Cards */
.exam-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 9, 107, 0.05);
    transition: all 0.3s ease;
}
.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 9, 107, 0.08);
    border-color: rgba(0, 9, 107, 0.1);
}

/* Modal Style */
.modal {
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}
.modal.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.modal.open .modal-content {
    transform: scale(1);
}

.unit-card-outline:hover {
    border-color: rgba(0, 9, 107, 0.2);
}

/* Classe isolada para ajustar o tamanho do H1 das Unidades */
.unidades-title {
    font-size: 1.25rem;
}
@media (min-width: 768px) {
    .unidades-title {
        font-size: 1.50rem;
    }
}

/* Grid isolada para os Badges */
.badges-grid {
    display: grid !important;
}

/* ── Mobile Peek Carousel ── */
@media (max-width: 639px) {
    #services-carousel, #specialties-carousel {
        scroll-snap-type: x mandatory !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #services-carousel .service-card, #specialties-carousel .service-card {
        scroll-snap-align: center !important;
    }
}

/* ── Specialty Content Typography (Specialty Pages) ── */
.content-dense p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.05rem;
    font-weight: 500;
}
.content-dense h2 {
    color: #00096b;
    font-weight: 900;
    font-size: 2.15rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}
.content-dense h3 {
    color: #00096b;
    font-weight: 800;
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.content-dense ul {
    margin-bottom: 2rem;
    list-style-type: none;
    padding-left: 0;
}
.content-dense li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.90rem;
    color: #374151;
    font-weight: 600;
    font-size: 1.02rem;
}
.content-dense li::before {
    content: '✓';
    color: #2c9998;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
}
