/**
 * Base das LPs v2 (novo branding MiniMed).
 *
 * As páginas v2 NÃO carregam o style.css da v1. Este arquivo tem só as regras
 * do style.css que de fato alcançam o markup das páginas v2 (navbar, hero,
 * blocos, formulário do CMS, rodapé), copiadas na mesma ordem — o levantamento
 * foi feito seletor por seletor contra o Brasil V2 e o Colombia V2. Ficaram de
 * fora as regras dos layouts antigos (#bottom, #video, #block-default-two,
 * tabela do Puerto Rico, .social-media/.social-logo) e o #hero da v1, que
 * trazia a arte antiga (images/bg-1.webp) e é inteiramente sobrescrito pelos
 * CSS de país.
 *
 * ORDEM: entra ANTES do Bootstrap, na posição em que o style.css entra nas
 * outras LPs (ver medtronic_enqueue_styles() em functions.php). Isso é
 * deliberado: com a mesma posição na cascata, o Bootstrap continua vencendo
 * onde já vencia e o layout aprovado não muda. Os CSS de país
 * (v2/css/<pais>.css) entram depois de tudo e sobrescrevem o que precisam.
 *
 * Mexer aqui afeta TODAS as LPs v2 e nenhuma LP v1 — e vice-versa: o style.css
 * não alcança mais as páginas v2.
 */

:root {
    --blue-color: #1010EB;
    --blue-dark-color: #140066;
    --tertiary-color: #000;
    --white-color: #fff;
    --quinary-color: #000;
    --senary-color: #fff;
    --pink-color: #AF09FF;
    --blue-light-color: #F4F4FB;
}

/* Utilitários de cor: usados pelo markup dos parts (.bg-blue no copyright,
   .color-dark-blue / .color-blue no form.php) e disponíveis para o HTML que vem
   do CMS. */
.bg-blue-dark{
    background-color: var(--blue-dark-color) !important;
}

.bg-blue {
    background-color: var(--blue-color) !important;
}
.bg-light-blue {
    background-color: var(--blue-light-color) !important;
}

.color-white{
    color: var(--white-color) !important;
}
.color-dark-blue{
    color: var(--blue-dark-color) !important;
}
.color-blue{
    color: var(--blue-color) !important;
}
.color-pink{
    color: var(--pink-color) !important;
}
.img-100{
    width: 100% !important;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
}

.btn-primary {
    padding: 10px 40px !important;
    background-color: var(--blue-color) !important;
    color: var(--white-color) !important;
    border-color: var(--blue-color) !important;
    border: 0px !important;
    border-radius: 25px !important;
}

.btn-primary:hover {
    background-color: var(--blue-dark-color) !important;
    border-color: var(--blue-dark-color) !important;
}

#hero h1,
#hero h2,
#hero p {
    color: var(--white-color);
}

#hero h2 {
    font-size: 58px !important;
    font-weight: 300;
}

    @media(max-width:762px) {
        #hero h2 {
            font-size: 36px !important;
            font-weight: 300;
        }
    }

.block-default h2 {
    color: var(--blue-dark-color);
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 46px;
}

    @media(max-width:762px) {
        .block-default h2 {
            font-size: 20px;
            line-height: 25px;
            font-weight: 700;
            margin:20px 0;
        }
    }

.block-default p {
    color: var(--blue-dark-color);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

@media(min-width:762px) {
    .block-default.first {
        margin-top: -100px;
    }
}

/* .bg-image-section: item do repeater com "Imagem grande? (background)"
   marcado (v2/parts/bloco-2-content.php). Nenhuma LP v2 usa hoje, e os CSS de
   país contêm a altura; fica aqui para o markup continuar coberto se o CMS
   marcar a opção. */
@media (min-width: 1381px) and (max-width:1600px) {
    .bg-image-section {
        background-position: center bottom !important;
    }
}

/* Breakpoint desktop */
@media (min-width: 1381px) {
    .bg-image-section {
        position: relative;
        min-height: 80vh;

        background-size: 100% !important;
        background-position: center top ;
        background-repeat: no-repeat !important;
    }

    .bg-image-section::before {
        content: '';
        position: absolute;
        bottom: 0;


        background-size: 100% !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;
    }

    .bg-image-section .container {
        position: relative;
        z-index: 2;
    }
}

/* Breakpoint tablet */

@media (min-width: 800px) and (max-width: 1380px) {
    .bg-image-section {
        position: relative;
        min-height: 100vh;
        background-size: cover !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;
    }
}

/* Breakpoint mobile */

@media(max-width:762px) {
    .bg-image-section {
        content: '';
        position: relative;
        bottom: 0;
        background: none !important;

        background-size: 100% ;
        background-position: center bottom ;
        background-repeat: no-repeat ;
    }
    .bg-image-bottom-margin{
        margin-bottom: -16px;
    }
}

/* Estilos gerais para as seções */
section {
    padding: 60px 0;
}

/* Ajuste para cores de texto padrão */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--tertiary-color);
}

/* Correção para formulários */
.form-control:focus {
    border-color: var(--blue-color);
    box-shadow: 0 0 0 0.25rem rgba(16, 16, 235, 0.25);
}

/* Estilos para o formulário de contato */
.contact-form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 50px;
    text-align: left;
}

.contact-form-container h2 {
    color: var(--blue-color);
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 300;
    text-align: center;
}

.required-fields {
    color: var(--blue-dark-color);
    font-size: 14px;
    text-align: center;
}

.medtronic-form label {
    color: var(--blue-dark-color);
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 8px;
}

.medtronic-form .form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ccc;
}

.medtronic-form .form-control:focus {
    border-color: var(--blue-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 16, 235, 0.25);
}

.medtronic-form .form-check-label {
    font-size: 14px;
    color: #333;
}

.medtronic-form .form-check-input:checked {
    background-color: var(--blue-color);
    border-color: var(--blue-color);
}

.medtronic-form .btn-primary {
    margin-top: 10px;
    font-weight: 500;
    min-width: 200px;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
    }
}

/* Estilos para o Footer */
.footer-section {
    background-color: #170063;
    color: #fff;
    padding: 60px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #fff;
    color: #170063;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    font-size: 18px;
}

.copyright {
    color: #82d173;
    font-size: 14px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-section {
        text-align: center;
    }

    .footer-links {
        margin-bottom: 20px;
    }
}

/*
 * Celular estreito (320px e afins): o logo sai com width=166 fixo do SVG e o
 * botão tem `padding: 10px 40px !important`, somando 306px onde só existem
 * 296px úteis. O .container da navbar herda `flex-wrap: wrap` do Bootstrap
 * abaixo de lg, então os dois quebravam em duas linhas (navbar de 60px -> 88px)
 * e o botão ia parar embaixo do logo, encostado à esquerda.
 *
 * Aqui os dois encolhem junto com a tela em vez de quebrar. Os limites são
 * min(): acima de ~415px o resultado é exatamente o de hoje (166px e 40px), e
 * abaixo disso cada um cede proporcionalmente. Sem mexer no flex-wrap, que é o
 * que faz o menu abrir em linha nova nas LPs que têm o toggler.
 */
@media (max-width: 575.98px) {
    .navbar > .container > img {
        max-width: min(166px, 40vw);
        height: auto;
    }

    .navbar > .container > .btn-primary {
        padding-left: min(40px, 8vw) !important;
        padding-right: min(40px, 8vw) !important;
    }
}

/* Menu da navbar: só aparece quando a página preenche o repeater "menu" no CMS
   (v2/parts/navbar.php). Nenhuma LP v2 usa hoje. */
.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: var(--blue-dark-color);
    font-weight: 400;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .navbar-nav {
        padding: 20px 5px;

        .nav-link{
            font-weight: 500;
        }
    }
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--blue-color);
}

.navbar-nav .current-menu-item .nav-link {
    color: var(--blue-color);
}

/* Botão flutuante (v2/parts/float-button.php e float-button-2.php).
   Figma "LP CTA | MEDTRONIC", node 29:11 — pílula 252x66, sombra sólida
   (sem blur) 0px 4px 0px, círculo branco de 50px com o ícone à esquerda. */
.float-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 24px 8px 8px;
    background-color: var(--blue-dark-color);
    border-radius: 50px;
    box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    line-height: 1.2;
}

.float-button:hover,
.float-button:focus {
    color: var(--white-color);
    text-decoration: none;
    opacity: .92;
}

.float-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--white-color);
    border-radius: 50%;
}

.float-button-icon img {
    width: 25.6px;
    height: 32px;
}

.float-button-text {
    display: flex;
    flex-direction: column;
    color: var(--white-color);
}

.float-button-subtitle {
    font-size: 12px;
    font-weight: 600;
}

.float-button-title {
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 576px) {
    .float-button {
        right: 16px;
        bottom: 16px;
        gap: 10px;
        padding: 6px 18px 6px 6px;
    }

    .float-button-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .float-button-icon img {
        width: 20.5px;
        height: 25.6px;
    }

    .float-button-subtitle {
        font-size: 10px;
    }

    .float-button-title {
        font-size: 15px;
    }
}
