/*
Theme Name: CleanPro - Cleaning Services & Shop
Version: 1.2.0
Text Domain: cleanpro
*/

:root {
    --cp-primary: #2C7BE5;
    --cp-primary-dark: #1E5BB8;
    --cp-secondary: #00D4A1;
    --cp-accent: #FF6B6B;
    --cp-white: #FFFFFF;
    --cp-light-gray: #F8F9FA;
    --cp-gray: #E9ECEF;
    --cp-dark-gray: #495057;
    --cp-darker-gray: #212529;
    --cp-section-padding: 5rem;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cp-darker-gray);
    background-color: #FFFFFF;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cp-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--cp-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* ===== CONTAINER ===== */
.cp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTIONS (like inclean.lt) ===== */
.cp-section {
    padding: var(--cp-section-padding) 0;
}

.cp-section-gray {
    background-color: var(--cp-light-gray);
}

.cp-section-white {
    background-color: var(--cp-white);
}

.cp-section-dark {
    background-color: var(--cp-darker-gray);
    color: var(--cp-white);
}

/* Section Headers */
.cp-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cp-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cp-section-header p {
    font-size: 1.1rem;
    color: var(--cp-dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== ICON FIXES - GUARANTEED TO WORK ===== */

/* Force Font Awesome to load */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* Universal icon fix - works for ALL icons */
i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    line-height: 1;
}

/* Specific fallbacks with emojis */
.fa-shopping-cart::before { content: "🛒"; }
.fa-bars::before { content: "☰"; }
.fa-times::before { content: "✕"; }
.fa-calendar::before, .far.fa-calendar::before { content: "📅"; }
.fa-user::before, .far.fa-user::before { content: "👤"; }
.fa-phone::before { content: "📞"; }
.fa-envelope::before { content: "✉️"; }
.fa-map-marker-alt::before { content: "📍"; }

/* Override emoji with Font Awesome when it loads */
@supports (font-variation-settings: normal) {
    i.fa-shopping-cart::before { content: "\f07a"; font-family: "Font Awesome 6 Free"; }
    i.fa-bars::before { content: "\f0c9"; font-family: "Font Awesome 6 Free"; }
    i.fa-times::before { content: "\f00d"; font-family: "Font Awesome 6 Free"; }
}

/* ===== HEADER ===== */
.site-header {
    background: var(--cp-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-branding {
    flex: 0 0 auto;
    z-index: 1001;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-branding h1 {
    margin: 0;
    font-size: 1.5rem;
}

.site-branding a {
    color: var(--cp-darker-gray);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--cp-darker-gray);
    padding: 0.5rem;
    z-index: 1001;
    line-height: 1;
}

.menu-toggle i {
    display: block;
    font-size: 1.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: var(--cp-darker-gray);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--cp-primary);
    border-bottom-color: var(--cp-primary);
}

/* Cart */
.header-cart {
    position: relative;
}

.header-cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cp-darker-gray);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.header-cart-link:hover {
    background: var(--cp-light-gray);
    color: var(--cp-primary);
}

.header-cart-link i {
    font-size: 1.25rem;
}

.cart-count {
    background: var(--cp-accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: -5px;
    right: 5px;
}

/* ===== MAIN CONTENT - SECTION BASED ===== */
.site-main {
    min-height: 60vh;
}

/* Remove default padding for section-based layouts */
.site-main.has-sections {
    padding: 0;
}

/* Regular content with padding */
.site-main.has-padding {
    padding: 3rem 0;
    background: white;
}

/* Article styling for blog */
.content-area article {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-thumbnail {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    transition: transform 0.3s;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--cp-dark-gray);
    margin-bottom: 1rem;
}

.entry-meta i {
    margin-right: 0.5rem;
}

/* ===== BUTTONS ===== */
.cp-btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

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

.cp-btn-primary:hover {
    background: var(--cp-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44,123,229,0.4);
}

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

.cp-btn-outline:hover {
    background: var(--cp-primary);
    color: white;
}

/* ===== GRID LAYOUTS ===== */
.cp-grid {
    display: grid;
    gap: 2rem;
}

.cp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cp-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.cp-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.cp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cp-card h3 {
    margin-bottom: 1rem;
}

/* ===== WOOCOMMERCE ===== */
.woocommerce,
.woocommerce-page {
    padding: 3rem 0;
    background: white;
}

.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--cp-dark-gray);
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: white;
    border: 1px solid var(--cp-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    text-align: center;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--cp-primary);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    margin: 1rem 1rem 0.5rem;
}

.woocommerce ul.products li.product .price {
    color: var(--cp-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.woocommerce ul.products li.product .button {
    background: var(--cp-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    margin: 0 1rem 1rem;
    display: inline-block;
    font-weight: 600;
    border: none;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--cp-primary-dark);
    color: white;
}

.woocommerce span.onsale {
    background: var(--cp-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-weight: 700;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--cp-darker-gray);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
    text-align: center;
}

.site-footer a {
    color: white;
}

.site-footer a:hover {
    color: var(--cp-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cp-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --cp-section-padding: 3rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .cp-container {
        padding: 0 15px;
    }
    
    .header-inner {
        padding: 0.75rem 0;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .header-cart {
        order: 2;
    }
    
    .menu-toggle {
        order: 3;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s;
        overflow-y: auto;
        padding-top: 80px;
        z-index: 1000;
        order: 4;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--cp-gray);
    }
    
    .main-nav a {
        padding: 1rem 1.5rem;
        border-bottom: none;
    }
    
    .main-nav a:hover,
    .main-nav .current-menu-item > a {
        background: var(--cp-light-gray);
        border-bottom: none;
        border-left: 4px solid var(--cp-primary);
    }
    
    /* Mobile grids */
    .cp-grid-2,
    .cp-grid-3,
    .cp-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
