/*
Theme Name: Jetbiz Cleaning Pro
Theme URI: https://yourdomain.com
Description: A premium WordPress theme specifically designed for professional cleaning services. Features modern responsive design, quote management system, service portfolio, admin-friendly customization, and optimized performance. Perfect for cleaning companies, maintenance services, and professional service providers.
Author: Your Name
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ravi-cleaning
Tags: business, cleaning-services, responsive, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, translation-ready, accessibility-ready, quote-system, portfolio
*/

/* ===========================
   RESET & BASE STYLES
   =========================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e40af;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ===========================
   LAYOUT & CONTAINER
   =========================== */

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

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    .section {
        padding: 6rem 0;
    }
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.site-logo-img,
.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.site-logo-img:hover,
.custom-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.site-header.scrolled .site-logo-img,
.site-header.scrolled .custom-logo {
    max-height: 40px;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
    line-height: 1.2;
    margin: 0;
}

.site-title:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.2;
}

/* Main Navigation */
.main-navigation {
    display: none;
    flex: 1;
    justify-content: flex-end;
}

.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #2563eb;
    background-color: #f3f4f6;
    text-decoration: none;
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: #2563eb;
    background-color: #eff6ff;
}

/* Navigation CTA Button */
.nav-cta .nav-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 24px;
    height: 18px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-navigation.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-wrapper {
    padding: 1.5rem 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
    background-color: #f8fafc;
    color: #2563eb;
    text-decoration: none;
    padding-left: 2rem;
}

.mobile-nav-menu .current-menu-item > a,
.mobile-nav-menu .current_page_item > a {
    color: #2563eb;
    background-color: #eff6ff;
}

.mobile-nav-cta {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem;
}

/* Desktop Navigation Display */
@media (min-width: 768px) {
    .main-navigation {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .site-branding {
        gap: 1.5rem;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .site-description {
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .site-header {
        padding: 1rem 0;
    }
    
    .site-logo-img,
    .custom-logo {
        max-height: 60px;
    }
    
    .site-header.scrolled .site-logo-img,
    .site-header.scrolled .custom-logo {
        max-height: 50px;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .nav-menu a {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 80%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4), 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #1d4ed8 0%, #1e40af 80%, #1e3a8a 100%);
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4), 0 6px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Default pattern overlay for when no background image is set */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Custom overlay for background images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(30, 58, 138, 0.9) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Hide default pattern when custom background image is used */
.hero-section[style*="background-image"]::before {
    display: none;
}

/* Responsive background attachment */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 70vh;
        padding: 4rem 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-text h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    .hero-text h1 {
        font-size: 4rem;
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-section {
    background: #f8fafc;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* Text color adjustments for background images */
.services-section[style*="background-image"] h2 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.services-section[style*="background-image"] .text-center p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.services-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

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

.service-icon {
    width: 100%;
    height: 200px;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: block;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

/* Fallback for dashicons or when no image */
.service-icon .dashicons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.service-card h3 {
    color: #1e40af;
    margin: 1.5rem 0 1rem;
    padding: 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: #64748b;
    margin: 0;
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Default background when no image is set */
.about-section:not([style*="background-image"]) {
    background: #eff6ff; /* Default color, overridden by inline styles */
}

.about-section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.about-header {
    margin-bottom: 5rem;
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.about-section[style*="background-image"] .section-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-section[style*="background-image"] .about-header h2 {
    color: #ffffff;
}

.about-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-section[style*="background-image"] .about-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Main Grid Layout */
.about-grid {
    display: grid;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 6rem;
    }
}

/* Content Side */
.about-content-side {
    order: 2;
}

@media (min-width: 1024px) {
    .about-content-side {
        order: 1;
    }
}

.about-content-card {
    background: #ffffff;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.about-section[style*="background-image"] .about-content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
}

/* Content Header */
.content-header {
    margin-bottom: 2rem;
}

.content-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.about-section[style*="background-image"] .content-header h3 {
    color: #1e293b;
}

.content-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 2px;
}

/* Content Text */
.content-text {
    margin-bottom: 2.5rem;
}

.content-text p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Features List */
.about-features-list {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #eff6ff;
    transform: translateX(8px);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #ffffff;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Action Buttons */
.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-large:hover .btn-icon {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

.btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Visual Side */
.about-visual-side {
    order: 1;
}

@media (min-width: 1024px) {
    .about-visual-side {
        order: 2;
    }
}

/* Image Container */
.about-image-container {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.about-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.about-image-container:hover .about-main-image {
    transform: scale(1.05);
}

/* Decorative Elements */
.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.image-pattern {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #10b981, #059669);
    border-radius: 1rem;
    opacity: 0.1;
    z-index: -1;
}

/* Stats Grid */
.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-section {
        padding: 5rem 0;
    }
    
    .about-header {
        margin-bottom: 3rem;
    }
    
    .about-header h2 {
        font-size: 2.25rem;
    }
    
    .about-subtitle {
        font-size: 1.125rem;
    }
    
    .about-content-card {
        padding: 2rem;
    }
    
    .content-header h3 {
        font-size: 1.75rem;
    }
    
    .about-actions {
        flex-direction: column;
    }
    
    .about-actions .btn {
        text-align: center;
        justify-content: center;
    }
    
    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features-section {
    background: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.features-section .container {
    position: relative;
    z-index: 2;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.features-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 1rem;
}

.features-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.features-content {
    position: relative;
    z-index: 2;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.feature-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Feature Card Icon */
.feature-card-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.feature-card-icon svg {
    width: 2rem;
    height: 2rem;
    color: #ffffff;
}

/* Feature Number */
.feature-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-number {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.1);
}

/* Feature Content */
.feature-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Text color adjustments for background images */
.features-section[style*="background-image"] .features-header h2 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.features-section[style*="background-image"] .features-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.features-section[style*="background-image"] .feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Stats Section */
.features-stats {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.features-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 10s infinite linear;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .features-section {
        padding: 4rem 0;
    }
    
    .features-header h2 {
        font-size: 2rem;
    }
    
    .features-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 2rem;
        text-align: center;
    }
    
    .feature-number {
        position: static;
        margin: 0 auto 1rem;
    }
    
    .features-stats {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===========================
   STATS SECTION
   =========================== */

.stats-section {
    background: #1e40af;
    padding: 6rem 0;
    color: #ffffff;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-container {
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 640px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 4rem;
    }
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text color adjustments for background images */
.stats-section[style*="background-image"] .stat-number {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stats-section[style*="background-image"] .stat-label {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-header {
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Text color adjustments for background images */
.contact-section[style*="background-image"] .contact-header h2 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-section[style*="background-image"] .contact-description {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-section[style*="background-image"] .contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card-icon svg {
    width: 2rem;
    height: 2rem;
    color: #ffffff;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-address {
    color: #374151;
    font-style: normal;
    line-height: 1.6;
    font-size: 0.95rem;
}

.business-hours {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
}

.business-hours div {
    margin-bottom: 0.25rem;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.contact-cta h3 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.contact-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-cta .btn {
    background: #ffffff;
    color: #1e40af;
    font-weight: 700;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.contact-cta .btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.feature-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-cta {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-cta h3 {
        font-size: 1.5rem;
    }
    
    .contact-cta p {
        font-size: 1rem;
    }
    
    .contact-cta-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-badge {
        justify-content: center;
        min-width: 200px;
    }
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        align-items: center;
    }
}

.footer-brand {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-links {
        justify-content: flex-end;
    }
}

.footer-links a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ===========================
   ANIMATIONS
   =========================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   MOBILE MENU BODY STATES
   =========================== */

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-navigation {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   QUOTE MODAL
   =========================== */

.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quote-modal.active {
    opacity: 1;
    visibility: visible;
}

.quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.quote-modal-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10;
    transform: scale(0.7) translateY(30px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quote-modal.active .quote-modal-container {
    transform: scale(1) translateY(0);
}

.quote-modal-content {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.quote-modal-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    padding: 2rem;
    position: relative;
}

.quote-modal-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.quote-modal-description {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.quote-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quote-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.quote-modal-body {
    padding: 2rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.form-group select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.form-group select:disabled:hover {
    transform: none;
}

/* Smooth transition for property size select */
#quote-property-size {
    transition: all 0.3s ease;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 640px) {
    .form-actions {
        flex-direction: column;
    }
}

.quote-submit-btn,
.quote-cancel-btn {
    min-width: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

.quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.form-message.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-icon {
    flex-shrink: 0;
}

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

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .quote-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .quote-modal-header {
        padding: 1.5rem;
    }
    
    .quote-modal-title {
        font-size: 1.5rem;
    }
    
    .quote-modal-body {
        padding: 1.5rem;
    }
    
    .quote-modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
}

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* ===========================
   WORDPRESS SPECIFIC STYLES
   =========================== */

.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-heading {
    margin-bottom: 1rem;
}

.wp-block-paragraph {
    margin-bottom: 1rem;
}

.aligncenter {
    text-align: center;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

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

/* ===========================
   ACCESSIBILITY
   =========================== */

:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    .site-header,
    .hero-section,
    .contact-section,
    .site-footer {
        display: none;
    }
    
    body {
        background: #ffffff;
        color: #000000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* ===========================
   GLOBAL SECTION STYLES
   =========================== */

/* Section Overlays for Background Images */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.3s ease;
}

.section {
    position: relative;
    overflow: hidden;
}

.section .container {
    position: relative;
    z-index: 2;
} 