/* ============================================================================
   Ricardo Móveis Planejados — site institucional (página única)
   Paleta idêntica à do sistema interno (ver 02_Implementacao_Projeto_Ricardo.md,
   seção 5), pra manter a mesma identidade visual da marca em tudo que leva o
   nome do Ricardo.
   ============================================================================ */

:root {
    --bronze-950: #211711;
    --bronze-900: #2c1e15;
    --bronze-800: #3a2818;
    --bronze-700: #53371e;
    --bronze-600: #6b4526;
    --gold-500: #f2b705;
    --gold-400: #f7cb3e;
    --gold-100: #fdf3d7;
    --cream-100: #faf7f2;
    --cream-50: #fffdf9;
    --ink-900: #241c14;
    --ink-600: #5a4f42;
    --ink-400: #8a7f70;
    --line: #e9e0d2;
    --shadow: 0 10px 30px rgba(33, 23, 17, 0.18);

    --fonte-titulo: "Playfair Display", Georgia, "Times New Roman", serif;
    --fonte-corpo: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream-100);
    color: var(--ink-900);
    font-family: var(--fonte-corpo);
    line-height: 1.55;
}

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

h1,
h2 {
    font-family: var(--fonte-titulo);
    color: var(--bronze-900);
    line-height: 1.2;
    margin: 0 0 16px;
}

.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 10px;
}

.botao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-500);
    color: var(--bronze-950);
    font-weight: 600;
    font-size: 14.5px;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.botao:hover {
    background: var(--gold-400);
    transform: translateY(-1px);
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bronze-950);
    border-bottom: 1px solid rgba(247, 203, 62, 0.15);
}

.header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand__logo {
    border-radius: 50%;
    border: 2px solid var(--gold-400);
}

.brand__nome {
    font-family: var(--fonte-titulo);
    font-weight: 600;
    font-size: 17px;
    color: var(--cream-50);
}

.brand__nome span {
    display: block;
    font-family: var(--fonte-corpo);
    font-weight: 400;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-400);
}

.nav {
    display: flex;
    gap: 26px;
}

.nav a {
    color: #d9cdbc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav a:hover {
    color: var(--gold-400);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    color: var(--cream-50);
    overflow: hidden;
}

.hero__imagem {
    position: absolute;
    inset: 0;
}

.hero__imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(33, 23, 17, 0.55) 0%, rgba(33, 23, 17, 0.65) 50%, rgba(33, 23, 17, 0.92) 100%);
}

.hero__conteudo {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 24px 72px;
    width: 100%;
}

.hero__selo {
    border-radius: 50%;
    border: 2px solid var(--gold-400);
    margin-bottom: 22px;
}

.hero h1 {
    color: var(--cream-50);
    font-size: clamp(32px, 5vw, 52px);
    max-width: 700px;
}

.hero p {
    max-width: 520px;
    color: #e6dcc9;
    font-size: 16.5px;
    margin: 0 0 28px;
}

/* ---------- Sobre ---------- */
.sobre {
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.sobre h2 {
    font-size: clamp(26px, 3.2vw, 34px);
}

.sobre p {
    color: var(--ink-600);
    font-size: 15.5px;
    max-width: 460px;
}

.sobre__indicacao {
    font-weight: 600;
    color: var(--bronze-700);
}

.sobre__foto img {
    border-radius: 16px;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* ---------- Galeria / Carrossel ---------- */
.galeria {
    background: var(--bronze-950);
    padding: 64px 24px 72px;
}

.galeria__cabecalho {
    max-width: 1120px;
    margin: 0 auto 28px;
    text-align: center;
}

.galeria__cabecalho h2 {
    color: var(--cream-50);
}

.carrossel {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
}

.carrossel__viewport {
    overflow: hidden;
    border-radius: 16px;
}

.carrossel__trilho {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.carrossel__slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    max-height: 460px;
}

.carrossel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrossel__seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(250, 247, 242, 0.92);
    color: var(--bronze-900);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.15s ease;
}

.carrossel__seta:hover {
    background: var(--gold-400);
}

.carrossel__seta--anterior {
    left: -8px;
}

.carrossel__seta--proxima {
    right: -8px;
}

.carrossel__pontos {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.carrossel__pontos button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(247, 203, 62, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.carrossel__pontos button[aria-current="true"] {
    background: var(--gold-500);
    transform: scale(1.25);
}

/* ---------- Rodapé ---------- */
.rodape {
    background: var(--bronze-950);
    border-top: 1px solid rgba(247, 203, 62, 0.15);
    color: #b5a891;
    text-align: center;
    padding: 40px 24px 32px;
}

.rodape__logo {
    border-radius: 50%;
    margin: 0 auto 14px;
    border: 2px solid var(--gold-400);
}

.rodape p {
    margin: 0 0 4px;
    font-size: 14px;
}

.rodape__indicacao {
    color: var(--gold-400);
    font-weight: 600;
}

.rodape__copy {
    margin-top: 14px;
    font-size: 12px;
    color: #7d715f;
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .sobre {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 64px 20px;
    }

    .sobre__foto {
        order: -1;
    }

    .hero {
        min-height: 76vh;
    }

    .hero__conteudo {
        padding: 40px 20px 52px;
    }

    .nav {
        gap: 18px;
    }

    .carrossel__seta--anterior {
        left: 4px;
    }

    .carrossel__seta--proxima {
        right: 4px;
    }
}

@media (max-width: 480px) {
    .brand__nome {
        font-size: 15px;
    }

    .nav a {
        font-size: 13px;
    }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whats-flutuante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    transition: transform 0.15s ease;
}

.whats-flutuante:hover {
    transform: scale(1.06);
}

/* Efeito "sonar" — dois anéis expandindo e desaparecendo em looping,
   atrás do ícone (z-index -1), pra chamar atenção sem atrapalhar o clique. */
.whats-flutuante::before,
.whats-flutuante::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: sonar 2.2s ease-out infinite;
}

.whats-flutuante::after {
    animation-delay: 1.1s;
}

@keyframes sonar {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whats-flutuante::before,
    .whats-flutuante::after {
        animation: none;
    }
}

/* ---------- Modal do WhatsApp ---------- */
.whats-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 23, 17, 0.55);
    padding: 20px;
}

.whats-modal[hidden] {
    display: none;
}

.whats-modal__caixa {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--cream-50);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px 26px 26px;
    text-align: center;
}

.whats-modal__fechar {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--ink-400);
    cursor: pointer;
    padding: 6px;
}

.whats-modal__fechar:hover {
    color: var(--ink-900);
}

.whats-modal__logo {
    border-radius: 50%;
    border: 2px solid var(--gold-400);
    margin: 0 auto 14px;
}

.whats-modal__caixa h3 {
    font-family: var(--fonte-titulo);
    color: var(--bronze-900);
    margin: 0 0 6px;
    font-size: 19px;
}

.whats-modal__legenda {
    color: var(--ink-600);
    font-size: 13.5px;
    margin: 0 0 16px;
}

.whats-modal__caixa textarea {
    width: 100%;
    resize: vertical;
    min-height: 90px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink-900);
    background: var(--cream-100);
    margin-bottom: 16px;
}

.whats-modal__caixa textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.18);
}

.whats-modal__botao {
    width: 100%;
    justify-content: center;
    background: #25d366;
    color: #fff;
}

.whats-modal__botao:hover {
    background: #1ebe5a;
}
