@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

@layer reset, base, components, utilities;

@layer reset {
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
    img, video, svg { display: block; max-width: 100%; height: auto; }
    input, button, textarea, select { font: inherit; }
    a { color: inherit; text-decoration: none; }
    button { cursor: pointer; border: none; background: none; }
    ul, ol { list-style: none; }
}

@layer base {
    :root {
        --navy: #1a1a2e;
        --navy-dark: #0a0a14;
        --navy-mid: #16213e;
        --gold: #c8a951;
        --gold-light: #dbc474;
        --gold-dark: #a88a30;
        --white: #ffffff;
        --light: #f5f5f7;
        --gray-100: #f0f0f2;
        --gray-200: #e4e4e8;
        --gray-300: #c8c8d0;
        --gray-500: #999;
        --gray-700: #555;
        --gray-900: #333;
        --success: #2d8a4e;
        --danger: #c0392b;
        --font-heading: 'Playfair Display', Georgia, serif;
        --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
        --container: 1280px;
        --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }

    body {
        font-family: var(--font-body);
        font-size: 15px;
        line-height: 1.65;
        color: var(--gray-900);
        background: var(--white);
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
    }

    h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--navy); line-height: 1.2; }
    h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
    h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
    h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
}

@layer components {
    .container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
    .container--narrow { max-width: 960px; }

    /* ═══ TOPBAR ═══ */
    .topbar { background: var(--navy-dark); color: rgba(255,255,255,0.5); font-size: 12px; padding: 6px 0; letter-spacing: 0.02em; position: relative; z-index: 101; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
    .topbar-inner { display: flex; align-items: center; justify-content: space-between; }
    .topbar a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
    .topbar a:hover { color: var(--gold); }
    .lang-switcher { position: relative; }
    .lang-trigger {
        display: flex; align-items: center; gap: 6px; padding: 4px 10px;
        font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7);
        background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 4px;
        cursor: pointer; font-family: inherit; transition: 0.3s;
    }
    .lang-trigger:hover, .lang-switcher.open .lang-trigger { color: var(--gold); border-color: var(--gold); }
    .lang-trigger svg:not(.lang-chevron) { border-radius: 2px; flex-shrink: 0; }
    .lang-chevron { transition: transform 0.3s; }
    .lang-switcher.open .lang-chevron { transform: rotate(180deg); }
    .lang-dropdown {
        position: absolute; top: calc(100% + 6px); right: 0; min-width: 170px;
        background: var(--white, #fff); border-radius: 8px; padding: 4px 0;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        max-height: 320px; overflow-y: auto;
        display: none; opacity: 0;
        transition: opacity 0.3s ease, display 0.3s ease;
        transition-behavior: allow-discrete;
        z-index: 200;
    }
    @starting-style { .lang-switcher.open .lang-dropdown { opacity: 0; } }
    .lang-switcher.open .lang-dropdown { display: block; opacity: 1; }
    .lang-option {
        display: flex; align-items: center; gap: 10px; padding: 8px 14px;
        font-size: 13px; font-weight: 500; color: #333 !important;
        text-decoration: none; transition: background 0.15s;
    }
    .lang-option svg:first-child { border-radius: 2px; flex-shrink: 0; }
    .lang-option:hover { background: rgba(0,0,0,0.04); }
    .lang-option--active { color: var(--navy, #1a1a2e); font-weight: 700; }
    .lang-option--active svg:last-child { margin-left: auto; }

    /* ═══ HEADER ═══ */
    .site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
    .site-header .container, .topbar .container { max-width: var(--header-container, var(--container)); }
    .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
    .site-logo { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: 0.05em; }
    .site-logo .accent { color: var(--gold); }

    .main-nav { display: flex; align-items: center; gap: 0; }
    .main-nav > a, .nav-dropdown > a {
        display: block; padding: var(--header-padding, 18px) 16px; font-size: 11px; font-weight: 600;
        letter-spacing: 0.1em; text-transform: uppercase;
        color: rgba(255,255,255,0.7); border-bottom: 2px solid transparent;
        transition: all 0.2s;
    }
    .main-nav > a:hover, .main-nav > a.active, .nav-dropdown:hover > a {
        color: var(--white); border-bottom-color: var(--gold);
    }

    /* ═══ DROPDOWN — 3D Perspective Reveal ═══ */
    .nav-dropdown {
        position: relative;
        z-index: 1;
        padding-bottom: 14px;
        margin-bottom: -14px;
        perspective: 1200px;
    }
    .nav-dropdown-menu {
        position: absolute;
        top: calc(100% - 2px);
        left: 50%;
        min-width: 260px;
        z-index: 50;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        padding: 6px 0;
        border-radius: 12px;
        border: 1px solid rgba(200, 169, 81, 0.2);
        border-top: 3px solid var(--gold);
        box-shadow:
            0 25px 60px -12px rgba(26, 26, 46, 0.25),
            0 12px 24px -8px rgba(26, 26, 46, 0.12),
            0 0 0 1px rgba(0, 0, 0, 0.03),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);

        /* 3D transform origin & initial state */
        transform-origin: top center;
        transform-style: preserve-3d;

        /* Hidden by default */
        display: none;
        opacity: 0;
        transform: translate(-50%, -8px) rotateX(-15deg) scale(0.96);

        /* Smooth transitions */
        transition:
            opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            display 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        transition-behavior: allow-discrete;
    }

    /* Gold glow accent on the top border */
    .nav-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -3px;
        left: 20%;
        right: 20%;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
        filter: blur(0px);
        z-index: 1;
    }
    .nav-dropdown-menu::after {
        content: '';
        position: absolute;
        top: 0;
        left: 15%;
        right: 15%;
        height: 3px;
        background: radial-gradient(ellipse at center, rgba(200, 169, 81, 0.25) 0%, transparent 70%);
        pointer-events: none;
    }

    /* Starting style for discrete transition */
    @starting-style {
        .nav-dropdown:hover > .nav-dropdown-menu,
        .nav-dropdown.open > .nav-dropdown-menu {
            opacity: 0;
            transform: translate(-50%, -8px) rotateX(-15deg) scale(0.96);
        }
    }

    /* Active states */
    @media (hover: hover) and (pointer: fine) {
        .nav-dropdown:hover > .nav-dropdown-menu {
            display: block;
            opacity: 1;
            transform: translate(-50%, 0) rotateX(0deg) scale(1);
        }
    }
    .nav-dropdown.open > .nav-dropdown-menu {
        display: block;
        opacity: 1;
        transform: translate(-50%, 0) rotateX(0deg) scale(1);
    }

    /* Menu items — staggered slide-in */
    .nav-dropdown-menu a {
        display: flex;
        align-items: center;
        padding: 11px 22px;
        margin: 0 6px;
        font-size: 13.5px;
        color: var(--gray-700);
        font-weight: 500;
        border-radius: 8px;
        position: relative;
        transition:
            background 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease,
            padding-left 0.25s ease;

        /* Stagger entrance */
        opacity: 0;
        transform: translateX(-8px);
        animation: none;
    }

    /* Stagger animation keyframes */
    @keyframes dd-item-in {
        from {
            opacity: 0;
            transform: translateX(-10px) translateZ(-5px);
        }
        to {
            opacity: 1;
            transform: translateX(0) translateZ(0);
        }
    }

    /* Play stagger when parent is hovered/open */
    .nav-dropdown:hover > .nav-dropdown-menu a,
    .nav-dropdown.open > .nav-dropdown-menu a {
        animation: dd-item-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .nav-dropdown:hover > .nav-dropdown-menu a:nth-child(1),
    .nav-dropdown.open > .nav-dropdown-menu a:nth-child(1) { animation-delay: 0.04s; }
    .nav-dropdown:hover > .nav-dropdown-menu a:nth-child(2),
    .nav-dropdown.open > .nav-dropdown-menu a:nth-child(2) { animation-delay: 0.08s; }
    .nav-dropdown:hover > .nav-dropdown-menu a:nth-child(3),
    .nav-dropdown.open > .nav-dropdown-menu a:nth-child(3) { animation-delay: 0.12s; }
    .nav-dropdown:hover > .nav-dropdown-menu a:nth-child(4),
    .nav-dropdown.open > .nav-dropdown-menu a:nth-child(4) { animation-delay: 0.16s; }
    .nav-dropdown:hover > .nav-dropdown-menu a:nth-child(5),
    .nav-dropdown.open > .nav-dropdown-menu a:nth-child(5) { animation-delay: 0.20s; }
    .nav-dropdown:hover > .nav-dropdown-menu a:nth-child(6),
    .nav-dropdown.open > .nav-dropdown-menu a:nth-child(6) { animation-delay: 0.24s; }
    .nav-dropdown:hover > .nav-dropdown-menu a:nth-child(7),
    .nav-dropdown.open > .nav-dropdown-menu a:nth-child(7) { animation-delay: 0.28s; }
    .nav-dropdown:hover > .nav-dropdown-menu a:nth-child(8),
    .nav-dropdown.open > .nav-dropdown-menu a:nth-child(8) { animation-delay: 0.32s; }

    /* Item hover — subtle lift + gold accent */
    .nav-dropdown-menu a:hover {
        background: linear-gradient(135deg, rgba(200, 169, 81, 0.08), rgba(200, 169, 81, 0.03));
        color: var(--navy);
        transform: translateX(4px);
        padding-left: 26px;
    }
    .nav-dropdown-menu a:hover::before {
        content: '';
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 16px;
        background: var(--gold);
        border-radius: 2px;
    }

    .mobile-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
    .mobile-toggle svg { width: 24px; height: 24px; stroke: var(--white); }

    @media (width < 900px) {
        .mobile-toggle { display: flex; }
        .main-nav { display: none; position: fixed; inset: 70px 0 0 0; background: var(--navy); flex-direction: column; padding: 16px; overflow-y: auto; z-index: 99; }
        .main-nav.open { display: flex; }
        .main-nav > a, .nav-dropdown > a { padding: 16px; font-size: 13px; }
        .nav-dropdown { padding-bottom: 0; margin-bottom: 0; perspective: none; }
        .nav-dropdown-menu {
            position: static; box-shadow: none; border-top: none; border-radius: 0;
            background: rgba(255,255,255,0.05); border: none;
            display: block; opacity: 1;
            transform: none; backdrop-filter: none; -webkit-backdrop-filter: none;
            interpolate-size: allow-keywords;
            height: 0; overflow: hidden; padding: 0;
            transition: height 0.4s ease, padding 0.4s ease;
        }
        .nav-dropdown-menu::before, .nav-dropdown-menu::after { display: none; }
        .nav-dropdown:not(:hover):not(.open) > .nav-dropdown-menu { padding: 0; }
        .nav-dropdown.open > .nav-dropdown-menu { height: auto; padding: 8px 0; transform: none; }
        .nav-dropdown-menu a {
            color: rgba(255,255,255,0.7); padding: 12px 20px; margin: 0;
            opacity: 1; transform: none; animation: none !important;
            border-radius: 0;
        }
        .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); transform: none; padding-left: 20px; }
        .nav-dropdown-menu a:hover::before { display: none; }
        .header-cta { display: none; }
    }

    /* ═══ BUTTONS ═══ */
    .btn {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 14px 32px; font-size: 12px; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.1em; transition: all var(--transition);
    }
    .btn:hover { transform: translateY(-2px); }
    .btn--gold { background: var(--gold); color: var(--navy-dark); }
    .btn--gold:hover { background: var(--gold-light); box-shadow: 0 6px 20px rgba(200,169,81,0.3); }
    .btn--outline { background: rgba(0,0,0,0.4); color: var(--white); border: 2px solid rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
    .btn--outline:hover { background: var(--white); color: var(--navy); }
    .btn--dark { background: var(--navy); color: var(--white); }
    .btn--dark:hover { background: var(--navy-dark); }
    .btn--sm { padding: 10px 24px; font-size: 11px; }
    .btn--lg { padding: 14px 40px; }

    /* ═══ FULLPAGE 2D HERO SLIDER ═══ */
    .fp-slider { position: relative; height: 50vh; min-height: 340px; overflow: hidden; --parallax-x: 0px; --parallax-y: 0px; }
    .fp-sections { position: relative; height: 100%; }
    .fp-section {
        position: absolute; inset: 0;
        opacity: 0; visibility: hidden;
        transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
        transform: translateY(40px);
    }
    .fp-section.active {
        opacity: 1; visibility: visible; transform: translateY(0); z-index: 2;
    }
    .fp-section.leaving-up {
        opacity: 0; visibility: visible; transform: translateY(-40px); z-index: 1;
    }
    .fp-section.leaving-down {
        opacity: 0; visibility: visible; transform: translateY(40px); z-index: 1;
    }

    /* Horizontal slides within section */
    .fp-slide {
        position: absolute; inset: 0;
        display: flex; align-items: center; justify-content: center;
        opacity: 0;
        transform: scale(1.06);
        filter: blur(8px);
        transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
                    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform, opacity, filter;
    }
    .fp-slide.active {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
        z-index: 2;
    }
    .fp-slide.leaving-left,
    .fp-slide.leaving-right {
        opacity: 0;
        transform: scale(0.96);
        filter: blur(6px);
        z-index: 1;
    }

    /* Subtle ken-burns drift on active banner image */
    @keyframes fp-kenburns {
        0%   { transform: scale(1.04) translate(0, 0); }
        50%  { transform: scale(1.06) translate(-8px, -4px); }
        100% { transform: scale(1.04) translate(0, 0); }
    }
    .fp-slide.active .fp-slide__bg {
        animation: fp-kenburns 18s ease-in-out infinite;
    }
    .fp-slide.active:hover .fp-slide__bg {
        animation-play-state: paused;
    }
    /* Parallax: opreste complet ken-burns ca inline-ul JS sa poata prelua transform-ul.
       Fara asta, animatia (origin: animation) suprascrie style.transform (origin: author) si parallax-ul nu e vizibil. */
    .fp-slider.parallax-active .fp-slide.active .fp-slide__bg {
        animation: none !important;
        transition: transform 0.18s ease-out;
    }

    /* Hero content slides up + fades in slightly delayed */
    .fp-slide .hero-content {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
                    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
    }
    .fp-slide.active .hero-content {
        opacity: 1;
        transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
        .fp-slide,
        .fp-slide.active,
        .fp-slide .hero-content,
        .fp-slide.active .hero-content,
        .fp-slide.active .fp-slide__bg {
            transition: opacity 0.3s ease !important;
            animation: none !important;
            transform: none !important;
            filter: none !important;
        }
    }

    /* Vertical dots — right side */
    .fp-vdots {
        position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
        display: flex; flex-direction: column; gap: 10px; z-index: 20;
        background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); border-radius: 20px; padding: 8px 6px;
        border: 1px solid rgba(255,255,255,0.15);
    }
    .fp-vdot {
        width: 10px; height: 10px; border-radius: 50%;
        background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.3); cursor: pointer;
        transition: all 0.3s; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.3);
    }
    .fp-vdot.active { height: 32px; border-radius: 5px; background: var(--gold); border-color: var(--gold); box-shadow: 0 2px 12px rgba(200,169,81,0.6), 0 0 20px rgba(0,0,0,0.3); }

    /* Horizontal dots — bottom center */
    .fp-hdots {
        position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
        display: flex; gap: 10px; z-index: 20;
        background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); border-radius: 20px; padding: 6px 10px;
        border: 1px solid rgba(255,255,255,0.15);
    }
    .fp-hdot {
        width: 10px; height: 10px; border-radius: 5px;
        background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.3); cursor: pointer;
        transition: all 0.3s; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.3);
    }
    .fp-hdot.active { width: 32px; background: var(--gold); border-color: var(--gold); box-shadow: 0 2px 12px rgba(200,169,81,0.6), 0 0 20px rgba(0,0,0,0.3); }

    /* Scroll hint — removed, vdots are sufficient */

    /* Reuse existing hero-content styles */
    .hero-content { text-align: center; max-width: 700px; padding: 0 24px; position: relative; z-index: 3; }
    .hero-content h1 { color: var(--white); font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 4px 16px rgba(0,0,0,0.5), 0 0 60px rgba(0,0,0,0.4); }
    .hero-content p { font-size: 16px; color: rgba(255,255,255,0.95); margin-bottom: 20px; line-height: 1.6; text-shadow: 0 1px 2px rgba(0,0,0,0.8), 0 2px 10px rgba(0,0,0,0.5); }
    .hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .hero-buttons .btn { box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
    .accent-line { width: 60px; height: 3px; background: var(--gold); margin: 20px auto; }

    /* Dark overlay on slides with banner images — keeps text readable */
    .fp-slide--has-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55) 100%);
        z-index: 1;
        pointer-events: none;
    }

    /* ── Banner image (full visible, contain) ── */
    .fp-slide__bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #1a1a2e;
        will-change: transform;
        transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
        z-index: 0;
    }

    /* ── Parallax on banner slides (no background-image, img element used) ── */
    .fp-slide--has-banner {
        background: #1a1a2e;
    }
    .fp-slide .hero-content {
        will-change: transform;
        transform: translate(calc(var(--parallax-x) * -0.5), calc(var(--parallax-y) * -0.5));
    }
    .fp-slider.parallax-reset .fp-slide--has-banner {
        transition: opacity 0.7s ease, transform 0.7s ease, background-position 0.6s cubic-bezier(0.22,1,0.36,1) !important;
    }
    .fp-slider.parallax-reset .fp-slide .hero-content {
        transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
    }

    /* ═══ SECTIONS ═══ */
    .section { padding: 80px 0; position: relative; }
    .section + .section::before {
        content: '';
        display: block;
        width: 480px;
        max-width: 40%;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
        margin: 0 auto;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .section--gray { background: var(--light); }
    .section--dark { background: var(--navy); }
    .section-header { text-align: center; margin-bottom: 48px; perspective: 600px; }
    .section-header h2 { margin-bottom: 8px; }
    .section-header p { color: var(--gray-500); margin-top: 16px; font-size: 15px; }

    /* Animation only when JS has prepared the element */
    .section-header.will-animate h2 {
        opacity: 0; transform: translateY(40px) rotateX(-20deg) scale(0.92);
        transform-origin: center bottom;
    }
    .section-header.will-animate p {
        opacity: 0; transform: translateY(20px);
    }
    .section-header.will-animate .accent-line {
        width: 0; opacity: 0;
    }

    .section-header.in-view h2 {
        animation: headingReveal 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
    }
    .section-header.in-view p {
        animation: subtitleReveal 0.7s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
    }
    .section-header.in-view .accent-line {
        animation: lineGrow 0.6s cubic-bezier(0.16,1,0.3,1) 0.25s forwards;
    }

    @keyframes headingReveal {
        0%   { opacity: 0; transform: translateY(40px) rotateX(-20deg) scale(0.92); }
        40%  { opacity: 1; }
        100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
    }
    @keyframes subtitleReveal {
        0%   { opacity: 0; transform: translateY(20px); }
        100% { opacity: 1; transform: translateY(0); }
    }
    @keyframes lineGrow {
        0%   { width: 0; opacity: 0; }
        100% { width: 60px; opacity: 1; }
    }

    /* ═══ CATEGORY TILES ═══ */
    .cat-grid { display: grid; gap: 6px; }
    .cat-grid--2col { grid-template-columns: 1fr 1fr; }
    @media (width < 768px) { .cat-grid--2col { grid-template-columns: 1fr; } }
    .cat-tile-full { grid-column: 1 / -1; }
    .cat-tile {
        position: relative; overflow: hidden; display: flex; align-items: flex-end;
        min-height: 360px; cursor: pointer;
    }
    .cat-tile--short { min-height: 280px; }
    .cat-tile img {
        position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
        transition: transform 0.6s ease;
    }
    .cat-tile:hover img { transform: scale(1.06); }
    .cat-tile::before {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%); z-index: 1;
    }
    .cat-tile__content { position: relative; z-index: 2; padding: 28px; width: 100%; }
    .cat-tile__content h3 { color: var(--white); font-size: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
    .cat-tile__content p { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 4px; }
    .cat-tile__link {
        display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
        color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
        text-transform: uppercase; transition: gap 0.3s;
    }
    .cat-tile:hover .cat-tile__link { gap: 12px; }

    /* ═══ PRODUCT CARDS — Showcase Style ═══ */
    .product-grid { display: grid; gap: 20px; perspective: 1200px; }
    .product-grid--4 { grid-template-columns: repeat(4, 1fr); }
    .product-grid--3 { grid-template-columns: repeat(3, 1fr); }
    @media (width < 1024px) { .product-grid--4 { grid-template-columns: repeat(2, 1fr); } }
    @media (width < 768px) { .product-grid--3, .product-grid--4 { grid-template-columns: 1fr; } }

    .product-card {
        position: relative; border: none; border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
        overflow: hidden;
        transform-style: preserve-3d; text-decoration: none; color: inherit;
        transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s cubic-bezier(0.23,1,0.32,1);
        display: block; /* override flex */
    }
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 20px 48px rgba(0,0,0,0.18), 0 0 0 1px rgba(200,169,81,0.15);
    }
    .product-card__badge {
        position: absolute; top: 14px; left: 14px; padding: 5px 14px;
        background: var(--navy); color: var(--white); font-size: 11px;
        font-weight: 700; letter-spacing: 0.5px; z-index: 4; border-radius: 30px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    /* Image fills the card */
    .product-card__image {
        width: 100%; height: 320px; overflow: hidden; background: #fff; position: relative;
    }
    .product-card__image::after {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(10,10,20,0.92) 0%, rgba(10,10,20,0.6) 35%, rgba(10,10,20,0.15) 65%, transparent 100%);
        transition: opacity 0.4s ease; pointer-events: none; z-index: 1;
    }
    .product-card:hover .product-card__image::after {
        background: linear-gradient(to top, rgba(10,10,20,0.95) 0%, rgba(10,10,20,0.7) 40%, rgba(10,10,20,0.2) 70%, transparent 100%);
    }
    .product-card__image img {
        width: 100%; height: 100%; object-fit: contain;
        transition: transform 0.6s cubic-bezier(0.33,1,0.68,1);
    }
    .product-card:hover .product-card__image img { transform: scale(1.05); }

    /* Body overlays bottom of image */
    .product-card__body {
        position: absolute; bottom: 0; left: 0; right: 0;
        padding: 22px 24px 18px; z-index: 2; color: #fff;
        transform: translateY(12px); opacity: 0.92;
        transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), opacity 0.4s ease;
    }
    .product-card:hover .product-card__body {
        transform: translateY(0); opacity: 1;
    }
    .product-card__title {
        font-family: var(--font-heading); font-size: 16px; font-weight: 700;
        color: #fff; margin-bottom: 4px; line-height: 1.3;
        text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4);
        letter-spacing: 0.2px;
    }
    .product-card__desc {
        font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.5; margin-bottom: 8px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
        font-weight: 400; letter-spacing: 0.1px;
    }
    .product-card__price {
        font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: #fff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4);
        letter-spacing: 0.3px;
    }
    .product-card__price--sale { color: #fff; }
    .product-card__price--old { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: line-through; margin-left: 8px; }
    .product-card__sale-badge {
        display: inline-block; background: var(--gold); color: #fff; font-size: 10px;
        font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 8px;
    }

    /* Buy button overlays bottom */
    .product-card__buy {
        position: absolute; bottom: 0; left: 0; right: 0;
        padding: 11px 20px; text-align: center; z-index: 3;
        background: rgba(200,169,81,0.9); backdrop-filter: blur(8px);
        color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
        opacity: 0; transform: translateY(100%);
        transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.23,1,0.32,1) 0.15s, background 0.3s ease;
    }
    .product-card:hover .product-card__buy { opacity: 1; transform: translateY(0); }
    .product-card__buy:hover { background: var(--gold); }

    /* ═══ BENTO PRODUCT GRID (Homepage) ═══ */
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(180px, auto);
        gap: 16px;
        perspective: 1200px;
    }
    .bento-card {
        --mx: 0.5;
        --my: 0.5;
        position: relative;
        background: var(--white);
        border: 1.5px solid var(--gray-200);
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 2px 8px rgba(26, 26, 46, 0.04), 0 4px 16px rgba(26, 26, 46, 0.03);
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.35s ease;
        transform-style: preserve-3d;
        will-change: transform;
    }
    .bento-card:hover {
        border-color: var(--gold);
        box-shadow: 0 15px 35px rgba(26, 26, 46, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(200, 169, 81, 0.1);
    }

    /* Hero card */
    .bento-card--hero {
        grid-column: span 2;
        grid-row: span 2;
        background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
        border-color: var(--navy);
        flex-direction: row;
        align-items: stretch;
        min-height: 380px;
        box-shadow: 0 4px 12px rgba(26, 26, 46, 0.1), 0 8px 24px rgba(26, 26, 46, 0.08);
    }
    .bento-card--hero:hover {
        border-color: var(--gold);
        box-shadow: 0 20px 45px rgba(26, 26, 46, 0.14), 0 8px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(200, 169, 81, 0.15);
    }
    .bento-hero__info {
        flex: 1;
        padding: 40px 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }
    .bento-hero__title {
        font-family: var(--font-heading);
        font-size: clamp(1.4rem, 2.5vw, 2rem);
        font-weight: 700;
        color: var(--white);
        line-height: 1.25;
    }
    .bento-hero__desc {
        font-size: 14px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.55);
    }
    .bento-hero__price {
        font-size: 22px;
        font-weight: 700;
        color: var(--gold);
    }
    .bento-hero__price--old {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.35);
        text-decoration: line-through;
        margin-left: 8px;
        font-weight: 400;
    }
    .bento-hero__cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        border-radius: 100px;
        background: var(--gold);
        color: var(--navy-dark);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.02em;
        transition: all 0.25s;
        align-self: flex-start;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(200, 169, 81, 0.3);
    }
    .bento-hero__cta:hover {
        background: var(--gold-light);
        gap: 12px;
        box-shadow: 0 6px 24px rgba(200, 169, 81, 0.45);
        transform: translateY(-1px);
    }
    .bento-hero__image {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 28px;
        background: var(--white);
        border-radius: 0 14px 14px 0;
        margin: 4px 4px 4px 0;
    }
    .bento-hero__image img {
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
        transition: transform 0.5s var(--transition);
    }
    .bento-card--hero:hover .bento-hero__image img { transform: scale(1.06); }

    /* Regular bento card */
    .bento-card__inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 16px;
        gap: 12px;
    }
    .bento-card__image {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }
    .bento-card__image img {
        max-width: 100%;
        max-height: 160px;
        object-fit: contain;
        transition: transform 0.4s var(--transition);
    }
    .bento-card:hover .bento-card__image img { transform: scale(1.06); }
    .bento-card__body {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .bento-card__title {
        font-size: 14px;
        font-weight: 700;
        color: var(--navy);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .bento-card__desc {
        font-size: 12px;
        color: var(--gray-500);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .bento-card__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
        padding-top: 4px;
    }
    .bento-card__price {
        font-size: 15px;
        font-weight: 700;
        color: var(--navy);
    }
    .bento-card__price--old {
        font-size: 12px;
        color: var(--gray-500);
        text-decoration: line-through;
        margin-left: 6px;
        font-weight: 400;
    }
    .bento-card__arrow {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--navy);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s;
        flex-shrink: 0;
    }
    .bento-card__arrow svg {
        width: 16px;
        height: 16px;
        stroke: var(--white);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .bento-card:hover .bento-card__arrow {
        background: var(--gold);
    }
    .bento-card:hover .bento-card__arrow svg {
        stroke: var(--navy-dark);
    }

    /* Preview button (eye icon) */
    .bento-card__preview {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--white);
        border: 1.5px solid var(--gray-200);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 3;
        opacity: 0;
        transform: scale(0.7) translateY(6px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    .bento-card__preview svg {
        width: 16px;
        height: 16px;
        stroke: var(--navy);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .bento-card:hover .bento-card__preview {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    .bento-card__preview:hover {
        background: var(--gold);
        border-color: var(--gold);
    }
    .bento-card__preview:hover svg {
        stroke: var(--navy-dark);
    }

    /* Bento badge (NOU, etc.) */
    .bento-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 3;
        padding: 4px 14px;
        border-radius: 100px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.06em;
        background: var(--gold);
        color: var(--navy-dark);
        box-shadow: 0 2px 8px rgba(200, 169, 81, 0.3);
    }
    .bento-card--hero .bento-badge {
        position: static;
        align-self: flex-start;
    }

    /* Quick preview modal */
    .bento-preview-overlay {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 20, 0.6);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .bento-preview-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .bento-preview-modal {
        background: var(--white);
        border-radius: 20px;
        max-width: 680px;
        width: 90%;
        max-height: 85dvh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
        transform: scale(0.9) translateY(30px);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .bento-preview-overlay.active .bento-preview-modal {
        transform: scale(1) translateY(0);
    }
    .bento-preview-modal__close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--gray-100);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        z-index: 2;
        transition: background 0.2s;
    }
    .bento-preview-modal__close:hover { background: var(--gray-200); }
    .bento-preview-modal__close svg {
        width: 18px;
        height: 18px;
        stroke: var(--navy);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .bento-preview-modal__image {
        background: var(--gray-100);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;
        min-height: 260px;
        border-radius: 20px 20px 0 0;
        position: relative;
    }
    .bento-preview-modal__image img {
        max-width: 100%;
        max-height: 280px;
        object-fit: contain;
    }
    .bento-preview-modal__body {
        padding: 28px 32px 32px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .bento-preview-modal__title {
        font-family: var(--font-heading);
        font-size: 22px;
        font-weight: 700;
        color: var(--navy);
        line-height: 1.3;
    }
    .bento-preview-modal__desc {
        font-size: 14px;
        color: var(--gray-700);
        line-height: 1.7;
    }
    .bento-preview-modal__price {
        font-size: 24px;
        font-weight: 700;
        color: var(--navy);
    }
    .bento-preview-modal__price--old {
        font-size: 15px;
        color: var(--gray-500);
        text-decoration: line-through;
        margin-left: 8px;
        font-weight: 400;
    }
    .bento-preview-modal__actions {
        display: flex;
        gap: 12px;
        margin-top: 8px;
    }
    .bento-preview-modal__actions .btn { border-radius: 10px; }

    /* Bento responsive */
    @media (width < 1024px) {
        .bento-grid { grid-template-columns: repeat(2, 1fr); }
        .bento-card--hero { grid-column: span 2; grid-row: span 2; }
    }
    @media (width < 768px) {
        .bento-grid { grid-template-columns: 1fr; gap: 12px; }
        .bento-card--hero {
            grid-column: span 1;
            grid-row: span 1;
            flex-direction: column;
            min-height: auto;
        }
        .bento-hero__info { padding: 24px 20px; }
        .bento-hero__image { border-radius: 0 0 14px 14px; margin: 0 4px 4px; }
        .bento-hero__image img { max-height: 200px; }
        .bento-preview-modal__body { padding: 20px 24px 24px; }
    }
    @media (prefers-reduced-motion: reduce) {
        .bento-card { transition: none !important; }
    }

    /* ═══ BLOG CARDS ═══ */
    .blog-card { background: var(--white); border: 1px solid var(--gray-200); transition: all var(--transition); display: flex; flex-direction: column; }
    .blog-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); }
    .blog-card__image { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
    .blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
    .blog-card:hover .blog-card__image img { transform: scale(1.05); }
    .blog-card__body { padding: 20px; flex: 1; }
    .blog-card__date { font-size: 11px; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
    .blog-card__title { font-family: var(--font-heading); font-size: 18px; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
    .blog-card__excerpt { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

    /* ═══ NUMLIT BANNER ═══ */
    /* ═══ LOGO STRIP (Partners) ═══ */
    .logo-strip { padding: 40px 0; background: #f8fafc; border-top: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4; }
    .logo-strip__label {
        text-align: center; font-size: 11px; font-weight: 800;
        text-transform: uppercase; letter-spacing: 0.14em;
        color: #0f172a; margin-bottom: 24px;
    }
    .logo-strip__track {
        display: flex; align-items: center; justify-content: center;
        gap: 20px; flex-wrap: wrap;
    }
    .logo-strip__item {
        display: flex; align-items: center; justify-content: center;
        height: 100px; min-width: 180px; padding: 16px 32px;
        background: #fff;
        border: 2px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .logo-strip__item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 0 0 2px rgba(200,169,81,0.3);
        border-color: #c8a951;
    }
    .logo-strip__item img { height: 100%; width: auto; object-fit: contain; max-width: 160px; }

    /* ═══ TESTIMONIALS ═══ */
    .testimonial-slider { position: relative; min-height: 200px; }
    .testimonial-slide { opacity: 0; transition: opacity 0.6s; position: absolute; top: 0; left: 0; right: 0; text-align: center; }
    .testimonial-slide.active { opacity: 1; position: relative; }
    .testimonial-quote { font-size: 64px; color: var(--gold); opacity: 0.3; font-family: var(--font-heading); line-height: 0.5; margin-bottom: 16px; }
    .testimonial-text { font-size: 16px; line-height: 1.8; color: var(--gray-700); font-style: italic; margin-bottom: 24px; }
    .testimonial-author { font-weight: 700; color: var(--navy); font-size: 14px; }
    .testimonial-role { color: var(--gray-500); font-size: 13px; }
    .testimonial-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
    .testimonial-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; border: none; cursor: pointer; transition: all 0.2s; }
    .testimonial-dot.active { background: var(--gold); }

    /* ═══ CTA SECTION ═══ */
    .cta-section { padding: 0 0 32px; }
    .cta-card {
        display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
        padding: 28px 32px; border-radius: 16px;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
        border: 1px solid rgba(200,169,81,0.15);
        position: relative; overflow: hidden;
    }
    .cta-card::before {
        content: ''; position: absolute; top: -60px; left: -60px;
        width: 180px; height: 180px;
        background: radial-gradient(circle, rgba(200,169,81,0.12) 0%, transparent 70%);
        pointer-events: none;
    }
    .cta-card__left { display: flex; align-items: center; gap: 14px; position: relative; }
    .cta-card__icon {
        width: 44px; height: 44px; border-radius: 12px;
        background: linear-gradient(135deg, #c8a951, #dbc474);
        display: flex; align-items: center; justify-content: center;
        font-size: 18px; flex-shrink: 0; box-shadow: 0 4px 16px rgba(200,169,81,0.3);
    }
    .cta-card__title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 2px; }
    .cta-card__desc { font-size: 13px; color: rgba(255,255,255,0.45); }
    .cta-card__btn {
        display: inline-flex; align-items: center; gap: 4px;
        padding: 11px 28px; border-radius: 8px;
        background: #c8a951; color: #0f172a;
        font-size: 12px; font-weight: 700; text-decoration: none;
        transition: all 0.2s; letter-spacing: 0.02em; position: relative;
    }
    .cta-card__btn:hover { filter: brightness(1.1); box-shadow: 0 4px 20px rgba(200,169,81,0.4); transform: translateY(-1px); }

    /* ═══ PAGE HERO ═══ */
    .page-hero { background: var(--navy); padding: 28px 0; text-align: center; }
    .page-hero h1 { color: var(--white); margin-bottom: 4px; font-size: clamp(24px, 4vw, 36px); }
    .breadcrumb { font-size: 13px; color: rgba(255,255,255,0.45); }
    .breadcrumb a { color: var(--gold); }
    .breadcrumb a:hover { text-decoration: underline; }

    /* ═══ SIDEBAR ═══ */
    .sidebar h3 {
        font-family: var(--font-body); font-size: 12px; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy);
        margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold);
    }
    .sidebar a {
        display: block; padding: 8px 0; font-size: 14px; color: var(--gray-500);
        border-bottom: 1px solid var(--gray-100); transition: all 0.15s;
    }
    .sidebar a:hover, .sidebar a.active { color: var(--navy); padding-left: 8px; }
    .sidebar a.active { font-weight: 700; color: var(--gold-dark); }

    /* ═══ FOOTER ═══ */
    .site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.5); padding: 32px 0 0; }
    .footer-grid { display: grid; grid-template-columns: 1.6fr 0.9fr 0.9fr 1.1fr 0.9fr 1.3fr; gap: 20px; padding-bottom: 24px; }
    @media (width < 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; } }
    @media (width < 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
    @media (width < 480px) { .footer-grid { grid-template-columns: 1fr; } }
    .footer-col h4 {
        font-family: var(--font-body); font-size: 10px; font-weight: 700;
        letter-spacing: 0.12em; color: var(--white); margin-bottom: 10px;
        padding-bottom: 8px; display: inline-block; border-bottom: 2px solid var(--gold);
    }
    .footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.45); padding: 2px 0; transition: color 0.15s; }
    .footer-col a:hover { color: var(--gold); }
    .footer-col p { font-size: 13px; line-height: 1.6; }
    .footer-col--eu {
        position: relative;
        padding: 12px 14px 12px;
        background: linear-gradient(165deg, rgba(0, 51, 153, 0.18) 0%, rgba(0, 51, 153, 0.04) 100%);
        border: 1px solid rgba(255, 204, 0, 0.18);
        border-radius: 10px;
        backdrop-filter: blur(2px);
        align-self: start;
    }
    .footer-col--eu::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, #FFCC00 50%, transparent 100%);
        border-radius: 10px 10px 0 0;
    }
    .footer-col--eu .footer-heading {
        color: rgba(255, 204, 0, 0.85) !important;
        font-size: 10px !important;
        letter-spacing: 0.12em !important;
        margin-bottom: 8px !important;
    }
    .footer-col--eu .footer-eu__flag {
        width: 38px;
        height: 26px;
        border-radius: 3px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 51, 153, 0.4), 0 0 0 1px rgba(255, 204, 0, 0.25);
        margin-bottom: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .footer-col--eu:hover .footer-eu__flag {
        transform: scale(1.05);
        box-shadow: 0 5px 14px rgba(0, 51, 153, 0.55), 0 0 0 1px rgba(255, 204, 0, 0.4);
    }
    .footer-col--eu .footer-eu__flag svg { display: block; width: 100%; height: 100%; }
    .footer-col--eu .footer-eu__text {
        font-size: 10px;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.5);
        margin: 0 0 8px;
    }
    .footer-col--eu .footer-eu__text strong {
        display: block;
        color: rgba(255, 255, 255, 0.92);
        font-size: 11.5px;
        font-weight: 600;
        margin-bottom: 4px;
        letter-spacing: 0.01em;
    }
    .footer-col--eu a {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        font-size: 10px !important;
        font-weight: 600;
        color: #FFCC00 !important;
        padding: 4px 9px !important;
        background: rgba(255, 204, 0, 0.08);
        border: 1px solid rgba(255, 204, 0, 0.25);
        border-radius: 5px;
        transition: all 0.2s ease;
    }
    .footer-col--eu a::after {
        content: '↗';
        font-size: 11px;
        opacity: 0.8;
    }
    .footer-col--eu a:hover {
        background: rgba(255, 204, 0, 0.18);
        border-color: rgba(255, 204, 0, 0.5);
        color: #fff !important;
        transform: translateY(-1px);
    }
    .footer-bottom { text-align: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 11px; color: rgba(255,255,255,0.25); }

    /* ═══ FORMS ═══ */
    .form-group { margin-bottom: 24px; }
    .form-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--navy); }
    .form-input, .form-textarea, .form-select {
        width: 100%; padding: 12px 16px; background: var(--white);
        border: 1px solid var(--gray-300); font-size: 14px; color: var(--gray-900); transition: border-color 0.2s;
    }
    .form-input:focus, .form-textarea:focus { outline: none; border-color: var(--gold); }
    .form-textarea { min-height: 120px; resize: vertical; }
    .form-checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
    .form-checkbox input { margin-top: 3px; accent-color: var(--gold); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (width < 640px) { .form-row { grid-template-columns: 1fr; } }

    /* ═══ ALERTS ═══ */
    .alert { padding: 16px 20px; margin-bottom: 24px; font-size: 14px; }
    .alert--success { background: #edf7ed; color: var(--success); border-left: 4px solid var(--success); }
    .alert--error { background: #fdeded; color: var(--danger); border-left: 4px solid var(--danger); }

    /* ═══ PAGINATION ═══ */
    .pagination { display: flex; justify-content: center; gap: 4px; padding: 48px 0; }
    .pagination__link {
        display: flex; align-items: center; justify-content: center;
        min-width: 40px; height: 40px; padding: 0 12px;
        font-size: 14px; font-weight: 600; border: 1px solid var(--gray-200);
        color: var(--gray-700); transition: all 0.2s;
    }
    .pagination__link:hover { border-color: var(--navy); color: var(--navy); }
    .pagination__link--active { background: var(--navy); color: var(--white); border-color: var(--navy); }

    /* ═══ PROSE ═══ */
    .page-content { padding: 64px 0; }
    .prose h2 { margin: 32px 0 16px; }
    .prose h3 { margin: 24px 0 12px; }
    .prose p { margin-bottom: 16px; line-height: 1.8; }
    .prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
    .prose li { margin-bottom: 8px; }
    .prose ul li { list-style: disc; }
    .prose ol li { list-style: decimal; }
    .prose img { margin: 32px 0; }
    .prose a { color: var(--gold-dark); text-decoration: underline; }
    .prose blockquote { border-left: 3px solid var(--gold); padding-left: 24px; margin: 24px 0; font-style: italic; }

    .video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
    .video-container video, .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .pdf-viewer { width: 100%; height: 80dvh; border: 1px solid var(--gray-200); }

    /* ═══ CONTACT INFO BOX ═══ */
    .contact-info-box { background: var(--navy); color: var(--white); padding: 40px; }
    .contact-info-box h3 { color: var(--white); margin-bottom: 24px; font-size: 18px; }
    .contact-info-box p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 12px; }

    /* ═══ COOKIE BANNER ═══ */
    .cookie-banner {
        position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy-dark);
        color: rgba(255,255,255,0.8); padding: 20px 32px; display: flex;
        align-items: center; justify-content: space-between; gap: 24px; z-index: 999;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    }
    .cookie-banner p { font-size: 14px; flex: 1; }
    .cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
    @media (width < 640px) { .cookie-banner { flex-direction: column; text-align: center; } }

    /* ═══ PARTNER ROW ═══ */
    .partner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; }
    .partner-row img { height: 40px; width: auto; filter: grayscale(1) opacity(0.4); transition: filter 0.3s; }
    .partner-row img:hover { filter: none; }

    /* Partners showcase cards */
    .partners-showcase { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 2rem; padding: 1rem 0; }
    .partner-card {
        display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
        text-decoration: none; padding: 1.5rem 2rem;
        background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px;
        transition: all 0.3s; min-width: 160px; max-width: 220px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .partner-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.1); }
    .partner-card__logo { width: 110px; height: 85px; display: flex; align-items: center; justify-content: center; }
    .partner-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(25%); opacity: 0.85; transition: all 0.3s; }
    .partner-card:hover .partner-card__logo img { filter: grayscale(0); opacity: 1; }
    .partner-card__name { font-size: 0.82rem; font-weight: 600; color: var(--gray-600); text-align: center; transition: color 0.3s; }
    .partner-card:hover .partner-card__name { color: var(--navy); }
    @media (max-width: 640px) { .partners-showcase { gap: 1rem; } .partner-card { min-width: 130px; padding: 1rem 1.25rem; } .partner-card__logo { width: 80px; height: 65px; } }
}

@layer utilities {
    .text-center { text-align: center; }
    .text-muted { color: var(--gray-500); }
    .mt-2 { margin-top: 16px; }
    .mt-4 { margin-top: 32px; }
    .mb-4 { margin-bottom: 32px; }
    .hidden { display: none; }
}
/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE CUSTOM SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.cs-section { padding: 48px 0; }
.cs-section .cs-subtitle {
    color: #64748b;
    font-size: 14px;
    text-align: center;
    margin: 10px auto 0;
    max-width: 640px;
    line-height: 1.55;
}

/* Container variants */
.cs-container--narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.cs-container--full   { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }

/* Background variants */
.cs-bg--default  { background: transparent; }
.cs-bg--light    { background: #f8fafc; }
.cs-bg--dark     { background: #1a1a2e; color: #fff; }
.cs-bg--dark .section-header h2,
.cs-bg--dark .cs-text-block { color: #fff; }
.cs-bg--dark .cs-subtitle { color: rgba(255,255,255,0.7); }
.cs-bg--accent   { background: #fef3c7; }
.cs-bg--gradient { background: linear-gradient(135deg, #1a1a2e 0%, #2c2c54 100%); color: #fff; }
.cs-bg--gradient .section-header h2,
.cs-bg--gradient .cs-text-block { color: #fff; }
.cs-bg--gradient .cs-subtitle { color: rgba(255,255,255,0.7); }

/* ── Video ── */
.cs-video-wrap {
    max-width: 480px;
    max-height: 360px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.06);
    background: #000;
    display: flex;
    justify-content: center;
}
.cs-video-frame {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    border: 0;
    display: block;
}
/* iframe-uri (YouTube/Vimeo) au aspect 16:9 */
iframe.cs-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* ── Iframe ── */
.cs-iframe-wrap { max-width: 540px; margin: 0 auto; }

/* ── Custom video player (click-to-open lightbox) ── */
.cs-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.cs-video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.cs-video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}
.cs-video-play svg { margin-left: 3px; }
.cs-video-player:hover .cs-video-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(220, 38, 38, 1);
}

/* ── Custom video lightbox modal ── */
.cs-vmodal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.cs-vmodal--active { display: flex; }
.cs-vmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
}
.cs-vmodal__container {
    position: relative;
    width: 92vw;
    max-width: 1200px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.cs-vmodal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}
.cs-vmodal__close:hover { background: rgba(255,255,255,0.3); }
.cs-vmodal__title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.cs-vmodal__title:empty { display: none; }
.cs-vmodal__video-wrap {
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.cs-vmodal__video {
    width: 100%;
    max-height: 82vh;
    display: block;
}
@media (max-width: 768px) {
    .cs-vmodal__container { width: 96vw; }
    .cs-vmodal__close { top: -40px; }
}

/* Side-by-side: când o secțiune mixed are atât video cât și iframe,
   le punem alături egale ca lățime ȘI înălțime */
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .container {
    max-width: 1120px;
}
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .section-header {
    width: 100%;
}

/* Wrapper care grupează video + iframe pe o linie */
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) {
    --cs-row-h: 480px;
}
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block:has(.cs-video-wrap),
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block:has(.cs-iframe-wrap) {
    display: inline-block;
    width: calc(50% - 12px);
    max-width: 540px;
    vertical-align: top;
    margin: 0 4px;
}
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block .cs-video-wrap,
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block .cs-iframe-wrap {
    max-width: 100%;
    width: 100%;
    margin: 0;
    height: var(--cs-row-h);
    max-height: var(--cs-row-h);
}
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block .cs-video-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-video-frame,
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) iframe.cs-video-frame {
    width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-iframe-wrap iframe {
    height: var(--cs-row-h) !important;
}

/* Link cards din aceeași secțiune să aibă aceeași lățime ca rândul video+iframe */
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block:has(.cs-link-cards-grid) {
    display: block;
    width: 100%;
    max-width: 1100px;
    margin: 24px auto 0;
}
.cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-link-cards-grid {
    max-width: 100%;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) {
        --cs-row-h: auto;
    }
    .cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block:has(.cs-video-wrap),
    .cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block:has(.cs-iframe-wrap) {
        display: block;
        width: 100%;
        max-width: 540px;
        margin: 0 auto 16px;
    }
    .cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-mixed-block .cs-video-wrap {
        height: auto;
        aspect-ratio: 16/9;
    }
    .cs-section:has(.cs-video-wrap):has(.cs-iframe-wrap) .cs-iframe-wrap iframe {
        height: 500px !important;
    }
}

/* ── Gallery ── */
.cs-gallery--grid {
    display: grid;
    grid-template-columns: repeat(var(--cs-gal-cols, 3), 1fr);
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}
.cs-gallery--masonry {
    columns: var(--cs-gal-cols, 3);
    column-gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}
.cs-gallery--masonry .cs-gal-item { break-inside: avoid; margin-bottom: 12px; }
.cs-gallery--carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: thin;
    max-width: 1100px;
    margin: 0 auto;
}
.cs-gallery--carousel .cs-gal-item {
    flex: 0 0 calc(100% / var(--cs-gal-cols, 3) - 10px);
    scroll-snap-align: start;
}
.cs-gal-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-gal-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.cs-gal-item img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
    .cs-gallery--grid { grid-template-columns: repeat(2, 1fr); }
    .cs-gallery--masonry { columns: 2; }
    .cs-gallery--carousel .cs-gal-item { flex-basis: 75%; }
}

/* ── Blog grid (custom section) ── */
.cs-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}
.cs-blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}
.cs-blog-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.09); border-color: #c8a951; }
.cs-blog-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #f1f5f9; }
.cs-blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-blog-card__body { padding: 16px; }
.cs-blog-card__title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px; line-height: 1.35; }
.cs-blog-card__excerpt { font-size: 12.5px; color: #64748b; margin: 0; line-height: 1.5; }
.cs-bg--dark .cs-blog-card,
.cs-bg--gradient .cs-blog-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff; }
.cs-bg--dark .cs-blog-card__title,
.cs-bg--gradient .cs-blog-card__title { color: #fff; }
.cs-bg--dark .cs-blog-card__excerpt,
.cs-bg--gradient .cs-blog-card__excerpt { color: rgba(255,255,255,0.7); }

/* ── Products grid (custom) ── */
.cs-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}
.cs-prod-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.cs-prod-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.09); border-color: #c8a951; }
.cs-prod-card__img { aspect-ratio: 1 / 1; background: #f8fafc; overflow: hidden; }
.cs-prod-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.cs-prod-card__body { padding: 12px; }
.cs-prod-card__title { font-size: 13px; font-weight: 600; color: #1a1a2e; margin: 0 0 5px; line-height: 1.3; }
.cs-prod-card__price { font-size: 14px; font-weight: 700; color: #c8a951; }

/* ── Link cards ── */
.cs-link-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--cs-lc-cols, 3), 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) { .cs-link-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cs-link-cards-grid { grid-template-columns: 1fr; } }
.cs-lc-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.cs-lc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #c8a951;
}
.cs-lc-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #f1f5f9; }
.cs-lc-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.cs-lc-card:hover .cs-lc-card__img img { transform: scale(1.04); }
.cs-lc-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.cs-lc-card__title { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px; line-height: 1.3; }
.cs-lc-card__text { font-size: 13px; color: #64748b; line-height: 1.55; margin: 0 0 12px; flex: 1; }
.cs-lc-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c8a951;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    align-self: flex-start;
}
.cs-bg--dark .cs-lc-card,
.cs-bg--gradient .cs-lc-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #fff; }
.cs-bg--dark .cs-lc-card__title,
.cs-bg--gradient .cs-lc-card__title { color: #fff; }
.cs-bg--dark .cs-lc-card__text,
.cs-bg--gradient .cs-lc-card__text { color: rgba(255,255,255,0.75); }

/* ── Plain text ── */
.cs-text-block {
    max-width: 680px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM SECTIONS — CLS prevention (scroll jump fix)
   ═══════════════════════════════════════════════════════════════ */

/* Activează browser scroll anchoring pentru a preveni jump */
.cs-section { overflow-anchor: auto; }
.cs-section * { overflow-anchor: auto; }

/* Gallery images — aspect ratio fixat previne CLS */
.cs-gallery--grid .cs-gal-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.cs-gallery--grid .cs-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cs-gallery--carousel .cs-gal-item {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.cs-gallery--carousel .cs-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Iframe containers — înălțimea din inline style e deja respectată */
.cs-iframe-wrap iframe { display: block; }

/* Video wrap are deja aspect-ratio 16/9 setat */

/* Mixed blocks — gap uniform între blocuri */
.cs-mixed-block + .cs-mixed-block { margin-top: 32px; }

/* ═══════════════════════════════════════════════════════════════
   CUSTOM SECTIONS — UNIFORM SIZING
   Toate blocurile se încadrează în lățimea containerului standard
   (la fel ca celelalte secțiuni de pe homepage).
   ═══════════════════════════════════════════════════════════════ */

/* Container-ul intern al secțiunii custom respectă layout-ul site-ului */
.cs-section .container {
    max-width: var(--container, 1280px);
    margin: 0 auto;
    padding: 0 24px;
}

/* Fiecare bloc dintr-o secțiune mixed e un wrapper full-width în container */
.cs-mixed-block {
    width: 100%;
    max-width: 100%;
}

/* Toate componentele interne ocupă lățimea blocului (NU au max-width propriu) */
.cs-mixed-block .cs-video-wrap,
.cs-mixed-block .cs-iframe-wrap,
.cs-mixed-block .cs-gallery--grid,
.cs-mixed-block .cs-gallery--masonry,
.cs-mixed-block .cs-gallery--carousel,
.cs-mixed-block .cs-blog-grid,
.cs-mixed-block .cs-products-grid,
.cs-mixed-block .cs-link-cards-grid,
.cs-mixed-block .cs-text-block {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

/* VIDEO — cap rezonabil, centrat */
.cs-mixed-block .cs-video-wrap {
    max-width: 720px;
    max-height: 405px;
    margin: 0 auto;
}

/* IFRAME — full width în bloc */
.cs-mixed-block .cs-iframe-wrap { max-width: 100%; }

/* GALLERY — grid 4 col pe desktop */
.cs-mixed-block .cs-gallery--grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.cs-mixed-block .cs-gallery--grid .cs-gal-item {
    aspect-ratio: 1 / 1;
    max-height: none;
}

/* BLOG — 3 col uniform */
.cs-mixed-block .cs-blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* PRODUSE — 4 col uniform (cum la secțiunea Produse standard) */
.cs-mixed-block .cs-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* LINK CARDS — respectă --cs-lc-cols (default 3) */
.cs-mixed-block .cs-link-cards-grid {
    grid-template-columns: repeat(var(--cs-lc-cols, 3), 1fr);
    gap: 18px;
}

/* TEXT — centrat, lățime medie pentru lectură */
.cs-mixed-block .cs-text-block {
    max-width: 760px;
    margin: 0 auto;
}

/* HTML block — full width */
.cs-mixed-block > * { max-width: 100%; }

/* RESPONSIVE — tablet & mobile */
@media (max-width: 1024px) {
    .cs-mixed-block .cs-gallery--grid,
    .cs-mixed-block .cs-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cs-mixed-block .cs-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .cs-mixed-block .cs-gallery--grid,
    .cs-mixed-block .cs-products-grid,
    .cs-mixed-block .cs-link-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-mixed-block .cs-blog-grid {
        grid-template-columns: 1fr;
    }
    .cs-mixed-block .cs-video-wrap { max-height: 280px; }
}

/* Imagine cap pentru toate cardurile (previne supradimensionare) */
.cs-blog-card__img { aspect-ratio: 16 / 9; max-height: none; }
.cs-prod-card__img { aspect-ratio: 1 / 1; max-height: none; }
.cs-lc-card__img { aspect-ratio: 16 / 10; max-height: none; }

/* Imagini broken — ascunse */
.cs-blog-card__img img:not([src]),
.cs-blog-card__img img[src=""],
.cs-prod-card__img img:not([src]),
.cs-prod-card__img img[src=""] { display: none; }
.cs-blog-card__img:has(img:not([src])),
.cs-blog-card__img:has(img[src=""]) { display: none; }

/* ═══════════════════════════════════════════════════════════════
   SCROLL SNAP FIX — adaugă snap points pe toate secțiunile
   ca să nu mai sară browser-ul înapoi la fp-slider (singurul snap)
   ═══════════════════════════════════════════════════════════════ */
section.section,
.logo-strip,
section.cta-section,
.cs-section {
    scroll-snap-align: start;
    scroll-margin-top: 70px;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL SNAP FIX — adaugă snap points pe toate secțiunile
   Cauză: html{scroll-snap-type:y mandatory} + doar .fp-slider avea
   scroll-snap-align:start → browser-ul sărea mereu înapoi la fp-slider.
   ═══════════════════════════════════════════════════════════════ */
section.section,
.logo-strip,
section.cta-section,
.cs-section {
    scroll-snap-align: start;
    scroll-margin-top: 70px;
}
