/* CSS Variables */
:root {
    --primary-color: #f1bc31;
    --secondary-color: #414042;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(241, 188, 49, 0.3);
    --transition-smooth: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Language Switcher - NEW FEATURE */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover,
.lang-btn:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Navigation */
nav {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}
 
.logo-icon {
    height: 60px;
    width: 80px;
    margin-right: 5px;
}
 
.logo-text-group {
    flex-shrink: 0;
}

.logo-svg-text {
    width: 200px;
    height: 60px;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}
 
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    color: var(--primary-color);
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 2px solid var(--secondary-color);
    padding: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    border-radius: 4px;
    transition: var(--transition-smooth);
    min-width: 48px;
    min-height: 48px;
}

.mobile-toggle:hover,
.mobile-toggle:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    outline: none;
}

/* Hero Section - Enhanced */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c2c2e 100%);
    color: var(--white);
    padding: 8rem 2rem 4rem;
    text-align: center;
    margin-top: 76px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto 2rem;
    font-weight: 400;
    animation: fadeIn 1.4s ease-out;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    animation: fadeIn 1.6s ease-out;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-weight: 700;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-smooth);
}

.about-card:hover,
.about-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Products Section */
.products {
    background: var(--light-bg);
}

/* Product Filter - NEW FEATURE */
.product-filter {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.filter-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition-smooth);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(241, 188, 49, 0.2);
}

.filter-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card.hidden {
    display: none;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1.5rem;
    min-height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.product-body {
    padding: 1.5rem;
    flex: 1;
}

.product-body ul {
    list-style: none;
    padding-left: 0;
}

.product-body li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.product-body li::before {
    content: "▸";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-item {
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 150px;
    justify-content: center;
}

.partner-item:hover,
.partner-item:focus-within {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
 
.partner-item img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Contact Section - Enhanced with Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: var(--primary-color);
    font-weight: 700;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-item a:hover,
.contact-item a:focus {
    color: var(--primary-color);
    text-decoration: underline;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Inquiry Form - NEW FEATURE */
.inquiry-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
    min-height: 48px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(241, 188, 49, 0.2);
}

.form-submit {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    min-height: 48px;
}

.form-submit:hover,
.form-submit:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-right {
        position: fixed;
        left: -100%;
        top: 76px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2rem 0;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        gap: 1rem;
    }

    .nav-right.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
    }

    .lang-switcher {
        justify-content: center;
        padding: 1rem 0;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 60vh;
    }

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

    .product-grid,
    .about-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .product-header {
        min-height: auto;
    }

    .logo-svg-text {
        width: 160px;
        height: 50px;
    }
    
    .logo-icon {
        height: 50px;
        width: 50px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .container {
        padding: 3rem 1rem;
    }

    .hero {
        padding: 5rem 1rem 2.5rem;
    }

    .about-card,
    .product-card {
        padding: 1.5rem;
    }

    .contact-info,
    .inquiry-form {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    .mobile-toggle,
    .cta-button,
    .inquiry-form,
    .lang-switcher {
        display: none;
    }

    body {
        color: #000;
    }

    .hero {
        background: none;
        color: #000;
        margin-top: 0;
    }

    .highlight {
        color: #000;
        font-weight: 700;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #e5a800;
        --secondary-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Visible Support */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   FIX: Text clipping and i18n issues
   Added: 2025-10-27
   ============================================ */

/* Ensure proper spacing for section titles */
.section-title {
    line-height: 1.4 !important;
    padding-top: 1rem !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

/* Fix container overflow issues */
.container,
.products,
section {
    overflow: visible !important;
}

/* Ensure hero heading is not clipped */
.hero h1,
#hero-heading {
    line-height: 1.5 !important;
    padding: 1rem 0 !important;
    overflow: visible !important;
}

/* Fix hero section padding */
.hero {
    padding: 10rem 2rem 4rem !important; /* Increased from 8rem */
}

/* Add more space to container sections */
.container {
    padding: 5rem 2rem !important; /* Increased from 4rem */
}

/* Ensure proper spacing at top of sections */
section {
    padding-top: 5rem !important;
}

/* Fix About section specifically */
#about {
    padding-top: 7rem !important;
}

/* Fix Products section */
#products {
    padding-top: 3rem !important;
}

/* Fix Partners section */
#partners {
    padding-top: 7rem !important;
}

/* Fix Contact section */
#contact {
    padding-top: 7rem !important;
}

/* Ensure text is fully visible */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.4 !important;
    overflow: visible !important;
}

/* Fix for mobile */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 1.5rem 3rem !important;
    }
    
    .container {
        padding: 4rem 1rem !important;
    }
    
    section {
        padding-top: 4rem !important;
    }
}
