@font-face {
    font-family: 'Bradesco Sans';
    src: url('../assets/fonts/BradescoSans-Thin-web.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bradesco Sans';
    src: url('../assets/fonts/BradescoSans-Light-web.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bradesco Sans';
    src: url('../assets/fonts/BradescoSans-Regular-web.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bradesco Sans';
    src: url('../assets/fonts/BradescoSans-Medium-web.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #5881ab;
    --primary-soft: #7d9ec1;
    --dark: #595959;
    --pink: #E2B3B3;
    --muted: #595959;
    --white: #ffffff;
    --field: #f3f3f3;

    /* Button standardisation tokens */
    --ag-btn-min-height: 44px;
    --ag-btn-padding-y: 10px;
    --ag-btn-padding-x: 34px;

    --ag-btn-blue-bg: #497096;
    /* Deeper blue for better contrast with white text */
    --ag-btn-blue-bg-hover: #3b5c7f;
    --ag-btn-blue-text: #ffffff;

    --ag-btn-pink-text: #422b2b;
    /* WCAG compliant text color for pink button */
    --ag-btn-pink-hover: #d49292;

    --ag-btn-dark-hover: #454545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: "Bradesco Sans", sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

.image-slot {
    background-color: #e7edf3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-section {
        height: 500px;
    }
}

.hero-main {
    background-color: #d8d0c2;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.32) 0%, transparent 58%);
}

.hero-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    z-index: 2;
    /* Desktop (ajuste aqui) */
    padding-bottom: 160px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 0;
}

.with-bars {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.with-bars::before {
    content: "";
    width: 3px;
    height: 28px;
    background: var(--white);
}

.with-bars::after {
    display: none;
}

.intro-panel {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: -140px auto 0;
    padding: clamp(44px, 6vw, 72px) 0 clamp(72px, 8vw, 108px);
    background: var(--white);
    border-top-right-radius: clamp(90px, 15vw, 230px);
}

.intro-title {
    max-width: 980px;
    color: var(--primary);
    font: size 4rem;
    /* 28px */
    font-weight: normal;
    line-height: 1.03;
    letter-spacing: 0;
    text-transform: uppercase;
}

@media (min-width: 721px) {
    .intro-title {
        font-size: 4rem;
        /* 50px */
    }
}

.intro-copy {
    max-width: 760px;
    margin-top: 18px;
    color: var(--muted);
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    font-weight: normal;
}

.belief-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 600px);
    gap: clamp(42px, 8vw, 100px);
    align-items: center;
    margin-top: 70px;
}

.belief-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fundamental: faz a imagem preencher o espaço sem achatar/distorcer */
    display: block;
    /* Remove uma margem invisível que o navegador coloca embaixo das imagens */
}

.line-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--dark);
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: normal;
}

.line-title::before {
    content: "";
    width: 4px;
    height: 34px;
    border-radius: 100px;
    background: var(--primary);
}

.belief-copy p {
    color: var(--muted);
    font-size: clamp(1.15rem, 1.7vw, 1.35rem);
    font-weight: normal;
}

.belief-copy p+p {
    margin-top: 24px;
}

.belief-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

.team-section,
.support-section,
.lab-section {
    padding: 70px 0 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 52px;
    color: var(--dark);
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: normal;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.horizontal-bars::before,
.horizontal-bars::after {
    content: "";
    width: 38px;
    height: 3px;
    background: var(--primary);
}

.doctor-list {
    display: grid;
    gap: 0;
}

.doctor-card {
    position: relative;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 170px;
    min-height: 276px;
    align-items: center;
    padding: 28px 58px 28px 0;
    border: 2px solid var(--primary);
    border-radius: 38px 38px 0 0;
    color: var(--primary);
    overflow: hidden;
    background: var(--white);
    transform: translateY(0);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
    will-change: transform;
}

.doctor-card:hover,
.doctor-card:focus-within {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

@media (hover: none) {

    .doctor-card:active,
    .doctor-card:focus-within {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
        z-index: 100;
    }
}

@media (prefers-reduced-motion: reduce) {
    .doctor-card {
        transition: none;
    }
}

#doctor-pink {
    border-color: var(--pink);
    color: var(--pink);
}

#doctor-pink .doctor-info h3,
#doctor-pink .doctor-info p,
#doctor-pink .doctor-info span {
    color: var(--pink);
}

#doctor-pink .button {
    background: var(--pink);
    color: var(--ag-btn-pink-text);
}

#doctor-pink .button:hover {
    background: var(--ag-btn-pink-hover);
}

#doctor-pink .doctor-socials img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(7%) saturate(1042%) hue-rotate(314deg) brightness(100%) contrast(85%);
}

#doctor-dark .doctor-info h3,
#doctor-dark .doctor-info p,
#doctor-dark .doctor-info span {
    color: var(--dark);
}

#doctor-dark {
    border-color: var(--dark);
}

#doctor-dark .button {
    background: var(--dark);
    color: var(--white);
}

#doctor-dark .button:hover {
    background: var(--ag-btn-dark-hover);
}

#doctor-dark .doctor-socials img {
    filter: brightness(0) saturate(100%) invert(36%) sepia(0%) saturate(1314%) hue-rotate(198deg) brightness(100%) contrast(110%);
}



.doctor-card+.doctor-card {
    margin-top: -28px;
}

.doctor-card:nth-child(1) {
    z-index: 1;
}

.doctor-card:nth-child(2) {
    z-index: 2;
}

.doctor-card:nth-child(3) {
    z-index: 3;
}

.doctor-card:nth-child(4) {
    z-index: 4;
}

.doctor-card:nth-child(5) {
    z-index: 5;
}

.doctor-card:nth-child(6) {
    z-index: 6;
}

.doctor-card:nth-child(7) {
    z-index: 7;
}

.doctor-card:nth-child(8) {
    z-index: 8;
}

.doctor-card:nth-child(9) {
    z-index: 9;
}

.doctor-card:nth-child(10) {
    z-index: 10;
}

.doctor-card:nth-child(11) {
    z-index: 11;
}

.doctor-card:nth-child(12) {
    z-index: 12;
}

.doctor-card:nth-child(13) {
    z-index: 13;
}

.doctor-card:nth-child(14) {
    z-index: 14;
}


.doctor-photo {
    align-self: stretch;
    min-height: 248px;
    background-color: #f8f8f8;
    background-position: center bottom;
    border-radius: 40px;
    overflow: hidden;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center bottom;
}

.doctor-info {
    padding: 0 44px;
}

.doctor-info h3 {
    color: var(--primary);
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    font-weight: normal;
    line-height: 1;
}

.doctor-info p,
.doctor-info span {
    display: block;
    margin-top: 10px;
    color: var(--primary-soft);
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: normal;
}

.doctor-info p strong {
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ag-btn-min-height);
    margin-top: 28px;
    padding: var(--ag-btn-padding-y) var(--ag-btn-padding-x);
    border-radius: 9999px;
    background: var(--ag-btn-blue-bg);
    color: var(--ag-btn-blue-text);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.button:hover {
    background: var(--ag-btn-blue-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.doctor-socials {
    align-self: end;
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    padding-bottom: 18px;
}

.doctor-socials a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.doctor-socials img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(42px, 6vw, 40px);
}

.support-card {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 34px;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.support-card::before {
    content: "";
    position: absolute;
}

.support-card div {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    padding: 105px 28px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.support-card h3 {
    font-size: clamp(1.85rem, 3.5vw, 2.3rem);
    font-weight: normal;
    line-height: 1.1;
}

.support-card h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: var(--white);
    margin: 20px auto 0;
    border-radius: 2px;
}

.support-card p {
    margin: 20px auto 22px;
    max-width: 240px;
    font-size: 1.15rem;
    font-weight: normal;
}

.support-card .support-btn {
    align-self: center;
    margin-top: auto;
    display: inline-flex;
    padding: 8px 24px;
    min-height: 36px;
    align-items: center;
    border-radius: 9999px;
    background: var(--white);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lab-section {
    padding-bottom: 70px;
}

.lab-banner {
    display: block;
    margin: 0 auto;
    width: 100%;
    min-height: clamp(270px, 38vw, 430px);
    border-radius: 24px;
    object-fit: cover;
}

.lab-copy {
    width: min(860px, calc(100% - 64px));
    margin: -48px auto 0;
    padding: 32px 58px;
    border-radius: 34px 34px 0 0;
    background: var(--white);
    color: var(--muted);
    text-align: center;
    position: relative;
    z-index: 2;
}

.lab-copy p {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: normal;
}

.lab-button {
    display: flex;
    width: fit-content;
    margin: 46px auto 0;
}

.hidden-doctor {
    display: none !important;
}

.btn-show-more {
    display: flex;
    margin: 40px auto 0;
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--ag-btn-blue-bg);
    color: var(--ag-btn-blue-bg);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    min-height: var(--ag-btn-min-height);
    padding: var(--ag-btn-padding-y) 40px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-show-more:hover {
    background: var(--ag-btn-blue-bg);
    color: var(--ag-btn-blue-text);
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .hero-overlay-content {
        /* Mobile (ajuste aqui) */
        padding-bottom: 100px;
    }

    .hero-bg-image {
        height: 115%;
        top: 5%;
        object-fit: cover;
        object-position: center top;
    }

    .container {
        width: min(100% - 32px, 1120px);
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .intro-panel {
        margin-top: -80px;
        border-top-right-radius: 92px;
    }

    .intro-title {
        line-height: 1.1;
    }

    .line-title {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }

    .belief-image {
        max-width: 100%;
        height: auto;
        min-height: auto;
    }

    .belief-grid,
    .doctor-card,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .doctor-list {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin-top: 40px;
    }

    .doctor-card {
        display: flex;
        flex-direction: column;
        padding: 0;
        border: 2px solid var(--primary);
        border-radius: 28px;
        text-align: center;
        min-height: auto;
    }

    .doctor-card+.doctor-card {
        margin-top: 0;
    }

    .doctor-photo {
        width: 100%;
        min-height: 280px;
        border-radius: 26px 26px 0 0;
        margin-bottom: 0;
    }

    .doctor-info {
        padding: 30px 20px;
    }

    .doctor-info h3 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 15px;
    }

    .doctor-info p {
        font-size: 1rem;
        max-width: 100%;
    }

    .doctor-socials {
        padding: 0 20px 30px;
        justify-content: center;
    }

    .lab-copy {
        width: calc(100% - 32px);
        padding: 28px 24px;
    }
}