/* ============================================
   ESQUINA DA CACHAÇA — Base + Variáveis + Hero
   Etapa 1
   ============================================ */

/* ---------- Variáveis ---------- */
:root {
    /* Paleta primária */
    --color-gold: #D4AF37;
    --color-gold-light: #E8C765;
    --color-gold-dark: #A8861E;
    --color-wood: #3E2723;
    --color-wood-dark: #2A1A16;
    --color-beige: #fffdfa;
    --color-beige-dark: #E8D4B8;

    /* Paleta secundária */
    --color-bottle-green: #1B3B2B;
    --color-black-soft: #1A1A1A;
    --color-white: #FFFFFF;

    /* Tipografia */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Escala tipográfica fluida */
    --fs-hero: clamp(2.5rem, 6vw + 1rem, 5.5rem);
    --fs-h1: clamp(2rem, 4vw + 1rem, 3.5rem);
    --fs-h2: clamp(1.5rem, 2.5vw + 1rem, 2.5rem);
    --fs-h3: clamp(1.25rem, 1.5vw + 1rem, 1.75rem);
    --fs-body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
    --fs-small: 0.875rem;

    /* Espaçamento */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Layout */
    --container-max: 1280px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.35);

    /* Transições */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t-fast: 0.2s var(--ease);
    --t-mid: 0.4s var(--ease);
    --t-slow: 0.7s var(--ease);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-wood);
    background: var(--color-beige);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--color-wood);
}

::selection {
    background: var(--color-gold);
    color: var(--color-wood);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Utilitários ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-sm);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Botões ---------- */
.btn {
    --btn-py: 0.95rem;
    --btn-px: 2.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: var(--btn-py) var(--btn-px);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: transform var(--t-mid), box-shadow var(--t-mid), background var(--t-mid), color var(--t-mid);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
    color: var(--color-wood-dark);
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    isolation: isolate;
}

.btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    opacity: 0;
    transition: opacity var(--t-mid);
    z-index: -1;
}

.btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: skewX(-20deg);
    z-index: -1;
    pointer-events: none;
    transition: left 0.7s ease;
}

.btn--primary > * {
    position: relative;
    z-index: 1;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.65), 0 0 24px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: var(--color-wood-dark);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--primary:hover::before,
.btn--primary:focus-visible::before {
    opacity: 1;
}

.btn--primary:hover::after,
.btn--primary:focus-visible::after {
    left: 130%;
}

.btn--primary:active {
    transform: translateY(-1px) scale(1);
}

.btn--ghost {
    background: transparent;
    color: var(--color-beige);
    border: 2px solid var(--color-beige);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: var(--color-beige);
    color: var(--color-wood);
    transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 100%),
        linear-gradient(180deg, rgba(62, 39, 35, 0.5) 0%, rgba(26, 26, 26, 0.85) 100%);
    z-index: -1;
}

.hero__content {
    text-align: center;
    color: var(--color-beige);
    padding: var(--space-md) var(--space-sm);
    max-width: 900px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1.2s var(--ease) 0.3s forwards;
}

/* Banner pulsante */
.hero__banner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(232, 199, 101, 0.95));
    color: var(--color-wood-dark);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    border-radius: 50px;
    box-shadow: var(--shadow-gold);
    position: relative;
    animation: bannerGlow 2.4s ease-in-out infinite;
}

.hero__banner-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF3B30;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    animation: pulseDot 1.6s ease-out infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

@keyframes bannerGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
    }
    50% {
        box-shadow: 0 8px 32px rgba(212, 175, 55, 0.7), 0 0 60px rgba(212, 175, 55, 0.35);
    }
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 900;
    margin-bottom: var(--space-sm);
    color: var(--color-beige);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    text-align: center;
}

.hero__logo {
    display: block;
    width: clamp(200px, 38vw, 400px);
    height: auto;
    max-width: 100%;
    margin: 0 auto var(--space-sm);
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 24px rgba(212, 175, 55, 0.25));
    animation: hero-logo-in 1s var(--ease) both;
}

@keyframes hero-logo-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero__subtitle {
    font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.5rem);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    color: rgba(245, 230, 211, 0.92);
    letter-spacing: 0.02em;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

/* Indicador de scroll */
.hero__scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    animation: floatUpDown 2.4s ease-in-out infinite;
}

.hero__scroll-label {
    font-family: var(--font-display, "Playfair Display"), serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-beige);
    opacity: 0.78;
    transition: opacity var(--t-mid), color var(--t-mid);
}

.hero__scroll:hover .hero__scroll-label,
.hero__scroll:focus-visible .hero__scroll-label {
    opacity: 1;
    color: var(--color-gold);
}

.hero__scroll-mouse {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-beige);
    border-radius: 14px;
    position: relative;
    opacity: 0.8;
    transition: opacity var(--t-mid);
}

.hero__scroll-mouse:hover {
    opacity: 1;
}

.hero__scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

@keyframes floatUpDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Reveal classes (scroll) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Breakpoints ---------- */
@media (max-width: 640px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__banner {
        font-size: 0.75rem;
        padding: 0.5rem 1.1rem;
        letter-spacing: 0.12em;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-inline: var(--space-md);
    }
}
