/*
Theme Name: Profixers Cleaning Services
Theme URI: https://profixers.co.in
Author: Profixers Team
Author URI: https://profixers.co.in
Description: Professional cleaning services WordPress theme with custom admin dashboard, gallery management, blog system, and booking functionality.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profixers-cleaning
Tags: business, cleaning-services, custom-admin, responsive, modern
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0095FF;
    --dark-blue: #003D82;
    --light-blue: #E8F4FF;
    --dark-bg: #1A1A1A;
    --darker-bg: #0D0D0D;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --gray-bg: #F5F5F5;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
}

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

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 149, 255, 0.3);
}

.btn-dark {
    background: var(--dark-bg);
    color: var(--text-light);
}

.btn-dark:hover {
    background: #333;
}

/* ============================================================
   HEADER — TOP BAR
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* -- topbar (white strip with contact info) -- */
.header-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.topbar-item i {
    color: var(--primary-blue);
    font-size: 16px;
    flex-shrink: 0;
}

.topbar-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.topbar-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
}

.topbar-item strong {
    font-size: 13px;
    color: var(--text-dark);
}

.topbar-item:hover strong { color: var(--primary-blue); }

.topbar-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.topbar-cta span { font-size: 10px; letter-spacing: 0.5px; opacity: 0.9; }
.topbar-cta strong { font-size: 14px; }
.topbar-cta:hover { background: var(--dark-blue); transform: translateY(-2px); }

/* ============================================================
   MAIN NAV BAR (dark strip)
   ============================================================ */
.main-nav {
    background: var(--dark-bg);
    padding: 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* Logo inside nav bar */
.nav-brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.nav-brand img,
.nav-brand .custom-logo { height: 55px; width: auto; display: block; }

/* Desktop nav list */
.nav-desktop { display: flex; flex: 1; justify-content: center; }

.nav-desktop #primary-menu,
ul.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nav-desktop .nav-list li a,
.nav-desktop #primary-menu li a {
    display: block;
    padding: 0 18px;
    line-height: 60px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.nav-desktop .nav-list li a::after,
.nav-desktop #primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-desktop .nav-list li a:hover::after,
.nav-desktop .nav-list li.current-menu-item a::after,
.nav-desktop #primary-menu li a:hover::after,
.nav-desktop #primary-menu li.current-menu-item a::after {
    width: 100%;
}

.nav-desktop .nav-list li a:hover,
.nav-desktop .nav-list li.current-menu-item a,
.nav-desktop #primary-menu li a:hover,
.nav-desktop #primary-menu li.current-menu-item a {
    color: var(--primary-blue);
    background: rgba(0,149,255,0.08);
}

/* Mobile actions (phone icon + hamburger) */
.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-call-icon {
    color: #fff;
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    background: var(--primary-blue);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-call-icon:hover { background: var(--dark-blue); }

/* Hamburger button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle:hover { background: rgba(255,255,255,0.1); }

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
    transform-origin: left center;
}

/* Animate hamburger → X */
.menu-toggle.is-open .bar1 { transform: rotate(45deg) translateY(-1px); }
.menu-toggle.is-open .bar2 { opacity: 0; width: 0; }
.menu-toggle.is-open .bar3 { transform: rotate(-45deg) translateY(1px); }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(-110%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 30px rgba(0,0,0,0.18);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

/* Drawer top */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--dark-bg);
    flex-shrink: 0;
}

.drawer-logo img,
.drawer-logo .custom-logo {
    height: 48px;
    width: auto;
    display: block;
}

.drawer-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.drawer-close:hover { background: var(--primary-blue); }

/* Drawer nav list */
ul.drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
}

.drawer-nav-list li {
    border-bottom: 1px solid #f0f0f0;
}

.drawer-nav-list li:last-child { border-bottom: none; }

.drawer-nav-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.drawer-nav-list li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.drawer-nav-list li a:hover,
.drawer-nav-list li.current-menu-item a {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 28px;
}

.drawer-nav-list li a:hover::before,
.drawer-nav-list li.current-menu-item a::before {
    transform: scaleY(1);
}

.drawer-nav-list li a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: #bbb;
    transition: var(--transition);
}

.drawer-nav-list li a:hover::after {
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Drawer footer */
.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--gray-bg);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.drawer-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.drawer-phone-btn {
    background: var(--primary-blue);
    color: #fff;
}

.drawer-phone-btn:hover { background: var(--dark-blue); }

.drawer-whatsapp-btn {
    background: #25D366;
    color: #fff;
}

.drawer-whatsapp-btn:hover { background: #1ebe5d; }

/* Overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: pointer;
}

.nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Body lock when drawer open */
body.nav-open { overflow: hidden; }

/* ============================================================
   RESPONSIVE — show/hide pieces
   ============================================================ */
@media (max-width: 900px) {
    /* hide desktop menu */
    .nav-desktop { display: none; }

    /* show hamburger + phone icon */
    .nav-mobile-actions { display: flex; }

    /* show logo inside nav bar on mobile */
    .nav-brand { display: flex; align-items: center; }

    /* tighten nav bar height */
    .nav-inner { height: 56px; }

    /* hide topbar on small screens */
    .header-topbar { display: none; }
}

@media (min-width: 901px) {
    /* always hide drawer on desktop */
    .mobile-drawer,
    .nav-overlay { display: none !important; }
}

/* Hero Banner */
.hero-banner {
    background: url('images/hero-services-bg.png') center/cover no-repeat;
    padding: 100px 0;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

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

.hero-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

/* Hero Badges */
.hero-service-badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}
.hero-badge i {
    color: #FFD700;
    font-size: 16px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--gray-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.service-card h3 {
    margin: 20px 0;
    color: var(--text-dark);
}

.service-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--dark-bg);
    color: var(--text-light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 149, 255, 0.8);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.blog-card:hover .blog-title {
    color: var(--primary-blue);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: var(--gray-bg);
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Stats Section */
.stats-section {
    background: var(--dark-blue);
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Form */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 20px;
}

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

.footer-widget h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

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

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

.footer-widget ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================
   GENERAL RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-banner h1 { font-size: 2rem; }
    .contact-grid   { grid-template-columns: 1fr; }
    .services-grid,
    .blog-grid      { grid-template-columns: 1fr; }

    .section-title h2 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-banner { padding: 60px 0; }
    .hero-banner h1 { font-size: 1.7rem; }
}

/* Floating Call Button styles are in footer.php */

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Profixers Form Fields (used in booking modal & review form) ── */
.skks-field { position: relative; margin-bottom: 2px; }
.skks-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
}
.skks-field input,
.skks-field textarea,
.skks-field select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: #fafafa;
    transition: var(--transition);
}
.skks-field input:focus,
.skks-field textarea:focus,
.skks-field select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,149,255,.1);
}
.skks-field.has-error input,
.skks-field.has-error textarea { border-color: #e74c3c; background: #fff8f8; }
.skks-field.is-valid  input,
.skks-field.is-valid  textarea { border-color: #27ae60; background: #f0fff4; }
.skks-field-error { display: block; font-size: 12px; color: #e74c3c; margin-top: 4px; min-height: 16px; }
