/* ==========================================================================
   CME — polimento visual, ronda 2 (Dez 2026)
   Carregada depois de cme-site.css. Tipografia, ritmo vertical, selos,
   ícones, tabela de horários responsiva e afinações finais de mobile.
   Aditiva: não edita o tema original. Respeita prefers-reduced-motion
   no fim do ficheiro.
   ========================================================================== */

/* ---------- tipografia responsiva ---------- */
body .sec-title h2 {
    font-family: var(--cme-f-display);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.18;
    font-size: clamp(26px, 3.6vw, 42px);
}
body .sec-title .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 13px/1.3 var(--cme-f-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cme-gold-dk);
}
body .sec-title.text-center .sub-title { justify-content: center; }
body .sec-title .sub-title::before {
    content: "";
    width: 24px; height: 2px;
    background: var(--cme-gold);
    border-radius: 2px;
    flex: none;
}
body .sec-title.text-center .sub-title::after {
    content: "";
    width: 24px; height: 2px;
    background: var(--cme-gold);
    border-radius: 2px;
    flex: none;
}
body .sec-title:not(.text-center) .sub-title::after { display: none; }
body .sec-title .text {
    color: #5c6b60;
    font-size: 16px;
    line-height: 1.75;
}
body p { line-height: 1.75; }
body h1, body h2, body h3 { letter-spacing: -.01em; }

/* ---------- ritmo vertical das secções principais ---------- */
body .about-section,
body .services-section,
body .team-section,
body .fun-fact-section,
body .news-section,
body .appointment-section,
body .portfolio-section,
body .time-table-section,
body .call-to-action {
    padding-top: clamp(56px, 8vw, 110px);
    padding-bottom: clamp(56px, 8vw, 110px);
}

/* ---------- selos de ícone (icon-box / flaticon) ---------- */
body .feature-block .icon-box,
body .service-block .icon-box,
body .info-box .icon-box {
    transition: transform .3s var(--cme-ease), background-color .3s var(--cme-ease);
}
body .feature-block .inner-box:hover .icon-box,
body .service-block .inner-box:hover .icon-box {
    transform: scale(1.08) rotate(-4deg);
}
body .count-box .icon-box,
body .counter-column .count-box {
    transition: transform .3s var(--cme-ease);
}
body .counter-column:hover .count-box { transform: translateY(-4px); }

/* ---------- divisores ---------- */
body .divider {
    opacity: .7;
}

/* ---------- call to action ---------- */
body .call-to-action {
    position: relative;
    overflow: hidden;
}
body .call-to-action.dark {
    background-color: var(--cme-ink) !important;
}

/* ---------- vídeo / play button (medicos) ---------- */
body .play-now .icon,
body .play-btn {
    transition: transform .3s var(--cme-ease), box-shadow .3s var(--cme-ease);
}
body .play-now:hover .icon,
body .play-btn:hover {
    transform: scale(1.1);
}

/* ---------- galeria: overlay de zoom mais elegante ---------- */
.mixitup-gallery .icon-box.lightbox-image {
    border-radius: var(--cme-r);
    overflow: hidden;
}
.mixitup-gallery .icon-box.lightbox-image .overlay {
    transition: opacity .3s var(--cme-ease);
}
.mixitup-gallery .icon-box.lightbox-image .fa-expand {
    transition: transform .3s var(--cme-ease);
}
.mixitup-gallery .icon-box.lightbox-image:hover .fa-expand {
    transform: scale(1.15);
}

/* ---------- formulário de contacto: mais ar e clareza ---------- */
body .contact-section .form-box,
body .contact-section .contact-form {
    border-radius: var(--cme-r);
}
body .contact-info-block .inner-box {
    border-radius: var(--cme-r);
    box-shadow: var(--cme-shadow-sm);
    transition: transform .3s var(--cme-ease), box-shadow .3s var(--cme-ease);
}
body .contact-info-block .inner-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--cme-shadow);
}
body .map-outer iframe,
body .map-canvas {
    filter: saturate(.92);
}

/* ---------- tabela de horários dos médicos: responsiva sem tocar no conteúdo ---------- */
.time-table-section .table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--cme-r);
    box-shadow: var(--cme-shadow-sm);
}
.time-table-section .doctors-time-table {
    min-width: 760px;
}
@media only screen and (max-width: 767px) {
    .time-table-section .table-outer {
        position: relative;
        mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    }
}

/* ---------- alvos de toque maiores em mobile ---------- */
@media only screen and (max-width: 767px) {
    .mm-menu .mm-listview > li > a,
    .mm-menu .mm-listview > li > span {
        padding-top: 14px;
        padding-bottom: 14px;
        min-height: 44px;
    }
    body .theme-btn { padding-top: 13px; padding-bottom: 13px; }
    .mobile-nav-toggler { padding: 8px; }
    body .filter-tabs.filter-btns .filter { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------- foco visível (acessibilidade, teclado) ---------- */
body a:focus-visible,
body button:focus-visible,
body .theme-btn:focus-visible,
body input:focus-visible,
body textarea:focus-visible,
body select:focus-visible {
    outline: 2px solid var(--cme-green);
    outline-offset: 2px;
}

/* ---------- barra de progresso: cantos suaves ---------- */
.cme-progress { border-radius: 0 3px 3px 0; }

/* ---------- selecção de texto com a cor da marca ---------- */
::selection { background: var(--cme-green); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    body .feature-block .inner-box:hover .icon-box,
    body .service-block .inner-box:hover .icon-box,
    body .counter-column:hover .count-box,
    body .play-now:hover .icon,
    body .play-btn:hover,
    body .contact-info-block .inner-box:hover {
        transform: none !important;
    }
}
