/* ==========================================================================
   Tabark - Premium Industrial Design System
   ========================================================================== */

/* --- 1. CSS Variables / Design Tokens --- */
:root {
    /* Industrial Deep Navy Theme Default */
    --color-bg-base: #0B192C;
    --color-bg-tonal-1: #1A2A42;
    --color-bg-tonal-2: #213350;
    --color-bg-tonal-3: #2A4065;

    --color-accent: #FF7A00;
    --color-accent-light: #FF9E33;
    --color-accent-dark: #CC6200;

    --color-text-primary: #FFFFFF;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;

    --color-border: rgba(255, 255, 255, 0.1);
    --color-glass-bg: rgba(11, 25, 44, 0.85);

    /* Gradients */
    --grad-accent: linear-gradient(135deg, var(--color-accent-light), var(--color-accent), var(--color-accent-dark));
    --grad-surface: linear-gradient(145deg, var(--color-bg-base), var(--color-bg-tonal-1));

    /* Typography */
    --font-primary: 'Cairo', sans-serif;

    /* Spacing & Layout */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    --container-max: 1280px;
    --nav-height: 80px;

    /* Responsive Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 8px 25px rgba(255, 122, 0, 0.25);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-default: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    /* Deep Navy Dark Mode */
    --color-bg-base: #07101C;
    --color-bg-tonal-1: #0A1625;
    --color-bg-tonal-2: #122137;
    --color-bg-tonal-3: #1C304B;

    --color-accent: #FF7A00;
    --color-accent-light: #FF9E33;
    --color-accent-dark: #CC6200;

    --color-text-primary: #F8FAFC;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;

    --color-border: rgba(255, 255, 255, 0.08);
    --color-glass-bg: rgba(7, 16, 28, 0.75);

    --grad-surface: linear-gradient(145deg, var(--color-bg-tonal-2), var(--color-bg-tonal-1));
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Premium Pill Theme Switch */
.theme-switch {
    width: 64px;
    height: 32px;
    border-radius: 32px;
    background: var(--color-bg-tonal-3);
    border: 1px solid var(--color-border);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    margin-right: 12px;
    transition: background var(--trans-default), border-color var(--trans-default);
}

[data-theme="dark"] .theme-switch {
    background: var(--color-bg-base);
}

.theme-switch-thumb {
    width: 26px;
    height: 26px;
    background: var(--color-bg-base);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    /* Anchor to the right for RTL */
    left: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: right var(--trans-default), background var(--trans-default);
}

[data-theme="dark"] .theme-switch-thumb {
    right: calc(100% - 28px);
    /* Slides smoothly to the left */
    background: var(--color-bg-tonal-2);
    transform: none;
    /* Remove any old transforms */
}

.theme-switch-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    transition: color var(--trans-fast);
}

.theme-switch-icon.icon-sun {
    color: var(--color-accent-light);
}

.theme-switch-icon.icon-moon {
    color: var(--color-text-muted);
}

[data-theme="dark"] .theme-switch-icon.icon-sun {
    color: var(--color-text-muted);
}

[data-theme="dark"] .theme-switch-icon.icon-moon {
    color: var(--color-text-primary);
}

/* --- 2. CSS Resets --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    direction: rtl;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* --- 3. Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* Tight headline typography */
    margin-bottom: var(--space-sm);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

/* --- 4. Layout & Grids --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

/* Tonal Background Classes for Sections */
.bg-base {
    background-color: var(--color-bg-base);
}

.bg-tonal-1 {
    background-color: var(--color-bg-tonal-1);
}

.bg-tonal-2 {
    background-color: var(--color-bg-tonal-2);
}

.bg-tonal-3 {
    background-color: var(--color-bg-tonal-3);
}

/* --- 5. Navigation & Header --- */
.site-header {
    /* Forces the deepest navy to make the white logo pop */
    background-color: var(--color-bg-base) !important;
    /* Existing rules */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background var(--trans-default);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-soft);
    background: var(--color-bg-base);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.site-logo-img {
    background-color: transparent;
    padding: 4px 0;
    border-radius: 0;
    max-height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: calc(var(--space-md) + 10px);
    /* More breathable */
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 1.05rem;
    /* Up slightly for easier clicking */
    font-weight: 700;
    color: var(--color-text-secondary);
    transition: color var(--trans-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--trans-default);
    transform-origin: right;
    /* RTL friendly */
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.lang-switcher a {
    color: var(--color-text-secondary);
    transition: color var(--trans-fast);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--color-accent);
}

.lang-switcher .sep {
    color: var(--color-border);
    font-weight: 300;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    margin: 5px 0;
    transition: all 0.3s;
}

/* --- 6. Buttons & Inputs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    /* Machined, slightly sharp */
    cursor: pointer;
    transition: all var(--trans-default);
    text-align: center;
    border: 1px solid transparent;
}

/* Premium Gradient Button */
.btn-primary {
    background: var(--grad-accent);
    color: var(--color-bg-base);
    /* High contrast against industrial orange */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent-light));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--trans-default);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-bg-tonal-3);
    border-color: var(--color-accent);
}

/* Premium WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #128C7E, #075E54);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--trans-default);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    color: #fff;
}

.btn-whatsapp:hover::before {
    opacity: 1;
}

/* --- 7. Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg-base);
    padding-top: var(--nav-height);
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 28, 0.75);
    z-index: 1;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hero-headline {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.hero-headline span {
    background: var(--grad-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.8;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--space-lg);
}

.hero-badge {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    width: 100%;
}

/* Trust Bar Fixed Styling */
.hero-trust-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(7, 16, 28, 0.95) 0%, transparent 100%);
    border-top: none;
    /* Removed the border causing the horizontal line */
    padding: var(--space-lg) 0 var(--space-md) 0;
    z-index: 3;
}

.trust-bar-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.trust-item span {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .trust-bar-flex {
        gap: var(--space-sm);
        justify-content: space-evenly;
    }

    .trust-item {
        width: 45%;
        justify-content: flex-start;
        margin-bottom: 8px;
    }

    .trust-item span {
        font-size: 0.85rem;
    }

    .hero-section {
        padding-bottom: 120px;
    }
}

/* --- 8. Specific Section Utilities --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-inline: auto;
}

.section-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-border);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: var(--space-sm);
    background: rgba(255, 255, 255, 0.02);
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.section-header p {
    font-size: 1.1rem;
}

/* Sections Data Defaults */
.services-clean-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .services-clean-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Compact Cinematic Service Cards --- */
.service-card-clean {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 122, 0, 0.2);
    border-radius: var(--radius-md);
    background: var(--color-bg-tonal-1);
    min-height: 340px;
    /* Dramatically reduced minimum height */
    display: flex;
    transition: all var(--trans-default);
    box-shadow: var(--shadow-soft);
}

.service-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s ease;
}

.service-video-overlay {
    position: absolute;
    inset: 0;
    /* Premium Reverse Gradient: Solid at the bottom for text, highly transparent at the top for video visibility */
    background: linear-gradient(to top, rgba(7, 16, 28, 0.98) 0%, rgba(7, 16, 28, 0.85) 45%, rgba(7, 16, 28, 0.3) 100%);
    z-index: 1;
    transition: background var(--trans-default);
}

.service-content-relative {
    position: relative;
    z-index: 2;
    padding: var(--space-md);
    /* Sliced padding in half */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
}

/* Override old massive margins for this specific card */
.service-content-relative .service-icon-clean {
    width: 48px;
    /* Smaller, sleeker icon */
    height: 48px;
    margin-bottom: var(--space-sm);
    /* Sliced margin */
}

.service-content-relative h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.service-content-relative .service-list {
    margin: 0 0 var(--space-md) 0;
    /* Sliced bottom margin */
}

.service-content-relative .service-list li {
    font-size: 0.95rem;
    /* Slightly tighter text */
    margin-bottom: 8px;
}

.service-card-clean:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--color-accent-light);
    transform: translateY(-6px);
}

.service-card-clean:hover .service-bg-video {
    transform: scale(1.05);
}

.service-card-clean:hover .service-video-overlay {
    /* Reveal even more video on hover */
    background: linear-gradient(to top, rgba(7, 16, 28, 0.95) 0%, rgba(7, 16, 28, 0.75) 45%, rgba(7, 16, 28, 0.15) 100%);
}

.service-icon-clean {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tonal-1);
    color: var(--color-accent);
    border-radius: 50%;
    margin-bottom: var(--space-lg);
    transition: transform var(--trans-default);
}

.service-card-clean:hover .service-icon-clean {
    transform: scale(1.1);
    background: var(--color-bg-tonal-2);
}

.service-card-clean h3 {
    font-size: 1.35rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 800;
}

.service-card-clean p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    flex: 1;
    line-height: 1.6;
}

.service-link-clean {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--trans-default);
    font-size: 0.95rem;
}

.service-link-clean:hover {
    background: var(--color-accent);
    color: var(--color-bg-base);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
    text-align: right;
    width: 100%;
    flex: 1;
    /* Pushes the button to the bottom */
}

.service-list li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--color-accent);
    font-weight: 800;
    font-size: 1.1rem;
}

/* --- Catalog Carousel Styles --- */
.catalog-category-row {
    margin-bottom: var(--space-xl);
}

.catalog-category-row:last-child {
    margin-bottom: 0;
}

/* 1. Dynamic Premium Title Underline */
.catalog-category-head {
    position: relative;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
    padding-bottom: 12px;
}

.catalog-category-head::after {
    display: none;
    /* Remove old fixed-width line */
}

.catalog-category-header {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-primary);
    position: relative;
    display: inline-block;
    /* Hugs the exact width of the text */
    margin: 0;
    border: none;
    padding: 0;
}

.catalog-category-header::after {
    content: '';
    position: absolute;
    bottom: -13px;
    /* Aligns perfectly over the parent's border */
    right: 0;
    width: 100%;
    /* Matches the word length precisely */
    height: 3px;
    background: linear-gradient(to left, var(--color-accent), transparent);
    /* Soft premium fade */
    border-radius: 3px;
}

.catalog-carousel-controls {
    display: flex;
    gap: 12px;
}

/* 2. Detached Flexbox Arrows (Zero Overlap) */
.carousel-wrapper {
    display: flex;
    align-items: stretch;
    /* Arrows match the track height */
    gap: 16px;
    /* Clean, physical gap between arrows and track */
    position: relative;
}

.catalog-arrow {
    position: static;
    /* Removes absolute overlapping */
    width: 44px;
    flex-shrink: 0;
    background: var(--color-bg-tonal-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    /* Soft corners matching cards */
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--trans-default);
    margin-bottom: var(--space-md);
    /* Accounts for the track's bottom padding */
}

.catalog-arrow:hover:not(:disabled) {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.catalog-arrow:hover:not(:disabled) svg {
    transform: scale(1.1);
    transition: transform var(--trans-fast);
}

.catalog-arrow:disabled {
    display: none;
}

/* Hide if nothing to scroll */

/* Force physical layout order in RTL Flexbox */
.catalog-arrow-right {
    order: 1;
    /* First in RTL flow = Physical Right edge */
}

.catalog-arrow-left {
    order: 3;
    /* Last in RTL flow = Physical Left edge */
}

/* 3. Track Updates for Flexbox */
.catalog-carousel-track {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    /* Takes remaining space cleanly */
    min-width: 0;
    /* CRITICAL: Allows overflow scroll inside flexbox */
    padding: 0 0 var(--space-md) 0;
    /* Removed side paddings since arrows are now outside */
    order: 2;
    /* Middle element */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .carousel-wrapper {
        display: block;
    }

    /* Revert to block for native swipe */
    .catalog-arrow {
        display: none !important;
    }

    .catalog-carousel-track {
        padding: 0 var(--space-sm) var(--space-md) var(--space-sm);
    }
}

.catalog-carousel-track .catalog-card {
    flex: 0 0 calc((100% - (var(--space-md) * 2)) / 3);
    scroll-snap-align: start;
}

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



@media (max-width: 992px) {
    .catalog-carousel-track .catalog-card {
        flex: 0 0 calc((100% - var(--space-md)) / 2);
        /* 2 cards visible */
    }
}

@media (max-width: 768px) {
    .catalog-carousel-track .catalog-card {
        flex: 0 0 85%;
        /* 1 card visible + peek of next */
    }

    .catalog-carousel-controls {
        display: none;
        /* Rely on native swipe for mobile */
    }
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Refined Compact Catalog Card --- */
.catalog-card {
    background: var(--color-bg-tonal-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--trans-default);
    height: 100%;
}

.catalog-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-5px);
    border-color: var(--color-accent-light);
}

.catalog-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--color-bg-base);
    /* Dark background behind image */
    border-bottom: 2px solid transparent;
    transition: border-color var(--trans-default);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.catalog-card:hover .catalog-img-wrapper {
    border-bottom-color: var(--color-accent);
    /* The orange line user requested */
}

.catalog-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* SHOW FULL MACHINE DETAILS */
}

.catalog-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-card h3 {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 3. Upgrade "Machine Details" to a Premium Full-Width Button */
.catalog-card .tech-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    /* Forces button to the exact bottom */
    padding: 10px 16px;
    background: rgba(255, 122, 0, 0.08);
    /* Premium subtle tint */
    border: 1px solid rgba(255, 122, 0, 0.25);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--trans-default);
}

.catalog-card .tech-link:hover {
    background: var(--color-accent);
    color: var(--color-bg-base);
    /* Invert for high impact */
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.3);
}

.catalog-card .tech-link::after {
    content: '←';
    margin-right: 8px;
    transition: transform var(--trans-fast);
}

.catalog-card .tech-link:hover::after {
    transform: translateX(-5px);
}



/* --- 9. Reveal Animations --- */
.reveal {
    opacity: 0;
    transition: all var(--trans-slow);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    transform: translateX(-40px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {

    .nav-links,
    .lang-switcher {
        display: none;
        /* Hide for mobile menu */
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: var(--space-md);
        box-shadow: var(--shadow-elevated);
        text-align: center;
    }

    .nav-active .lang-switcher {
        display: flex;
        justify-content: center;
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
        border-top: 1px solid var(--color-border);
    }
}

/* --- 10. Cards & Content Components --- */
.card {
    background: var(--color-bg-tonal-2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--trans-default);
    border: 1px solid transparent;
}

.card:hover {
    background: var(--color-bg-tonal-3);
    border-color: var(--color-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.card h3 {
    color: var(--color-text-primary);
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

.machine-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: inline-block;
    padding: var(--space-xs);
    background: rgba(212, 175, 55, 0.05);
    border-radius: var(--radius-sm);
}

/* --- Cinematic Portfolio Styles --- */
.portfolio-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.portfolio-main-title {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    margin-bottom: var(--space-sm);
    font-weight: 800;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--trans-default), border-color var(--trans-default), box-shadow var(--trans-default);
    background-color: var(--color-bg-base);
}

.project-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(7, 16, 28, 0.90) 0%, rgba(7, 16, 28, 0.35) 35%, transparent 55%);
    z-index: 1;
}

.project-content-glass {
    position: relative;
    z-index: 2;
    width: 28%;
    min-width: 280px;
    max-width: 360px;
    margin-right: 2rem;
    padding: 1.5rem;
    background: rgba(7, 16, 28, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.2rem;
}

.meta-divider {
    width: 30px;
    height: 2px;
    background: var(--color-border);
    border: none;
}

.project-card h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.case-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 0.2rem;
    font-weight: 400;
}

button.tech-link {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto; /* Push to bottom of glass container */
    font-weight: 700;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
    align-self: flex-start;
    transition: color var(--trans-fast), border-color var(--trans-fast);
}

button.tech-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.tech-link:hover {
    color: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

.project-card:hover .project-visual img:not(.fade-out) {
    transform: scale(1.05);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border);
    box-shadow: var(--shadow-elevated);
}

@media (max-width: 992px) {
    .project-card {
        min-height: 500px;
        align-items: flex-end;
    }
    
    .project-overlay {
        background: linear-gradient(to top, rgba(7, 16, 28, 0.90) 0%, rgba(7, 16, 28, 0.4) 45%, transparent 65%);
    }

    .project-content-glass {
        width: calc(100% - 2rem);
        max-width: 100%;
        margin: 0 auto 1rem auto;
        padding: 1.5rem;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        justify-content: flex-end;
        min-height: 440px;
    }
}

@media (max-width: 576px) {
    .project-card h3 {
        font-size: 1.25rem;
    }
    .case-summary {
        font-size: 0.9rem;
    }
    .project-content-glass {
        padding: 1.25rem;
        gap: 0.6rem;
    }
}



/* Support for LTR/RTL gradients dynamically not needed since we forced RTL overlay natively above */

/* --- Portfolio Modal Styles --- */
.no-scroll {
    overflow: hidden !important;
    height: 100vh;
    padding-right: var(--scrollbar-compensation, 0px); /* Prevents layout shift when scrollbar disappears */
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--trans-default), visibility var(--trans-default);
    overscroll-behavior: contain;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overscroll-behavior: contain;
}

.portfolio-modal-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 1100px);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(7, 16, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform var(--trans-default) cubic-bezier(0.16, 1, 0.3, 1);
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 0, 0.45) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
.portfolio-modal-content::-webkit-scrollbar {
    width: 6px;
}

.portfolio-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 0, 0.45);
    border-radius: 999px;
    border: 2px solid rgba(7, 16, 28, 0.96);
}

.portfolio-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 122, 0, 0.75);
}

.portfolio-modal.active .portfolio-modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background var(--trans-fast), color var(--trans-fast), transform var(--trans-fast);
}

.modal-close-btn:hover {
    background: rgba(255, 122, 0, 0.16);
    color: var(--color-accent-light);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header .case-meta {
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    padding-left: 3.5rem; /* Room for close button */
}

.modal-gallery {
    position: relative;
    width: 100%;
    background: #000;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.modal-main-image.fade-out {
    opacity: 0;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(7, 16, 28, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
    z-index: 3;
}

.modal-nav-btn svg {
    width: 18px;
    height: 18px;
}

.modal-nav-btn:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.modal-nav-btn.next-btn { right: 1.5rem; left: auto; }
.modal-nav-btn.prev-btn { left: 1.5rem; right: auto; }

.modal-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-body .case-challenge,
.modal-body .case-solution {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    text-align: right;
}

.modal-body strong {
    display: block;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.modal-footer {
    padding: 1.5rem 2.5rem 2.5rem;
    display: flex;
    justify-content: flex-end;
}

.modal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .portfolio-modal {
        padding-top: 70px;
        padding-inline: 12px;
    }
    .portfolio-modal-content {
        width: 100%;
        max-height: calc(100vh - 110px);
    }
    .modal-header {
        padding: 2rem 2rem 1rem;
    }
    .modal-header h3 {
        font-size: 1.6rem;
        padding-left: 2.5rem;
    }
    .modal-body {
        padding: 1.5rem 2rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .modal-footer {
        padding: 1.5rem 2rem;
    }
    .modal-image-container {
        height: 300px;
    }
    .modal-nav-btn {
        width: 36px;
        height: 36px;
    }
    .modal-close-btn {
        top: 1rem;
        left: 1rem;
    }
}
/* --- 11. Clients Infinite Marquee --- */
.clients-section {
    position: relative;
    overflow: hidden;
}



.clients-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: var(--space-lg) 0;
    /* Soft gradient fade on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 6rem;
    /* Huge breathing room between logos */
    align-items: center;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
    padding: 0 var(--space-xl);
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - (var(--space-xl) / 2)));
    }
}

.premium-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px;
    /* Constrain height to make all logos look uniform */
    width: auto;
    min-width: 120px;
    transition: transform var(--trans-default);
    cursor: pointer;
}

.premium-logo-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Full Visibility */
    filter: none;
    opacity: 1;
    transition: all var(--trans-default);
}

.premium-logo-item:hover {
    transform: scale(1.08);
}



/* --- Contact Banner --- */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tonal-1);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    /* Joy of colors: Premium Accent Border */
    box-shadow: var(--shadow-elevated);
}

.premium-text-gradient {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.premium-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    width: fit-content;
    padding: 0;
    list-style: none;
}

.premium-contact-grid li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--trans-fast);
    text-align: right;
}

.premium-contact-grid li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-border);
    transform: translateX(-5px);
    /* Smooth RTL push effect */
}

.contact-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent);
    font-weight: 700;
    width: 150px;
    /* This exact width forces the vertical alignment of the values */
    flex-shrink: 0;
}

.contact-value {
    color: var(--color-text-secondary);
    font-weight: 600;
}

@media (max-width: 576px) {
    .premium-contact-grid li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
    }
}



/* --- 11. Custom Premium Slider Polish --- */

/* Imagery solely inside the floating frame */
.hero-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Arrows on Primary CTA & Whatsapp */
.hero-actions .btn-whatsapp::after,
.hero-actions .btn-primary::after {
    content: '←';
    margin-right: 8px;
    font-weight: 900;
    font-family: system-ui, sans-serif;
    transition: transform var(--trans-fast);
}

.hero-actions .btn-whatsapp:hover::after,
.hero-actions .btn-primary:hover::after {
    transform: translateX(-4px);
}

/* Enhanced Mobile Spacing */
@media (max-width: 992px) {
    .slider-progress-track {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .slider-progress-track {
        max-width: 250px;
    }
}

/* --- 14. Case Studies Portfolio --- */
.case-studies-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.case-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .case-split-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.case-card {
    background: transparent;
    border: none;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    /* Extremely subtle and clean */
    transition: transform var(--trans-default), box-shadow var(--trans-default);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.case-visual {
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
    transition: transform var(--trans-slow);
    min-height: 280px;
}

.case-card.featured .case-visual {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .case-card.featured {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        /* Removing gap, turning it into a unified card */
    }

    .case-card.featured .case-visual {
        flex: 1.2;
        min-height: 500px;
        border-bottom: none;
        border-left: 1px solid var(--color-border);
        /* RTL split */
    }

    .case-card.featured .case-content {
        flex: 1;
        padding: var(--space-xl);
        justify-content: center;
    }
}

/* RTL logic */
html[dir="rtl"] .case-card.featured .case-visual {
    order: 1;
}

html[dir="rtl"] .case-card.featured .case-content {
    order: 2;
}

/* Remove dark overlay entirely for a brighter feel */
.case-visual::after {
    display: none;
}

.case-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.case-year {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    font-family: monospace;
    letter-spacing: 1px;
}

.meta-divider {
    width: 30px;
    height: 1px;
    background: var(--color-border);
    border: none;
    margin: 0;
}

.case-category {
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.case-content h3 {
    font-size: 1.6rem;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.case-card.featured h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.case-challenge,
.case-solution,
.case-content p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.case-content strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

/* Extremely minimal and highly sophisticated link arrows */
.case-card .tech-link {
    margin-top: auto;
    padding: var(--space-xs) 0 0 0;
    border: none;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
    transition: all var(--trans-fast);
    font-weight: 700;
}

.case-card .tech-link::after {
    content: '←';
    margin-right: 8px;
    font-family: system-ui, sans-serif;
    transition: transform var(--trans-fast);
}

.case-card .tech-link:hover {
    color: var(--color-text-primary);
    transform: translateX(-4px);
    background: transparent;
}

/* --- 15. Machine Details Template --- */
.pt-4 {
    padding-top: 8rem;
}

/* Pushing past sticky nav */

.breadcrumb {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--trans-fast);
}

.breadcrumb a:hover {
    color: var(--color-text-primary);
}

.details-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 992px) {
    .details-top-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.details-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.details-intro {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.details-cta {
    margin-top: var(--space-lg);
}

.details-main-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    object-fit: cover;
    max-height: 500px;
    border: 1px solid var(--color-border);
}

.details-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 992px) {
    .details-content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.specs-table th,
.specs-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    text-align: right;
}

.specs-table th {
    background: var(--color-bg-tonal-1);
    color: var(--color-text-primary);
    font-weight: 700;
    width: 35%;
}

.specs-table td {
    color: var(--color-text-secondary);
}

.specs-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.specs-table tr {
    transition: background-color 0.2s ease;
}

.specs-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.features-list {
    list-style: none;
    margin-top: var(--space-md);
    padding: 0;
}

.features-list li {
    padding: var(--space-sm) 0;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    border-bottom: 1px dashed var(--color-border);
    min-height: 44px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list .list-icon {
    flex-shrink: 0;
    margin-top: 4px;
}

.features-list li strong {
    color: var(--color-text-primary);
}

.inquiry-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-base);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--color-border);
}

.inquiry-content h2 {
    margin-bottom: var(--space-xs);
    font-size: 2.2rem;
}

.inquiry-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* --- 16. Footer Styles --- */
.site-footer {
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.6fr;
        gap: var(--space-lg);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: var(--space-sm);
    }
}

.footer-grid h4 {
    font-size: 1.15rem;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 8px;
    margin-bottom: var(--space-md);
    display: inline-block;
    align-self: flex-start;
    font-weight: 700;
}

.footer-hours-compact {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.hours-row-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95rem;
    gap: 4px;
}

.hours-row-compact:last-child {
    margin-bottom: 0;
}

.hours-row-compact .hours-label {
    color: var(--color-text-primary);
    font-weight: 600;
}

.hours-row-compact .hours-value {
    color: var(--color-text-secondary);
}

.map-preview-container {
    background: transparent;
    border-radius: var(--radius-md);
    padding: 0;
    display: block;
    margin-bottom: var(--space-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-preview-container iframe {
    display: block;
    width: 100%;
}

.map-cta-btn {
    font-size: 0.85rem;
    padding: 0.5rem;
    border-color: var(--color-accent);
    color: var(--color-text-primary);
    text-align: center;
    display: block;
    width: 100%;
}

.map-cta-btn:hover {
    background: var(--color-accent);
    color: white;
}

.address-text {
    display: flex;
    align-items: flex-start;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.address-text svg {
    margin-top: 4px;
    margin-inline-end: 8px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.contact-value a.map-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

.contact-value a.map-link:hover {
    color: var(--color-accent);
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--color-text-primary);
    letter-spacing: 1px;
    display: inline-block;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 8px;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: var(--space-md);
}

.footer-socials a {
    color: var(--color-text-muted);
    background: var(--color-bg-base);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    transition: all var(--trans-fast);
}

.footer-socials a:hover {
    color: var(--color-bg-base);
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.footer-links h4 {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--trans-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '←';
    margin-left: 8px;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--trans-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- 17. Floating WhatsApp CTA --- */
.floating-whatsapp {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-xl);
    z-index: 100;
    text-decoration: none;
    animation: float-breathe 4s ease-in-out infinite;
}

.whatsapp-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    padding: 6px;
    padding-left: 6px;
    border-radius: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform var(--trans-default), box-shadow var(--trans-default), border-color var(--trans-default);
}

.floating-whatsapp:hover .whatsapp-container {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    animation: whatsapp-label-pulse 5s ease-in-out infinite;
}

@keyframes whatsapp-label-pulse {

    0%,
    30%,
    100% {
        max-width: 0;
        opacity: 0;
        padding: 0;
        margin-left: 0;
    }

    40%,
    90% {
        max-width: 250px;
        opacity: 1;
        padding: 0 var(--space-md);
    }
}

.whatsapp-icon {
    width: 48px;
    height: 48px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform var(--trans-fast);
}

.floating-whatsapp:hover .whatsapp-icon {
    transform: scale(1.05);
}

@keyframes float-breathe {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 90px;
        left: var(--space-md);
    }

    .whatsapp-label {
        display: none;
    }

    .whatsapp-container {
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .whatsapp-icon {
        width: 54px;
        height: 54px;
        box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
    }
}

/* --- 17. Machine Details Product Showcase --- */

.dev-update-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-right: 4px solid #F59E0B;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.notice-icon {
    color: #F59E0B;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.notice-text {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.notice-whatsapp-link {
    color: #10B981;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--trans-fast);
}

.notice-whatsapp-link:hover {
    color: #059669;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .dev-update-notice {
        flex-direction: row;
        align-items: flex-start;
        padding: var(--space-sm);
    }
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: 0;
}

@media (min-width: 992px) {
    .product-showcase-grid {
        /* RTL layout: Column 1 is on the RIGHT. Gallery right, Info left. */
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-xl);
        align-items: start;
    }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: sticky;
    top: 100px;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--color-bg-tonal-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-elevated);
    position: relative;
}

.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--trans-fast);
}

.thumbnail-gallery {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.thumb-btn {
    width: 90px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    flex-shrink: 0;
    transition: all var(--trans-fast);
    background: var(--color-bg-tonal-2);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity var(--trans-fast);
}

.thumb-btn:hover img {
    opacity: 1;
}

.thumb-btn.active {
    border-color: var(--color-accent);
}

.thumb-btn.active img {
    opacity: 1;
}

.product-info-panel {
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: var(--space-md);
}

.product-action-card {
    background: var(--color-bg-tonal-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.product-action-card .premium-trust-indicators {
    margin-bottom: 0;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
}

.badge-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-category {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.product-title {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.product-summary-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.quick-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.quick-spec-chip {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color var(--trans-fast), transform var(--trans-fast);
}

.quick-spec-chip:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.qs-key {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.qs-val {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    font-weight: 700;
}

.product-highlights {
    background: var(--color-bg-tonal-1);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.product-highlights h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: var(--space-xs);
    display: inline-block;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .highlights-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

.highlights-list li {
    margin-bottom: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding-right: var(--space-md);
    position: relative;
}

.highlights-list li::before {
    content: "•";
    color: var(--color-accent);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -4px;
}

.highlights-list li strong {
    color: var(--color-text-primary);
}

.product-cta-bank .btn {
    font-size: 1.1rem;
    padding: 1rem;
}

.cta-secondary-row {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.premium-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.trust-badge svg {
    color: var(--color-accent);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.w-100 {
    width: 100%;
}

/* === Gallery Arrows & Zoom === */
.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.main-product-img {
    display: block;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.main-image-container:hover .main-product-img {
    transform: scale(1.08);
}

/* RTL Fixed Gallery Arrows - Premium Refinement */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(7, 16, 28, 0.4);
    border: 1px solid var(--color-border);
    transition: all var(--trans-normal);
    opacity: 0.85;
}

.gallery-arrow svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: color var(--trans-normal);
}

.gallery-arrow:hover {
    opacity: 1;
    background: rgba(7, 16, 28, 0.8);
    border-color: var(--color-accent);
    transform: translateY(calc(-50% - 2px));
    box-shadow: 0 6px 16px rgba(239, 108, 0, 0.15);
}

.gallery-arrow:hover svg {
    color: var(--color-accent);
}

.gallery-prev {
    right: 16px;
    left: auto;
}

/* Prev arrow is on the Right in RTL */
.gallery-next {
    left: 16px;
    right: auto;
}

/* Next arrow is on the Left in RTL */

@media (max-width: 768px) {
    .gallery-arrow {
        width: 32px;
        height: 32px;
    }

    .gallery-arrow svg {
        width: 16px;
        height: 16px;
    }

    .gallery-prev {
        right: 12px;
    }

    .gallery-next {
        left: 12px;
    }
}

/* Keep arrows fully tappable on touch screens */
@media (hover: none) {
    .gallery-arrow {
        opacity: 0.95;
    }
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(7, 16, 28, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- Mobile Sticky CTA --- */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background: var(--color-glass-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding: 12px var(--space-md);
    }

    .page-content {
        padding-bottom: 85px;
        /* Clear the overlaying CTA */
    }
}

/* --- Animated Type Logo --- */
.animated-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-en-row {
    display: flex;
    align-items: center;
    gap: 2px;
    direction: ltr;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--grad-accent);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 6px;
    box-shadow: var(--shadow-accent);
    z-index: 10;
    position: relative;
    text-transform: lowercase;
}

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

.logo-chars span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    text-transform: lowercase;
    letter-spacing: -1px;
    opacity: 0;
    filter: blur(4px);
    transform: translateX(-15px);
}

.logo-ar-stamp {
    margin-top: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--color-text-secondary);
    opacity: 0;
    transform: translateY(10px);
}

/* Animation Triggers */
.animated-logo-container.play-anim .logo-chars span {
    animation: assembleLogo 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: calc(var(--delay) * 0.15s);
}

.animated-logo-container.play-anim .logo-ar-stamp {
    animation: stampLogo 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

@keyframes assembleLogo {
    to {
        opacity: 1;
        filter: blur(0px);
        transform: translateX(0);
    }
}

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

/* Page Content Padding Fix */
.page-content {
    padding-top: calc(var(--nav-height) + var(--space-md));
}

/* YouTube Video Presentation */
.video-presentation-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--color-border);
    background: var(--color-bg-base);
}

.premium-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.channel-fallback-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(145deg, var(--color-bg-tonal-2), var(--color-bg-base));
    text-decoration: none;
    transition: all var(--trans-default);
}

.channel-fallback-banner:hover {
    background: var(--color-bg-tonal-3);
}

.youtube-icon-large {
    color: #FF0000;
    margin-bottom: var(--space-sm);
    transition: transform var(--trans-default);
}

.channel-fallback-banner:hover .youtube-icon-large {
    transform: scale(1.1);
}

.channel-fallback-banner h3 {
    color: var(--color-text-primary);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.channel-fallback-banner p {
    color: var(--color-text-secondary);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.border-top {
    border-top: 1px solid var(--color-border);
}

.btn-tonal {
    background: var(--color-bg-tonal-2);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-tonal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cta-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.machine-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* --- Premium B2B Machine Details Upgrades --- */
.premium-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--color-accent);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.premium-summary {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    border-right: 3px solid var(--color-border);
    padding-right: var(--space-sm);
}

.badge-premium {
    background: var(--color-bg-tonal-3);
    border: 1px solid var(--color-accent);
    color: var(--color-text-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.premium-category {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.quick-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.quick-spec-chip {
    background: var(--color-bg-tonal-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-spec-chip .qs-key {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.quick-spec-chip .qs-val {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 700;
}

.premium-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.trust-badge svg {
    flex-shrink: 0;
}

.premium-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: var(--color-bg-tonal-2);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: transform var(--trans-fast), background var(--trans-fast);
    border: 1px solid transparent;
}

.premium-list li:hover {
    transform: translateX(-5px);
    background: var(--color-bg-tonal-3);
    border-color: var(--color-border);
}

.premium-list .list-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.premium-fallback {
    flex-direction: row;
    gap: var(--space-md);
    text-align: right;
    padding: var(--space-md) var(--space-lg);
}

@media (max-width: 768px) {
    .premium-fallback {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Machine Details Responsive Polish --- */
@media (max-width: 576px) {
    .quick-specs-grid {
        grid-template-columns: 1fr;
    }

    .premium-trust-indicators {
        gap: var(--space-xs);
    }

    .trust-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .cta-secondary-row {
        grid-template-columns: 1fr;
    }

    .product-cta-bank .btn {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .premium-title {
        font-size: 1.8rem;
    }

    .premium-summary {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 768px) {
    .product-showcase-grid {
        gap: var(--space-lg);
    }

    .product-highlights {
        padding: var(--space-md);
    }
}

/* Gallery single-image state */
.gallery-single .gallery-arrow {
    display: none;
}

.gallery-single .thumbnail-gallery {
    display: none;
}

/* Portfolio Slideshow Enhancements */
.slideshow-image {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
}

.slideshow-image.fade-out {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .slideshow-image {
        transition: none !important;
    }
}