/* --- 1. VARIABLES & RESET --- */
:root {
    --primary: #008a47;
    --primary-dark: #006835;
    --dark: #1a1a1a;
    --darker: #0f0f0f;
    --light: #ffffff;
    --grey: #f4f6f8;
    --grey-text: #666666;
    --accent-orange: #f59e0b;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Barlow', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 1rem;
}

a, a:active, a:hover {
  text-decoration: none;
  transition: var(--transition);
}
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- UTILS --- */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }

.skew-section {
    position: relative;
    background: var(--grey);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    padding-bottom: 120px;
}

.section-title-wrapper {
    margin-bottom: 60px;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--primary);
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn i { margin-left: 10px; transition: var(--transition); }

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background-color: var(--dark);
    z-index: -1;
    transition: var(--transition);
    transform: skewX(-20deg);
    transform-origin: left;
}

.btn-primary:hover::before { width: 150%; }
.btn-primary:hover i { transform: translateX(5px); }

.btn-outline {
    border: 2px solid var(--light);
    color: var(--light);
    background: transparent;
}

.btn-outline:hover {
    background: var(--light);
    color: var(--dark);
}

/* --- HEADER & TOP BAR --- */
.top-bar {
    background-color: var(--darker);
    color: #aaa;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content { display: flex; justify-content: space-between; }
.top-info {
    display: flex;
}
.top-info span { display: flex; flex-direction: row; align-items: center; margin-right: 20px; }
.top-info i { color: var(--primary); margin-right: 3px; }
.top-info a {
    display: flex;
    align-items: center;
    color: #aaa;
}
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px; height: 40px;
    background: var(--primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transform: skewX(-10deg);
}

.logo img {
    height: 35px;
}

.nav-menu { display: flex; gap: 40px; align-items: center; }

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); }

.hamburger { display: none; font-size: 1.8rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 6s ease-out;
}

.hero-slide.active { opacity: 1; transform: scale(1); z-index: 1; }

.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-bottom-clip {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80px;
    background: var(--light);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 3;
}

.hero-content {
    position: relative; z-index: 4;
    max-width: 900px;
    padding-left: 100px;
    color: var(--light);
}
.hero-content p {
    font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; border-left: 4px solid var(--primary); padding-left: 20px;
}
.hero-tag {
    background: var(--primary);
    padding: 5px 15px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    transform: skewX(-10deg);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    margin-bottom: 30px;
    color: var(--light);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- FEATURES --- */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; margin-top: -80px; position: relative; z-index: 10;
    margin-bottom: 100px;
}

.feature-box {
    background: var(--light); padding: 40px;
    box-shadow: var(--shadow); border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.feature-box:hover {
    border-bottom-color: var(--primary); transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem; color: var(--primary); margin-bottom: 20px;
}

/* --- STATS --- */
.stats-section {
    background: var(--dark); color: var(--light); padding: 80px 0; position: relative;
}
.stats-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); opacity: 0.1;
}

.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 30px; position: relative; z-index: 2; text-align: center;
}

.stat-number {
    font-size: 3.5rem; font-family: var(--font-heading);
    font-weight: 700; color: var(--primary); display: block;
}

/* --- HOMEPAGE OFFER CARDS --- */
.offer-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.offer-card {
    display: block; /* Fix: Make whole card clickable area */
    position: relative;
    overflow: hidden;
    height: 450px;
    background: #000;
    border-radius: 2px;
}

.offer-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease; opacity: 0.8;
}

.offer-content {
    position: absolute; bottom: 0; left: 0; width: 85%;
    background: var(--light); padding: 30px;
    clip-path: polygon(0 0, 100% 20%, 100% 100%, 0% 100%);
    transition: var(--transition);
}

.offer-card:hover .offer-img { transform: scale(1.1); opacity: 1; }
.offer-card:hover .offer-content {
    width: 95%; background: var(--primary);
}

.offer-card:hover h3, .offer-card:hover p { color: var(--light); }
.offer-link {
    margin-top: 15px; display: inline-block;
    font-weight: 700; text-transform: uppercase;
    color: var(--primary); font-family: var(--font-heading);
}
.offer-card:hover .offer-link { color: var(--dark); }

/* --- CONTACT FORM --- */
.contact-content-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-form-wrapper { background: #fff; padding: 50px; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); color: var(--dark); }

.form-control {
    width: 100%; padding: 18px 20px;
    background: var(--grey); border: 1px solid transparent;
    margin-bottom: 20px; font-family: var(--font-body); font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none; border-color: var(--primary); background: var(--light);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 0;
    margin-bottom: 25px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: #666;
    line-height: 1.5;
    user-select: none;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
    background-color: #f9f9f9;
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.label-text {
    margin-top: -2px;
}

/* --- FOOTER --- */
.footer {
    background: var(--darker); color: #fff;
    padding-top: 80px; border-top: 5px solid var(--primary);
}

.footer-top {
    display: grid; grid-template-columns: 2.5fr 1fr 1.2fr; gap: 40px;
    padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-top .logo img {
    margin-bottom: 10px;
}
.footer h4 { color: var(--light); margin-bottom: 25px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #999; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-bottom { padding: 25px 0; text-align: center; color: #666; font-size: 0.9rem; }

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 138, 71, 0.3);
}

/* --- OFFER PAGE LAYOUT --- */
.category-section {
    margin-bottom: 80px; border-bottom: 1px solid #eee; padding-bottom: 80px;
}
.category-section:last-child { border-bottom: none; }

.category-header {
    display: flex; align-items: center; gap: 15px;
    font-size: 2.5rem; margin-bottom: 40px;
    background: #f4f6f8; padding: 20px; border-left: none;
}
.category-header i { color: var(--accent-orange); font-size: 2rem; font-weight: 900; }

.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.product-card {
    display: block; /* Ensures link covers area */
    background: #fff; transition: var(--transition);
    cursor: pointer; border: 1px solid #eee;
}
.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-5px);
}

.product-img-wrapper {
    height: 250px; overflow: hidden; background: #fff;
    padding: 20px; display: flex; align-items: center; justify-content: center;
}
.product-img-wrapper img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrapper img { transform: scale(1.05); }

.product-info { padding: 20px; background: #f9f9f9; text-align: left; }
.product-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark); font-weight: 700; }
.product-link {
    color: var(--accent-orange); font-weight: 700; font-size: 0.9rem;
    text-transform: uppercase; display: flex; align-items: center; gap: 5px;
}
.product-link i { font-size: 0.8rem; transition: transform 0.3s; }
.product-card:hover .product-link i { transform: translateX(5px); }

/* --- PRODUCT SINGLE PAGE --- */
.product-page-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; margin-bottom: 80px;
}

.product-gallery-static {
    position: relative; width: 100%; height: 500px;
    background: #f4f6f8; overflow: hidden; border-radius: 4px;
}
.product-gallery-static img {
    width: 100%; height: 100%; object-fit: contain;
    opacity: 0; transition: opacity 0.3s ease-in-out;
    position: absolute; top: 0; left: 0;
}
.product-gallery-static img.loaded { opacity: 1; }

.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; background: rgba(0,0,0,0.6); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; font-size: 1.2rem; user-select: none; z-index: 10;
}
.gallery-arrow:hover { background: var(--primary); }
.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.equipment-section {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; margin-bottom: 80px; background: #f9f9f9; padding: 50px;
}

.equip-list li {
    display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 1rem; color: var(--dark);
}
.equip-list i { color: var(--primary); margin-right: 15px; font-size: 1.2rem; margin-top: 3px; }

.table-responsive { width: 100%; overflow-x: auto; }
.tech-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); text-align: center;}
.tech-table th {
    background: var(--dark); color: #fff; padding: 15px; text-align: left;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-heading); text-align: center;
}
.tech-table td { padding: 15px; border-bottom: 1px solid #eee; color: var(--dark); }
.tech-table tr:nth-child(even) { background-color: #f4f6f8; }
.tech-table tr:hover { background-color: rgba(0, 138, 71, 0.05); }

/* --- ANIMATIONS --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-up.active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .offer-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .features-grid, .offer-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid, .footer-top { grid-template-columns: repeat(2, 1fr); }
    
    .product-page-grid { grid-template-columns: 1fr; }
    .product-gallery-static { height: 400px; }
    .equipment-section { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
    .contact-content-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrapper { clip-path: none; padding: 30px; }
    .hero-bottom-clip, .skew-section { clip-path: none; }
    .hero-bottom-clip { display: none; }
}
@media (max-width: 950px) {
    .header { padding: 10px 0; }
    .navbar { height: 60px; }
    .hamburger { display: block; color: var(--dark); position: absolute; right: 30px; z-index: 1000;}
    
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--light); flex-direction: column; align-items: flex-start;
        padding: 80px 40px; gap: 25px; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s;
    }
    .nav-menu.active { right: 0; }
    
    .navbar nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
    }
    .features-grid, .offer-grid, .product-grid, .stats-grid, .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2.5rem; margin-bottom: 20px; }
    .hero { height: 75vh; }
    .hero-content {
        padding-left: 50px;
    }
    .btn { width: 100%; margin-bottom: 10px; margin-left: 0 !important; }
    .top-bar .top-info:last-child { display: none; }
    
    .top-bar-content { justify-content: center; }
    .footer { padding-top: 50px; }
    .section-padding { padding: 60px 0; }
    
    .features-grid { margin-top: 0; background: var(--grey); padding: 40px 20px; gap: 20px; }
    .category-header { font-size: 1.8rem; padding: 15px; }
    .product-gallery-static { height: 300px; }
    .category-section {
        padding-bottom: 50px;
        margin-bottom: 50px;
    }
}
@media (max-width: 650px) {
    .hero-title {
        font-size: 2em;
    }
    .hero-content {
        padding-left: 0;
    }
    .hero-content p {
        font-size: 1rem;
    }
}




.lang-switcher {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 3px;
    color: white;
}

.lang-flag {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

.lang-label {
    margin-right: 0 !important;
}

.lang-dropdown {
    position: absolute;
    top: 32px;
    right: 0;
    background: white;
    color: #222;
    border-radius: 6px;
    padding: 8px 0;
    width: 130px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    text-decoration: none;
    color: #222;
    font-size: 0.95rem;
}

.lang-dropdown a:hover {
    background: #f0f0f0;
}



/* 404 ERROR */
.error-404 {
    padding: 120px 0;
    background: #202020;
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    line-height: 1;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.9;
    font-family: var(--font-heading, sans-serif);
}

.error-title-wrapper {
    border-color: var(--light) !important;
    padding-left: 0 !important;
    border-left: none !important;
    margin-bottom: 30px;
    display: inline-block;
}

.error-title {
    color: #fff !important;
    font-size: 2.5rem !important;
}

.error-text {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 40px;
}

.error-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}