/* ==========================================================================
   Secções da página principal
   ========================================================================== */

/* 03 · Hero ---------------------------------------------------------------- */
.hero {
    position: relative; display: grid; align-items: center; overflow: hidden;
    min-height: 780px; color: var(--sand);
    background:
        linear-gradient(90deg, rgba(26, 13, 7, 0.94) 0%, rgba(26, 13, 7, 0.6) 55%, rgba(26, 13, 7, 0.1) 100%),
        url("../img/desert.jpg") center / cover;
}
.hero__sun {
    position: absolute; right: 12%; top: 8%; width: 520px; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 140, 70, 0.55), rgba(232, 140, 70, 0) 65%);
    animation: sun-pulse 7s ease-in-out infinite;
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; padding-block: 72px; }
.hero__copy { display: grid; gap: 28px; justify-items: start; }
.hero h1 em { color: var(--orange); }
.hero__lead { max-width: 520px; color: rgba(246, 237, 224, 0.85); font-size: 1.0625rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px 44px; width: 100%; max-width: 520px; padding-top: 28px; border-top: 1px solid rgba(246, 237, 224, 0.2); }
.hero__stats dt { font: 800 10.5px/1.4 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246, 237, 224, 0.6); }
.hero__stats dd { font: 600 36px/1.1 var(--font-serif); }

.hero__bottles { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 560px; }
.bottle { height: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45)); }
.bottle--main { width: min(300px, 48%); animation: float 6s ease-in-out infinite; }
.bottle--second { width: min(250px, 40%); margin-right: -40px; margin-bottom: 24px; opacity: 0.95; animation: float 7s ease-in-out -2s infinite; }
.hero__tag {
    position: absolute; left: 0; bottom: 24px; display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; border-radius: 16px; background: var(--card); color: var(--ink);
}
.hero__tag img { width: 44px; }
.hero__tag span { display: grid; font-size: 13px; }
.hero__tag small { color: var(--ink-2); font-size: 11px; }

@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes sun-pulse { 50% { transform: scale(1.12); opacity: 0.7; } }

/* 04 · Faixa dos sabores --------------------------------------------------- */
.marquee { overflow: hidden; background: var(--dune); color: var(--night); }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding: 16px 28px 16px 0; font: italic 600 19px/1 var(--font-serif); white-space: nowrap; }
.marquee__group li { display: inline-flex; align-items: center; gap: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 05 · A Destilaria -------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about__text { display: grid; gap: 20px; justify-items: start; }
.about__text > p:not(.eyebrow) { color: var(--ink-2); }
.about__card { position: relative; overflow: hidden; border-radius: 28px; min-height: 420px; background: var(--cafe); color: var(--sand); }
.about__photo { position: absolute; inset: 0; background: url("../img/desert.jpg") center / cover; }
.about__factory { position: absolute; top: 18px; right: 18px; width: 150px; aspect-ratio: 1; border-radius: 18px; border: 4px solid var(--sand); }
.ft{
    position: relative;
    width: 90px;
    height: 20px;
    background: url('../img/destilaria-logo-brown.png'); background-position: center; background-size: cover;
}
.about__card figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 80px 24px 24px; background: linear-gradient(transparent, rgba(26, 13, 7, 0.9)); }
.about__card small { font: 800 10.5px/1.4 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.about__card strong { font: 600 24px/1.2 var(--font-serif); }

.mvv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.mvv .card { display: grid; gap: 12px; align-content: start; }
.mvv h3 { font-size: 22px; line-height: 1.2; }
.mvv p:last-child { color: var(--ink-2); font-size: 14.5px; }

.process { margin-top: clamp(56px, 7vw, 96px); }
.process__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 24px; }
.process__head p { max-width: 380px; color: var(--ink-2); font-size: 14.5px; }
.process__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; padding-top: 24px; border-top: 2px solid var(--ink); }
.process__num { font: 300 44px/1 var(--font-serif); color: var(--dune); }
.process__steps h4 { margin: 10px 0 6px; font-size: 19px; font-weight: 800; }
.process__steps p { color: var(--ink-2); font-size: 14.5px; }

/* 06 · A marca KANHOME ----------------------------------------------------- */
.brand { position: relative; overflow: hidden; background: #22120a; }
.brand__watermark { position: absolute; right: -6%; top: 50%; width: min(720px, 70%); transform: translateY(-50%); opacity: 0.05; pointer-events: none; }
.brand .container { position: relative; }
.brand__layout { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.brand__logo { width: min(100%, 380px); margin-inline: auto; }
.brand__layout > div { display: grid; gap: 20px; justify-items: start; }
.brand__signature { font: 800 12px/1.4 var(--font-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.brand__layout p:not(.eyebrow):not(.brand__signature) { color: rgba(246, 237, 224, 0.8); }
.brand blockquote { font: italic 400 clamp(20px, 2vw, 26px)/1.4 var(--font-serif); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: clamp(48px, 6vw, 80px); border: 1px solid rgba(212, 174, 98, 0.22); border-radius: 24px; }
.pillars li { display: grid; gap: 8px; align-content: start; padding: 28px; color: rgba(246, 237, 224, 0.72); font-size: 14px; }
.pillars li + li { border-left: 1px solid rgba(212, 174, 98, 0.22); }
.pillars .icon { color: var(--gold); }
.pillars h3 { font-size: 22px; color: var(--sand); }

/* 07 · Produtos ------------------------------------------------------------ */
.products { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 24px; align-items: start; margin-top: 28px; }
.filters + .products { margin-top: 28px; }

.flavor-panel {
    position: sticky; top: calc(var(--header-h) + 16px);
    overflow: hidden; border-radius: 28px; background: var(--fam, var(--fam-tradicionais)); color: #fff;
    transition: background-color 0.45s var(--ease);
}
.flavor-panel__number { position: absolute; left: 16px; top: 4px; font: 800 150px/1 var(--font-serif); color: rgba(255, 255, 255, 0.14); }
.flavor-panel__logo { position: absolute; right: 18px; top: 18px; width: 72px; }
.flavor-panel__stage { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 400px; padding-top: 24px; }
.flavor-panel__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.flavor-panel.has-photo .flavor-panel__stage::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.35)); pointer-events: none; }
.flavor-panel.has-photo .flavor-panel__number, .flavor-panel.has-photo .flavor-panel__logo { z-index: 1; }
.flavor-panel.has-photo .flavor-panel__number { color: rgba(255, 255, 255, 0.28); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
.flavor-panel__photo[hidden], .flavor-panel__bottle[hidden] { display: none; }
.flavor-panel__bottle { width: auto; height: 340px; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.4)); transition: height 0.45s var(--ease); }
.flavor-panel[data-size="50"] .flavor-panel__bottle { height: 190px; }
.flavor-panel__body { display: grid; gap: 14px; padding: 24px; background: rgba(0, 0, 0, 0.22); }
.flavor-panel__body h3 { font-size: 36px; font-weight: 800; }
.flavor-panel__body > p { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.flavor-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.price { display: grid; text-align: right; }
.price span { font: 800 9.5px/1.4 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
.price strong { font: 600 24px/1.2 var(--font-serif); }
.flavor-panel__link { justify-self: center; font-size: 13px; opacity: 0.8; }

.flavor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.flavor-grid li[hidden] { display: none; }
.flavor-card {
    display: grid; gap: 4px; width: 100%; padding: 16px; text-align: left;
    border: 1px solid rgba(42, 26, 16, 0.1); border-radius: 18px; background: var(--card);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, color 0.3s;
}
.flavor-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(42, 26, 16, 0.14); }
.flavor-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.flavor-card__num { font: 400 13px/1 var(--font-serif); opacity: 0.6; }
.flavor-card strong { font: 800 18px/1.2 var(--font-serif); }
.flavor-card small { font-size: 12px; opacity: 0.7; }
.flavor-card__price { margin-top: 8px; font-size: 12px; font-weight: 800; }
.flavor-card[aria-pressed="true"] { background: var(--fam); border-color: var(--fam); color: #fff; }
.flavor-card[aria-pressed="true"] .tag { background: rgba(255, 255, 255, 0.22); }

.family-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; margin-top: 40px; }
.family-legend > div { padding-top: 12px; border-top: 3px solid var(--fam); }
.family-legend dt { font: 800 15px/1.3 var(--font-serif); }
.family-legend dt em { font-weight: 400; font-size: 12px; color: var(--ink-2); }
.family-legend dd { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }

/* Filtros de família: ponto com a cor de cada família */
.filters .family--tradicionais .filter__dot,
.filters .family--intensos .filter__dot,
.filters .family--suaves .filter__dot,
.filters .family--refrescantes .filter__dot { background: var(--fam); }
.filters .filter[aria-pressed="true"] .filter__dot { box-shadow: 0 0 0 2px rgba(246, 237, 224, 0.5); }

/* 08 · Linhas comerciais --------------------------------------------------- */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.line { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: 28px; }
.line header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.line h3 { font-size: 40px; font-weight: 800; letter-spacing: 0.04em; }
.line header span { font: 800 11px/1 var(--font-sans); letter-spacing: 0.22em; text-transform: uppercase; }
.line--basic { background: var(--card); }
.line--basic header span { color: var(--terracotta); }
.line--premium { background: var(--cafe); color: var(--sand); }
.line--premium h3, .line--premium header span { color: var(--gold); }
.line--premium p { color: rgba(246, 237, 224, 0.8); }
.line--premium .placeholder-note { background: rgba(255, 255, 255, 0.08); color: var(--sand); }

/* 09 · Guia de consumo ----------------------------------------------------- */
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.guide-card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 24px; background: var(--fam); color: #fff; }
.guide-card--dark { background: var(--cafe); }
.guide-card h3 { font-size: 24px; font-weight: 800; }
.guide-card p { font-size: 14px; color: rgba(255, 255, 255, 0.85); }

/* 10 · Álcool etílico ------------------------------------------------------ */
.section--ethanol { background: #e3ede8; color: #12302c; }
.ethanol { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ethanol__visual { position: relative; display: grid; place-items: center; min-height: 380px; overflow: hidden; border-radius: 28px; background: #d2e0da; }
.ethanol__bg { position: absolute; font: 800 min(260px, 40vw)/1 var(--font-serif); color: rgba(31, 74, 68, 0.14); }
.jerrycan {
    position: relative; display: grid; justify-items: center; gap: 4px; width: 190px; padding: 52px 20px 30px;
    border: 2px solid var(--ethanol); border-radius: 18px; background: #fff; text-align: center;
    box-shadow: 0 24px 40px rgba(31, 74, 68, 0.25);
}
.jerrycan__cap { position: absolute; top: -18px; right: 22px; width: 44px; height: 22px; border-radius: 6px 6px 0 0; background: var(--ethanol); }
.jerrycan small { font: 800 9px/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ethanol); }
.jerrycan strong { font: 800 52px/1.1 var(--font-serif); color: var(--ethanol); }
.jerrycan span:last-child { font-size: 12px; font-weight: 700; color: var(--ethanol); }
.ethanol__copy { display: grid; gap: 20px; justify-items: start; }
.ethanol__copy em { color: var(--ethanol); }
.ethanol__copy > p:not(.eyebrow) { color: #2f504b; }
.spec-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.spec-cards > div { padding: 14px 20px; min-width: 130px; border-radius: 16px; background: #fff; }
.spec-cards dt { font: 800 10px/1.4 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: #46665f; }
.spec-cards dd { font: 600 24px/1.3 var(--font-serif); color: var(--ethanol); }
.ethanol__notice { font-size: 13.5px; }

/* 11 · Presença e eventos -------------------------------------------------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.event { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(212, 174, 98, 0.15); border-radius: 22px; background: #2a160c; }
.event__photo { height: 170px; }
.event__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event__num { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); position: absolute; left: 18px; bottom: 8px; font: 300 40px/1 var(--font-serif); color: var(--orange); }
.event__photo .placeholder__label { position: absolute; right: 14px; bottom: 14px; background: transparent; color: rgba(246, 237, 224, 0.5); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.event__body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 26px; }
.event__body h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.event__body p:last-child { font-size: 13.5px; color: rgba(246, 237, 224, 0.7); }
.event__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--orange); font-weight: 800; font-size: 13px; text-decoration: none; }
.event__more:hover { text-decoration: underline; }
.event--cta { display: grid; gap: 14px; align-content: start; justify-items: start; padding: 28px; border: 0; background: var(--dune); color: var(--night); }
.event--cta .eyebrow { color: var(--night); }
.event--cta h3 { font-size: 26px; font-weight: 800; }

/* 12 · Galeria ------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); grid-auto-rows: 240px; gap: 14px; }
.gallery li[hidden] { display: none; }
.gallery__item { position: relative; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 20px; }
.gallery__item:not(.placeholder) { background: #2f1a0f; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__caption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(26, 13, 7, 0.78); color: var(--sand); font: 700 11px/1.3 var(--font-sans); }

/* Faixa de revenda --------------------------------------------------------- */
.resale { padding-block: clamp(56px, 7vw, 96px); color: var(--sand); background: linear-gradient(90deg, rgba(26, 13, 7, 0.92), rgba(26, 13, 7, 0.45)), url("../img/desert.jpg") center / cover; }
.resale__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; }
.resale__inner > div:first-child { display: grid; gap: 14px; max-width: 620px; }
.resale h2 { font-size: clamp(32px, 4vw, 52px); }
.resale em { color: var(--orange); }
.resale p { color: rgba(246, 237, 224, 0.82); }

/* Perguntas frequentes ----------------------------------------------------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq header { display: grid; gap: 16px; }
.faq header p:last-child { color: var(--ink-2); font-size: 14px; }
.faq header a { color: var(--terracotta); }

/* 15 · Contactos ----------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.contact__cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; padding: 20px 22px; border-radius: 20px; background: var(--card); }
.info-card__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--night); color: var(--sand); }
.info-card h3 { margin-bottom: 4px; font: 800 15px/1.3 var(--font-serif); }
.info-card p, .info-card dd { font-size: 14px; color: var(--ink-2); }
.info-card a { color: var(--terracotta); font-weight: 700; word-break: break-word; }
.mail-list dt { margin-top: 8px; font: 800 10px/1.4 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

.map { position: relative; display: grid; justify-items: center; gap: 16px; margin-top: 28px; overflow: hidden; border-radius: 28px; padding-bottom: 20px; background: #e0cdb3; }
.map iframe { width: 100%; height: 380px; border: 0; }
.map__placeholder { display: grid; justify-items: center; gap: 10px; width: 100%; padding: 60px 20px 28px; text-align: center; }
.map__pin { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--dune); color: var(--night); }
.map__placeholder strong { font: 800 20px/1.3 var(--font-serif); }

/* Página de sabor ---------------------------------------------------------- */
.flavor-page__inner { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.flavor-page__visual { position: relative; display: grid; place-items: end center; min-height: 480px; padding: 32px; overflow: hidden; border-radius: 28px; background: var(--fam); }
.flavor-page__visual .flavor-page__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.flavor-page__visual img { position: relative; width: auto; height: 400px; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.4)); }
.flavor-page__inner > div:last-child { display: grid; gap: 18px; justify-items: start; }
.flavor-page .spec-list { width: 100%; margin: 6px 0; }

/* Responsivo --------------------------------------------------------------- */
@media (max-width: 1199px) {
    .products { grid-template-columns: 1fr; }
    .flavor-panel { position: static; }
}

@media (max-width: 960px) {
    .hero { min-height: 0; }
    .hero__inner, .about, .brand__layout, .ethanol, .faq, .contact, .flavor-page__inner { grid-template-columns: 1fr; }
    .hero__bottles { min-height: 420px; }
    .bottle--main { width: min(220px, 46%); }
    .bottle--second { width: min(180px, 38%); }
    .hero__sun { right: -20%; width: 380px; }
    .pillars li + li { border-left: 0; border-top: 1px solid rgba(212, 174, 98, 0.22); }
    .accordion__trigger { font-size: 17px; }
}

@media (max-width: 480px) {
    h1 { font-size: 46px; }
    .btn-row .btn, .hero__copy .btn-row, .hero__copy .btn { width: 100%; }
    .hero__stats { gap: 20px 28px; }
    .hero__stats dd { font-size: 30px; }
    .hero__tag { position: static; margin-top: 12px; }
    .hero__bottles { flex-wrap: wrap; justify-content: center; }
    .flavor-grid { grid-template-columns: repeat(2, 1fr); }
    .filters:not([aria-label="Filtrar galeria"]) { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .flavor-panel__number { font-size: 110px; }
    .gallery { grid-auto-rows: 200px; }
    .resale .btn-row { width: 100%; }
}
