/* ==========================================================================
   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 {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader-logo {
    width: 150px;
    opacity: 0;
}
body.loading {
    overflow: hidden;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: var(--space-s) var(--space-m);
    z-index: 100;
    mix-blend-mode: difference;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    height: 30px; /* Small default for mobile */
}
@media (min-width: 768px) {
    .brand-logo { height: 40px; }
}

.contact-btn {
    font-size: var(--step--1);
    color: var(--color-bg);
    background: var(--color-text);
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-btn:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Buttons (Magnetic Style)
   ========================================================================== */
.btn-primary-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    color: var(--color-accent);
    text-decoration: none;
    font-size: var(--step-0);
    font-weight: 400;
    font-family: var(--font-serif);
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease;
}
.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: flex-end; /* Align content to bottom left */
    padding: var(--space-l);
    overflow: hidden;
}
.video-wrapper {
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    z-index: 0;
}
.video-wrapper iframe {
    width: 100%; height: 100%;
    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.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: var(--step-hero);
    line-height: 0.9;
    font-weight: 400;
    margin-bottom: var(--space-s);
}
.hero-titles h1 span {
    font-style: italic;
    color: var(--color-accent);
}
.hero-subtitle {
    font-size: var(--step-0);
    max-width: 600px;
    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: var(--color-bg-light);
    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);
}
.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);
}
/* Hide scrollbar for horizontal scroll */
.horizontal-scroll-container::-webkit-scrollbar { display: none; }

.horizontal-scroll-wrapper {
    display: flex;
    gap: 10vw; /* Massive gap */
    width: max-content;
}

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

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    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: var(--space-s);
}

.card-image-wrapper img {
    height: 120%; /* Bleed out of the container to look huge */
    max-height: none;
    max-width: none;
    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-l);
    padding: 0 var(--space-m);
}
@media (min-width: 768px) {
    .ralados-grid { grid-template-columns: repeat(3, 1fr); }
}

.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;
}
