/* =====================================
   R. TOLEDO - CLINICA DENTARIA
   DESIGN PREMIUM CLINICO
===================================== */

:root {
    --preto: #101010;
    --dourado: #c9a34e;
    --dourado-claro: #e3c477;
    --branco: #ffffff;
    --cinza: #f6f6f6;
    --texto: #555555;
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--branco);
    color: var(--preto);
    line-height: 1.6;
}

/* =====================================
   CABECALHO
===================================== */

header {
    background: var(--preto);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8%;
    min-height: 95px;
}

.logo img {
    width: 115px;
    height: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--dourado);
}

/* =====================================
   PAGINA INICIAL - HERO
===================================== */


.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 80px 10%;
    background-color: #222;
}

/* Fotografia real da fachada: o caminho é relativo à página inicial */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

/* Sombra discreta para manter o texto legível */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Camada escura uniforme sobre a fotografia */
    background: rgba(0, 0, 0, 0.48);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    color: white;
}

.subtitulo {
    color: var(--dourado);
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content > p:not(.subtitulo) {
    color: #dddddd;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* BOTAO */

.botao {
    display: inline-block;
    background: var(--dourado);
    color: #111;
    padding: 15px 28px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 3px;
}

.botao:hover {
    background: white;
    transform: translateY(-3px);
}

/* =====================================
   APRESENTACAO
===================================== */

.apresentacao {
    padding: 85px 12%;
    text-align: center;
}

.apresentacao h2 {
    font-size: 34px;
    margin-bottom: 25px;
}

.apresentacao p {
    max-width: 850px;
    margin: auto;
    color: var(--texto);
    line-height: 1.9;
}

/* =====================================
   TRATAMENTOS
===================================== */
.tratamentos {
    background: #f7f7f7;
    padding: 80px 8%;
    text-align: center;
}

.tratamentos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tratamento-card {
    background: white;
    padding: 35px 25px;
    border-bottom: 3px solid #c9a34e;
    transition: 0.3s;
}

.tratamento-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* CARTÕES DE ESPECIALIDADES */

.especialidades-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1250px;
    margin: auto;
}

.especialidade-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: left;
    padding: 0;
}

.especialidade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-bottom: 3px solid #c9a34e;
}

.especialidade-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.especialidade-card:hover img {
    transform: scale(1.05);
}

.card-conteudo {
    padding: 25px;
}

.numero {
    color: #c9a34e;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.especialidade-card h3 {
    font-size: 21px;
    color: #222;
    margin-bottom: 15px;
}

.especialidade-card p {
    color: #777;
    line-height: 1.8;
    font-size: 14px;
    min-height: 100px;
}

.botao-tratamento {
    display: inline-block;
    margin-top: 15px;
    color: #b28b39;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.botao-tratamento:hover {
    color: #222;
}

@media (max-width: 900px) {
    .especialidades-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .especialidades-container {
        grid-template-columns: 1fr;
    }

    .especialidade-card img {
        height: 230px;
    }
}

/* =====================================
   RODAPE
===================================== */

footer {
    background: var(--preto);
    color: white;
    text-align: center;
    padding: 45px 20px;
    line-height: 2;
}

footer h3 {
    color: var(--dourado);
    margin-bottom: 10px;
}

/* =====================================
   RESPONSIVIDADE
===================================== */

@media (max-width: 900px) {

    .tratamentos-container {
        grid-template-columns: repeat(2, 1fr);
    }

    header {
        padding: 15px 5%;
    }

    nav {
        gap: 15px;
    }

}

@media (max-width: 600px) {

    header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        min-height: 450px;
        padding: 55px 7%;
    }

    .hero-bg {
        object-position: center center;
    }

    .hero h1 {
        font-size: 34px;
    }

    .apresentacao {
        padding: 60px 8%;
    }

    .tratamentos {
        padding: 60px 7%;
    }

    .tratamentos-container {
        grid-template-columns: 1fr;
    }

    .lista-tratamentos {
        grid-template-columns: 1fr;
        padding: 50px 20px;
    }

    .titulo-pagina h1 {
        font-size: 32px;
    }
}