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

/* VARIÁVEIS */
:root {
    --primary-color: #772F48;
    --secondary-color: #3D3828;
    --tertiary-color: #DADAD1;
    --background-color: #F6F1EE;
    --foreground-color: #1C1118;
    --accent-color: #E8A87C;
    --card-bg: #FFFFFF;
    --soft-bg: #F9F5F3;
    --white: #FFFFFF;
}

/* BASE */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--foreground-color);
    background-color: var(--background-color);
}

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

/* CONTAINER GENÉRICO */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-text p {
    color: var(--secondary-color);
    font-size: 0.75rem;
}

/* MENU HAMBÚRGUER */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* NAV DESKTOP */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.25s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.25s;
}

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

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(
                rgba(119, 47, 72, 0.78),
                rgba(119, 47, 72, 0.78)
              ),
              url('../images/image1.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4.5rem 1.5rem 4rem;
}

.hero-content {
    max-width: 720px;
    padding: 0 1rem;
}

.hero h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

.hero p {
    font-size: 1.08rem;
    margin-bottom: 2rem;
    opacity: 0.96;
}

/* BOTÃO PRINCIPAL */
.btn {
    display: inline-block;
    padding: 0.9rem 2.6rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.btn:hover {
    background-color: #f09d67;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

/* SEÇÕES GENÉRICAS */
section {
    scroll-margin-top: 90px;
}

.sobre,
.servicos,
.equipe,
.estrutura,
.diferenciais,
.depoimentos {
    padding: 4rem 0;
    background-color: var(--white);
}

.servicos,
.estrutura {
    background-color: var(--soft-bg);
}

/* TÍTULOS / SUBTÍTULOS */
.section-title {
    text-align: center;
    font-size: 2.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--secondary-color);
    opacity: 0.9;
    margin-bottom: 2.2rem;
}

/* TEXTO CENTRAL */
.section-text {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.02rem;
    color: var(--secondary-color);
}

/* SERVIÇOS */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.servico-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 1.8rem 1.6rem 1.6rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.servico-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(232,168,124,0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
}

.servico-card:hover::before {
    opacity: 1;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

.servico-icon {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.servico-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.servico-content p {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 0.96rem;
}

.servico-content ul {
    padding-left: 1.2rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.servico-content li + li {
    margin-top: 0.25rem;
}

/* NOSSA EQUIPE - OTIMIZADO */
.equipe {
    background-color: var(--white);
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.equipe-card {
    background-color: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.equipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.11);
}

.equipe-foto {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.equipe-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.equipe-info {
    padding: 1.2rem 1.3rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equipe-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.equipe-cargo {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.equipe-descricao {
    font-size: 0.88rem;
    color: var(--secondary-color);
    opacity: 0.9;
    line-height: 1.5;
}

/* NOSSA ESTRUTURA – GALERIA */
.estrutura .section-subtitle {
    margin-bottom: 1.8rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.galeria-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(0,0,0,0.06);
    background-color: #ddd;
    aspect-ratio: 4 / 5;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.06);
}

.galeria-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}

.galeria-overlay p {
    margin: 0;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

/* DEPOIMENTOS - MODERNIZADO */
.depoimentos {
    background-color: var(--soft-bg);
    padding: 4rem 0;
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.depoimento-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.depoimento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.depoimento-aspas {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.15;
}

.depoimento-content {
    position: relative;
    z-index: 1;
}

.depoimento-texto {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.depoimento-autor {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 1rem;
}

.depoimento-nome {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.depoimento-data {
    font-size: 0.88rem;
    color: var(--secondary-color);
    opacity: 0.75;
}

/* DIFERENCIAIS */
.diferenciais {
    background-color: var(--white);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.diferencial-item {
    text-align: center;
    padding: 1.8rem 1.4rem;
    background-color: var(--soft-bg);
    border-radius: 16px;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.diferencial-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.diferencial-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
}

.diferencial-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.diferencial-item p {
    color: var(--secondary-color);
    font-size: 0.94rem;
}

/* CONTATO */
.contato {
    padding: 4rem 0 3.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.contato .section-title,
.contato .section-subtitle {
    color: var(--white);
}

.contato-info {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.contato-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 160px;
}

.contato-item i {
    font-size: 1.7rem;
}

.contato-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.25s;
}

.contato-item a:hover {
    opacity: 0.8;
}

.contato-item div p {
    margin: 0;
    font-size: 0.92rem;
}

/* FOOTER */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.86rem;
}

/* ============================================
   RESPONSIVO – TABLET E MOBILE
   ============================================ */

/* TABLET */
@media (max-width: 960px) {
    .hero {
        min-height: 420px;
        padding: 3.5rem 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .equipe-foto {
        height: 260px;
    }

    .equipe-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .depoimentos-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE GERAL */
@media (max-width: 768px) {
    /* Header e Menu Mobile */
    .header-container {
        padding: 0.8rem 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    nav a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    nav a::after {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        min-height: 380px;
        padding: 3rem 1.2rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.98rem;
    }

    /* Seções */
    .section-title {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    /* Equipe - Fotos ajustadas */
    .equipe-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .equipe-foto {
        height: 300px;
    }

    /* Depoimentos Mobile */
    .depoimentos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .depoimento-card {
        padding: 1.5rem 1.3rem;
    }

    .depoimento-texto {
        font-size: 0.95rem;
    }

    /* Galeria */
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    /* Contato */
    .contato-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contato p {
        font-size: 1rem !important;
    }
}

/* MOBILE PEQUENO */
@media (max-width: 520px) {
    /* Logo menor */
    .logo-img {
        height: 38px;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.68rem;
    }

    /* Hero */
    .hero {
        min-height: 340px;
        padding: 2.5rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }

    /* Seções */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }

    /* Equipe */
    .equipe-foto {
        height: 280px;
    }

    .equipe-grid {
        grid-template-columns: 1fr;
    }

    /* Depoimentos */
    .depoimentos-grid {
        grid-template-columns: 1fr;
    }

    .depoimento-card {
        padding: 1.3rem 1.1rem;
    }

    .depoimento-aspas {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }

    /* Serviços */
    .servicos-grid {
        grid-template-columns: 1fr;
    }

    /* Galeria */
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}
