/* Óticas Zelly — layout das páginas públicas (index, produtos, sobre, contato) */
:root {
    --zl-turquesa: #1ea4b2;
    --zl-turquesa-escuro: #12808c;
    --zl-turquesa-claro: #e3f5f7;
    --zl-tinta: #0f2a30;
    --zl-texto: #3d4f54;
    --zl-fundo: #f5f8f9;
    --zl-borda: #e2eaec;
    --zl-raio: 18px;
    --zl-sombra: 0 10px 30px rgba(15, 42, 48, .08);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--zl-texto);
    background: var(--zl-fundo);
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--zl-tinta); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--zl-turquesa-escuro); }
img { max-width: 100%; height: auto; }

/* ── Cabeçalho ─────────────────────────────────────────────── */
.zl-topo {
    position: fixed; inset: 0 0 auto 0; z-index: 1030;
    background: rgba(15, 42, 48, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    transition: box-shadow .25s;
}
.zl-topo.rolou { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.zl-topo .navbar { min-height: 76px; padding: 0; }
.zl-topo .navbar-toggler { color: #fff; font-size: 1.5rem; box-shadow: none; }
.zl-topo .nav-link {
    color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .95rem;
    padding: .5rem 1rem !important; border-radius: 999px; transition: color .2s, background .2s;
}
.zl-topo .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.zl-topo .nav-link.active { color: #fff; background: var(--zl-turquesa); }
.zl-topo-acoes { display: flex; align-items: center; gap: 1rem; }
.zl-redes { display: flex; gap: .4rem; }
.zl-redes a {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
    color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; transition: background .2s, transform .2s;
}
.zl-redes a:hover { background: var(--zl-turquesa); transform: translateY(-2px); }
.zl-offcanvas { background: var(--zl-tinta); }
@media (min-width: 992px) {
    .zl-offcanvas { background: transparent; }
    .zl-offcanvas .offcanvas-body { display: flex; width: 100%; }
}
@media (max-width: 991.98px) {
    .zl-offcanvas .offcanvas-body { display: flex; flex-direction: column; gap: 1.5rem; }
    .zl-offcanvas .nav-link { font-size: 1.1rem; }
    .zl-topo-acoes { flex-direction: column; align-items: flex-start; }
}

/* ── Botões ───────────────────────────────────────────────── */
.zl-btn {
    display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
    padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
    text-decoration: none; border: 2px solid transparent; transition: all .2s; white-space: nowrap;
}
.zl-btn-primario { background: var(--zl-turquesa); color: #fff; }
.zl-btn-primario:hover { background: var(--zl-turquesa-escuro); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 164, 178, .35); }
.zl-btn-whats { background: #25d366; color: #fff; }
.zl-btn-whats:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37, 211, 102, .35); }
.zl-btn-contorno { border-color: var(--zl-turquesa); color: var(--zl-turquesa-escuro); background: transparent; }
.zl-btn-contorno:hover { background: var(--zl-turquesa); color: #fff; }
.zl-btn-claro { background: #fff; color: var(--zl-tinta); padding: .55rem 1.1rem; font-size: .88rem; }
.zl-btn-claro:hover { background: var(--zl-turquesa); color: #fff; }

/* ── Banner (carrossel vindo do banco) ───────────────────── */
.zl-banner .carousel-item img { width: 100%; display: block; }
.zl-banner .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; }

/* ── Seções ──────────────────────────────────────────────── */
.zl-secao { padding: 72px 0; }
.zl-secao.branca { background: #fff; }
.zl-titulo { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.zl-titulo small {
    display: inline-block; color: var(--zl-turquesa-escuro); background: var(--zl-turquesa-claro);
    font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 999px; margin-bottom: .9rem;
}
.zl-titulo h1, .zl-titulo h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: .75rem; }
.zl-titulo p { font-size: 1.05rem; margin: 0; }

/* Faixa de benefícios */
.zl-beneficios { margin-top: -40px; position: relative; z-index: 2; }
.zl-beneficio {
    background: #fff; border-radius: var(--zl-raio); padding: 24px 20px; height: 100%;
    box-shadow: var(--zl-sombra); display: flex; gap: 14px; align-items: flex-start; transition: transform .25s;
}
.zl-beneficio:hover { transform: translateY(-4px); }
.zl-beneficio i {
    flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem;
    color: #fff; background: linear-gradient(135deg, var(--zl-turquesa), var(--zl-turquesa-escuro));
}
.zl-beneficio h3 { font-size: 1rem; margin: 2px 0 4px; }
.zl-beneficio p { font-size: .87rem; margin: 0; line-height: 1.45; }
@media (max-width: 575.98px) {
    .zl-beneficios { margin-top: -24px; }
    .zl-beneficio { flex-direction: column; gap: 10px; padding: 18px 14px; }
    .zl-beneficio i { flex-basis: auto; width: 44px; height: 44px; font-size: 1.1rem; }
    .zl-beneficio h3 { font-size: .92rem; }
    .zl-beneficio p { font-size: .8rem; }
}

/* Chamada do WhatsApp */
.zl-cta {
    background: linear-gradient(120deg, var(--zl-tinta) 0%, #14505a 55%, var(--zl-turquesa) 100%);
    border-radius: 28px; color: #fff; padding: 0 48px; overflow: hidden; position: relative;
}
.zl-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.zl-cta p { color: rgba(255, 255, 255, .85); }
.zl-cta .zl-cta-texto { padding: 44px 0; }
.zl-cta img { display: block; margin: 0 auto; max-height: 300px; align-self: flex-end; }
@media (max-width: 767.98px) { .zl-cta { padding: 0 24px; text-align: center; } .zl-cta img { max-height: 220px; } }

/* Cartões de produto */
.zl-produto {
    background: #fff; border-radius: var(--zl-raio); overflow: hidden; box-shadow: var(--zl-sombra);
    height: 100%; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.zl-produto:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 42, 48, .14); }
.zl-produto-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--zl-turquesa-claro); }
.zl-produto-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s; }
.zl-produto-img img.alt { opacity: 0; }
.zl-produto:hover .zl-produto-img img.alt { opacity: 1; }
.zl-produto:hover .zl-produto-img img { transform: scale(1.04); }
.zl-produto-corpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.zl-produto-corpo h3 { font-size: 1.1rem; margin: 0; }
.zl-produto-corpo p { font-size: .88rem; margin: 0; flex: 1; }
.zl-produto-corpo a { font-weight: 600; font-size: .9rem; text-decoration: none; }
.zl-produto-corpo a i { transition: transform .2s; }
.zl-produto-corpo a:hover i { transform: translateX(4px); }

/* Lentes */
.zl-lente {
    background: #fff; border: 1px solid var(--zl-borda); border-radius: var(--zl-raio); padding: 26px 22px;
    height: 100%; transition: border-color .2s, box-shadow .2s;
}
.zl-lente:hover { border-color: var(--zl-turquesa); box-shadow: var(--zl-sombra); }
.zl-lente i { font-size: 1.6rem; color: var(--zl-turquesa); margin-bottom: 14px; display: block; }
.zl-lente h3 { font-size: 1.05rem; margin-bottom: 6px; }
.zl-lente p { font-size: .88rem; margin: 0; }

/* Texto + imagem */
.zl-foto { border-radius: 24px; box-shadow: var(--zl-sombra); width: 100%; object-fit: cover; }
.zl-lista-check { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.zl-lista-check li { display: flex; gap: 12px; padding: 7px 0; }
.zl-lista-check li i { color: var(--zl-turquesa); margin-top: 4px; }
.zl-numero { font-size: 2rem; font-weight: 700; color: var(--zl-turquesa); line-height: 1; }

/* Cartões de informação (sobre/contato) */
.zl-card {
    background: #fff; border-radius: var(--zl-raio); padding: 28px; box-shadow: var(--zl-sombra); height: 100%;
}
.zl-card .ico {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem;
    background: var(--zl-turquesa-claro); color: var(--zl-turquesa-escuro); margin-bottom: 16px;
}
.zl-card h3 { font-size: 1.15rem; }
.zl-card p:last-child { margin-bottom: 0; }

/* Cabeçalho das páginas internas */
.zl-pagina-topo {
    background: linear-gradient(120deg, var(--zl-tinta) 0%, #14505a 60%, var(--zl-turquesa) 100%);
    color: #fff; padding: 64px 0 56px; text-align: center;
}
.zl-pagina-topo h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.zl-pagina-topo p { color: rgba(255, 255, 255, .85); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

/* Mapa */
#map { height: 100%; min-height: 360px; width: 100%; border-radius: var(--zl-raio); box-shadow: var(--zl-sombra); z-index: 1; }

/* ── Rodapé ──────────────────────────────────────────────── */
.zl-rodape { background: var(--zl-tinta); color: rgba(255, 255, 255, .72); padding: 64px 0 24px; font-size: .92rem; }
.zl-rodape h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.zl-rodape ul { list-style: none; padding: 0; margin: 0; }
.zl-rodape li { padding: 5px 0; display: flex; gap: 10px; }
.zl-rodape li i { color: var(--zl-turquesa); margin-top: 4px; width: 16px; }
.zl-rodape a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.zl-rodape a:hover { color: #fff; }
.zl-selos { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zl-selos img { height: 76px; width: auto; max-width: 100%; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.zl-rodape-base {
    border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem;
}

/* ── WhatsApp flutuante ─────────────────────────────────── */
.zl-whats-flutuante {
    position: fixed; right: 20px; bottom: 20px; z-index: 1040;
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    background: #25d366; color: #fff; border-radius: 999px; padding: 12px 20px 12px 14px;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .45); font-weight: 600; font-size: .92rem;
    transition: transform .2s;
}
.zl-whats-flutuante i { font-size: 1.8rem; }
.zl-whats-flutuante:hover { color: #fff; transform: scale(1.05); }
.zl-whats-flutuante::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; background: #25d366; z-index: -1;
    animation: zl-pulso 2.4s ease-out infinite;
}
@keyframes zl-pulso { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 575.98px) {
    .zl-whats-flutuante { padding: 14px; }
    .zl-whats-flutuante span { display: none; }
}

/* ── Animação de entrada ───────────────────────────────── */
.zl-surge { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.zl-surge.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .zl-surge { opacity: 1; transform: none; transition: none; }
    .zl-whats-flutuante::before { animation: none; }
    html { scroll-behavior: auto; }
}
