:root {
    --navy: #123B63;
    --navy-dark: #092943;
    --muted: #64748b;
    --paper: #f6f8fb;
    --line: #e4eaf0;
    --white: #fff
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--navy-dark);
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased
}

body:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 390px;
    background: linear-gradient(180deg, #e8f0f7 0%, rgba(232, 240, 247, 0) 100%);
    pointer-events: none
}

.page-shell {
    position: relative;
    width: min(1240px, calc(100% - 48px));
    margin: auto
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0
}

.logo-link {
    display: inline-flex;
    justify-content: center;
    align-items: center
}

.site-logo {
    width: min(290px, 75vw);
    height: auto;
    max-height: 115px;
    object-fit: contain
}

.registration {
    font-size: 11px;
    letter-spacing: .11em;
    color: #667a8d;
    margin: 0;
    font-weight: 700
}

.registration span {
    padding: 0 8px;
    color: #a8b9c7
}

.intro {
    text-align: center;
    margin: 10px auto;
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #426a8c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .24em
}

.eyebrow-line {
    height: 2px;
    width: 26px;
    background: #6f9cbe
}

.intro h1 {
    font-family: Manrope, sans-serif;
    font-size: clamp(35px, 4.5vw, 61px);
    line-height: 1.17;
    letter-spacing: -.055em;
    margin: 18px 0 18px;
    font-weight: 800
}

.intro h1 em {
    color: var(--navy);
    font-style: normal
}

.intro-copy {
    font-size: 17px;
    line-height: 1.75;
    color: #66798b;
    margin: 0 auto;
    max-width: 640px
}

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.service-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 30px rgba(18, 59, 99, .055);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-7px);
    box-shadow: 0 22px 55px rgba(18, 59, 99, .14);
    border-color: #c7d7e6;
    outline: none
}

.card-image-wrap {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: #e9f1f8;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-card:hover .card-image-wrap img {
    transform: scale(1.06)
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(9, 41, 67, .12))
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 29px 29px 27px
}

.card-index {
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 800;
    color: #688ba9
}

.card-body h2 {
    font-family: Manrope, sans-serif;
    color: var(--navy);
    font-size: 25px;
    letter-spacing: -.04em;
    margin: 13px 0 10px
}

.card-body p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0 0 25px
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 19px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: #e9f1f8;
    font-size: 19px;
    transition: background .3s, color .3s, transform .3s
}

.service-card:hover .arrow {
    background: var(--navy);
    color: white;
    transform: rotate(45deg)
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e0e8ef;
    padding: 27px 0;
    margin-top: 10px;
    color: #8090a0;
    font-size: 12px
}

@media(max-width:900px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .service-card:last-child {
        grid-column: 1/-1;
        max-width: calc(50% - 11px);
        width: 100%;
        justify-self: center
    }
}

@media(max-width:620px) {
    .page-shell {
        width: min(100% - 32px, 460px)
    }

    .site-header {
        padding-top: 28px
    }

    .site-logo {
        width: min(240px, 72vw)
    }

    .intro {
        margin: 49px auto 33px
    }

    .intro h1 {
        font-size: 36px
    }

    .intro-copy {
        font-size: 15px
    }

    .services {
        grid-template-columns: 1fr;
        gap: 17px
    }

    .service-card:last-child {
        grid-column: auto;
        max-width: none
    }

    .card-image-wrap {
        height: 205px
    }

    .card-body {
        padding: 24px
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 44px;
        gap: 7px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

/* Transição mais suave */
.service-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Hover discreto */
.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-2px);

    box-shadow: 0 12px 32px rgba(18, 59, 99, 0.09);

    border-color: #d5e2ed;
    outline: none;
}

/* Zoom mínimo na imagem */
.card-image-wrap img {
    transition: transform 0.5s ease;
}

.service-card:hover .card-image-wrap img {
    transform: scale(1.015);
}

/* Seta sem rotação */
.service-card:hover .arrow {
    background: #dce9f4;
    color: #123B63;
    transform: none;
}


/* Cards mais compactos */
.services {
    gap: 18px;
    align-items: stretch;
}

.service-card {
    border-radius: 14px;
    cursor: pointer;
}

/* Conteúdo */
.card-body {
    padding: 18px 20px;
}

.card-index {
    font-size: 9px;
    letter-spacing: 0.1em;
}

.card-body h2 {
    font-size: 20px;
    line-height: 1.25;
    margin: 9px 0 5px;
}

.card-body h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #345a7c;
    margin: 0 0 10px;
}

.card-body p {
    font-size: 12px;
    line-height: 1.55;
    margin: 0 0 15px;
}

/* Indicação de link */
.card-action {
    padding-top: 12px;
    font-size: 12px;
}

.arrow {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

/* Hover suave */
.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-2px);
    border-color: #b8ccdf;
    box-shadow: 0 12px 28px rgba(18,59,99,.09);
}

.service-card:hover .card-image-wrap img {
    transform: scale(1.015);
}

/* Mobile */
@media (max-width: 620px) {
    .card-image-wrap {
        height: 140px;
    }

    .card-body {
        padding: 17px;
    }

    .card-body h2 {
        font-size: 19px;
    }

    .card-body h3 {
        font-size: 13px;
    }

    .card-body p {
        font-size: 12px;
    }
}
