/* =====================================================
   Loft Gastronomia — Frontend Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Lato:wght@300;400;700&display=swap');

.loftg-module {
    font-family: 'Lato', sans-serif;
    color: #2c2c2a;
    max-width: 860px;
    margin: 0 auto;
}

/* ---- HERO ---- */
/* Posicionamento e largura gerenciados via JS (relocateHero) */
.loftg-hero {
    /* breakout full-width — sem z-index, sem stacking context */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    min-height: 280px;
    background: #000;
    overflow: hidden;
    margin-bottom: 0;
}
.loftg-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* sem z-index: DOM order faz o empilhamento, não cria stacking context */
}
.loftg-hero-overlay {
    position: absolute;
    inset: 0;
    /* sem z-index: aparece sobre bg-img por estar depois no DOM */
    background: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.62) 100%);
}
.loftg-hero:not(.loftg-hero--img) .loftg-hero-overlay {
    background: rgba(0,0,0,0.0);
}
.loftg-hero-content {
    position: relative;
    /* sem z-index: aparece sobre overlay por estar depois no DOM */
    text-align: center;
    padding: 3.5rem 2rem;
    max-width: 620px;
    width: 100%;
}
.loftg-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 400;
    color: #f0ead8;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.loftg-hero-subtitle {
    font-size: 14.5px;
    color: rgba(240,234,216,0.82);
    line-height: 1.75;
    margin: 0;
    font-weight: 300;
}

/* ---- BLOCO DE TEXTO ---- */
.loftg-text-block {
    padding: 2.5rem 2rem;
    background: transparent;
}
.loftg-text-block p {
    font-size: 15px;
    line-height: 1.85;
    color: #3a3830;
    margin: 0 0 1.1rem;
}
.loftg-text-block p:last-child { margin-bottom: 0; }
.loftg-text-block strong { font-weight: 700; color: #1f2e24; }
.loftg-text-block em { font-style: italic; }

/* ---- CARROSSEL ---- */
.loftg-carousel {
    position: relative;
    background: #1a2820;
    overflow: hidden;
    margin-bottom: 2rem;
}
.loftg-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}
.loftg-slide {
    min-width: 100%;
    position: relative;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0;
}
.loftg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.loftg-counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
    font-family: 'Lato', sans-serif;
    background: rgba(0,0,0,0.3);
    padding: 2px 7px;
    border-radius: 3px;
}
.loftg-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}
.loftg-btn:hover { background: rgba(255,255,255,0.25); }
.loftg-prev { left: 14px; }
.loftg-next { right: 14px; }
.loftg-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 14px;
    background: #1a2820;
}
.loftg-dot {
    width: 22px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s;
}
.loftg-dot.active,
.loftg-dot:hover { background: #c4a56a; }

/* ---- HORÁRIOS ---- */
.loftg-hours-wrap {
    margin: 0 2rem 2rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ccc6b4;
}
.loftg-hours-header {
    background: #1f3028;
    color: #e8dfc8;
    text-align: center;
    padding: 11px 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}
.loftg-hours-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.loftg-hours-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 460px;
}
.loftg-hours-table th {
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    color: #5f5e5a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 8px 6px;
    text-align: center;
    border-bottom: 1px solid #e8e2d8;
}
.loftg-hours-table td {
    padding: 10px 6px;
    text-align: center;
    font-size: 13px;
    color: #3a3830;
    vertical-align: top;
    line-height: 1.5;
}
.loftg-slot {
    display: block;
    white-space: nowrap;
}
.loftg-closed {
    color: #bbb;
    font-size: 20px;
    line-height: 1;
    display: block;
}
.loftg-badge {
    display: inline-block;
    background: #1f3028;
    color: #c4a56a;
    font-size: 9.5px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
    margin-top: 5px;
    font-weight: 700;
}
.loftg-hours-note {
    background: #fff;
    padding: 8px 14px 10px;
    border-top: 1px solid #e8e2d8;
}
.loftg-hours-note p {
    font-size: 11.5px;
    color: #888;
    margin: 0;
}
.loftg-hours-note span {
    color: #c4a56a;
    margin-right: 5px;
}

/* ---- CARDS ---- */
.loftg-cards-section {
    padding: 1.5rem 2rem 2.5rem;
}
.loftg-cards-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 400;
    color: #1a2820;
    text-align: center;
    margin: 0 0 0.4rem;
    letter-spacing: 0.01em;
}
.loftg-cards-sub {
    font-size: 13.5px;
    color: #7a7568;
    text-align: center;
    margin: 0 0 1.6rem;
}
.loftg-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.loftg-card-item { display: flex; flex-direction: column; }
.loftg-card-link {
    display: block;
    text-decoration: none;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.loftg-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(30,40,28,0.18);
}
.loftg-card-img {
    height: 240px;
    background-color: #1a2820;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.loftg-card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.loftg-card-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loftg-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,18,12,0.82) 0%, rgba(8,18,12,0.1) 60%, transparent 100%);
}
.loftg-card-caption {
    position: relative;
    z-index: 1;
    padding: 16px 18px;
    width: 100%;
}
.loftg-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #f0ead8;
    margin: 0 0 3px;
}
.loftg-card-subtitle {
    font-size: 11.5px;
    color: rgba(240,234,216,0.65);
    margin: 0;
    letter-spacing: 0.04em;
}
.loftg-card-label {
    text-align: center;
    font-size: 12.5px;
    color: #5f5e5a;
    margin: 9px 0 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .loftg-hero { min-height: 220px; }
    .loftg-hero-title { font-size: 24px; }
    .loftg-hero-subtitle { font-size: 13px; }
    .loftg-text-block { padding: 1.5rem 1rem; }
    .loftg-hours-wrap { margin: 0 1rem 1.5rem; }
    .loftg-cards-section { padding: 1rem 1rem 2rem; }
    .loftg-cards-grid { grid-template-columns: 1fr; }
    .loftg-slide { height: 260px; }
    .loftg-card-img { height: 200px; }
    .loftg-cards-title { font-size: 20px; }
}
