/* ========================================
   RICH LIFE — Premium Brand Stylesheet
   ======================================== */

:root {
    --black: #000000;
    --dark: #080808;
    --dark-surface: #0e0e0e;
    --dark-card: #131313;
    --chrome-dark: #6b6b6b;
    --chrome: #a0a0a0;
    --chrome-light: #c8c8c8;
    --chrome-bright: #e8e8e8;
    --white: #f2f0eb;
    --gold: #c9a84c;
    --gold-dim: #8b7230;
    --gold-light: #e8c95a;
    --gold-bright: #f5d970;
    --midnight: #0d0d14;
    --font-gothic: 'Cinzel Decorative', serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== INTRO CURTAIN ========== */
.intro-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-curtain.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.intro-logo-img {
    max-width: 350px;
    width: 70vw;
    height: auto;
    opacity: 0;
    animation: introReveal 2s 0.3s var(--ease-out) forwards;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 72%);
}

@keyframes introReveal {
    0% { opacity: 0; transform: scale(0.8); filter: blur(10px); }
    50% { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ========== CURSOR SPOTLIGHT ========== */
.cursor-spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,192,192,0.025) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

/* ========== FILM GRAIN ========== */
.grain-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, transparent, var(--chrome), var(--gold), var(--chrome), transparent);
    z-index: 10000;
    pointer-events: none;
    transition: width 0.1s linear;
}

/* ========== SHIMMER LINE ========== */
.shimmer-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(218,165,32,0.3), transparent);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.shimmer-line.visible { opacity: 1; }

/* Particles Canvas */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== NAVIGATION ========== */
#main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all 0.4s var(--ease-out);
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    will-change: transform;
}

#main-nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.06);
    padding: 0.8rem 2rem;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s, height 0.4s var(--ease-out);
    filter: brightness(1.3);
}

.nav-logo:hover .nav-logo-img {
    opacity: 1;
}

#main-nav.scrolled .nav-logo-img {
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--chrome-dark);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--chrome-bright), transparent);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--chrome-bright); }
.nav-links a:hover::after { width: 100%; }

/* ========== HAMBURGER ========== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--chrome-light);
    position: absolute;
    left: 10px;
    transition: all 0.4s var(--ease-out);
}

.hamburger span:first-child { top: 16px; }
.hamburger span:last-child { top: 26px; }

.hamburger.active span:first-child {
    top: 21px;
    transform: rotate(45deg);
}

.hamburger.active span:last-child {
    top: 21px;
    transform: rotate(-45deg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-menu-inner a {
    color: var(--chrome-dark);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    transition: color 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.open .mobile-menu-inner a {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.3s;
}

.mobile-menu.open .mobile-menu-inner a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu-inner a:hover { color: var(--chrome-bright); }

/* ========== HERO ========== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--black);
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('assets/ferrari-hero.png') center/cover no-repeat;
    opacity: 0.06;
    filter: grayscale(0.8) brightness(0.35);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 45%, rgba(201,168,76,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, var(--black) 75%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-spacer { height: 80px; }

.hero-pre-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--chrome-dark);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeSlideUp 1s 0.3s var(--ease-out) forwards;
}

.hero-logo-wrap {
    opacity: 0;
    animation: fadeScale 1.2s 0.6s var(--ease-out) forwards;
}

.hero-logo-img {
    max-width: 700px;
    width: 90vw;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(192,192,192,0.08));
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 72%);
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--chrome-dark);
    margin-top: 2rem;
    opacity: 0;
    animation: fadeSlideUp 1s 1s var(--ease-out) forwards;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    opacity: 0;
    animation: fadeSlideUp 1s 1.2s var(--ease-out) forwards;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192,192,192,0.2), transparent);
}

.divider-diamond {
    color: var(--chrome-dark);
    font-size: 0.4rem;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--chrome);
    min-height: 1.5em;
    opacity: 0;
}

/* Hero staggered text animations */
.hero-anim {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.hero-anim.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SECTIONS SHARED ========== */
section {
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-gothic);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(180deg, var(--chrome-bright), var(--chrome-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.5rem auto 0;
    box-shadow: 0 0 12px rgba(201,168,76,0.2);
}

/* ========== ABOUT ========== */
#about {
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.about-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('assets/ferrari-about.png') center/cover no-repeat;
    opacity: 0.07;
    filter: grayscale(0.7) brightness(0.4);
    z-index: 0;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--black) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.6) 70%, var(--black) 100%);
    z-index: 0;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--chrome-light);
    margin-bottom: 1.5rem;
}

.about-body {
    color: var(--chrome);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(192,192,192,0.08);
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat-number {
    font-family: var(--font-gothic);
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--chrome-bright), var(--chrome));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--chrome-dark);
    margin-top: 0.4rem;
}

.contact-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--chrome-dark);
    letter-spacing: 2px;
    margin-top: 1.5rem;
}

/* ========== PRODUCTS ========== */
#products { background: var(--black); }

.product-cards {
    max-width: 700px;
    margin: 0 auto;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background: linear-gradient(145deg, rgba(18,18,18,0.95), rgba(8,8,8,0.98));
    border: 1px solid rgba(192,192,192,0.08);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--chrome), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(192,192,192,0.03), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192,192,192,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.product-card:hover::before { opacity: 1; }
.product-card:hover::after { opacity: 1; }

.product-card-image {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.product-strain-logo {
    width: 180px;
    height: auto;
    transition: transform 0.5s var(--ease-out);
    filter: brightness(0.9) contrast(1.1);
}

.product-card:hover .product-strain-logo {
    filter: brightness(1) contrast(1.15);
}

.product-card-info {
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-family: var(--font-gothic);
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--chrome-bright), var(--chrome-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.product-card-strain {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--chrome-dark) !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

.product-card p {
    color: var(--chrome);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-tag {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--chrome);
    padding: 6px 16px;
    border: 1px solid rgba(192,192,192,0.15);
    display: inline-block;
    transition: all 0.3s;
}

.product-card:hover .card-tag {
    color: var(--chrome-bright);
    border-color: rgba(192,192,192,0.3);
}

.coming-soon {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--chrome-dark);
}

@media (max-width: 640px) {
    .product-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
        gap: 1.5rem;
    }
    .product-strain-logo { width: 140px; }
}

/* ========== BRAND GUIDELINES ========== */
#brand {
    background: linear-gradient(180deg, var(--black), var(--dark-surface), var(--black));
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.brand-block {
    background: rgba(21,21,21,0.6);
    border: 1px solid rgba(192,192,192,0.06);
    padding: 2.5rem;
}

.brand-block.full-width { grid-column: 1 / -1; }

.brand-block h3 {
    font-family: var(--font-gothic);
    font-size: 1rem;
    color: var(--chrome-light);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(192,192,192,0.08);
}

.color-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.swatch { text-align: center; }

.swatch-color {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    border: 1px solid rgba(192,192,192,0.1);
    margin-bottom: 0.75rem;
}

.swatch span {
    font-size: 0.7rem;
    color: var(--chrome-dark);
    line-height: 1.5;
}

.type-samples {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.type-sample {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.type-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.type-preview {
    font-size: 1.8rem;
    color: var(--chrome-bright);
}

.type-preview.gothic { font-family: var(--font-gothic); }
.type-preview.serif { font-family: var(--font-serif); font-style: italic; }
.type-preview.sans { font-family: var(--font-sans); font-weight: 300; }

.type-name {
    font-size: 0.75rem;
    color: var(--chrome-dark);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pillar {
    text-align: center;
    padding: 1rem;
}

.pillar-icon {
    font-size: 0.6rem;
    margin-bottom: 1.2rem;
    color: var(--chrome-dark);
    letter-spacing: 4px;
}

.pillar h4 {
    font-family: var(--font-gothic);
    color: var(--chrome-light);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.pillar p {
    font-size: 0.85rem;
    color: var(--chrome-dark);
    line-height: 1.6;
}

/* ========== BANNERS ========== */
#banners { background: var(--black); }

.banner-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.banner-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(192,192,192,0.06);
    border-radius: 4px;
    transition: all 0.4s var(--ease-out);
}

.banner-item:hover {
    border-color: rgba(192,192,192,0.12);
    transform: translateY(-4px);
}

.banner-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.banner-item:hover img { transform: scale(1.05); }

.banner-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--chrome-dark);
    text-align: center;
}

/* ========== FOOTER ========== */
#contact {
    background: var(--black);
    padding: 6rem 2rem;
    text-align: center;
}

.contact-inner { max-width: 600px; margin: 0 auto; }

.contact-logo {
    max-width: 200px;
    width: 60%;
    margin-bottom: 0;
    filter: drop-shadow(0 0 20px rgba(192,192,192,0.05));
    opacity: 0.6;
}

.copyright {
    font-size: 0.6rem;
    color: rgba(107,107,107,0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--chrome-dark);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--chrome-bright);
}

.social-sep {
    color: rgba(107,107,107,0.3);
    font-size: 0.8rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
    visibility: hidden;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-links { display: none !important; }
    .hamburger { display: block !important; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .product-cards { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: 1fr; }
    .banner-gallery { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .color-swatches { grid-template-columns: repeat(2, 1fr); }
    .hero-logo-img { max-width: 350px; }
}

@media (max-width: 600px) {
    .section-container { padding: 5rem 1.5rem; }
    .about-stats { flex-direction: column; gap: 1rem; }
    .pillars { grid-template-columns: 1fr; }
}
