/*
Theme Name: Kasbonex Global
Theme URI: https://kasbonexglobal.ae
Author: AI Designer
Description: A clean, industrial B2B theme inspired by Emaar. English.
Version: 1.0.0
Text Domain: kasbonex
*/

/* --- CSS Variables (overridden by Customizer) --- */
:root {
    --primary-navy: #002B5B;
    --accent-gold: #D4AF37;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --overlay-dark: rgba(0, 43, 91, 0.6);
    --transition: all 0.4s ease;
    --bg-light: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
.ar-text { font-family: 'Tajawal', sans-serif; direction: rtl; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.flex-center { display: flex; justify-content: space-between; align-items: center; }

/* --- TOP NAV --- */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary-navy); letter-spacing: -1px; }
.logo span { color: var(--accent-gold); }
.logo img { max-height: 50px; width: auto; height: auto; object-fit: contain; }
.main-menu { display: flex; gap: 40px; align-items: center; list-style: none; }
.main-menu .menu-item { font-weight: 500; font-size: 0.95rem; position: relative; cursor: pointer; }
.main-menu .menu-item a { color: inherit; }
.main-menu .menu-item:hover,
.main-menu .menu-item a:hover { color: var(--accent-gold); }
.kasbonex-lang-switcher { font-size: 0.85rem; }
.kasbonex-lang-switcher a.active { color: var(--accent-gold); font-weight: 600; }

/* Mega Menu Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 900px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    padding: 40px;
    z-index: 999;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-top: 3px solid var(--accent-gold);
}
.menu-item:hover .dropdown-content { display: grid; }
.dd-col h5 { color: var(--primary-navy); margin-bottom: 15px; font-weight: 600; font-size: 1rem; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.dd-col li { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-light); }
.dd-col li a { color: inherit; }
.dd-col li:hover { color: var(--accent-gold); padding-left: 5px; }

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 12px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-gold:hover { background: #B5952F; color: var(--primary-navy); }

/* --- HERO --- */
.hero {
    height: 90vh;
    background: url('https://picsum.photos/seed/dubai-industrial/1920/1200.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 70px;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,43,91,0.3), rgba(0,43,91,0.7));
}
.hero-text {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding-left: 5%;
}
.hero-text h1 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; margin-bottom: 20px; }
.hero-text strong { font-weight: 700; display: block; }
.hero-ar { font-family: 'Tajawal'; color: var(--accent-gold); margin-bottom: 10px; display: block; }

/* Search Bar (Floating) */
.search-bar-container {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 10;
    background: #fff;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius: 4px;
    display: flex;
    gap: 15px;
}
.search-bar-container form { display: flex; gap: 15px; flex-wrap: wrap; flex: 1; }
.search-select, .search-input {
    padding: 15px;
    border: 1px solid #eee;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.search-select { min-width: 150px; background: #f9f9f9; cursor: pointer; }
.search-input { flex-grow: 1; min-width: 180px; }
.search-btn {
    background: var(--primary-navy);
    color: #fff;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.search-btn:hover { background: var(--accent-gold); color: var(--primary-navy); }

/* --- PRODUCTS SECTION --- */
.products-section { padding: 100px 0 60px; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 2rem; font-weight: 600; color: var(--primary-navy); }
.section-head .ar-title { color: var(--accent-gold); font-family: 'Tajawal'; margin-bottom: 5px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}
.product-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}
.product-card img { transition: transform 0.6s ease; }
.product-card:hover img { transform: scale(1.05); }
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 50%;
}
.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 5px;
    font-weight: 600;
}
.card-title { font-size: 1.5rem; font-weight: 300; line-height: 1.2; }
.card-title strong { font-weight: 600; }
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary-navy);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- CATALOG SECTION --- */
.catalog-section { background: #f8f9fa; padding: 80px 0; }
.catalog-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.catalog-item h4 {
    color: var(--primary-navy);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
    display: inline-block;
}
.catalog-item ul li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* --- FOOTER --- */
.site-footer,
footer {
    background: var(--primary-navy);
    color: #fff;
    padding: 80px 0 30px;
    border-top: 5px solid var(--accent-gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h5 { color: var(--accent-gold); margin-bottom: 20px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 10px; opacity: 0.7; }
.footer-col ul li a { color: inherit; }
.footer-col ul li:hover { opacity: 1; color: var(--accent-gold); }
.footer-col .logo { color: #fff; }
.footer-col p { opacity: 0.7; font-size: 0.9rem; line-height: 1.6; }

/* WhatsApp Float */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* --- ABOUT PAGE --- */
.about-hero {
    height: 60vh;
    background: url('https://picsum.photos/seed/office-skyscraper/1920/800.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 43, 91, 0.7);
}
.hero-text-inner { position: relative; z-index: 2; color: #fff; text-align: center; max-width: 800px; }
.hero-text-inner h1 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.hero-text-inner span { font-weight: 700; display: block; }
.about-section { padding: 80px 0; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.text-content h3 { font-size: 1.8rem; color: var(--primary-navy); margin-bottom: 20px; font-weight: 600; }
.text-content p { color: var(--text-light); margin-bottom: 20px; font-size: 1.05rem; text-align: justify; }
.stats-card {
    background: var(--bg-light);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-gold);
}
.stats-card h4 { color: var(--primary-navy); margin-bottom: 10px; font-size: 1.2rem; }
.stats-card p { color: var(--text-light); font-size: 0.9rem; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 50px; }
.value-item { text-align: center; }
.value-icon { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 20px; }
.value-item h5 { color: var(--primary-navy); margin-bottom: 10px; font-weight: 600; }
.value-item p { font-size: 0.9rem; color: var(--text-light); }

/* --- CONTACT PAGE --- */
.contact-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 500px;
    margin-top: 70px;
}
.contact-hero .hero-image { background: url('https://picsum.photos/seed/dubai-map/800/800.jpg') center/cover; }
.hero-content {
    background: var(--primary-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}
.hero-content h1 { font-size: 3rem; font-weight: 300; line-height: 1.2; margin-bottom: 20px; }
.hero-content .hero-ar { color: var(--accent-gold); font-family: 'Tajawal'; font-size: 1.5rem; margin-bottom: 10px; }
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.form-group { margin-bottom: 25px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.form-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-bottom: 2px solid #eee;
    background: #f9f9f9;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.form-input:focus { outline: none; border-bottom-color: var(--accent-gold); background: #fff; }
textarea.form-input { resize: vertical; height: 120px; }
.btn-submit {
    background: var(--accent-gold);
    color: var(--primary-navy);
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-submit:hover { background: #B5952F; transform: translateY(-2px); }
.info-box { background: var(--primary-navy); color: #fff; padding: 40px; height: 100%; }
.info-item { margin-bottom: 30px; display: flex; align-items: flex-start; }
.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}
.info-text h4 { font-size: 1rem; margin-bottom: 5px; font-weight: 600; }
.info-text p { font-size: 0.9rem; opacity: 0.8; }

/* --- BLOG / SINGLE (News) --- */
.blog-header { margin-top: 100px; text-align: center; padding: 40px 0; max-width: 900px; margin-left: auto; margin-right: auto; }
.blog-meta { color: var(--text-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.blog-title { font-size: 3rem; font-weight: 700; color: var(--primary-navy); line-height: 1.2; margin-bottom: 20px; }
.article-container { max-width: 800px; margin: 0 auto; padding: 60px 0; font-size: 1.15rem; line-height: 1.8; color: var(--text-light); }
.article-container p { margin-bottom: 25px; text-align: justify; }
.article-container h2 { color: var(--primary-navy); font-size: 1.8rem; margin-top: 50px; margin-bottom: 20px; }
.article-container h3 { color: var(--primary-navy); font-size: 1.4rem; margin-top: 30px; margin-bottom: 15px; }
.featured-image { width: 100%; height: auto; max-height: 500px; object-fit: cover; margin: 40px 0; border-radius: 4px; }
.article-container blockquote {
    border-left: 4px solid var(--accent-gold);
    background: var(--primary-navy);
    color: #fff;
    padding: 30px;
    font-size: 1.3rem;
    font-style: italic;
    margin: 40px 0;
}
.page-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 60px; padding: 0 20px; }
.sidebar { border-left: 1px solid #eee; padding-left: 40px; }
.sidebar-title { font-size: 1.1rem; color: var(--primary-navy); font-weight: 700; margin-bottom: 20px; border-bottom: 2px solid var(--accent-gold); display: inline-block; padding-bottom: 5px; }
.recent-post { margin-bottom: 25px; }
.recent-post h4 { font-size: 1rem; font-weight: 600; margin-bottom: 5px; }
.recent-post h4 a { color: var(--text-dark); }
.recent-post h4 a:hover { color: var(--accent-gold); }
.recent-post span { font-size: 0.8rem; color: var(--text-light); }

/* Widget areas */
.widget-box { background: var(--bg-light); padding: 20px; margin-bottom: 30px; border-left: 4px solid var(--accent-gold); }
.widget-title { color: var(--primary-navy); margin-bottom: 15px; font-weight: 600; }

/* Responsive */
@media (max-width: 1024px) {
    .search-bar-container { flex-direction: column; bottom: 0; width: 100%; position: relative; margin-top: -40px; }
    .search-select, .search-btn { width: 100%; }
    .products-grid { grid-template-columns: 1fr; }
    .catalog-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .dropdown-content { display: none !important; }
    .hero-text h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .main-menu { display: none; }
    .catalog-grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-hero { height: 40vh; }
    .hero-text-inner h1 { font-size: 2rem; }
    .split-layout, .values-grid { grid-template-columns: 1fr; }
    .contact-hero, .contact-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 40px; }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { border-left: none; padding-left: 0; margin-top: 40px; }
    .blog-title { font-size: 2rem; }
}
