/* ===================================
    Crafto - Medical
====================================== */
/* font */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

/* Correção: fontes de ícones via CDN (evita quadrados quando static/fonts/ não existe) */
@font-face {
    font-display: block;
    font-family: bootstrap-icons;
    src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff2") format("woff2"),
         url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff") format("woff");
}
/* Ícones do formulário: substituir Feather (fonte ausente) por Bootstrap Icons */
.select::after,
.date-icon::after,
.time-icon::after {
    font-family: "bootstrap-icons" !important;
}
.select::after {
    content: "\f282" !important; /* bi-chevron-down */
}
.date-icon::after {
    content: "\f1f6" !important; /* bi-calendar */
}
.time-icon::after {
    content: "\f293" !important; /* bi-clock */
}

/* variable */
:root {     
    --base-color: #18bcc7;
    --white: #fff;
    --alt-font: 'Manrope', sans-serif; 
    --primary-font: 'Manrope', sans-serif;
    --dark-gray: #303334;
    --red: #f45959;
    --medium-light-gray:#b4b4b4;
    --medium-gray:#848587;
}
/* box layout */
.box-layout {
    padding: 0 100px;
}
body{
    font-size: 17px;
    line-height: 30px;
}
/* header */
.navbar .navbar-nav .nav-link {
    font-weight: 700;
    font-size: 18px;
    padding: 10px 22px;
}
header .container-fluid {
    padding-left: 85px;
    padding-right: 85px;
}
.sticky-wrap.shadow-in {
    left: 31px;
}
/* Lateral: ícone e links em preto (remove verde/turquesa) */
.sticky-wrap i,
.sticky-wrap .bi-envelope,
.sticky-wrap a {
    color: var(--dark-gray) !important;
}
.sticky-wrap a:hover {
    color: var(--dark-gray) !important;
    opacity: 0.8;
}
header .navbar-brand img {
    max-height:40px;
}
/* Logo WebConsult - ícone + texto (quando não há imagem) */
header .navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
header .navbar-brand .logo-text,
header .navbar-brand .bi-heart-pulse {
    display: inline-flex !important;
    visibility: visible !important;
}
header .navbar-brand,
footer .footer-logo {
    white-space: nowrap !important;
}
/* bg color */
.bg-light-turquoise-blue {
    background-color: #edf9fa;
}
.bg-light-sea-green-transparent {
    background-color: rgba(22, 193, 204,0.8);
}
.bg-light-sea-green-transparent-light {
    background-color: rgba(22, 193, 204,0.15);
}
/* border color */
.border-color-transparent-dark-gray {
    border-color: rgba(39, 47, 48, 0.1) !important;
}
.border-color-red {
    border-color: var(--red) !important;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 25px;
}
/* btn */
.btn {
    text-transform: inherit;
    font-weight: 600;
    letter-spacing: 0px;
}
.btn.btn-extra-large {
    font-size: 18px;
}
.btn.btn-large {
    font-size:17px;
}
.btn.btn-medium {
    font-size: 16px;
}
.btn.btn-small {
    font-size: 15px;
}
.btn.btn-very-small {
    font-size: 14px;
}
.btn.btn-dark-gray:hover,
.btn.btn-dark-gray:active,
.btn.btn-transparent-light-gray:hover,
.btn.btn-transparent-light-gray:active,
.btn.btn-box-shadow.btn-base-color:hover,
.btn.btn-box-shadow.btn-base-color:active{
    background-color: var(--base-color);
    border-color: var(--base-color);
    color: var(--white);
}
.btn.btn-base-color:hover {
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
    color: var(--white);
}
/* page title */
.page-title-extra-large h2 {
    font-size: 17px;
    line-height: 20px;
    letter-spacing: 0px;
}
/* social media icon */
.social-icon-style-02 .small-icon li {
    margin: 0;
}
/* ícone do banner: texto que alterna à volta (em português) */
.video-icon-curve-text {
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}
.video-icon-curve-text .anime-text {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    max-width: 100px;
}

/* outside box right */ 
.outside-box-right-2 {
    margin-right: -2vw;
}
/* Badge circular - texto à volta do caduceu */
.badge-curve-text {
    text-transform: uppercase;
}
/* Badge - texto a rodar em volta da imagem */
.badge-svg {
    overflow: visible;
}

/* Banner figcaption - posicionamento para não cortar texto */
.banner-figcaption-box {
    right: 20px;
    transform: translateY(-50%);
    min-width: 260px;
    max-width: 280px;
}
@media (min-width: 1200px) {
    .banner-figcaption-box {
        right: 30px;
    }
}
@media (max-width: 991px) {
    .banner-figcaption-box {
        right: 10px;
        min-width: 240px;
    }
}
/* tab style 01 */
.tab-style-01 .nav-tabs .nav-link.show,
.tab-style-01 .nav-tabs .nav-link.active,
.tab-style-01 .nav-tabs .nav-link:hover {
    background-color: var(--base-color);
    color: var(--white);
}
.tab-style-01 .nav-tabs .nav-link {
    padding: 7px 29px;
    color: var(--dark-gray);
}
.tab-style-01 .nav-tabs > li.nav-item {
    padding: 0 13px;
}
/* time table */ 
.time-table-box .hover-detail {
    padding: 25px 30px;
}
/* accordion style 05 */
.accordion-style-05 .accordion-item {
    padding: 25px 35px 27px 75px;
}
/* footer */
footer .nav-link {
    color: var(--white);
}
footer .footer-navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 1.5rem;
    padding: 0;
}
footer .footer-navbar .nav-item {
    display: inline-block;
}
.elements-social .light li a:hover {
    color: var(--base-color) !important;
}
footer .footer-logo img {
    max-height: 40px;
}
footer .elements-social ul li:last-child {
    margin-right: 0;
}
/* media query responsive */
@media (min-width: 768px){
    .page-title-extra-large h1 {
        font-size: 3.8rem;
        line-height: 3.8rem;
    }
}
@media (max-width: 1600px){
    .box-layout {
        padding: 0 60px;
    }
    .sticky-wrap.shadow-in {
        left: 10px;
    }
    header .container-fluid {
        padding-left: 45px;
        padding-right: 45px;
    }
}
@media (max-width: 1400px){
    footer .nav-link {
        padding-left: .75rem;
        padding-right: .75rem;
    }
}
@media (max-width: 1199px){
    .box-layout {
        padding: 0 0;
    }
    .navbar .navbar-nav .nav-link {
        padding-left: 18px;
        padding-right: 18px;
    }
    header .btn.btn-switch-text.btn-small > span {
        padding: 8px 10px;
    }

    .tab-style-01 .nav-tabs > li.nav-item {
        padding: 0 8px;
    }
    header .navbar [class*=col-] {
        padding: 0px;
    }
    .time-table-box {
        padding-left: 5px;
        padding-right: 5px;
    }
}
@media (max-width: 991px){
    .tab-style-01 .nav-tabs .nav-link {
        padding: 5px 25px;
    }

    .time-schedule-scroll {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .time-schedule-scroll .time-schedule-min-width {
        min-width: 1050px;
    }
    .tab-style-01 .nav-tabs > li.nav-item {
        padding: 0 4px;
    }
    header .navbar [class*=col-] {
        padding: 0 15px;
    }
}
@media (max-width: 767px){
    .accordion-style-05 .accordion-item .number {
        top: 13px;
    }
}

/* ===================================
    Banner RGPD / Cookies
====================================== */
.rgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    font-family: var(--alt-font);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.rgpd-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.rgpd-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.rgpd-content {
    flex: 1;
    min-width: 280px;
}
.rgpd-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.rgpd-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-gray);
}
.rgpd-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--medium-gray);
}
.rgpd-link {
    color: var(--base-color);
    text-decoration: underline;
    font-weight: 600;
}
.rgpd-link:hover {
    color: var(--dark-gray);
}
.rgpd-options {
    display: none;
    flex-wrap: wrap;
    gap: 15px 25px;
}
.rgpd-options.visible {
    display: flex;
}
.rgpd-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
}
.rgpd-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--base-color);
    cursor: pointer;
}
.rgpd-option input:disabled {
    cursor: not-allowed;
}
.rgpd-actions {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}
.rgpd-actions .btn {
    white-space: nowrap;
}
/* Política de privacidade - estilo dos títulos */
.last-paragraph-no-margin .politica-item {
    border-left: 3px solid var(--base-color);
    padding-left: 15px;
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}
.last-paragraph-no-margin .politica-item:hover {
    border-left-color: var(--dark-gray);
}

@media (max-width: 767px) {
    .rgpd-banner-inner {
        flex-direction: column;
    }
    .rgpd-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

/* ===================================
   Responsividade - Mobile e Tablet
====================================== */
/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    body {
        font-size: 16px;
        line-height: 28px;
    }
    header .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .navbar .navbar-nav .nav-link {
        font-size: 16px;
        padding: 12px 16px;
    }
    /* Banner - botões em coluna no tablet pequeno */
    .top-space-margin .d-flex.flex-nowrap.gap-3 {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .top-space-margin .btn {
        font-size: 15px;
    }
    .outside-box-right-2 {
        margin-right: 0;
        max-width: 100%;
    }
    .outside-box-right-2 img {
        max-width: 100%;
        height: auto;
    }
    .banner-figcaption-box {
        min-width: 200px;
        max-width: 240px;
        padding: 15px 20px;
    }
    .banner-figcaption-box .fs-17 {
        font-size: 15px !important;
    }
    .banner-figcaption-box .fs-15 {
        font-size: 14px !important;
    }
    /* Secção Sobre - imagens */
    #sobre .w-75 {
        width: 100% !important;
    }
    #sobre .w-55 {
        width: 85% !important;
    }
    #sobre .position-absolute.right-15px {
        right: 10px;
        bottom: -30px;
    }
    /* Secção Tecnologias */
    .absolute-middle-center .btn {
        font-size: 15px;
        padding: 12px 20px;
    }
    /* Process steps - 3 passos */
    .process-step-style-07 .process-step-item {
        flex-direction: column;
        text-align: center;
    }
    .process-step-style-07 .process-content {
        padding-left: 0 !important;
        padding-top: 12px;
        text-align: center;
    }
}

/* Mobile (até 767px) */
@media (max-width: 767px) {
    body {
        font-size: 15px;
        line-height: 26px;
    }
    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .box-layout {
        padding: 0 12px;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    header .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    header .navbar-brand .logo-text {
        font-size: 1.25rem !important;
    }
    header .navbar-brand .bi-heart-pulse {
        font-size: 1.4rem !important;
    }
    /* Banner hero */
    .top-space-margin h1 {
        font-size: 2rem !important;
        line-height: 2.4rem !important;
        margin-bottom: 24px !important;
    }
    .top-space-margin .fs-19 {
        font-size: 16px !important;
    }
    .top-space-margin .d-flex.flex-nowrap.gap-3 {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .top-space-margin .d-flex.flex-nowrap.gap-3 .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .outside-box-right-2 figure {
        margin: 0;
    }
    .banner-figcaption-box {
        right: 5%;
        left: auto;
        min-width: 85%;
        max-width: 260px;
        padding: 12px 16px;
    }
    /* Barra "O que oferecemos" */
    .bg-base-color .container .row {
        flex-direction: column;
        gap: 15px;
    }
    .bg-base-color .fs-18 {
        font-size: 15px !important;
    }
    .bg-base-color .swiper-slide {
        font-size: 15px !important;
    }
    /* Secção Sobre */
    #sobre .col-lg-6:first-child {
        margin-bottom: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #sobre .col-lg-6:first-child > .w-75 {
        width: 100% !important;
    }
    #sobre .position-absolute.right-15px {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: -25px;
        width: 85% !important;
    }
    #sobre .position-absolute.right-15px img {
        width: 100%;
    }
    #sobre h2 {
        font-size: 1.5rem !important;
    }
    #sobre .fs-18 {
        font-size: 16px !important;
    }
    #sobre .d-inline-block.mt-40px {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 25px !important;
    }
    #sobre .d-inline-block.mt-40px .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto !important;
    }
    /* Secção Serviços - cards */
    .icon-with-text-style-02 .feature-box {
        padding: 20px 15px !important;
    }
    .icon-with-text-style-02 .feature-box-icon {
        width: 80px !important;
        height: 80px !important;
    }
    .icon-with-text-style-02 .feature-box-icon i,
    .icon-with-text-style-02 .feature-box-icon img {
        font-size: 24px !important;
        max-width: 40px !important;
    }
    /* Estatísticas (4.98, 98%, 200+) */
    .row-cols-lg-3 .col {
        margin-bottom: 20px;
    }
    .row-cols-lg-3 .col:last-child {
        margin-bottom: 0;
    }
    /* Secção Tecnologias */
    .overlap-height .col-lg-6 {
        margin-bottom: 30px;
    }
    .absolute-middle-center {
        position: relative !important;
        padding: 20px 0;
    }
    .absolute-middle-center .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .atropos {
        margin: 0 auto;
    }
    /* Secção 3 passos */
    .bg-base-color.pt-4.pb-4 .row {
        flex-direction: column;
        text-align: center;
    }
    .bg-base-color.pt-4.pb-4 .ps-6 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .process-step-style-07 {
        margin-bottom: 25px;
    }
    .process-step-style-07:last-child {
        margin-bottom: 0;
    }
    /* Secção Medicina do trabalho / Clínicas */
    #medicina-trabalho h2 {
        font-size: 1.35rem !important;
    }
    #medicina-trabalho .list-unstyled li {
        font-size: 15px;
    }
    /* Formulário de contacto */
    #appointment h3 {
        font-size: 1.5rem !important;
    }
    #appointment .row.g-0 {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    #appointment .contact-form-style-05 .row > [class*="col-"] {
        margin-bottom: 15px;
    }
    #appointment .btn.submit {
        width: 100%;
        justify-content: center;
    }
    /* Footer */
    footer .footer-top {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    footer .footer-navbar {
        flex-direction: column;
        gap: 12px;
    }
    footer .col-xl-3.col-sm-6,
    footer .col-xl-3.col-sm-6.elements-social {
        text-align: center !important;
    }
    footer .elements-social ul {
        justify-content: center !important;
    }
    /* FAB - ajustar para não sobrepor RGPD */
    .fab-contact {
        bottom: 100px;
        right: 16px;
    }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
    .box-layout {
        padding: 0 10px;
    }
    .top-space-margin h1 {
        font-size: 1.75rem !important;
        line-height: 2.1rem !important;
    }
    .banner-figcaption-box {
        min-width: 85%;
        padding: 12px 16px;
    }
    .fab-contact {
        bottom: 90px;
        right: 12px;
    }
    .fab-btn-main {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .fab-contact-item {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ===================================
   Botão flutuante de contacto (FAB)
====================================== */
.fab-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    font-family: var(--alt-font);
}
.fab-contact-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    padding: 10px 16px;
    background: var(--white);
    color: var(--dark-gray);
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(48, 51, 52, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    pointer-events: none;
}
.fab-contact-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
}
.fab-contact:hover .fab-contact-tooltip,
.fab-contact.fab-open .fab-contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fab-contact.fab-open .fab-contact-tooltip {
    display: none;
}
.fab-btn-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--base-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(24, 188, 199, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.fab-btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(24, 188, 199, 0.5);
}
.fab-btn-main i {
    transition: transform 0.3s;
}
.fab-contact.fab-open .fab-btn-main i.bi-question-lg {
    transform: rotate(45deg);
}
.fab-contact-items {
    position: absolute;
    bottom: 64px;
    right: 0;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.fab-contact.fab-open .fab-contact-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.fab-contact-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.fab-contact-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.fab-contact-item.fab-whatsapp {
    background: var(--base-color);
    color: var(--white);
}
.fab-contact-item.fab-phone {
    background: var(--base-color);
}
.fab-contact-item.fab-email {
    background: var(--base-color);
    color: var(--white);
}