/* =====================================================================
   oleandrobrito.com.br — visual inspirado nos sites do ALMA Instituto do Ser
   Cores principais vêm do painel (variáveis --primaria, --destaque, etc.)
   ===================================================================== */
:root {
    --primaria: #4f2611;      /* terracota profundo */
    --destaque: #e5ac4c;      /* âmbar */
    --fundo: #fdfaf4;         /* areia */
    --fundo-alt: #f2eade;
    --texto: #1f1916;         /* grafite */
    --texto-suave: #5d534e;
    --borda: #e1d5c8;
    --cartao: #fefbf7;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --largura: 1180px;
    --topo-altura: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo-altura); }
body {
    font-family: var(--sans);
    font-weight: 400;
    color: var(--texto);
    background: var(--fundo);
    line-height: 1.7;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--primaria); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: inherit; }
p + p { margin-top: 1rem; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 24px; }

/* ---------- Etiqueta (texto pequeno com linhas) ---------- */
.etiqueta {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: .75rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
    color: var(--destaque); margin-bottom: 1.25rem;
}
.etiqueta::before, .etiqueta::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.etiqueta-esq::after { display: none; }

/* ---------- Botões ---------- */
.btn {
    display: inline-block; padding: 1rem 2rem;
    background: var(--primaria); color: var(--fundo);
    font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; border: 1px solid var(--primaria); border-radius: 0; cursor: pointer;
    transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(79, 38, 17, .55); }
.btn-contorno { background: transparent; color: var(--primaria); }
.btn-contorno:hover { background: var(--primaria); color: var(--fundo); }
.btn-claro { background: var(--fundo); color: var(--primaria); border-color: var(--fundo); }
.btn-sm { padding: .65rem 1.25rem; font-size: .72rem; }
.btn-bloco { display: block; width: 100%; text-align: center; }
.botoes { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }

/* ---------- Topo ---------- */
.topo {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--fundo) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topo.rolado { border-bottom-color: var(--borda); box-shadow: 0 6px 24px -18px rgba(31, 25, 22, .4); }
.topo-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--topo-altura); gap: 1rem; }
.marca { display: flex; flex-direction: column; text-decoration: none; color: var(--texto); line-height: 1.1; }
.marca img { max-height: 52px; width: auto; }
.marca-nome { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.marca-sub { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--destaque); margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a:not(.btn) {
    color: var(--texto); text-decoration: none; font-size: .78rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; position: relative; padding: 4px 0;
}
.menu a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
    background: var(--destaque); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.menu-toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--texto); transition: .3s; }
.menu-toggle span:nth-child(1) { top: 13px; } .menu-toggle span:nth-child(2) { top: 19px; } .menu-toggle span:nth-child(3) { top: 25px; }
.menu-aberto .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-aberto .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-aberto .menu-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 6rem 0 5.5rem; text-align: center; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(60% 45% at 50% 0%, color-mix(in srgb, var(--destaque) 22%, transparent), transparent 70%);
}
.hero-com-fundo::before {
    background: linear-gradient(color-mix(in srgb, var(--fundo) 86%, transparent), var(--fundo)), var(--hero-fundo) center/cover no-repeat;
}
.hero-inner { max-width: 880px; }
.hero-titulo { font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -.01em; }
.hero-texto { max-width: 680px; margin: 1.75rem auto 0; color: var(--texto-suave); font-size: 1.15rem; font-weight: 300; }
.hero-midia { margin: 3rem auto 0; max-width: 820px; }
.hero-imagem { width: 100%; box-shadow: 0 30px 60px -30px rgba(31, 25, 22, .45); }

/* ---------- Vídeo ---------- */
.video-frame {
    position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(31, 25, 22, .5);
}
.video-frame img, .video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-frame video { object-fit: contain; background: #000; }
.video-frame.yt { cursor: pointer; }
.video-frame.yt img { transition: transform .6s, opacity .3s; }
.video-frame.yt:hover img { transform: scale(1.03); opacity: 1; }
.video-frame .play {
    position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
    border-radius: 50%; background: color-mix(in srgb, var(--primaria) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--destaque) 70%, transparent); transition: transform .3s;
}
.video-frame .play::after {
    content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
    border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--fundo);
}
.video-frame.yt:hover .play { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Números ---------- */
.numeros { border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.numeros-grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); }
.numeros-grid.cols-1 { --n: 1; } .numeros-grid.cols-2 { --n: 2; } .numeros-grid.cols-3 { --n: 3; } .numeros-grid.cols-4 { --n: 4; }
.numero { text-align: center; padding: 2.5rem 1rem; }
.numero + .numero { border-left: 1px solid var(--borda); }
.numero strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primaria); line-height: 1.1; }
.numero span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-suave); }

/* ---------- Seções ---------- */
.secao { padding: 6.5rem 0; }
.fundo-alt { background: var(--fundo-alt); }
.secao-cabecalho { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.secao-cabecalho h2, .sobre h2, .contato h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.secao-intro { color: var(--texto-suave); margin-top: 1rem; font-weight: 300; font-size: 1.1rem; }

/* ---------- Projetos (links dos sites) ---------- */
.projetos-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.projeto {
    flex: 1 1 320px; max-width: 370px; display: flex; flex-direction: column;
    background: var(--cartao); border: 1px solid var(--borda); text-decoration: none; color: var(--texto);
    position: relative; transition: transform .35s, box-shadow .35s, border-color .35s;
}
.projeto::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--p-destaque); z-index: 2; }
.projeto:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px color-mix(in srgb, var(--p-cor) 70%, transparent); border-color: color-mix(in srgb, var(--p-cor) 30%, var(--borda)); }
.projeto-imagem { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--p-cor); display: grid; place-items: center; }
.projeto-imagem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.projeto:hover .projeto-imagem img { transform: scale(1.05); }
.projeto-inicial { font-family: var(--serif); font-size: 4.5rem; font-style: italic; color: var(--p-destaque); }
.projeto-corpo { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.projeto-etiqueta { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--p-cor); margin-bottom: .6rem; }
.projeto h3 { font-size: 1.65rem; margin-bottom: .75rem; }
.projeto p { color: var(--texto-suave); font-size: .98rem; flex: 1; }
.projeto-link {
    margin-top: 1.5rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--p-cor); display: inline-flex; gap: .5rem; align-items: center;
}
.projeto-link span { transition: transform .3s; }
.projeto:hover .projeto-link span { transform: translateX(5px); }

/* ---------- Sobre ---------- */
.sobre-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center; }
.sobre-foto { position: relative; }
.sobre-foto::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--destaque); z-index: 0; }
.sobre-foto img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sobre-sub { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primaria); margin: .75rem 0 1.75rem; font-weight: 500; }
.sobre-texto > p { color: var(--texto-suave); }
.sobre blockquote {
    margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--destaque);
    font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--primaria);
}

/* ---------- Faixa ---------- */
.faixa { background: var(--primaria); color: var(--fundo); padding: 6rem 0; text-align: center; }
.faixa-inner { max-width: 820px; }
.faixa h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.faixa p { margin: 1.5rem auto 2.5rem; max-width: 620px; opacity: .85; font-weight: 300; font-size: 1.1rem; }

/* ---------- Vídeos ---------- */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; }
.videos-grid.unico { max-width: 820px; margin: 0 auto; grid-template-columns: 1fr; }
.video-card h3 { font-size: 1.3rem; margin-top: 1.25rem; }
.video-card p { color: var(--texto-suave); font-size: .95rem; margin-top: .4rem; }

/* ---------- Depoimentos ---------- */
.depoimentos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.depoimento { background: var(--cartao); border: 1px solid var(--borda); padding: 2.25rem; display: flex; flex-direction: column; justify-content: space-between; }
.depoimento blockquote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; position: relative; padding-top: 1.75rem; }
.depoimento blockquote::before { content: '“'; position: absolute; top: -1rem; left: -.2rem; font-size: 3.5rem; color: var(--destaque); line-height: 1; }
.depoimento figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--borda); }
.depoimento figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.depoimento figcaption span { display: flex; flex-direction: column; line-height: 1.35; }
.depoimento small { color: var(--texto-suave); }
.depoimento figcaption a { font-size: .78rem; margin-top: 2px; }

/* ---------- Galeria ---------- */
.galeria-grid { columns: 3 260px; column-gap: 16px; }
.galeria-item { display: block; margin-bottom: 16px; break-inside: avoid; overflow: hidden; }
.galeria-item img { width: 100%; transition: transform .6s; }
.galeria-item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15, 11, 9, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; }
.lightbox p { color: #eee; margin-top: 1rem; }
.lightbox-fechar { position: absolute; top: 16px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* ---------- Contato ---------- */
.contato-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
.contato-info > p { color: var(--texto-suave); margin-top: 1rem; }
.contato-lista { list-style: none; margin-top: 2rem; }
.contato-lista li { padding: .9rem 0; border-bottom: 1px solid var(--borda); display: flex; flex-direction: column; }
.contato-lista span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--destaque); font-weight: 600; }
.contato-lista a { text-decoration: none; color: var(--texto); }
.contato-form { background: var(--cartao); border: 1px solid var(--borda); padding: 2.5rem; display: grid; gap: 1.1rem; }
.contato-form label { display: grid; gap: .4rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--texto-suave); }
.contato-form input, .contato-form textarea, .contato-form select {
    font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--texto);
    background: var(--fundo); border: 1px solid var(--borda); padding: .85rem 1rem; border-radius: 0; width: 100%;
}
.contato-form input:focus, .contato-form textarea:focus, .contato-form select:focus { outline: 2px solid var(--destaque); outline-offset: -1px; }
.form-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.campo-oculto { position: absolute; left: -9999px; }
.alerta { padding: .9rem 1.1rem; font-size: .95rem; border-left: 3px solid; }
.alerta-sucesso { background: #eef5ec; border-color: #4b7d4a; color: #2f5530; }
.alerta-erro { background: #fbecea; border-color: #b4412f; color: #7d2a1e; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--fundo-alt); border-top: 1px solid var(--borda); padding: 4.5rem 0 0; font-size: .95rem; }
.rodape-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.rodape p { color: var(--texto-suave); margin-top: 1rem; max-width: 380px; }
.rodape .pequeno { font-size: .82rem; }
.rodape h4 { font-family: var(--sans); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--destaque); font-weight: 600; margin-bottom: 1rem; }
.rodape ul { list-style: none; display: grid; gap: .5rem; }
.rodape a { color: var(--texto); text-decoration: none; }
.rodape a:hover { color: var(--primaria); text-decoration: underline; }
.rodape-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.75rem 24px; margin-top: 3.5rem; border-top: 1px solid var(--borda); font-size: .8rem; color: var(--texto-suave); }
.rodape-base span:last-child { display: flex; gap: 1.5rem; }

.whats-flutuante {
    position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .4);
    transition: transform .3s;
}
.whats-flutuante:hover { transform: scale(1.08); }

/* ---------- Animação de entrada ---------- */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .menu {
        position: fixed; top: var(--topo-altura); left: 0; right: 0; bottom: 0; background: var(--fundo);
        flex-direction: column; justify-content: flex-start; padding: 2.5rem 24px; gap: 1.6rem;
        opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s, visibility .3s;
    }
    .menu-aberto .menu { opacity: 1; visibility: visible; transform: none; }
    .menu-aberto { overflow: hidden; }
    .menu a:not(.btn) { font-size: .95rem; }
    .sobre-grid, .contato-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .sobre-foto { max-width: 420px; margin: 0 auto 1rem; width: calc(100% - 22px); }
    .rodape-grid { grid-template-columns: 1fr 1fr; }
    .rodape-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .container { padding: 0 16px; }
    .hero { padding: 4rem 0 4rem; }
    .secao, .faixa { padding: 4.5rem 0; }
    .numeros-grid { grid-template-columns: 1fr 1fr; }
    .numeros-grid.cols-1, .numeros-grid.cols-3 .numero:first-child { grid-column: 1 / -1; }
    .numero { padding: 1.75rem .5rem; }
    .numero + .numero { border-left: 0; }
    .numeros-grid .numero { border-top: 1px solid var(--borda); }
    .numeros-grid .numero:first-child { border-top: 0; }
    .numeros-grid.cols-3 .numero:nth-child(3), .numeros-grid.cols-2 .numero:nth-child(2), .numeros-grid.cols-4 .numero:nth-child(2), .numeros-grid.cols-4 .numero:nth-child(4) { border-left: 1px solid var(--borda); }
    .numeros-grid.cols-2 .numero:nth-child(2), .numeros-grid.cols-4 .numero:nth-child(2) { border-top: 0; }
    .projeto { max-width: none; }
    .videos-grid { grid-template-columns: 1fr; }
    .form-linha { grid-template-columns: 1fr; }
    .contato-form { padding: 1.5rem; }
    .rodape-grid { grid-template-columns: 1fr; }
    .btn { padding: .95rem 1.5rem; }
    .botoes .btn { width: 100%; text-align: center; }
    .etiqueta::before, .etiqueta::after { width: 20px; }
}
