/* ===== VARIABLES ===== */
:root {
    --gh-yellow: #FFD700;
    --gh-dark: #1A1A1A;
    --gh-gray: #666666;
    --gh-light-gray: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--gh-dark);
    background-color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--white);
    border-bottom: 1px solid #E0E0E0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gh-dark);
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.9rem;
    color: var(--gh-gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 16px;
    border: 1px solid #E0E0E0;
    background-color: var(--white);
    color: var(--gh-dark);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    background-color: var(--gh-light-gray);
}

.lang-btn.active {
    background-color: var(--gh-dark);
    color: var(--white);
    border-color: var(--gh-dark);
}

.contact-buttons {
    display: flex;
    gap: 15px;
}

.btn-contact {
    padding: 10px 20px;
    background-color: var(--gh-yellow);
    color: var(--gh-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-contact:hover {
    background-color: #FFC700;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, var(--gh-dark) 0%, #333 100%);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

/* ===== TABS NAVIGATION ===== */
.tabs-section {
    background-color: var(--gh-light-gray);
    padding: 0;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
}

.tab-nav-btn {
    padding: 20px 60px;
    border: none;
    background-color: #E0E0E0;
    color: var(--gh-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 4px solid transparent;
}

.tab-nav-btn:hover {
    background-color: #D0D0D0;
}

.tab-nav-btn.active {
    background-color: var(--white);
    border-bottom-color: var(--gh-yellow);
}

/* ===== CATALOGS CONTENT ===== */
.catalogs-content {
    background-color: var(--white);
    padding: 60px 0 80px;
    min-height: 600px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CATALOG GRID ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.catalog-item {
    background-color: var(--white);
    border: 1px solid #E0E0E0;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.catalog-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.catalog-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--gh-light-gray);
}

.catalog-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 210/297; /* A4 ratio */
    object-fit: cover;
}

.catalog-view-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.catalog-item:hover .catalog-view-overlay {
    opacity: 1;
}

.catalog-view-overlay svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.catalog-info {
    padding: 20px;
    background-color: var(--white);
}

.catalog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gh-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.catalog-description {
    font-size: 0.9rem;
    color: var(--gh-gray);
    line-height: 1.5;
    margin-bottom: 15px;
}

.catalog-actions {
    display: flex;
    gap: 10px;
}

.btn-catalog {
    flex: 1;
    padding: 10px;
    border: 1px solid #E0E0E0;
    background-color: var(--white);
    color: var(--gh-dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-catalog:hover {
    background-color: var(--gh-yellow);
    border-color: var(--gh-yellow);
}

.btn-catalog svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 15px 40px;
    background-color: var(--gh-yellow);
    color: var(--gh-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-cta:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--gh-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== PDF MODAL ===== */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.pdf-modal.active {
    display: block;
}

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.pdf-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: 5% auto;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #E0E0E0;
    background-color: var(--white);
}

.pdf-modal-header h3 {
    font-size: 1.5rem;
    color: var(--gh-dark);
}

.pdf-controls {
    display: flex;
    gap: 10px;
}

.pdf-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--gh-light-gray);
    color: var(--gh-dark);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pdf-control-btn:hover {
    background-color: var(--gh-yellow);
}

.pdf-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #F0F0F0;
}

.pdf-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background-color: var(--white);
    border-bottom: 1px solid #E0E0E0;
}

.pdf-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--gh-dark);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.pdf-nav-btn:hover:not(:disabled) {
    background-color: var(--gh-yellow);
    color: var(--gh-dark);
}

.pdf-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#pdf-page-info {
    font-weight: 600;
    color: var(--gh-dark);
    min-width: 80px;
    text-align: center;
}

.pdf-canvas-container {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    background-color: var(--white);
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
}

.pdf-loading.active {
    display: block;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #E0E0E0;
    border-top-color: var(--gh-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pdf-loading p {
    color: var(--gh-gray);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-contact {
        width: 100%;
    }

    .page-title {
        font-size: 2rem;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-nav-btn {
        width: 100%;
        padding: 15px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-cta {
        width: 100%;
    }

    .pdf-modal-container {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }

    .pdf-modal-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo-section h1 {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .tab-nav-btn {
        font-size: 1rem;
        padding: 12px;
    }

    .catalog-title {
        font-size: 1rem;
    }

    .catalog-description {
        font-size: 0.85rem;
    }
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-top: 40px;
}

.about-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-intro {
        font-size: 1rem;
    }
}
