/* ===================================================================
   Alcapone Delivery — delivery.css (carregado depois do base.css)
   =================================================================== */

/* ===================================================================
   1. Hero
   =================================================================== */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 120% 90% at 50% 40%, rgba(11, 10, 10, 0.25) 0%, rgba(11, 10, 10, 0.75) 100%),
        linear-gradient(to bottom, rgba(11, 10, 10, 0.3) 0%, rgba(11, 10, 10, 0) 30%, rgba(11, 10, 10, 0.45) 55%, rgba(11, 10, 10, 1) 100%);
}

.hero-logo { width: clamp(150px, 40vw, 220px); }

.hero-titulo {
    margin-top: clamp(24px, 4vh, 36px);
    font-family: var(--font-titulo);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2rem, min(9vw, 9.5vh), 5.75rem);
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-wrap: balance;
}

/* Celular: espaçamento menor para manter as 3 linhas sem quebra */
@media (max-width: 600px) {
    .hero-titulo { font-size: 8.4vw; letter-spacing: 0.02em; white-space: nowrap; }
}

.hero-texto .btn { margin-top: clamp(28px, 5vh, 44px); }

/* Entrada do topo: a única sequência coreografada da página */
.hero-logo          { animation: surgir 1.2s var(--ease) both; }
.hero .fio-vertical { animation: descer 1s var(--ease) 0.4s both; transform-origin: top; }
.hero-titulo        { animation: surgir 1.2s var(--ease) 0.6s both; }
.hero-texto .btn    { animation: surgir 1.2s var(--ease) 1s both; }

/* ===================================================================
   2. Produtos
   =================================================================== */
.produtos .titulo { text-align: center; }

/* Chips: rolagem horizontal no celular, sem quebrar linha */
.filtros {
    display: flex;
    gap: 8px;
    margin: clamp(28px, 4vw, 40px) calc(var(--gutter) * -1) clamp(28px, 4vw, 40px);
    padding: 4px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filtros::-webkit-scrollbar { display: none; }

@media (min-width: 641px) {
    .filtros { justify-content: center; flex-wrap: wrap; margin-inline: 0; padding-inline: 0; }
}

.chip {
    flex: none;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--fio);
    border-radius: 999px;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.chip:hover { border-color: rgba(255, 255, 255, 0.4); }

.chip[aria-pressed="true"] {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--preto);
    font-weight: 600;
}

.produtos-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 641px)  { .produtos-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1025px) { .produtos-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1280px) { .produtos-grid { grid-template-columns: repeat(4, 1fr); } }

.produto {
    display: flex;
    flex-direction: column;
    background: var(--cartao);
    border: 1px solid var(--fio);
    border-radius: 2px;
    overflow: hidden;
    animation: aparecer 0.5s var(--ease) both;
}

.produto[hidden] { display: none; }

@keyframes aparecer {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.produto-foto {
    position: relative;
    aspect-ratio: 1;
    background: #1a1717;
}

.produto-foto img { width: 100%; height: 100%; object-fit: cover; }

.produto-selo {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: var(--branco);
    color: var(--preto);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 2px;
}

.produto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 24px;
}

.produto-nome {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.produto-nome span {
    display: inline-block;
    font-weight: 400;
    color: var(--texto-fraco);
    letter-spacing: 0.04em;
}

.produto-desc {
    margin-top: 6px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.produto-preco {
    margin-top: auto;
    margin-bottom: 16px;
    padding-top: 16px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--branco);
    letter-spacing: 0.02em;
}

/* Celular: card horizontal (foto à esquerda), lista mais fácil de percorrer */
@media (max-width: 640px) {
    .produto { display: grid; grid-template-columns: 38% 1fr; }
    .produto-foto { aspect-ratio: auto; min-height: 100%; }
    .produto-selo { top: 8px; left: 8px; font-size: 0.625rem; padding: 5px 7px; }
    .produto-info { padding: 16px 16px 16px 14px; }
    .produto-nome { font-size: 0.9375rem; }
    .produto-preco { margin-bottom: 12px; padding-top: 10px; font-size: 1.25rem; }
    .produto .btn { min-height: 46px; padding-block: 14px; font-size: 0.75rem; letter-spacing: 0.14em; }
}


/* ===================================================================
   4. Por que pedir da Alcapone
   =================================================================== */
/* Tudo centralizado: título, ícone e texto */
.motivos { text-align: center; }

.motivos-icones {
    margin-top: clamp(40px, 6vw, 72px);
    display: grid;
}

.motivos-icones li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-block: 28px;
    border-top: 1px solid var(--fio);
}

.motivos-icones li:last-child { border-bottom: 1px solid var(--fio); }

.motivos-icones svg {
    width: 44px;
    height: 44px;
    flex: none;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.motivos-icones p { max-width: 34ch; font-size: 1.0625rem; line-height: 1.5; }

.motivos-icones strong {
    display: block;
    color: var(--branco);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 900px) {
    .motivos-icones { grid-template-columns: repeat(3, 1fr); gap: 48px; }

    .motivos-icones li,
    .motivos-icones li:last-child {
        gap: 28px;
        padding: 32px 0 0;
        border-bottom: 0;
    }

    .motivos-icones svg { width: 52px; height: 52px; }
}

/* ===================================================================
   5. Entregamos no seu bairro?
   =================================================================== */
.bairro { text-align: center; }

.bairro .fio-curto { margin: 0 auto 32px; }

.busca {
    position: relative;
    max-width: 520px;
    margin: clamp(32px, 5vw, 48px) auto 0;
    text-align: left;
}

.busca-campo { position: relative; }

.busca input {
    width: 100%;
    min-height: 56px;
    padding: 0 60px 0 20px;
    background: var(--cartao);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 2px;
    font-size: 1rem;  /* 16px: evita zoom automático no iPhone */
    transition: border-color 0.3s var(--ease);
}

.busca input::placeholder { color: var(--texto-fraco); }
.busca input:focus { outline: none; border-color: var(--gold); }

.busca-btn {
    position: absolute;
    top: 0; right: 0;
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    cursor: pointer;
}

.busca-btn svg {
    width: 22px; height: 22px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.busca-lista {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #1c1919;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 2px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.busca-lista li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
}

.busca-lista li + li { border-top: 1px solid var(--fio); }

.busca-lista li span { font-size: 0.8125rem; color: var(--texto-fraco); white-space: nowrap; }

.busca-lista li[aria-selected="true"],
.busca-lista li:hover { background: rgba(241, 196, 15, 0.12); }

.busca-resposta {
    max-width: 520px;
    margin: 24px auto 0;
    padding: 32px 24px;
    border: 1px solid var(--fio);
    background: var(--cartao);
    animation: aparecer 0.5s var(--ease) both;
}

.busca-resposta p { margin: 0 auto; }
.busca-resposta .btn { margin-top: 24px; }

.resposta-titulo {
    font-family: var(--font-titulo);
    font-size: 1.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--branco) !important;
}

.busca-resposta[data-resposta="total"] .resposta-titulo { color: var(--gold) !important; }

.resposta-bairro {
    margin-top: 4px !important;
    font-size: 0.875rem;
    color: var(--texto-fraco) !important;
}

.resposta-bairro:empty { display: none; }

/* Lista completa em acordeão */
.todos-bairros {
    max-width: 720px;
    margin: 32px auto 0;
}

.todos-bairros > summary {
    display: inline-block;
    padding: 12px 4px;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: var(--texto);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: rgba(241, 196, 15, 0.6);
    cursor: pointer;
    list-style: none;
}

.todos-bairros > summary::-webkit-details-marker { display: none; }
.todos-bairros[open] > summary { color: var(--branco); }

.regioes {
    margin-top: 16px;
    text-align: left;
    border-top: 1px solid var(--fio);
}

.regiao { border-bottom: 1px solid var(--fio); }

.regiao summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.regiao summary::-webkit-details-marker { display: none; }

.regiao summary::after,
.faq summary::after {
    content: "+";
    flex: none;
    margin-left: 16px;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gold);
    transition: transform 0.3s var(--ease);
}

.regiao[open] summary::after,
.faq details[open] summary::after { transform: rotate(45deg); }

.regiao ul {
    padding-bottom: 20px;
    columns: 2;
    column-gap: 24px;
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--texto);
}

.regiao li { break-inside: avoid; }
.regiao em { color: var(--texto-fraco); font-style: normal; font-size: 0.8125rem; }

@media (min-width: 641px) { .regiao ul { columns: 3; } }

/* ===================================================================
   6. Horários
   =================================================================== */
.horarios-destaque {
    max-width: none;
    margin-top: 24px;
    font-size: clamp(1.125rem, 2.4vw, 1.375rem);
    line-height: 1.5;
    color: var(--branco);
}

.horarios-destaque + p { margin-top: 12px; }

@media (min-width: 900px) {
    .horarios {
        display: grid;
        grid-template-columns: 5fr 6fr;
        gap: 64px;
        align-items: end;
    }

    .horarios-destaque { margin-top: 0; }
}


/* ===================================================================
   7. Direto dos Tanques
   =================================================================== */
.final .titulo {
    max-width: 18ch;
    margin: 36px auto 24px;
}

.final .texto-apoio { margin: 0 auto 40px; max-width: 44ch; }

.final .link-sec { margin-top: 20px; }

/* ===================================================================
   8. Perguntas rápidas
   =================================================================== */
.faq { text-align: center; }
.faq .rotulo { display: block; }

.faq-lista {
    max-width: 760px;
    margin-inline: auto;
    text-align: left;
    margin-top: clamp(32px, 5vw, 56px);
    border-top: 1px solid var(--fio);
}

.faq details { border-bottom: 1px solid var(--fio); }

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding-block: 16px;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p { max-width: 60ch; padding-bottom: 24px; }
.faq details a { color: var(--gold); text-underline-offset: 4px; }

/* ===================================================================
   9. Rodapé
   =================================================================== */
.rodape address {
    font-size: 0.875rem;
    color: var(--texto);
}

/* ===================================================================
   Botão fixo (só no celular)
   =================================================================== */
.barra-fixa { display: none; }

@media (max-width: 768px) {
    .barra-fixa {
        display: block;
        position: fixed;
        z-index: 20;
        left: 0; right: 0; bottom: 0;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(11, 10, 10, 0.98) 60%, rgba(11, 10, 10, 0));
        transform: translateY(110%);
        transition: transform 0.45s var(--ease);
    }

    .barra-fixa.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo, .hero .fio-vertical, .hero-titulo, .hero-texto .btn, .produto, .busca-resposta { animation: none; }
}
