:root {
    --bg: #ffffff;
    --text: #0e1a1f;
    --muted: #9ca3af;
    --brand: #001F3F;
    --brand-2: #104b6b;
    --card: #f6f8f9;
    --line: #e8eef0;
    --radius: 18px;
    --shadow: 0 6px 24px rgba(16, 75, 107, .08);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--brand-2);
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.foto-doutor {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
}

.nav .wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: .2px
}

.brand .dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 50%
}

.brand img {
    height: 180px;
    width: auto;
}

.menu {
    display: flex;
    gap: 18px;
    align-items: center
}

.menu a {
    font-weight: 500;
    color: #1E1E1E;
    font-size: 1.2rem;
}

.menu a:last-child {
    font-weight: 500;
    color: #fff;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #b8860b;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow)
}

/* Watermark centralizada */
.watermark {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    opacity: .06;
    user-select: none;
    transform: translateY(0) rotate(0deg);
    transition: transform .1s linear;
}

.watermark img {
    width: 60vw;
    max-width: 800px;
    height: auto;
}

/* Hero */
.hero {
    position: relative;
    z-index: 1
}

.hero .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 84px 20px 40px;
    display: flex;
    gap: 36px;
    align-items: center
}

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--brand-2);
    background: #e9f3f6;
    padding: 6px 10px;
    border-radius: 999px
}

h1 {
    margin: 14px 0 6px;
    font-size: 44px;
    line-height: 1.15
}

.sub {
    color: #1E1E1E;
    font-weight: 500
}

.actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text)
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 12px
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow)
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 24px;
}

.hero-content .cta {
    color: #fff;
    padding: 12px 28px;
    font-size: 18px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s;
}

/* Sections */
section {
    position: relative;
    z-index: 1
}

.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 56px 20px
}

.section h2 {
    font-size: 36px;
    margin: 0 0 16px;
    text-align: center;
}


/* About */
.about p {
    margin: 6px 0
}

/* Timeline */
.timeline {
    padding-left: 16px
}

.timeline .item {
    margin: 14px 0;
    color: #1E1E1E;
    font-size: 18px;
    position: relative;
    padding-left: 20px;
}

.timeline .item strong {
    display: block
}

.timeline .item::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-2);
    font-weight: bold;
}

/* Areas */
.grid.areas {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
}

#areas h2 span {
    color: var(--brand-2);
}

.grid.areas>div:nth-child(1) {
    background: linear-gradient(135deg, var(--muted), #f3f4f6);
    color: #001F3F;
}

.grid.areas>div:nth-child(2) {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
}

.grid.areas>div:nth-child(3) {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
}

.grid.areas>div:nth-child(4) {
    background: linear-gradient(135deg, var(--muted), #f3f4f6);
    color: #001F3F;
}

.grid.areas>div:nth-child(5) {
    background: linear-gradient(135deg, var(--muted), #f3f4f6);
    color: #001F3F;
}

.grid.areas>div:nth-child(6) {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
}

/* Locais */
.locais .list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px
}

.locais h2 span {
    color: var(--brand-2);
}

.locais h3 {
    font-size: 24px;
}

.locais-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.locais-container .card {
    flex: 1 1 300px;
    max-width: 600px;
}

.card-content p {
    color: #001F3F;
    font-size: 18px;
}

/* Contato */
.contact {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.informations .cta {
    margin-top: 16px;
    display: inline-block;
}

.informations {
    color: #fff;
}

.informations a {
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

footer .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-evenly;
    color: var(--muted)
}

.menu-toggle {
    display: none;
}

/* Responsive */

/* Tablets médios (até 1200px) */
@media (max-width: 1200px) {
    .hero .wrap {
        flex-direction: row;
        gap: 24px;
    }

    h1 {
        font-size: 40px;
    }

    .section {
        padding: 48px 16px;
    }

    .avatar {
        width: 220px;
        height: 220px;
    }
}

/* Tablets pequenos e celulares grandes (até 768px) */
@media (max-width: 768px) {
    .hero .wrap {
        flex-direction: column;
        text-align: center;
        padding: 56px 16px 32px;
    }

    h1 {
        font-size: 32px;
    }

    .foto-doutor {
        max-width: 400px;
        margin: 0 auto;
    }

    .sub {
        font-size: 15px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta,
    .ghost {
        justify-content: center;
        width: 100%;
    }

    .section h2 {
        font-size: 24px;
    }

    .grid.areas {
        grid-template-columns: 1fr;
        /* vira 1 coluna */
    }

    .menu {
        display: none;
        flex-direction: column;
        gap: 16px;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 20px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .menu.active {
        display: flex;
    }

    .nav .wrap {
        position: relative;
    }

    .nav .wrap img{
        max-width: 250px;
    }

    /* Botão hambúrguer */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--brand-2);
    }

    .watermark img {
        width: 100vw;
        max-width: none;
    }

    /* Contato vira coluna única */
    .contact {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .contact img {
        max-width: 250px;
        margin-bottom: 20px;
    }

    .informations {
        font-size: 15px;
    }

    .informations .cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Footer alinhado ao centro */
    footer .wrap {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Celulares pequenos (até 480px) */
@media (max-width: 480px) {

    .watermark img {
        width: 100vw;
        height: auto;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 26px;
        line-height: 1.25;
    }

    .foto-doutor {
        max-width: 300px;
    }

    .tag {
        font-size: 11px;
        padding: 4px 8px;
    }

    .cta,
    .ghost {
        padding: 10px 12px;
        font-size: 14px;
    }

    .socials {
        gap: 8px;
    }

    .locais-container {
        flex-direction: column;
        /* cards em coluna */
        gap: 16px;
    }

    .nav .wrap img{
        max-width: 250px;
    }

    .locais h3 {
        font-size: 18px;
    }

    .grid.areas {
        grid-template-columns: 1fr;
        /* vira 1 coluna */
    }

    .grid.areas>div:nth-child(1) {
        background: linear-gradient(135deg, var(--muted), #f3f4f6);
        color: #001F3F;
    }

    .grid.areas>div:nth-child(2) {
        background: linear-gradient(135deg, var(--brand), var(--brand-2));
        color: white;
    }

    .grid.areas>div:nth-child(3) {
        background: linear-gradient(135deg, var(--muted), #f3f4f6);
        color: #001F3F;
    }

    .grid.areas>div:nth-child(4) {
        background: linear-gradient(135deg, var(--brand), var(--brand-2));
        color: white;
    }

    .grid.areas>div:nth-child(5) {
        background: linear-gradient(135deg, var(--muted), #f3f4f6);
        color: #001F3F;
    }

    .section h2 {
        font-size: 24px;
    }

    .informations {
        font-size: 14px;
    }

    .contact img {
        max-width: 250px;
    }

    .avatar {
        width: 180px;
        height: 180px;
    }
}