/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #202020;
    line-height: 1.6;
    background: #FAF8F5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Hero Section (Header + Hero com background) ─── */
.hero-section {
    position: relative;
    min-height: 85vh;
    background: url('images/header-bg.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    transition: background 0.4s ease, min-height 0.4s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

/* ─── Header ─── */
.header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img { height: 70px; width: auto; transition: filter 0.4s ease; }

.nav { display: flex; gap: 32px; }

.nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav a.active,
.nav a:hover { color: #fff; }

.btn-header {
    display: inline-block;
    padding: 12px 28px;
    background: #8B1E2D;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.3s;
}

.btn-header:hover {
    background: #741825;
    transform: translateY(-2px);
}

/* ─── Hero Content ─── */
.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 24px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    max-width: 500px;
}

.hero-cta-card {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    padding: 40px 36px;
    border-radius: 14px;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-cta-card p {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 24px;
}

.hero-cta-card p em {
    color: #fff;
    font-style: italic;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-block;
    padding: 15px 34px;
    background: #8B1E2D;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background: #741825;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 30, 45, 0.2);
}

/* ─── Section Common ─── */
.section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8B1E2D;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #202020;
}

.section-desc {
    color: #666;
    font-size: 0.92rem;
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ─── Stats (card suspenso) ─── */
.stats-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -70px;
    padding-bottom: 30px;
}

.stats-card {
    background: #fff;
    border-radius: 18px;
    padding: 50px 60px;
    display: flex;
    justify-content: center;
    gap: 90px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.stat-item { text-align: center; }

.stat-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #202020;
    margin-bottom: 8px;
}

.stat-item strong .counter {
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
}

.stat-item span {
    font-size: 0.85rem;
    color: #666;
}

/* ─── Portfólio ─── */
.portfolio {
    padding: 70px 0;
}

.portfolio-page {
    padding-top: 140px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 18px;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item.tall {
    grid-row: span 2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.92);
}

.portfolio-ver-mais {
    text-align: center;
    margin-top: 40px;
}

/* Animação fluida no portfólio */
.portfolio-animated .portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-animated .portfolio-item:nth-child(1) { animation-delay: 0.05s; }
.portfolio-animated .portfolio-item:nth-child(2) { animation-delay: 0.1s; }
.portfolio-animated .portfolio-item:nth-child(3) { animation-delay: 0.15s; }
.portfolio-animated .portfolio-item:nth-child(4) { animation-delay: 0.2s; }
.portfolio-animated .portfolio-item:nth-child(5) { animation-delay: 0.25s; }
.portfolio-animated .portfolio-item:nth-child(6) { animation-delay: 0.3s; }
.portfolio-animated .portfolio-item:nth-child(7) { animation-delay: 0.35s; }
.portfolio-animated .portfolio-item:nth-child(8) { animation-delay: 0.4s; }
.portfolio-animated .portfolio-item:nth-child(9) { animation-delay: 0.45s; }
.portfolio-animated .portfolio-item:nth-child(10) { animation-delay: 0.5s; }
.portfolio-animated .portfolio-item:nth-child(11) { animation-delay: 0.55s; }
.portfolio-animated .portfolio-item:nth-child(12) { animation-delay: 0.6s; }
.portfolio-animated .portfolio-item:nth-child(13) { animation-delay: 0.65s; }
.portfolio-animated .portfolio-item:nth-child(14) { animation-delay: 0.7s; }
.portfolio-animated .portfolio-item:nth-child(15) { animation-delay: 0.75s; }
.portfolio-animated .portfolio-item:nth-child(16) { animation-delay: 0.8s; }
.portfolio-animated .portfolio-item:nth-child(17) { animation-delay: 0.85s; }
.portfolio-animated .portfolio-item:nth-child(18) { animation-delay: 0.9s; }
.portfolio-animated .portfolio-item:nth-child(19) { animation-delay: 0.95s; }
.portfolio-animated .portfolio-item:nth-child(20) { animation-delay: 1.0s; }
.portfolio-animated .portfolio-item:nth-child(21) { animation-delay: 1.05s; }
.portfolio-animated .portfolio-item:nth-child(22) { animation-delay: 1.1s; }
.portfolio-animated .portfolio-item:nth-child(23) { animation-delay: 1.15s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-page .portfolio-grid {
    grid-auto-rows: 280px;
}

/* Header sólido (páginas internas) */
.header-solid {
    background: #FAF8F5;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
}

.nav-dark a {
    color: #555;
}

.nav-dark a.active,
.nav-dark a:hover {
    color: #202020;
}

/* Hero menor para páginas internas */
.hero-section-sm {
    min-height: 60vh;
}

/* Hero sem imagem de fundo (páginas internas) */
.hero-section-nobg {
    background: transparent;
    min-height: 0 !important;
}

.hero-section-nobg::before {
    display: none;
}

.hero-section-nobg .hero-content {
    display: none;
}

.hero-section-nobg .nav a {
    color: rgba(0,0,0,0.6);
    transition: color 0.4s ease;
}

.hero-section-nobg .nav a.active,
.hero-section-nobg .nav a:hover {
    color: #202020;
}

.hero-section-nobg .btn-header {
    background: #202020;
    color: #fff;
    transition: background 0.4s ease;
}

.hero-section-nobg .logo-img {
    filter: invert(1);
    transition: filter 0.4s ease;
}

/* Transição entre páginas */
.page-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ─── Contato ─── */
.contato-banner {
    position: relative;
    padding: 100px 0 80px;
    background: url('images/header-fale.png') center/cover no-repeat;
    text-align: center;
}

.contato-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.contato-banner .container {
    position: relative;
    z-index: 2;
}

.contato-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.contato-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.contato-section {
    padding: 60px 0 80px;
}

.contato-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.contato-card {
    background: #fff;
    padding: 44px 32px 36px;
    border-radius: 18px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,0,0,0.06);
}

.contato-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.contato-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(139, 30, 45, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.contato-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #202020;
}

.contato-info {
    font-size: 1rem;
    font-weight: 600;
    color: #8B1E2D;
}

.contato-desc {
    font-size: 0.84rem;
    color: #666;
    line-height: 1.6;
    max-width: 220px;
}

.contato-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 28px;
    background: #8B1E2D;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.3px;
    transition: background 0.3s, transform 0.3s;
}

.contato-card:hover .contato-btn {
    background: #741825;
    transform: translateY(-1px);
}

.contato-horario {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.contato-horario h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #202020;
    margin-bottom: 10px;
}

.contato-horario p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.8;
}

/* ─── Serviços ─── */
.servicos {
    padding: 50px 0 70px;
    background: #fff;
}

.servicos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 36px;
}

.servicos-header-text {
    flex: 1;
}

.servicos-header-text .section-desc {
    margin-bottom: 0;
}

.servicos-header-img {
    flex: 0 0 auto;
}

.servicos-header-img img {
    height: 180px;
    width: auto;
    opacity: 0.85;
}

.servicos-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.servico-card-lg {
    background: #FAF8F5;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.servico-card-lg:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(0,0,0,0.08);
}

.servico-card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.servico-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servico-card-lg:hover .servico-card-img img {
    transform: scale(1.05);
}

.servico-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.servico-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #202020;
    margin-bottom: 14px;
}

.servico-card-body > p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 20px;
}

.servico-card-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.servico-card-footer span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8B1E2D;
}

/* ─── Processo ─── */
.processo {
    padding: 70px 0;
}

.processo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 36px;
}

.processo-step {
    text-align: center;
    padding: 0 30px;
}

.processo-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.processo-step h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.processo-step p {
    font-size: 0.8rem;
    color: #666;
    max-width: 160px;
    margin: 0 auto;
}

.processo-divider {
    width: 50px;
    height: 1px;
    background: #ddd;
    flex-shrink: 0;
}

/* ─── Avaliações ─── */
.avaliacoes {
    padding: 70px 0;
    background: #fff;
}

.avaliacoes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.avaliacao-card {
    background: #FAF8F5;
    padding: 30px 24px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avaliacao-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.avaliacao-stars {
    color: #e8a838;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.avaliacao-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.avaliacao-card p {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

.avaliacao-autor {
    font-size: 0.8rem;
    color: #8B1E2D;
    font-weight: 600;
}

/* ─── CTA Final ─── */
.cta-final {
    position: relative;
    padding: 60px 0;
    background: url('images/header-conversa.png') center/cover no-repeat;
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.cta-final .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-logo {
    margin-bottom: 20px;
}

.cta-logo img {
    height: 220px;
    width: auto;
}

.cta-card-dark {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    padding: 40px 48px;
    border-radius: 18px;
    max-width: 520px;
    text-align: center;
}

.cta-card-dark h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-card-dark p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ─── Footer ─── */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 50px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 0.84rem;
    line-height: 1.8;
    color: #888;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* ─── WhatsApp Float ─── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.whatsapp-float:hover { transform: scale(1.08); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-content { gap: 40px; }
    .hero-text h1 { font-size: 2.8rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .servicos-cards { grid-template-columns: repeat(2, 1fr); }
    .avaliacoes-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; gap: 12px; }
    .nav { gap: 14px; }
    .nav a { font-size: 0.78rem; }
    .btn-header { display: none; }
    .logo-img { height: 50px; }

    .hero-section { min-height: 70vh; }
    .hero-content {
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
    }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-cta-card {
        max-width: 100%;
        padding: 28px 24px;
    }
    .hero-cta-card p { font-size: 1.1rem; }

    .stats-wrapper { margin-top: -50px; }
    .stats-card {
        flex-direction: column;
        gap: 24px;
        padding: 30px 24px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .portfolio-item.tall { grid-row: span 1; }

    .servicos-cards { grid-template-columns: 1fr; }
    .servicos-header { flex-direction: column; text-align: center; }
    .servicos-header-img img { height: 120px; }

    .processo-grid {
        flex-direction: column;
        gap: 24px;
    }
    .processo-divider {
        width: 1px;
        height: 24px;
    }

    .avaliacoes-grid { grid-template-columns: 1fr; }

    .cta-final { padding: 50px 0; }
    .cta-logo img { height: 140px; }
    .cta-card-dark { padding: 28px 22px; }
    .cta-card-dark h2 { font-size: 1.6rem; }

    .contato-cards { grid-template-columns: 1fr; }
}
