/* ============================================
   ESQUINA DA CACHAÇA — Seções principais
   Etapa 3: O Esquina + Produtos & Serviços
   ============================================ */

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section--dark {
    background: linear-gradient(180deg, var(--color-wood) 0%, var(--color-wood-dark) 100%);
    color: var(--color-beige);
}

/* O Esquina — fundo dedicado */
#o-esquina {
    background:
        linear-gradient(180deg, rgba(10, 6, 4, 0.92) 0%, rgba(26, 16, 12, 0.94) 100%),
        url("../img/esquina-fundo_converted.webp") center/cover no-repeat fixed;
}

#o-esquina::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.18), transparent 55%),
        radial-gradient(circle at 88% 82%, rgba(212, 175, 55, 0.12), transparent 60%);
}

#o-esquina > .container { position: relative; z-index: 1; }

.section--dark h2,
.section--dark h3 {
    color: var(--color-beige);
}

.section--light {
    background: var(--color-beige);
    color: var(--color-wood);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-lg);
    max-width: 760px;
    margin-inline: auto;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.section__title::after {
    content: "";
    display: block;
    width: 220px;
    max-width: 80%;
    height: 28px;
    margin: var(--space-sm) auto 0;
    background: url("../img/divisoria_converted.webp") center/contain no-repeat;
}

.section__lead {
    font-size: 1.1rem;
    line-height: 1.75;
    opacity: 0.92;
}

/* ============================================
   O ESQUINA — Grid 2 colunas
   ============================================ */
.o-esquina__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.o-esquina__content p {
    margin-bottom: var(--space-sm);
    line-height: 1.8;
    font-size: 1.05rem;
    color: rgba(245, 230, 211, 0.92);
}

.o-esquina__content p strong {
    color: var(--color-gold-light);
    font-weight: 600;
}

.o-esquina__tribute {
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0;
    background: rgba(212, 175, 55, 0.08);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--radius-sm);
    font-style: italic;
}

.o-esquina__diferenciais {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
    margin-top: var(--space-md);
}

.o-esquina__diferenciais li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--color-beige);
}

.o-esquina__diferenciais li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* Galeria — 1 hero 16:9 + 2x2 abaixo (otimizada p/ horizontais) */
.o-esquina__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.o-esquina__gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    aspect-ratio: 16 / 9;
}

.o-esquina__gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.o-esquina__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease), filter var(--t-mid);
}

.o-esquina__gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity var(--t-mid);
}

.o-esquina__gallery-item:hover img,
.o-esquina__gallery-item:focus-visible img {
    transform: scale(1.1);
}

.o-esquina__gallery-item:hover::after,
.o-esquina__gallery-item:focus-visible::after {
    opacity: 1;
}

.o-esquina__gallery-item:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--color-gold);
}

/* ============================================
   PRODUTOS & SERVIÇOS — Cards
   ============================================ */
.produtos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.produto-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
    display: flex;
    flex-direction: column;
    position: relative;
}

.produto-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, var(--color-gold), transparent 40%, transparent 60%, var(--color-gold));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--t-mid);
    pointer-events: none;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(62, 39, 35, 0.25);
    border-color: var(--color-gold);
}

.produto-card:hover::before {
    opacity: 1;
}

.produto-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-beige-dark);
}

.produto-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.produto-card:hover .produto-card__media img {
    transform: scale(1.08);
}

.produto-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 0.35rem 0.8rem;
    background: var(--color-gold);
    color: var(--color-wood-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.produto-card__body {
    padding: var(--space-md) var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.produto-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-wood);
    margin: 0;
}

.produto-card__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(62, 39, 35, 0.8);
    flex: 1;
}

.produto-card__price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold-dark);
}

.produto-card__price small {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(62, 39, 35, 0.6);
}

.produto-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.7rem 1.2rem;
    background: transparent;
    color: var(--color-wood);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--t-mid), color var(--t-mid), gap var(--t-mid);
    align-self: flex-start;
}

.produto-card__cta:hover,
.produto-card__cta:focus-visible {
    background: var(--color-gold);
    color: var(--color-wood-dark);
    gap: 0.7rem;
}

.produto-card__cta svg {
    transition: transform var(--t-fast);
}

.produto-card__cta:hover svg {
    transform: translateX(3px);
}

/* ============================================
   Breakpoints
   ============================================ */
@media (max-width: 1023px) {
    .o-esquina__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 640px) {
    .section {
        padding: var(--space-lg) 0;
    }

    .o-esquina__diferenciais {
        grid-template-columns: 1fr;
    }

    .o-esquina__gallery {
        grid-template-columns: 1fr;
    }

    .o-esquina__gallery-item:first-child {
        grid-column: 1 / -1;
    }
}

/* ---------- Produto highlight: Seja um Fundador ---------- */
.produto-card--highlight {
    background: linear-gradient(160deg, #fffaf0 0%, #fff 55%, #fff1cf 100%);
    border: 2px solid var(--color-gold);
    box-shadow: 0 18px 50px rgba(212, 175, 55, 0.22), 0 0 0 1px rgba(212, 175, 55, 0.15);
    position: relative;
}

.produto-card--highlight::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), transparent 60%);
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
}

.produto-card__badge--gold {
    background: linear-gradient(135deg, var(--color-gold), #e8c765);
    color: var(--color-wood-dark);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.produto-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.produto-card__list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-wood);
}

.produto-card__list li::before {
    content: "\2728";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.85rem;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
}

.produto-card__highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 var(--space-sm);
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(232, 199, 101, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-gold-dark);
    text-transform: uppercase;
    align-self: flex-start;
}
