/*
Theme Name: Uzbdesign Group - inventa.uz
Theme URI: http://uzbdesign.uz
Description: Sayt tayyorlash studiasi
Author: Uzbdesign Group
Author: http://uzbdesign.uz
Author URI: http://uzbdesign.uz
Version: 10.0.0
*/

/* --- Variables --- */
:root {
    --primary-color: #3a428c;
    --secondary-color: #33c3f0;
    --accent-color: #ff5722;
    --text-color: #222;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #fff;
    --container-width: 1170px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.12);
    --radius: 8px;
}

/* --- Reset & Base --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* --- Layout & Grid (Modern Flexbox) --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.column, .columns {
    padding: 10px 15px;
    box-sizing: border-box;
}

/* Grid Sizes */
.one.column { width: 8.33%; }
.two.columns { width: 16.66%; }
.three.columns { width: 25%; }
.four.columns { width: 33.33%; }
.five.columns { width: 41.66%; }
.six.columns { width: 50%; }
.seven.columns { width: 58.33%; }
.eight.columns { width: 66.66%; }
.nine.columns { width: 75%; }
.ten.columns { width: 83.33%; }
.eleven.columns { width: 91.66%; }
.twelve.columns { width: 100%; }

/* --- Header --- */
header.site-header {
    border-bottom: 1px solid #f9f9f9;
    box-shadow: var(--shadow-sm);
    padding: 5px 0 0;
    position: relative;
    z-index: 1000;
}

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

.logo-area img {
    max-height: 90px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-area img {
        max-height: 60px;
    }
}

/* --- Navigation --- */
.menu-area {
    display: flex;
    align-items: center;
}

#cssmenu {
    display: block;
}

#cssmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

#cssmenu ul li {
    margin-left: 30px;
    position: relative;
}

#cssmenu ul li a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    padding: 10px 0;
    display: block;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover Effect (Tagiga chiziq) */
#cssmenu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#cssmenu ul li:hover > a {
    color: var(--primary-color);
}

#cssmenu ul li:hover > a::after {
    width: 100%;
}

/* Sub-menu Arrow Indicator */
#cssmenu ul li.menu-item-has-children > a {
    padding-right: 20px;
}

#cssmenu ul li.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -2px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transition: transform 0.3s ease;
}

#cssmenu ul li.menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

/* Phone Menu Item (Desktop) */
#cssmenu ul li.phone {
    margin-left: auto; /* O'ng tarafga surish */
    padding-left: 20px;
}

#cssmenu ul li.phone a {
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 25px;
    border-radius: 30px;
    transition: 0.3s;
    margin-top: -2px;
}

#cssmenu ul li.phone a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(58, 66, 140, 0.3);
}

#cssmenu ul li.phone a::after {
    display: none; /* Tagidagi chiziqni olib tashlash */
}

/* Dropdown (Ichki menyu) */
#cssmenu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    flex-direction: column;
    z-index: 999;
    padding: 10px 0;
    border-top: 2px solid var(--primary-color);
}

#cssmenu ul li:hover > ul {
    display: flex;
}

#cssmenu ul ul li {
    margin: 0;
    width: 100%;
}

#cssmenu ul ul li a {
    padding: 10px 20px;
    text-transform: none;
    font-weight: 400;
    border-bottom: 1px solid #f5f5f5;
}

#cssmenu ul ul li a::after { display: none; }

#cssmenu ul ul li:hover > a {
    background-color: #f9f9f9;
}

/* Mobile Menu Trigger */
#mobile_menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    margin-left: auto;
}

/* Mobile Icons (Phone, YouTube, Telegram, WhatsApp) */
.mobile-icons-container {
    display: none;
}

@media (max-width: 768px) {
	#cssmenu ul li.menu-item-has-children > a::before {right: 10px;}
    .mobile-icons-container {
        display: flex;
        align-items: center;
        margin-right: 10px;
    }

    .mobile-icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-left: 8px;
        text-decoration: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: transform 0.2s;
    }

    .mobile-icon-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-icon-btn svg {
        fill: #fff;
        width: 16px;
        height: 16px;
    }

    .phone-btn { background: var(--primary-color); }
    .youtube-btn { background: #FF0000; }
    .telegram-btn { background: #0088cc; }
    .whatsapp-btn { background: #25D366; }
}

/* --- Section Titles --- */
h4.title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    letter-spacing: 0.5px;
}

/* "All" button styling */
a.all {
    font-size: 14px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    vertical-align: middle;
    text-transform: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

a.all:hover {
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

.arrow_all {
    display: none; /* Clean up unnecessary elements */
}

/* --- Breadcrumbs --- */
.breadcrumbs-area {
    font-size: 14px;
    color: var(--text-light);
}

#breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#breadcrumbs li {
    display: inline-flex;
    align-items: center;
    margin: 0 1px;
}

#breadcrumbs li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

#breadcrumbs li a:hover {
    color: var(--primary-color);
}

#breadcrumbs li .separator {
    margin: 0 5px;
    color: #ccc;
}

#breadcrumbs li:last-child {
    color: var(--text-color);
    font-weight: 600;
}

/* --- Page Content --- */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.content {
    padding: 40px 0;
}

/* --- Sections --- */
#catalog, #projects, #blog {
    padding: 60px 0;
}

#projects {
    background-color: #fcfcfc; /* Slight contrast for sections */
}

/* --- Footer --- */
footer {
    background-color: #1a1f4e;
    background-image: linear-gradient(135deg, #1a1f4e 0%, #0f1230 100%);
    color: #b0b2c3;
    padding: 80px 0 40px;
    font-size: 15px;
    position: relative;
}

footer h4 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
}

footer h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    margin-top: 10px;
    border-radius: 2px;
}

footer a {
    color: #b0b2c3;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.footer-widgets {
    margin-bottom: 50px;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* --- Footer Contact Card --- */
.footer-contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #fff;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.footer-contact-card h2 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-contact-card p {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #b0b2c3;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.contact-rows {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
}

.icon-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 10px;
    border-radius: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 26px;
    height: 26px;
    box-shadow: 0 5px 15px rgba(51, 195, 240, 0.4);
}

.contact-info {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
}

.contact-info a {
    color: #fff;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

.contact-info a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info .landmark {
    font-size: 13px;
    color: #888b9f;
    margin-top: 5px;
}

/* --- Footer About & Socials --- */
.footer-about p {
    font-size: 14px;
    color: #b0b2c3;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(51, 195, 240, 0.4);
}

/* --- Footer Menu Styling --- */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0;
}

.footer-menu li:last-child {
    border-bottom: none;
}

.footer-menu li a {
    display: block;
    padding: 12px 0;
    color: #b0b2c3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
}

.footer-menu li a:hover {
    color: #fff;
    padding-left: 15px;
    background: rgba(255,255,255,0.02);
}

.footer-menu li a::before {
    content: '→';
    position: absolute;
    left: 5px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.footer-menu li a:hover::before {
    opacity: 1;
    left: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }
    
    #mobile_menu {
        display: block;
    }

    #cssmenu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 1px solid #eee;
    }
    
    #cssmenu.open {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

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

    #cssmenu ul {
        flex-direction: column;
        padding: 0;
        align-items: stretch;
    }

    #cssmenu ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    #cssmenu ul li a {
        padding: 15px 20px;
    }

    #cssmenu ul li a::after {
        display: none;
    }

    /* Mobile Submenu */
    #cssmenu ul ul {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        display: none;
        padding-left: 0;
    }
    
    #cssmenu ul li:hover > ul {
        display: block;
    }
    
    #cssmenu ul ul li a {
        padding-left: 40px;
    }

    .column, .columns, 
    .one.column, .two.columns, .three.columns, .four.columns, 
    .five.columns, .six.columns, .seven.columns, .eight.columns, 
    .nine.columns, .ten.columns, .eleven.columns, .twelve.columns {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .page-header-row {
        flex-direction: column;
        text-align: center;
    }

    h4.title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .breadcrumbs-area {
        width: 100%;
        justify-content: center;
    }

    #breadcrumbs {
        justify-content: center;
    }
}

/* --- Gutenberg & Elementor Support --- */
.alignwide {
    margin-left: -100px;
    margin-right: -100px;
    max-width: 100vw;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

@media (max-width: 768px) {
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        width: 35px;
        height: 35px;
        font-size: 24px !important;
        margin: 0 10px; /* Mobilda ichkarida turishi uchun */
    }
}

/* --- Responsive Tables --- */
table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    background-color: transparent;
}

table th,
table td {
    padding: 0.75rem;
    vertical-align: top;
    border: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Contact Form 7 Styling --- */
.wpcf7-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    max-width: 100%;
    margin: 0 auto;
}

.wpcf7-form p {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.wpcf7-form br {
    display: none;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
    width: 48%;
}

.wpcf7-form input.wpcf7-text,
.wpcf7-form input.wpcf7-tel,
.wpcf7-form input.wpcf7-email,
.wpcf7-form textarea {
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background-color: #f8f9fa;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input.wpcf7-text:focus,
.wpcf7-form input.wpcf7-tel:focus,
.wpcf7-form input.wpcf7-email:focus,
.wpcf7-form textarea:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 66, 140, 0.1);
    outline: none;
}

.wpcf7-form input.wpcf7-submit {
    width: 100%;
    height: 50px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(58, 66, 140, 0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input.wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 66, 140, 0.4);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

@media (max-width: 768px) {
    .wpcf7-form-control-wrap {
        width: 100%;
    }
}

/* --- Order Form Container --- */
.order-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    max-width: 100%;
    margin: 0 auto 30px;
}

.order-form-container .wpcf7-form {
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
}

.order-form-container .form-title {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Pagination --- */
.pagination {
    margin: 50px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(58, 66, 140, 0.3);
    transform: translateY(-2px);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    color: var(--text-color);
    transform: none;
    box-shadow: none;
}

.pagination .prev, 
.pagination .next {
    font-size: 24px;
    line-height: 1;
    padding-bottom: 4px;
}

/* --- Social Share Icons --- */
.share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
}

.share i {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('socials.png');
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: opacity 0.3s;
}

.share a:hover i { opacity: 0.8; }

.facebook { background-position: 0 0; }
.instagram { background-position: 0 -32px; }
.google { background-position: 0 -64px; }
.twitter { background-position: 0 -95px; }
.odnoklassniki { background-position: 0 -127px; }
.telegram { background-position: 0 -159px; }
.linkedin { background-position: 0 -191px; }
.vkontakte { background-position: 0 -224px; }

/* Screen Reader Text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* --- Global Page Header Banner --- */
.page-header-content {
    text-align: center;
}

.page-header-banner .page-title h1,
.page-header-banner .page-title h5 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.page-header-banner #breadcrumbs li,
.page-header-banner #breadcrumbs li a {
    color: rgba(255,255,255,0.8);
}

.page-header-banner #breadcrumbs {
    justify-content: center;
}

.page-header-banner #breadcrumbs li a:hover {
    color: #fff;
}

.page-header-banner #breadcrumbs li .separator {
    color: rgba(255,255,255,0.5);
}

/* --- Global Page Header Banner --- */
.page-header-banner {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #2c326b 100%);
    padding: 50px 0;
    color: #fff;
    margin-bottom: 0;
}

/* --- Product Price Styling --- */
.product-price {
    color: #e30000;
    font-weight: 700;
    font-size: 18px;
    margin: 10px 0;
    display: block;
}

.product-price.single-view {
    font-size: 24px;
    text-align: center;
    background: #fff5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #ffcccc;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(227, 0, 0, 0.05);
}