/* EverDeck Premium Design System - Industrial Dark */
:root {
    --bg-dark: #121212;
    --bg-card: #1c1c1c;
    --text-main: #e0e0e0;
    --text-dim: #b0b0b0;
    --primary: #C19A6B;
    --primary-glow: rgba(193, 154, 107, 0.3);
    --accent: #2c2c2c;
    --danger: #ff4d4d;
    --success: #2ecc71;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    text-align: center;
    padding: 2rem;
    position: relative;
    border-bottom: 1px solid var(--accent);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    background: rgba(18, 18, 18, 0.5);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    display: flex;
    gap: 0.8rem;
    transition: var(--transition);
}

.lang-switcher a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.lang-switcher a:hover {
    color: var(--primary);
}

.lang-switcher span.active {
    color: var(--primary);
}

.lang-switcher span.separator {
    color: var(--accent);
}

/* Chapter Headers */
.chapter-header {
    width: 100%;
    padding: 3rem 0;
    margin-top: 6rem;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 4rem;
}

.chapter-header h1 {
    font-size: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chapter-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Catalog Grid & Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Gallery Mosaic */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 150px;
    gap: 15px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.mosaic-wide { grid-column: span 2; }
.mosaic-tall { grid-row: span 2; }
.mosaic-big { grid-column: span 2; grid-row: span 2; }

.catalog-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.product-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: var(--bg-card);
    aspect-ratio: 16/10;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
}

.product-description {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5em;
    position: relative;
}

.features-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.cta-button {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Technical Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4rem;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.specs-table th, .specs-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--accent);
}

.specs-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Perfect PDF System - A4 Portrait High-Fidelity */
@media print {
    @page {
        size: A4 portrait;
        margin: 15mm;
    }

    :root {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background-color: var(--bg-dark) !important;
        color: var(--text-main) !important;
        -webkit-print-color-adjust: exact;
        width: 180mm; /* Safe printable width for A4 Portrait */
    }

    .catalog-container {
        width: 180mm;
        margin: 0;
        padding: 0;
    }

    header {
        height: 250mm !important; /* Forces hero to cover first page */
        page-break-after: always;
        break-after: page;
        border-bottom: none;
    }

    .hero-title {
        font-size: 5rem !important;
    }

    .product-section {
        display: block !important; /* Stack vertically for portrait */
        margin-bottom: 20mm !important;
        page-break-inside: avoid;
        break-inside: avoid;
        padding: 10mm;
        background: var(--bg-card) !important;
        border-radius: 12px;
        width: 100%;
        opacity: 1 !important;
        transform: none !important;
    }

    .product-image {
        width: 100% !important;
        height: 90mm !important;
        margin-bottom: 10mm;
    }

    .product-content {
        width: 100% !important;
    }

    .product-content h2 {
        font-size: 2rem !important;
    }

    .chapter-header {
        page-break-before: always;
        break-before: page;
        padding: 20mm 0 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        width: 100%;
    }

    .chapter-header h1 {
        font-size: 3rem !important;
    }

    .specs-table {
        page-break-inside: avoid;
        break-inside: avoid;
        width: 100% !important;
        margin-top: 10mm;
    }

    .gallery-mosaic {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 cols for portrait */
        grid-auto-rows: 60px !important;
        gap: 5mm !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Hide unnecessary UI elements */
    .cta-button, .script-hidden, .final-summary .cta-contact, .mobile-only, footer {
        display: none !important;
    }

    .final-summary {
        page-break-before: always;
        break-before: page;
        margin: 0 !important;
        height: 250mm;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Final Summary CTA */
.final-summary {
    max-width: 1000px;
    margin: 8rem auto;
    padding: 6rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.final-summary h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.final-summary p {
    font-size: 1.25rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.cta-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-contact h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .product-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
