﻿/* ============================================================
   style.css — Velório do Carneiro 2026
   Layout mobile-first — estilo Guichê Web
   ============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #e8e8e8;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.page-wrap {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
}

.container {
    background: #f4f4f4;
    width: 100%;
    overflow-x: hidden;
}

/* HEADER */
.gw-header {
    background: #161625;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.gw-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gw-logo-icon {
    width: 28px;
    height: auto;
    flex-shrink: 0;
}

.gw-logo-text {
    font-size: 17px;
    color: #fff;
    font-weight: 400;
    letter-spacing: -0.2px;
    line-height: 1;
}

.gw-logo-text strong { font-weight: 900; }

.gw-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
}

/* BANNER TOPO */
.banner-section {
    background: #0a1228;
    line-height: 0;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.banner-placeholder {
    width: 100%;
    min-height: 156px;
    background: linear-gradient(135deg, #050d1e 0%, #0e2060 40%, #1a0a40 70%, #050d1e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.banner-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,215,0,0.08) 0%, transparent 60%);
}

.bp-inner { text-align: center; z-index: 1; }

.bp-sub {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bp-title {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 4px;
}

.bp-city {
    font-size: 11px;
    font-weight: 700;
    color: #ffd740;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.bp-date {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.bp-artists {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

/* EVENT CARD */
.event-card {
    background: #fff;
    border-bottom: 6px solid #f0f0f0;
}

/* POSTER */
.poster-wrapper {
    padding: 16px 16px 4px;
    background: #fff;
    line-height: 0;
}

.poster-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.poster-placeholder {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #050d1e 0%, #0e2060 40%, #1a0a40 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 0 auto;
    padding: 20px;
}

.pp-inner { text-align: center; }

.pp-sub {
    font-size: 7px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pp-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.pp-city {
    font-size: 11px;
    font-weight: 800;
    color: #ffd740;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pp-date {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
}

.pp-artists {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* COMPARTILHAR */
.share-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.share-label {
    font-size: 14px;
    color: #888;
    margin-right: 2px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.share-btn:active { opacity: 0.75; }

.share-wpp { background: #25d366; }
.share-fb  { background: #1877f2; }
.share-ms  { background: linear-gradient(135deg, #0695e9 0%, #c84fff 100%); }
.share-x   { background: #000; }

/* INFO DO EVENTO */
.event-info-block {
    padding: 18px 16px 10px;
    text-align: center;
}

.event-title {
    font-size: 23px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.event-date {
    font-size: 15px;
    color: #444;
    margin-bottom: 4px;
}

.event-time {
    font-size: 16px;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 10px;
}

.event-location {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 12px;
}

.event-location i { color: #1565c0; }

.event-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.evt-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.15s;
}

.evt-social:active { opacity: 0.75; }
.evt-social.fb { background: #1877f2; }
.evt-social.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* NAVEGACAO RAPIDA */
.quick-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.qnav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
}

.qnav-btn.active { color: #1565c0; }
.qnav-btn:active  { color: #1565c0; }

/* BANNER INFERIOR */
.banner-bottom {
    line-height: 0;
    border-top: 1px solid #f0f0f0;
}

.banner-img2 {
    width: 100%;
    height: auto;
    display: block;
}

/* SECAO DE INGRESSOS */
.tickets-section {
    background: #f0f0f0;
    padding-bottom: 4px;
}

.tickets-heading {
    font-size: 21px;
    font-weight: 900;
    text-align: center;
    color: #1a1a1a;
    padding: 22px 16px 18px;
    line-height: 1.25;
    background: #fff;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    border-bottom: 1px solid #e8e8e8;
}

/* CATEGORIA DE INGRESSO */
.tcat-card {
    margin-top: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.tcat-header {
    background: #fff;
    padding: 14px 14px 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 1px solid transparent;
}

.tcat-header[aria-expanded="true"] {
    border-bottom-color: #e8e8e8;
}

.tcat-color-box {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tcat-info {
    flex: 1;
    min-width: 0;
}

.tcat-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.2;
}

.tcat-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.45;
    margin: 0 0 6px 0;
    font-weight: 400;
}

.tcat-price-row {
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tcat-icon {
    font-size: 11px;
    color: #888;
}

.tcat-chevron {
    color: #bbb;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 0;
    align-self: center;
    transition: transform 0.22s ease;
}

.tcat-header[aria-expanded="true"] .tcat-chevron {
    transform: rotate(90deg);
}

/* CORPO DA CATEGORIA */
.tcat-body {
    background: #fff;
    display: none;
}

.tcat-body.open {
    display: block;
}

/* LINHA DE INGRESSO */
.ti-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}

.ti-row:last-child { border-bottom: none; }

.ti-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ti-name {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.ti-name strong {
    font-weight: 700;
    color: #1a1a1a;
}

.ti-lote {
    font-size: 12px;
    color: #666;
}

.lote-tag {
    font-style: normal;
    font-weight: 700;
    color: #f57c00;
}

.lote-unico {
    color: #888 !important;
    font-weight: 600 !important;
}

.ti-valor {
    font-size: 12px;
    color: #555;
}

.ti-taxa {
    color: #f57c00;
    font-weight: 600;
}

/* CONTROLE DE QUANTIDADE */
.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.qc-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    padding: 2px;
    -webkit-tap-highlight-color: transparent;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.qc-btn:disabled {
    color: #ccc;
    cursor: default;
}

.qc-btn:not(:disabled):active { opacity: 0.6; }

.qc-num {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

/* YOUTUBE */
.youtube-section {
    background: #000;
    line-height: 0;
}

.yt-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.yt-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* INFORMACOES */
.info-section {
    background: #fff;
    border-top: 6px solid #f0f0f0;
}

.section-heading {
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    color: #1a1a1a;
    padding: 22px 16px 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-acc {
    border-top: 1px solid #eee;
}

.info-acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    background: #fff;
    width: 100%;
    border: none;
    text-align: left;
    border-bottom: 1px solid #eee;
    -webkit-tap-highlight-color: transparent;
}

.info-acc-header i {
    font-size: 13px;
    color: #aaa;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.info-acc-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.info-acc-body {
    padding: 0;
    display: none;
    border-bottom: 1px solid #eee;
}

.info-acc-body.open {
    display: block;
}

.rules-list {
    padding: 16px 16px 16px 34px;
}

.rules-list li {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 12px;
}

.rules-list li:last-child { margin-bottom: 0; }

/* LOCALIZACAO */
.location-section {
    background: #fff;
    border-top: 6px solid #f0f0f0;
}

.map-wrapper { position: relative; }

.map-open-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1565c0;
    text-decoration: none;
    padding: 10px 16px;
    background: #f5f8ff;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
}

.map-open-link:active { opacity: 0.7; }

/* MAPA DO EVENTO */
.event-map-section {
    background: #fff;
    border-top: 6px solid #f0f0f0;
    line-height: 0;
}

.event-map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* PONTOS DE VENDA */
.pdv-section {
    background: #fff;
    border-top: 6px solid #f0f0f0;
    padding-bottom: 6px;
}

.pdv-city-bar {
    margin: 0 16px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdv-item {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-bottom: 1px solid #f4f4f4;
}

.pdv-name {
    font-size: 15px;
    font-weight: 700;
    color: #0b7dda;
}

.pdv-address,
.pdv-phone {
    font-size: 13px;
    color: #999;
}

/* FOOTER */
.gw-footer {
    background: #111;
    padding: 24px 16px 36px;
    text-align: center;
}

.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-soc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.15s;
}

.footer-soc-btn:active { background: #2a2a2a; }

.footer-apps-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 8px 14px;
    color: #fff;
    text-decoration: none;
    min-width: 130px;
    transition: background 0.15s;
}

.app-badge:active { background: #242424; }

.app-badge > i {
    font-size: 22px;
    flex-shrink: 0;
}

.app-badge > div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-badge > div span {
    font-size: 10px;
    color: #aaa;
    line-height: 1.2;
}

.app-badge > div strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.footer-legal {
    font-size: 11px;
    color: #666;
    line-height: 1.65;
    max-width: 320px;
    margin: 0 auto;
}

/* BARRA FLUTUANTE */
.summary-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: #161625;
    padding: 10px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    gap: 12px;
    border-top: 2px solid #2a2a44;
}

.sb-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sb-qty-text {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    line-height: 1.3;
}

.sb-total-text {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.sb-btn {
    background: #1565c0;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
}

.sb-btn:active { opacity: 0.85; }

/* MODAL DE DADOS */
.data-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.dm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.dm-box {
    background: #fff;
    width: 100%;
    max-width: 430px;
    border-radius: 18px 18px 0 0;
    padding: 20px 20px 44px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    animation: slideUp 0.28s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.dm-close {
    float: right;
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.dm-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 18px;
    clear: both;
    margin-top: 4px;
}

/* FORMULARIO */
.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    -webkit-appearance: none;
}

.form-group input:focus       { border-color: #1565c0; }
.form-group input.cpf-valid   { border-color: #2e7d32; }
.form-group input.cpf-invalid { border-color: #c62828; }

.form-group input.input-error {
    border-color: #c62828;
    animation: shake 0.38s ease;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

.cpf-validity-msg {
    margin: 5px 0 0;
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
    line-height: 1;
}

.cpf-msg-valid   { color: #2e7d32; }
.cpf-msg-invalid { color: #c62828; }

.field-info {
    margin: 7px 0 0;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.5;
}

.field-info i { color: #1565c0; margin-top: 2px; flex-shrink: 0; }

.form-warning-msg {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #e65100;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dm-pay-btn {
    background: #1565c0;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-height: 50px;
}

.dm-pay-btn:active { opacity: 0.85; }

/* CHECKOUT PAGE COMPAT */
.checkout-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 400px;
    overflow: hidden;
    min-height: 300px;
}
