/* Redesenho visual da tela pública (cliente) - i-Reserva / Empório Villa Santo Antônio.
   Escopado inteiramente sob body.public-shell para não afetar o painel admin. */

body.public-shell {
    --pub-bg: #faf4e9;
    --pub-surface: #ffffff;
    --pub-ink: #2b1710;
    --pub-muted: #7d6a5c;
    --pub-line: #ecdfc9;
    --pub-primary: #7a1e3d;
    --pub-primary-dark: #591430;
    --pub-primary-soft: #f7e6ea;
    --pub-gold: #c9992f;
    --pub-gold-light: #e7c877;
    --pub-footer-bg: #2b0f18;
    background: var(--pub-bg);
}

body.public-shell .topbar {
    background: rgba(250, 244, 233, 0.92);
    border-bottom: 1px solid var(--pub-line);
}

body.public-shell .topbar nav a {
    align-items: center;
    color: var(--pub-ink);
    display: inline-flex;
    gap: 6px;
}

body.public-shell .topbar nav a svg {
    color: var(--pub-primary);
    height: 16px;
    width: 16px;
}

body.public-shell .topbar nav a:hover {
    background: var(--pub-primary-soft);
    color: var(--pub-primary-dark);
}

body.public-shell .topbar nav a.nav-button {
    background: var(--pub-ink);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    padding: 10px 16px;
}

body.public-shell .topbar nav a.nav-button svg {
    color: #fff;
}

body.public-shell .topbar nav a.nav-button:hover {
    background: var(--pub-primary-dark);
    color: #fff;
}

body.public-shell .page {
    max-width: none;
    overflow-x: hidden;
    padding: 0;
}

body.public-shell .panel {
    min-width: 0;
}

body.public-shell .button.primary {
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark));
    box-shadow: 0 10px 22px rgba(122, 30, 61, 0.28);
    gap: 8px;
}

body.public-shell .button svg {
    height: 18px;
    width: 18px;
}

body.public-shell .button.primary:hover {
    background: linear-gradient(135deg, var(--pub-primary-dark), var(--pub-primary));
}

body.public-shell input:focus,
body.public-shell select:focus,
body.public-shell textarea:focus {
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 4px rgba(122, 30, 61, 0.12);
}

body.public-shell .alert.success {
    background: #eaf3ea;
    color: #2f6b3f;
}

/* ---------- Hero ---------- */

.public-hero {
    align-items: center;
    background:
        linear-gradient(100deg, rgba(24, 8, 14, 0.86) 0%, rgba(24, 8, 14, 0.55) 46%, rgba(24, 8, 14, 0.18) 78%),
        url('../img/hero-fundo.jpg') center/cover no-repeat;
    color: #fff;
    display: flex;
    min-height: 560px;
    padding: 60px 32px;
}

.public-hero-inner {
    max-width: 620px;
}

.public-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    margin: 14px 0 18px;
}

.public-hero h1 span {
    color: var(--pub-gold-light);
}

.public-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 26px;
    max-width: 480px;
}

.public-hero p strong {
    color: var(--pub-gold-light);
}

.public-hero .trust-line {
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    margin-top: 14px;
}

/* ---------- Faixa de benefícios ---------- */

.benefits-section {
    background: var(--pub-bg);
    padding: 26px 24px 4px;
    text-align: center;
}

.benefits-section h2 {
    color: var(--pub-ink);
    font-size: 24px;
    margin: 0 0 16px;
    padding-bottom: 14px;
    position: relative;
}

.benefits-section h2 .divider {
    background: var(--pub-gold);
    bottom: 0;
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 56px;
}

.benefits-section h2 .divider::before {
    background: var(--pub-gold);
    border-radius: 50%;
    content: '';
    height: 6px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
}

.benefits-row {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 auto 22px;
    max-width: 1080px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.benefit-item svg,
.benefit-item img {
    height: 34px;
    width: 34px;
}

.benefit-item svg {
    color: var(--pub-primary);
}

.benefit-item span {
    color: var(--pub-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

/* ---------- Card de destaque do restaurante ---------- */

.spotlight {
    background: var(--pub-surface);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(43, 15, 24, 0.12);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    margin: 0 24px 40px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.spotlight-photo {
    background: #000;
    height: 420px;
    max-height: 100%;
    overflow: hidden;
}

.spotlight-photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.spotlight-content {
    padding: 30px 34px;
}

.spotlight-content h3 {
    color: var(--pub-primary);
    font-size: 26px;
    margin: 0 0 8px;
}

.spotlight-rating {
    align-items: center;
    color: var(--pub-gold);
    display: flex;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 14px;
}

.spotlight-rating span {
    color: var(--pub-muted);
    font-weight: 600;
}

.spotlight-tags {
    color: var(--pub-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
    gap: 16px;
    margin-bottom: 18px;
}

.spotlight-features {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.spotlight-features span {
    color: var(--pub-ink);
    font-size: 13px;
    font-weight: 600;
}

.spotlight-note {
    color: var(--pub-muted);
    font-size: 12px;
    margin-top: 10px;
}

/* ---------- Prova social ---------- */

.social-proof {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 24px 44px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 8px;
}

.social-proof-item {
    color: var(--pub-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.social-proof-item .stars {
    color: var(--pub-gold);
    font-size: 20px;
    margin-bottom: 8px;
}

.social-proof-item .quote-mark {
    color: var(--pub-primary);
    font-size: 26px;
    font-weight: 900;
    line-height: 0.5;
}

.social-proof-item cite {
    color: var(--pub-muted);
    display: block;
    font-style: normal;
    font-size: 13px;
    margin-top: 4px;
}

.social-proof-item.security {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.social-proof-item.security svg {
    color: var(--pub-primary);
    flex: 0 0 auto;
    height: 22px;
    width: 22px;
}

/* ---------- Dúvidas frequentes ---------- */

.faq-section {
    margin: 0 auto 44px;
    max-width: 780px;
    padding: 0 24px;
}

.faq-section h2 {
    color: var(--pub-ink);
    font-size: 24px;
    text-align: center;
    margin: 0 0 24px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: 14px;
    padding: 14px 18px;
}

.faq-list summary {
    color: var(--pub-ink);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::before {
    color: var(--pub-primary);
    content: '+';
    display: inline-block;
    font-weight: 900;
    margin-right: 10px;
    width: 12px;
}

.faq-list details[open] summary::before {
    content: '–';
}

.faq-list p {
    color: var(--pub-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 0 22px;
}

/* ---------- Layout da reserva (form + como funciona) ---------- */

.reservation-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 320px;
    margin: 0 auto 60px;
    max-width: 1080px;
    min-width: 0;
    padding: 0 24px;
}

.reservation-layout > * {
    min-width: 0;
}

.reservation-layout .panel h2 {
    text-align: center;
}

.reservation-layout > .form-grid {
    display: grid;
    gap: 18px;
}

.how-it-works {
    position: sticky;
    top: 90px;
}

.how-it-works h3 {
    color: var(--pub-primary);
    text-align: center;
}

.how-step {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.how-step .how-icon {
    align-items: center;
    background: var(--pub-primary-soft);
    border-radius: 999px;
    color: var(--pub-primary);
    display: flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.how-step strong {
    color: var(--pub-ink);
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.how-step p {
    color: var(--pub-muted);
    font-size: 13px;
    margin: 0;
}

.how-notice {
    background: var(--pub-primary-soft);
    border-radius: 14px;
    color: var(--pub-primary-dark);
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
    padding: 14px;
}

/* ---------- Botões de escolha (ocasião / ambiente / questionário select) ---------- */

.choice-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    min-width: 0;
}

.choice-pill {
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin: 0;
    padding: 14px 8px;
    position: relative;
    text-align: center;
}

.choice-pill input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.choice-pill svg {
    color: var(--pub-primary);
    height: 24px;
    width: 24px;
}

.choice-pill span {
    color: var(--pub-ink);
    font-size: 12px;
}

.choice-pill:has(input:checked) {
    background: var(--pub-primary-soft);
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 3px rgba(122, 30, 61, 0.14);
}

/* ---------- Botão flutuante de ajuda ---------- */

.floating-help {
    align-items: center;
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark));
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(43, 15, 24, 0.32);
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    padding: 12px 18px;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
}

.floating-help svg {
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--pub-footer-bg);
    color: #f1e6da;
}

.footer-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    margin: 0 auto;
    max-width: 1180px;
    padding: 46px 24px;
}

.footer-brand img {
    height: 96px;
}

.footer-col h3 {
    color: var(--pub-gold-light);
    font-size: 13px;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.footer-col p,
.footer-col a {
    color: rgba(241, 230, 218, 0.82);
    display: block;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 6px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(241, 230, 218, 0.14);
    color: rgba(241, 230, 218, 0.55);
    font-size: 12px;
    padding: 16px;
    text-align: center;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
    .public-hero {
        min-height: 0;
        padding: 44px 22px;
    }

    .public-hero h1 {
        font-size: 34px;
    }

    .benefits-row,
    .social-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spotlight {
        grid-template-columns: 1fr;
        margin-left: 16px;
        margin-right: 16px;
    }

    .spotlight-photo {
        height: 220px;
    }

    .reservation-layout {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .how-it-works {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .benefits-row,
    .social-proof,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .public-hero h1 {
        font-size: 28px;
    }

    .floating-help span {
        display: none;
    }
}
