@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;
    --pink: #e2b3b3;
    --dark: #595959;
    --muted: #595959;
    --white: #ffffff;
    --field: #efeded;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Bradesco Sans", sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.25;
}

button {
    font: inherit;
}

.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;
}

.image-slot {
    background-color: #e8edf2;
    background-image: linear-gradient(135deg, rgba(88, 129, 171, 0.16), rgba(255, 255, 255, 0.7));
    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: #dcecf8;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.28) 0%, transparent 62%);
}

.hero-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    /* Mobile */
    z-index: 2;
    /* Mobile (ajuste aqui) */
    padding-bottom: 80px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: normal;
    line-height: 1;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.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;
}

/* Custom styles: matching sobre-nos on mobile, returning to original on desktop */
.ag-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.hero__content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__indicator {
    width: 4px;
    height: 40px;
    background-color: #ffffff;
}

.hero__title {
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

@media (min-width: 768px) {
    .hero-overlay-content {
        /* Desktop (ajuste aqui) */
        padding-bottom: 160px;
    }

    .ag-container {
        width: min(1440px, calc(100% - 64px));
        /* Original desktop container width */
        padding: 0;
    }

    .hero__content {
        gap: 8px;
        /* Original gap */
    }

    .hero__indicator {
        width: 3px;
        /* Original indicator width */
        height: 28px;
        /* Original indicator height */
        border-radius: 0;
        /* Original flat indicator */
    }

    .hero__title {
        font-size: clamp(1.25rem, 2vw, 1.75rem);
        /* Original clamp size */
        font-weight: normal;
        /* Original lighter font weight */
        letter-spacing: normal;
        margin-bottom: 0;
    }

    .intro-title {
        font-size: 2.5rem;
        /* 50px */
    }
}

.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(80px, 13vw, 210px);
}

.intro-title {
    color: var(--primary);
    font-size: 2rem;
    /* 28px */
    font-weight: normal;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: uppercase;
}

.intro-copy {
    max-width: 560px;
    margin-top: 18px;
    color: var(--muted);
    font-size: clamp(0.9rem, 1.4vw, 1.25rem);
    font-weight: normal;
}

.content-section {
    padding: 0 0 90px;
}

.section-header {
    margin: 0 auto 46px;
    text-align: center;
}

.section-header p {
    color: var(--dark);
    font-size: clamp(1.45rem, 3vw, 2.125rem);
    font-weight: normal;
    line-height: 1.15;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    color: var(--dark);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: normal;
    line-height: 1;
    text-transform: uppercase;
}

.horizontal-bars::before,
.horizontal-bars::after {
    content: "";
    width: 38px;
    height: 3px;
    background: var(--primary);
}

.technology-grid {
    width: min(820px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 70px 110px;
    align-items: start;
}

.tech-card {
    overflow: hidden;
    align-self: start;
    border-radius: 40px 40px 10px 10px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.card-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.tech-content {
    padding: 18px 24px 20px;
}

.tech-card h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: normal;
    line-height: 1.2;
}

.card-bars {
    display: flex;
    justify-content: center;
    margin: 10px auto 14px;
}

.card-bars::before {
    content: "";
    width: 130px;
    height: 2px;
    background: var(--white);
}

.tech-subtitle {
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1.2;
}

.tech-details,
.treatment-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.tech-card.is-expanded .tech-details,
.treatment-card.is-expanded .treatment-details {
    grid-template-rows: 1fr;
}

.details-inner {
    overflow: hidden;
}

.details-inner p {
    margin-top: 10px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 200;
    line-height: 1.5;
    text-align: center;
    opacity: 0.8;
}

.expand-btn {
    width: 68px;
    height: 44px;
    border: 0;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.expand-btn::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    margin-bottom: 4px;
    transition: transform 0.3s ease, margin-bottom 0.3s ease;
}

.is-expanded .expand-btn::before {
    transform: rotate(-135deg);
    margin-bottom: -4px;
}

.tech-card .expand-btn {
    margin: 0 auto;
    background: var(--white);
}

.tech-card .expand-btn::before {
    border-right: 2px solid #355373;
    border-bottom: 2px solid #355373;
}

.treatments-header {
    margin-top: 96px;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 78px 74px;
    align-items: start;
}

.treatment-card,
.exam-card {
    position: relative;
    align-self: start;
}

.treatment-card .card-image,
.exam-card .card-image {
    margin-bottom: 16px;
    border-radius: 20px;
    overflow: hidden;
}

.treatment-card h3,
.exam-card h3 {
    min-height: 58px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
    color: var(--dark);
    font-size: clamp(1.50rem, 2vw, 1.75rem);
    font-weight: normal;
    line-height: 1.05;
}

.treatment-card h3 span,
.exam-card h3 span {
    display: block;
    color: var(--primary);
    font-size: 0.90rem;
    font-weight: normal;
}

.treatment-card p,
.exam-card p {
    margin-top: 12px;
    padding-left: 13px;
    color: var(--muted);
    font-size: clamp(1.10rem, 2vw, 1.25rem);
    font-weight: normal;
    text-align: left;
}

.treatment-card .expand-btn {
    position: absolute;
    right: 0;
    bottom: -22px;
    background: #355373;
}

.treatment-card .expand-btn::before {
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
}

.exams-header {
    margin-top: 118px;
}

.exam-grid {
    display: grid;
    gap: 60px;
    overflow: hidden;
    border-radius: 40px;
}

.exam-image-row,
.exam-text-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.exam-image-row--rounded-top {
    border-radius: 40px 40px 0 0;
    overflow: hidden;
}

.exam-image-row--rounded-top>img {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 0;
    border-radius: 0;
}

.exam-image-row--rounded-top>img:first-child {
    border-top-left-radius: 40px;
}

.exam-image-row--rounded-top>img:last-child {
    border-top-right-radius: 40px;
}

.exam-image-row>img {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.exam-text-grid>article {
    /* Subtrai o gap (92px * 2 = 184px / 3 = ~61.33px) */
    flex: 0 0 calc(33.3333% - 61.33px);
    max-width: calc(33.3333% - 61.33px);
}

.exam-image {
    min-height: clamp(180px, 18vw, 250px);
}

.exam-text-grid {
    gap: 70px 92px;
    padding: 0 58px;
}

.exam-card h3 {
    min-height: auto;
    padding: 0;
    border-left: 0;
}

.exam-card h3::before,
.exam-card h3::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--primary);
}

.exam-card h3::before {
    margin-bottom: 12px;
}

.exam-card h3::after {
    margin-top: 12px;
}

.exam-card p {
    margin-top: 20px;
    padding-left: 0;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, 1120px);
    }

    .intro-panel {
        margin-top: -80px;
        border-top-right-radius: 92px;
    }

    .technology-grid {
        width: auto;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 78%);
        grid-template-columns: none;
        gap: 22px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px 34px;
        -webkit-overflow-scrolling: touch;
    }

    .technology-grid::-webkit-scrollbar {
        display: block;
        height: 5px;
    }

    .technology-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 100px;
        margin: 0 48px;
    }

    .technology-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 100px;
    }

    .tech-card {
        scroll-snap-align: start;
    }

    .treatment-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 78%);
        grid-template-columns: none;
        gap: 22px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px 34px;
        -webkit-overflow-scrolling: touch;
    }

    .treatment-grid::-webkit-scrollbar {
        display: block;
        height: 5px;
    }

    .treatment-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 100px;
        margin: 0 48px;
    }

    .treatment-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 100px;
    }

    .treatment-card {
        scroll-snap-align: start;
    }

    .exam-grid {
        gap: 42px;
        border-radius: 24px;
    }

    .exam-image-row {
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex-wrap: nowrap;
        justify-content: stretch;
        gap: 12px;
        overflow: visible;
        padding-bottom: 0;
    }

    .exam-image-row>img {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .exam-text-grid {
        flex-direction: column;
    }

    .exam-text-grid>article {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .exam-image {
        min-height: 150px;
        scroll-snap-align: start;
    }

    .exam-text-grid {
        gap: 42px;
        padding: 0;
    }

    .exam-card h3::before {
        display: none;
    }

}

@media (max-width: 720px) {
    .hero-overlay-content {
        padding-bottom: 100px;
    }

    .hero-bg-image {
        height: 115%;
        top: 5%;
        object-fit: cover;
        object-position: center top;
    }

    .intro-panel {
        margin-top: -80px;
        border-top-right-radius: 92px;
    }
}

@media (max-width: 560px) {

    .section-header p {
        font-size: 1.45rem;
    }
}