/* ==========================================================================
   Awwwards-Level CSS - Tradição Gourmet (Mobile-First)
   ========================================================================== */

:root {
    --color-bg: #090807;
    --color-bg-light: #11100e;
    --color-text: #f0ebe1;
    --color-text-muted: #8b857a;
    --color-accent: #d4af37; /* Premium Gold */
    --color-accent-hover: #e5c355;
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Fluid Typography using Clamp */
    --step--2: clamp(0.78rem, calc(0.77rem + 0.03vw), 0.80rem);
    --step--1: clamp(0.94rem, calc(0.92rem + 0.11vw), 1.00rem);
    --step-0: clamp(1.13rem, calc(1.08rem + 0.22vw), 1.25rem);
    --step-1: clamp(1.35rem, calc(1.28rem + 0.37vw), 1.56rem);
    --step-2: clamp(1.62rem, calc(1.50rem + 0.58vw), 1.95rem);
    --step-3: clamp(1.94rem, calc(1.77rem + 0.87vw), 2.44rem);
    --step-4: clamp(2.33rem, calc(2.08rem + 1.25vw), 3.05rem);
    --step-5: clamp(2.80rem, calc(2.45rem + 1.77vw), 3.82rem);
    --step-6: clamp(3.36rem, calc(2.87rem + 2.45vw), 4.77rem);
    --step-hero: clamp(4.00rem, calc(3.00rem + 6.00vw), 8.00rem);
    
    /* Spacing */
    --space-s: clamp(1rem, 2vw, 1.5rem);
    --space-m: clamp(2rem, 4vw, 3rem);
    --space-l: clamp(4rem, 8vw, 6rem);
    --space-xl: clamp(6rem, 12vw, 10rem);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100dvh;
    background: var(--color-bg);
    z-index: 9998;
}
.anim-logo {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    z-index: 9999;
    opacity: 0;
}
body.loading {
    overflow: hidden;
}

/* ==========================================================================
   Hero cinematic additional elements
   ========================================================================== */
.hero-logo {
    width: clamp(120px, 30vw, 200px);
    opacity: 0; /* Keeps the space, but is replaced visually by .anim-logo */
    margin-bottom: 20px;
}
.desktop-break { display: none; }
@media (min-width: 1024px) {
    .desktop-break { display: block; }
}

.swipe-hint {
    position: absolute;
    right: var(--space-m);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    opacity: 0.6;
    z-index: 10;
    pointer-events: none;
    animation: bounceRight 1.5s infinite;
}
@keyframes bounceRight {
    0%, 100% { transform: translate(0, -50%); }
    50% { transform: translate(8px, -50%); }
}
@media (min-width: 768px) {
    .swipe-hint { display: none; }
}

/* ==========================================================================
   Buttons (Magnetic Style)
   ========================================================================== */
.btn-primary-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    color: var(--color-accent);
    text-decoration: none;
    font-size: var(--step--1);
    font-weight: 400;
    font-family: var(--font-serif);
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease;
}
@media (min-width: 768px) {
    .btn-primary-magnetic {
        padding: 20px 40px;
        font-size: var(--step-0);
    }
}
.btn-primary-magnetic::before {
    content: '';
    position: absolute;
    top: 100%; left: 0; width: 100%; height: 100%;
    background: var(--color-accent);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}
.btn-primary-magnetic:hover::before {
    transform: translateY(-100%);
}
.btn-primary-magnetic:hover {
    color: var(--color-bg);
    border-color: var(--color-accent);
}
.btn-text {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Hero Cinematic
   ========================================================================== */
.hero-cinematic {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: var(--space-l);
    overflow: hidden;
}
.video-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%) scale(1.3);
    pointer-events: none;
}
.video-blur-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(9, 8, 7, 0.6); /* escurecimento extra inicial */
    z-index: 1;
    pointer-events: none;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(9,8,7,1) 0%, rgba(9,8,7,0.7) 50%, rgba(9,8,7,0.3) 100%);
}
@media (min-width: 768px) {
    .video-overlay {
        background: linear-gradient(to top, rgba(9,8,7,1) 0%, rgba(9,8,7,0.4) 50%, rgba(9,8,7,0.1) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 5vh;
}
.hero-titles h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: var(--space-s);
    white-space: normal;
}
@media (min-width: 768px) {
    .hero-titles h1 {
        white-space: nowrap;
        line-height: 0.9;
    }
}
.hero-titles h1 span {
    font-style: italic;
    color: var(--color-accent);
}
.hero-subtitle {
    font-size: var(--step-0);
    max-width: 900px;
    color: #c4beb4;
    margin-bottom: var(--space-m);
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-s);
    right: var(--space-m);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-text-muted);
    font-size: var(--step--2);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.mouse {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.mouse::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background: var(--color-accent);
    animation: scrollMouse 1.5s infinite;
}
@keyframes scrollMouse {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ==========================================================================
   The Secret Section
   ========================================================================== */
.the-secret {
    padding: var(--space-xl) var(--space-m);
    background: var(--color-bg);
}
.container-fluid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}
.secret-content h2 {
    font-family: var(--font-serif);
    font-size: var(--step-5);
    line-height: 1.1;
    font-weight: 400;
    max-width: 1000px;
    margin-bottom: var(--space-l);
}
.secret-details {
    margin-left: auto;
    max-width: 500px;
    font-size: var(--step-1);
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: var(--space-xl);
}
.secret-details strong {
    color: var(--color-text);
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-l);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-l);
}
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.feature-item {
    padding-right: var(--space-m);
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-s);
    color: var(--color-accent);
}
.feature-item h3 {
    font-size: var(--step-2);
    font-family: var(--font-serif);
    margin-bottom: 10px;
    font-weight: 400;
}
.feature-item p {
    font-size: var(--step-0);
    color: var(--color-text-muted);
}

/* ==========================================================================
   Masterpiece Showcase (Horizontal / Massive scale)
   ========================================================================== */
.masterpiece-showcase {
    padding: var(--space-xl) 0;
    background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-light) 20%, var(--color-bg-light) 100%);
    overflow: hidden;
}
.showcase-header {
    padding: 0 var(--space-m) var(--space-l);
}
.showcase-header h2 {
    font-family: var(--font-serif);
    font-size: var(--step-6);
    line-height: 1;
    font-weight: 400;
}
.showcase-header p {
    font-size: var(--step-1);
    color: var(--color-text-muted);
    margin-top: 20px;
}

.product-category-title {
    padding: 0 var(--space-m);
    margin-bottom: var(--space-m);
    text-align: center;
}
@media (min-width: 768px) {
    .product-category-title {
        text-align: left;
    }
}
.product-category-title h3 {
    font-family: var(--font-sans);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

/* Horizontal Scroll implementation (CSS base, driven by GSAP) */
.horizontal-scroll-container {
    width: 100%;
    /* Overflow auto for mobile fallback if JS fails, but hidden usually for GSAP */
    overflow-x: auto; 
    padding: 0 var(--space-m) var(--space-l);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
/* Hide scrollbar for horizontal scroll */
.horizontal-scroll-container::-webkit-scrollbar { display: none; }



.horizontal-scroll-wrapper {
    display: flex;
    gap: var(--space-m);
    width: max-content;
}

.showcase-card {
    width: 85vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
}
@media (min-width: 768px) {
    .showcase-card { width: 40vw; }
}
@media (min-width: 1024px) {
    .showcase-card { width: 30vw; }
}

.card-image-wrapper {
    width: 100%;
    height: 65vh; /* About 65% of viewport height */
    position: relative;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.card-image-wrapper img {
    height: 100%; /* Fits perfectly in the 65vh container */
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
}

.badge-best {
    position: absolute;
    top: 10%; right: 0;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 5px 15px;
    font-size: var(--step--2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 40px;
}

.card-info {
    text-align: center;
}
.card-info h4 {
    font-family: var(--font-serif);
    font-size: var(--step-3);
    font-weight: 400;
    margin-bottom: 5px;
}
.card-info span {
    font-size: var(--step-0);
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Ralados Grid */
.ralados-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-m);
    padding: 0 var(--space-m);
}
@media (min-width: 768px) {
    .ralados-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: var(--space-l);
    }
}

.ralado-item {
    text-align: center;
}
.ralado-item img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
    margin-bottom: var(--space-s);
    transform-origin: bottom center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ralado-item:hover img {
    transform: scale(1.05);
}
.ralado-item h4 {
    font-family: var(--font-serif);
    font-size: var(--step-2);
    font-weight: 400;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.grand-footer {
    padding: var(--space-xl) var(--space-m) var(--space-m);
    background: var(--color-bg);
    text-align: center;
}
.footer-cta {
    margin-bottom: var(--space-xl);
}
.footer-cta h2 {
    font-family: var(--font-serif);
    font-size: var(--step-6);
    font-weight: 400;
    margin-bottom: var(--space-m);
}
.massive-btn {
    font-size: var(--step-1);
    padding: 30px 60px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: var(--space-m);
}
.footer-logo {
    width: 120px;
    opacity: 0.5;
}
.footer-bottom p {
    color: var(--color-text-muted);
    font-size: var(--step--1);
}

/* UTILS */
.reveal-text {
    opacity: 0;
}
