/*
Theme Name: RBK Technologies
Theme URI: https://rbk.akitapromo.pro
Author: Akita Promo
Description: Custom theme for RBK Technologies - European padel court manufacturer
Version: 1.0.0
Text Domain: rbk-theme
*/

:root {
    --primary-green: #00573B;
    --primary-blue: #004D99;
    --white: #FFFFFF;
    --dark-gray: #333333;
    --light-gray: #F2F2F2;
    --text-color: #333333;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-green);
    text-decoration: none;
}

.logo span {
    color: var(--primary-blue);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-green);
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch a {
    text-decoration: none;
    color: var(--dark-gray);
    padding: 5px 10px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.lang-switch a:hover,
.lang-switch a:hover,.lang-switch a.active {    background: var(--primary-green);    color: var(--white);    border-color: var(--primary-green);}/* Language Dropdown */.lang-switch-dropdown {    position: relative;}.lang-current {    display: flex;    align-items: center;    gap: 6px;    padding: 8px 14px;    background: var(--white);    border: 1px solid var(--light-gray);    border-radius: 6px;    font-size: 14px;    font-weight: 500;    color: var(--dark-gray);    cursor: pointer;    transition: all 0.3s;}.lang-current:hover {    border-color: var(--primary-green);}.lang-switch-dropdown.open .lang-current {    border-color: var(--primary-green);    box-shadow: 0 2px 8px rgba(0,87,59,0.15);}.lang-flag {    font-size: 16px;    line-height: 1;}.lang-arrow {    transition: transform 0.2s;    margin-left: 2px;}.lang-switch-dropdown.open .lang-arrow {    transform: rotate(180deg);}.lang-list, .lang-list li { list-style: none !important; list-style-type: none !important; margin-left: 0; padding-left: 0; }
.lang-list {    position: absolute;    top: calc(100% + 6px);    right: 0;    min-width: 100%;    background: var(--white);    border: 1px solid var(--light-gray);    border-radius: 6px;    box-shadow: 0 4px 12px rgba(0,0,0,0.1);    list-style: none;    opacity: 0;    visibility: hidden;    transform: translateY(-8px);    transition: all 0.2s;    z-index: 100;}.lang-switch-dropdown.open .lang-list {    opacity: 1;    visibility: visible;    transform: translateY(0);}.lang-list li {    border-bottom: 1px solid var(--light-gray);}.lang-list li:last-child {    border-bottom: none;}.lang-list a {    display: flex;    align-items: center;    gap: 8px;    padding: 10px 14px;    text-decoration: none;    color: var(--dark-gray);    font-size: 14px;    font-weight: 500;    transition: background 0.2s;}.lang-list a:hover {    background: var(--light-gray);}.lang-list a.active {    background: var(--primary-green);    color: var(--white);}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero-bg.jpg') center/cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #004830;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* USP Stats */
.usp-stats {
    background: var(--light-gray);
    padding: 60px 0;
}

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

.stat-item h3 {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: var(--dark-gray);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    margin: 20px auto 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-content {
    padding: 25px;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Advantages */
.advantages {
    background: var(--light-gray);
}

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

.advantage-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 10px;
    transition: box-shadow 0.3s;
}

.advantage-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-green);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

/* Projects Gallery */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 30px;
}

.project-overlay h3 {
    color: var(--white);
    margin-bottom: 10px;
}

/* Contact Form */
.contact-section {
    background: var(--light-gray);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Footer */
.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid,
    .products-grid,
    .advantages-grid,
    .projects-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 60px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-number {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Fix horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Header right container (lang + burger) */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .lang-switch-dropdown {
        order: 1;
    }
    
    .mobile-menu-toggle {
        order: 2;
    }
    
    /* Prevent any element from causing horizontal scroll */
    .site-header,
    .hero,
    .section,
    .site-footer,
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* FIX: Lang dropdown visibility */
.site-header {
    overflow: visible !important;
}

.site-header .container {
    overflow: visible !important;
}

.header-inner {
    overflow: visible !important;
}

.header-right {
    overflow: visible !important;
}

.lang-switch-dropdown {
    z-index: 1001;
}

.lang-list {
    z-index: 1002 !important;
}

/* FIX: Burger menu animation */
.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
    top: 0;
}
