/* --- LOCAL FONTS --- */
@font-face {
    font-family: 'Cinzel';
    src: url('../assets/fonts/Cinzel-VariableFont_wght.woff2') format('woff2-variations'),
        url('../assets/fonts/Cinzel-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-VariableFont_wght.woff2') format('woff2-variations'),
        url('../assets/fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2-variations'),
        url('../assets/fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* --- VARIABLES & RESET --- */
:root {
    --color-black: #0b0b0b;
    --color-dark-grey: #1a1a1a;
    --color-gold: #D5B275;
    --color-gold-hover: #e5cba0;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;

    --container-width: 1200px;
    --spacing-section: 120px;

    /* Mobile Menu Background Config */
    --menu-bg-pos-x: 30%;
    /* Right cut-off */
    --menu-bg-pos-y: 90%;
    /* Lower half */
    --menu-bg-size: 300px;
    --menu-bg-opacity: 0.15;
    /* Opacity control */
}

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

body {
    background-color: var(--color-black);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

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

section,
footer {
    scroll-margin-top: 100px;
    /* Offset for fixed header */
}

@media (max-width: 900px) {

    section,
    footer {
        scroll-margin-top: 20px;
        /* Increased offset for mobile */
    }
}

h1,
h2,
h3,
h4,
.eyebrow {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- UTILITIES --- */
.eyebrow {
    font-family: var(--font-body);
    /* Montserrat */
    font-weight: 500;
    /* Slightly bolder for small text */
    color: var(--color-gold);
    letter-spacing: 0.3em;
    /* Adjustable spacing */
    font-size: 0.85rem;
    display: block;
    display: block;
    margin-bottom: 16px;
}

.no-scroll {
    overflow: hidden;
}

.btn-gold {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
    margin-top: 32px;
}

.btn-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(11, 11, 11, 0.85);
    /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    /* Adjustable height for navbar */
    width: auto;
    /* filter: brightness(0) invert(1); */
    /* Ensure white logo if SVG is black */
    /* If SVG is already gold/correct, remove filter */
}

/* If the logo should be gold */
/* .nav-logo-img { filter: none; } */


.nav-links {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.btn-nav-gold {
    border: 1px solid var(--color-gold);
    padding: 10px 24px;
    color: var(--color-gold) !important;
}

.btn-nav-gold:hover {
    background-color: var(--color-gold);
    color: #000 !important;
}

.mobile-socials {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

/* Hamburger Open State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Responsive Nav */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        /* Replaces left: 0 */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #0b0b0b;
        background-color: #0b0b0b;
        display: flex;
        flex-direction: column;
        /* Stack list and socials */
        justify-content: space-between;
        /* Spread content */
        align-items: center;
        padding-top: 160px;
        padding-bottom: 60px;
        /* Space for socials at bottom */
        transform: translateX(100%);
        /* Hidden to the right */
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        /* Ensure stacking context for pseudo-el */
        position: fixed;
        overflow: hidden;
        /* prevents image form spilling out if sized huge */
    }

    /* Mobile Menu Background via Pseudo-element for Opacity */
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../assets/truffle.svg');
        background-repeat: no-repeat;
        background-position: var(--menu-bg-pos-x) var(--menu-bg-pos-y);
        background-size: var(--menu-bg-size);
        opacity: var(--menu-bg-opacity);
        pointer-events: none;
        z-index: -1;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        margin-bottom: auto;
        /* Push socials to bottom if space allows */
    }

    .mobile-socials {
        display: flex;
        gap: 12px;
        margin-top: 40px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

/* --- HERO SECTION (Split) --- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.hero-split-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Fixes button width stretching */
    padding: 0 8%;
    max-width: 950px;
    /* Limit content width for readability */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-content h1 {
    font-size: 4rem;
    /* Slightly larger for impact */
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff 20%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subline {
    font-size: 1.2rem;
    color: #ddd;
    /* Brighter for contrast over image */
    font-weight: 400;
    max-width: 550px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6) contrast(1.1);
    /* Darker for text readability */
}

/* Remove old gradient overlay as we use content bg now */
.hero-image-wrapper::after {
    display: none;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: var(--spacing-section) 0;
    position: relative;
    background-color: #0d0d0d;
    /* Darker background to match Knowledge section */
}

.bg-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 95%;
    /* Covers text column + slight overlap */
    height: 100%;
    background-image: url('../assets/landscape.png');
    background-size: contain;
    /* Changed from cover to contain to prevent clipping */
    background-repeat: no-repeat;
    background-position: left center;
    /* Align left and vertically center */
    opacity: 0.1;
    /* Subtle background */
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    /* Soft fade out to the right */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    color: #fff;
    word-wrap: break-word;
}

.text-content p {
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 350;
}

.about-image {
    position: relative;
}

.about-image img {
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.frame-gold {
    position: absolute;
    top: -36px;
    right: -36px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-gold);
    z-index: 1;
    transition: transform 0.5s ease;
}

.about-image:hover .frame-gold {
    transform: translate(8px, -8px);
}

.eyebrow-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.gold-line {
    height: 1px;
    width: 60px;
    background-color: var(--color-gold);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-split-container {
        flex-direction: column-reverse;
        /* Image on top on mobile */
    }

    .hero-image-wrapper {
        flex: 0 0 50vh;
    }

    .hero-content {
        padding: 60px 24px;
        text-align: center;
        align-items: center;
        /* Center align on mobile */
        max-width: 100%;
        background: rgba(0, 0, 0, 0.7);
        /* uniform dark overlay for mobile */
    }

    .hero-content h1 {
        font-size: 2.8rem;
        word-wrap: break-word;
        /* Ensure clear break */
        hyphens: auto;
        /* Optional: adds hyphens if supported and needed */
    }

    .subline {
        margin: 0 auto;
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .bg-illustration {
        width: 100%;
        height: 400px;
        top: auto;
        bottom: 0;
        background-position: center 150px;
        background-size: 100% auto;
        /* Fit width, keep aspect ratio */
        -webkit-mask-image: none;
        mask-image: none;
        /* Remove fade mask to show full illustration */
        opacity: 0.15;
    }

    /* Fix overflow for gold frame on mobile - Place it behind image to the top-right (relative to image) but avoid overflow */
    .frame-gold {
        top: -15px;
        left: 15px;
        right: auto;
        /* Reset right */
        width: 100%;
        height: 100%;
    }

    .about-text h2 {
        hyphens: auto;
        word-break: break-word;
    }
}

/* Closing max-width: 900px here */

/* --- VALUES SECTION --- */
.values-section {
    padding: var(--spacing-section) 0;
    background-color: #080808;
}

.section-header-center {
    text-align: center;
    margin-bottom: 80px;
}

.section-header-center .eyebrow {
    margin: 0 auto 16px;
    display: inline-block;
}

.section-header-center h2 {
    font-size: 2.5rem;
    color: #fff;
}

.values-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
}

.value-item {
    flex: 1;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.5) 100%);
    transition: transform 0.4s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    border-color: rgba(213, 178, 117, 0.3);
}

.value-icon {
    margin-bottom: 24px;
    color: var(--color-gold);
}

.value-item h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #fff;
    font-family: var(--font-heading);
}

.value-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* --- CAROUSEL NAVIGATION --- */
.carousel-nav {
    position: absolute;
    right: 60px;
    /* Always 24px from screen edge */
    top: calc(var(--spacing-section) + 85px);
    /* Positioned below header text: 120px padding + approx text height */
    bottom: auto;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.nav-btn {
    width: 40px;
    /* Smaller size (was 48px) */
    height: 40px;
    /* Smaller size (was 48px) */
    border: 1px solid var(--color-gold);
    background: transparent;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.nav-btn svg {
    width: 20px;
    /* Smaller icon */
    height: 20px;
}

.nav-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    transform: scale(1.05);
}

/* Mobile adjust */
@media (max-width: 900px) {
    .carousel-nav {
        display: none;
    }
}


/* --- PRODUCTS SECTION --- */
.products-section {
    padding: var(--spacing-section) 0;
    background-color: var(--color-black);
    overflow: hidden;
    position: relative;
    /* Anchor for absolute nav buttons */
}

.carousel-container {
    width: 100%;
    padding-left: calc((100vw - var(--container-width)) / 2);
    /* Start align with container */
}

/* Fallback if calc is tricky on some screens */
@media (max-width: 1250px) {
    .carousel-container {
        padding-left: 24px;
    }
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    padding-right: 40px;
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 320px;
    background-color: #0f0f0f;
    border: 1px solid #1a1a1a;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--color-gold);
}

.product-image {
    height: 300px;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    opacity: 1;
}

.product-info {
    padding: 30px;
    text-align: left;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #fff;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    min-height: 48px;
}

.btn-text-gold {
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.btn-text-gold:hover {
    border-bottom-color: var(--color-gold);
}

@media (max-width: 768px) {
    .values-grid {
        flex-direction: column;
    }
}

/* --- KNOWLEDGE SECTION --- */
.knowledge-section {
    padding: var(--spacing-section) 0;
    position: relative;
    background-color: #080808;
}

.knowledge-container {
    display: flex;
    gap: 80px;
    /* More space between tabs and content */
    align-items: flex-start;
    position: relative;
    z-index: 2;
}


/* --- MOBILE SCROLL HINT --- */
.mobile-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    color: #9C7F48;
    /* Darker, subtle gold tone (approx 30% darker than main gold) */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 24px;
    /* Counteract container padding for visual centering if needed, or just let it be */
}

.mobile-scroll-hint svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    /* Matches text color */
}

/* Removed animation keyframes */

@media (max-width: 900px) {
    .product-card {
        min-width: 260px;
        /* Smaller width to show part of next card */
        width: 75vw;
    }

    .product-image {
        height: 250px;
        /* Reduced height (~15% less than 300px) to match narrower width */
    }

    .product-info {
        padding: 20px;
        /* Reduced padding */
    }

    .mobile-scroll-hint {
        display: flex;
    }

    /* Adjust container padding to ensure hint is visible and aligned */
    .carousel-container {
        padding-bottom: 20px;
    }
}

.knowledge-nav {
    flex: 1;
    z-index: 2;
}

.knowledge-nav h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
}

.tabs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tab-btn {
    background: transparent;
    border: none;
    border-left: 2px solid #333;
    padding: 24px;
    text-align: left;
    cursor: pointer;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.tab-btn.active,
.tab-btn:hover {
    border-left-color: var(--color-gold);
    background: linear-gradient(90deg, rgba(213, 178, 117, 0.05), transparent);
    opacity: 1;
}

.tab-num {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.5rem;
}

.tab-info h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
}

.tab-info p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.knowledge-content-wrapper {
    flex: 1.5;
    position: relative;
    min-height: 500px;
}

.content-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    transform: translateY(20px);
}

.content-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.content-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.6);
}

.content-text-overlay {
    position: absolute;
    bottom: -30px;
    /* Moves card lower */
    right: -30px;
    /* Moves card to right */
    background: #000000d6;
    padding: 32px;
    width: 90%;
    /* Wider card */
    max-width: 500px;
    border-top: 2px solid var(--color-gold);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.content-text-overlay h3 {
    color: var(--color-gold);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.content-text-overlay p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #ccc;
}

/* --- KNOWLEDGE MOBILE --- */
@media (max-width: 900px) {
    .knowledge-container {
        flex-direction: column;
        gap: 40px;
    }

    .content-card {
        height: 400px;
        /* Taller image area to allow overlaps */
        margin-bottom: 60px;
        /* Space for the overlapping card */
    }

    .content-text-overlay {
        width: 110%;
        /* Adjusted from 110% to prevent overflow */
        bottom: -50px;
        /* Less overlap vertically */
        right: auto;
        left: 10px;
        /* Start from edge */
        padding: 24px 50px 24px 24px;
        /* Ensure text has space from edges */
        box-sizing: border-box;
        /* Important to include padding in width */
    }

    .content-text-overlay h3 {
        font-size: 1.2rem;
        /* Smaller heading */
    }

    .content-text-overlay p {
        font-size: 0.85rem;
        /* Smaller text */
    }
}

/* --- B2B SECTION --- */
.b2b-section {
    padding: var(--spacing-section) 0;
    position: relative;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.b2b-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/slate.jpg');
    /* Texture */
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    /* Fix for blurriness on some screens */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

.b2b-content-box {
    position: relative;
    z-index: 1;
    border: 1px solid var(--color-gold);
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.655);
    backdrop-filter: blur(0px);
}

.b2b-content-box h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 24px;
}

.b2b-content-box p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 0;
    /* Button has margin-top */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .b2b-content-box {
        width: auto;
        max-width: none;
        margin: 0 5px;
        padding: 60px 24px;
    }

    .b2b-content-box h2 {
        font-size: 2rem;
    }
}

/* --- PARTNERS SECTION --- */
.partners-section {
    padding: 80px 0 120px;
    background-color: var(--color-black);
    /* Default background */
    border-top: 1px solid #1a1a1a;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}

.partner-card {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 260px;
    /* Fixed width for flex grid */
    background-color: #0b0b0b;
    border: 1px solid #222;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0px;
}

.partner-logo {
    max-width: 120px;
    /* Default max width */
    max-height: 80px;
    /* Default max height */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

/* Individual sizing */
.logo-jackys {
    max-width: 110px;
}

.logo-fenix {
    max-width: 100px;
}

.logo-belvedere {
    max-width: 130px;
}

.logo-labussola {
    max-width: 120px;
}

.logo-weinbar {
    max-width: 110px;
}

.logo-thegrill {
    max-width: 100px;
}

.logo-lapolyp {
    max-width: 110px;
}

.logo-italian {
    max-width: 110px;
}

.logo-goldriver {
    max-width: 110px;
}

.logo-enza {
    max-width: 110px;
}


.partner-card:hover {
    border-color: var(--color-gold);
    background-color: #111;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);

    /* OPTIONAL: To color logos Gold on hover, uncomment the lines below: */
    /*
    filter: none;
    mix-blend-mode: normal; 
    */
}

@media (max-width: 900px) {
    .partners-grid {
        gap: 20px;
    }

    .partner-card {
        width: 46%;
        /* 2 per row */
    }
}

/* --- FOOTER --- */
.main-footer {
    background-color: #050505;
    padding-top: 80px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo-img {
    max-width: 180px;
    /* Adjustable size for footer */
    height: auto;
}



.text-content .signature-img {
    display: block;
    height: 60px;
    width: auto;
    margin-top: 32px;
}

.brand-sub {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col address {
    font-style: normal;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    /* Match address font size */
    line-height: 1.8;
    /* Match address line height */
    font-family: inherit;
}

.footer-col a:hover {
    color: #fff;
}

.footer-contact-info {
    margin-top: 24px;
}

.footer-contact-info a {
    display: block !important;
    /* Ensure they stack */
    margin-bottom: 4px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #444;
    margin-top: 24px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #fff;
    flex: 1;
    font-family: var(--font-body);
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--color-gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #111;
    padding-top: 24px;
    padding-bottom: 24px;
    /* Added for vertical centering */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.footer-bottom span {
    font-size: 0.8rem;
    color: #444;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-links a {
    color: #666;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
}

.legal-links .separator {
    color: #444;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .knowledge-container {
        flex-direction: column;
    }

    .knowledge-content-wrapper {
        width: 100%;
        min-height: 400px;
    }

    .footer-grid {
        display: flex;
        /* Use flex to enable order property efficiently */
        flex-direction: column;
        gap: 40px;
    }

    .footer-col:first-child {
        order: 1;
        /* Logo/Info stays top */
    }

    .contact-col {
        order: 2;
        margin-top: 30px;
        /* Contact form moves to middle/second */
    }

    .nav-col {
        display: none;
        /* Hidden on mobile */
    }
}

/* --- FOOTER CONTACT FORM --- */
.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    border-bottom-color: var(--color-gold);
}

.footer-contact-form button {
    align-self: flex-start;
    margin-top: 8px;
    background: none;
    border: none;
    padding: 0;
    color: var(--color-gold);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- SOCIAL ICONS --- */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-gold);
    color: #050505 !important;
    /* Force matches footer background */
    border-radius: 50%;
    text-decoration: none;
    transition: filter 0.3s ease;
    /* Only transition filter/color */
}

.contact-col p {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-icon:hover {
    filter: brightness(1.2);
    /* Slightly brighter on hover */
    /* No transform/movement */
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* --- LOGIN PAGE --- */
.login-page {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 24px;
    background-color: #050505;
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero.jpg');
    /* Reusing hero image */
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: blur(8px);
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 50px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(213, 178, 117, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-logo {
    margin-bottom: 40px;
}

.login-logo img {
    height: 60px;
    /* Slightly larger logo */
    width: auto;
    margin: 0 auto;
}

.login-header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 16px;
}

.login-header p {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 40px;
    line-height: 1.6;
}

.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.05);
}

.form-actions {
    margin-top: 32px;
    margin-bottom: 40px;
}

.btn-gold.full-width {
    width: 100%;
    text-align: center;
    margin-top: 0;
    /* Reset margin from base class */
    background-color: var(--color-gold);
    color: var(--color-black);
}

.btn-gold.full-width:hover {
    background-color: #fff;
    color: var(--color-black);
    border-color: #fff;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #999;
}

.login-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    color: #888;
}

.link-gold {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
}

.link-gold:hover {
    text-decoration: underline;
}

.back-link-wrapper {
    margin-top: 16px;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .login-card {
        padding: 40px 24px;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }
}

/* --- PRODUCT MODAL (Desktop Enhanced) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #111;
    border: 1px solid rgba(213, 178, 117, 0.3);
    width: 100%;
    max-width: 1000px;
    /* Wider for 2 columns */
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.4s ease;
    overflow: hidden;
    /* For image corners */
    border-radius: 4px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 500px;
}

.modal-image-col {
    position: relative;
    height: 100%;
    background: #000;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

.modal-text-col {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.modal-content h3 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 2.2rem;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.modal-content p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1rem;
}

.modal-meta {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 40px;
    border-left: 3px solid var(--color-gold);
}

.modal-meta h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 8px;
}

.modal-meta p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.close-modal {
    color: #fff;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal:hover {
    color: var(--color-gold);
    background: rgba(0, 0, 0, 0.8);
}

.modal-btn {
    width: 100%;
    text-align: center;
    display: block;
    background: var(--color-gold);
    color: #000 !important;
    padding: 16px;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

/* --- CARD SLIDE-UP OVERLAY (Mobile Hybrid) --- */
.product-card {
    position: relative;
    overflow: hidden;
}

.card-details-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px;
    z-index: 10;
    transform: translateY(105%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 2px solid var(--color-gold);
    cursor: pointer;
    /* Tap to close hint */
}

.card-details-overlay.active {
    transform: translateY(0);
}

.card-details-overlay h3 {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.card-details-overlay p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 16px;
}

.overlay-meta {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 24px;
    border-left: 2px solid var(--color-gold);
    font-size: 0.85rem;
}

.overlay-meta strong {
    color: #999;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-right: 6px;
}

.overlay-shown {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
}

.overlay-cta {
    width: 100%;
    text-align: center;
    display: block;
    border: 1px solid var(--color-gold);
    padding: 10px;
    color: var(--color-gold) !important;
    transition: all 0.3s ease;
}

.overlay-cta:hover {
    background: var(--color-gold);
    color: #000 !important;
}

.close-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-overlay:hover {
    color: var(--color-gold);
    transform: scale(1.1);
}


/* Hybrid Logic: HIDE Overlay on Desktop */
@media (min-width: 900px) {
    .card-details-overlay {
        display: none !important;
    }
}

/* Responsive Modal fallback (if ever needed on tablet) */
@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-image-col {
        height: 250px;
    }

    .modal-text-col {
        padding: 24px;
    }
}