/* === ZK-INSPIRED MOBILE MENU (CREATIVE) === */

:root {
    --mob-bg: #ffffff;
    --mob-text: #111111;
    --mob-text-muted: #888888;
    --mob-accent: #827D78;
}

/* === DESKTOP HEADER (Standard - No Changes) === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 1025px) {
    .header {
        display: block;
        /* Only visible on desktop */
    }
}

.header--scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

.header__container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.header__logo img {
    width: 193px;
    height: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.nav {
    display: none;
}

@media (min-width: 1024px) {
    .nav {
        display: block;
    }

    .nav__list {
        display: flex;
        gap: var(--space-md);
        align-items: center;
    }

    .nav__link {
        font-family: var(--font-heading);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-text);
        transition: var(--transition-fast);
        padding: 0.5rem 0;
        position: relative;
    }

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--color-accent-warm);
        transition: var(--transition-fast);
        transform: translateX(-50%);
    }

    .nav__link:hover::after,
    .nav__link--active::after {
        width: 30%;
    }
}

/* Mega Menu */
/* Mega Menu Redesign */
.has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 95vw;
    max-width: 1400px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    padding: 0;
    border-radius: 0 0 12px 12px;
}

/* Invisible bridge to prevent closing on gap hover */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Split: Nav vs Featured */
    min-height: 480px;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

/* Nav Area */
.mega-menu__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 4rem 4rem 4rem 6rem;
}

.mega-menu__column {
    display: flex;
    flex-direction: column;
}

.mega-menu__title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-accent-warm);
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.mega-menu__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 1px;
    background-color: var(--color-accent-warm);
}

.mega-menu__list {
    list-style: none;
    padding: 0;
}

.mega-menu__link {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    padding: 0.4rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.mega-menu__link:hover {
    color: var(--color-primary);
    opacity: 1;
    padding-left: 8px;
}

/* Featured Area */
.mega-menu__featured {
    background-color: #FDF8F2;
    position: relative;
    overflow: hidden;
}

.mega-menu__featured-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.mega-menu__featured-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.mega-menu__featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.mega-menu__featured-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    z-index: 2;
    color: white;
}

.mega-menu__featured-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.mega-menu__featured-content h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.mega-menu__featured-content p {
    font-size: 0.95rem;
    opacity: 0.7;
    margin: 0;
}

/* === MOBILE WRAPPER (Bubbles & Overlay) === */
@media (min-width: 1025px) {
    .mob-wrapper {
        display: none !important;
    }
}

/* === LOGO BUBBLE === */
.mob-logo-bubble {
    position: fixed;
    top: 20px;
    left: 20px;
    height: 60px;
    background-color: var(--mob-bg);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mob-logo-bubble img {
    width: 120px; /* Scaled down for the mobile bubble */
    height: auto;
    object-fit: contain;
}

.mob-logo-bubble:active {
    transform: scale(0.95);
}

/* === TRIGGER BUBBLE === */
.mob-trigger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--mob-bg);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mob-trigger span {
    width: 24px;
    height: 2px;
    background-color: var(--mob-text);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mob-trigger--active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-accent-warm);
}

.mob-trigger--active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mob-trigger--active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-accent-warm);
}

/* === MENU OVERLAY === */
.mob-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--mob-bg);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    padding: 100px 40px 80px 40px;
    /* Increased bottom padding */
    clip-path: circle(0px at calc(100vw - 50px) 50px);
    transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1);
    pointer-events: none;
    overflow-y: auto;
    justify-content: flex-start;
    /* Ensure items start from top but footer is pushed */
}

.mob-overlay--active {
    clip-path: circle(200% at calc(100vw - 50px) 50px);
    pointer-events: auto;
}

.mob-nav {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    /* Changed from auto to fixed margin */
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mob-nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-overlay--active .mob-nav-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.mob-overlay--active .mob-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mob-overlay--active .mob-nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.mob-overlay--active .mob-nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.mob-overlay--active .mob-nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.mob-overlay--active .mob-nav-item:nth-child(5) {
    transition-delay: 0.3s;
}

.mob-link-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 0;
    text-align: left;
    cursor: pointer;
}

.mob-link-title {
    font-family: var(--font-heading);
    font-size: 20px;
    /* Reduced size */
    font-weight: 500;
    /* Not bold */
    color: var(--mob-text);
    line-height: 1.2;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.mob-chevron {
    width: 18px;
    height: 18px;
    color: var(--mob-text-muted);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-nav-item--active>.mob-link-btn .mob-link-title {
    color: var(--color-accent-warm);
    font-weight: 600;
}

.mob-nav-item--active .mob-chevron {
    transform: rotate(180deg);
    color: var(--color-accent-warm);
}

/* === SUBMENU (ACORDEÓN REFINADO) === */
.mob-submenu {
    display: grid;
    grid-template-rows: 0fr;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    visibility: hidden;
    /* Added to hide from layout */
}

.mob-nav-item--active .mob-submenu {
    grid-template-rows: 1fr;
    visibility: visible;
}

.mob-submenu-inner {
    min-height: 0;
    padding: 0;
    /* Reset padding to avoid space when closed */
    border-left: 1.5px solid #f2f2f2;
    margin: 0 0 0 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    transition: padding 0.4s ease;
}

.mob-nav-item--active .mob-submenu-inner {
    padding: 10px 0 15px 20px;
    /* Only add padding when active */
    margin-top: 5px;
    margin-bottom: 10px;
}

.mob-sublink {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--mob-text-muted);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.mob-nav-item--active .mob-sublink {
    opacity: 1;
    transform: translateX(0);
}

.mob-nav-item--active li:nth-child(1) .mob-sublink {
    transition-delay: 0.1s;
}

.mob-nav-item--active li:nth-child(2) .mob-sublink {
    transition-delay: 0.2s;
}

.mob-nav-item--active li:nth-child(3) .mob-sublink {
    transition-delay: 0.3s;
}

.mob-sublink:active {
    color: var(--color-accent-warm);
}

/* === FOOTER VISIBILITY === */
.mob-footer {
    margin-top: 0;
    /* Push to bottom */
    padding-top: 0;
    padding-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-overlay--active .mob-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.mob-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--mob-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.mob-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}