/* ===================================================================
   PrismCleaning NC Enhanced Stylesheet
   Version 3.0 - Mobile Optimized & Interactive
   =================================================================== */

/* === Global & Body Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === Header & Navigation === */
header {
    background-color: #FFFFFF;
    padding: 1rem 0;
    border-bottom: 1px solid #EAEAEA;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

nav .logo img#logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

header.scrolled nav .logo img#logo-img {
    height: 50px;
}

/* Desktop Navigation */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #0A2B4C;
    font-weight: 600;
    padding: 8px 12px;
    transition: color 0.3s ease;
    position: relative;
    display: block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #D4AF37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 80%;
}

nav ul li a:hover,
nav ul li a.active {
    color: #D4AF37;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: #0A2B4C;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #0A2B4C;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-nav-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.mobile-nav-header img {
    height: 40px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #0A2B4C;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.mobile-nav ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav ul li a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: #0A2B4C;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav ul li a:active {
    background-color: #f0f4f8;
}

.mobile-nav ul li a.active {
    background-color: #f0f4f8;
    color: #D4AF37;
    border-left: 3px solid #D4AF37;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* === Hero Section === */
#services-hero {
    background: linear-gradient(135deg, #0A2B4C 0%, #0d3a5f 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

#services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

#services-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
    color: white;
}

.page-intro {
    font-size: clamp(1rem, 3vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* === Service Detail Sections === */
.service-detail-section {
    padding: 4rem 1rem;
    position: relative;
}

.alternating-bg {
    background-color: #f9f9f9;
}

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

.service-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.service-column-layout.reverse {
    flex-direction: row-reverse;
}

.service-image-column {
    flex: 1 1 400px;
    min-width: 280px;
}

.service-text-column {
    flex: 2 1 500px;
}

.service-detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.service-detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.service-detail-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #0A2B4C;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.service-detail-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #D4AF37;
    transition: width 0.3s ease;
}

.service-detail-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 2rem 0 1rem 0;
}

.service-detail-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Enhanced Service Features */
.service-features {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #0A2B4C;
    border: 1px solid #e0e4e8;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #fff 0%, #f0f4f8 100%);
}

.feature-badge i {
    color: #D4AF37;
    font-size: 1.2rem;
}

/* Service Checklist */
.service-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
    transition: transform 0.2s ease;
}

.service-checklist li:hover {
    transform: translateX(5px);
}

.service-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
}

/* Pricing Note */
.service-pricing-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d9 100%);
    padding: 1.25rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #D4AF37;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease;
}

.service-pricing-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.service-pricing-note i {
    color: #D4AF37;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.service-pricing-note p {
    margin: 0;
    font-weight: 500;
    color: #0A2B4C;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #D4AF37 0%, #c8a02b 100%);
    color: #0A2B4C;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Commercial Benefits */
.commercial-benefits {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.commercial-benefits h4 {
    color: #0A2B4C;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.commercial-benefits ul {
    list-style: none;
    padding: 0;
}

.commercial-benefits li {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    transition: padding-left 0.3s ease;
}

.commercial-benefits li:hover {
    padding-left: 10px;
}

.commercial-benefits li:last-child {
    border-bottom: none;
}

.commercial-benefits li strong {
    color: #D4AF37;
    margin-right: 0.5rem;
}

.custom-quote-note {
    font-style: italic;
    color: #666;
    background-color: #f0f4f8;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid #0A2B4C;
}

/* Add-on Services */
#add-on-services {
    background-color: #fff;
    padding: 4rem 1rem;
}

.addon-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.addon-category {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 3px solid #D4AF37;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.addon-category::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    transition: top 0.3s ease;
}

.addon-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.addon-category:hover::before {
    top: 0;
}

.addon-category h3 {
    color: #0A2B4C;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.addon-category h3 i {
    color: #D4AF37;
    font-size: 1.5rem;
}

.addon-category ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.addon-category li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    transition: all 0.3s ease;
}

.addon-category li:hover {
    padding-left: 10px;
    padding-right: 10px;
    background-color: rgba(212, 175, 55, 0.05);
    margin: 0 -10px;
    border-radius: 5px;
}

.addon-category li:last-child {
    border-bottom: none;
}

.addon-name {
    color: #333;
    font-weight: 500;
}

.addon-price {
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Service Areas */
#service-areas {
    padding: 4rem 1rem;
}

.service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 2rem auto;
}

.area-card {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

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

.primary-areas {
    border: 2px solid #D4AF37;
    position: relative;
    overflow: hidden;
}

.primary-areas::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.area-card h3 {
    color: #0A2B4C;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.area-card ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.area-card li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.area-card li:hover {
    transform: scale(1.05);
}

.area-card li i {
    color: #D4AF37;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.area-card li:hover i {
    transform: rotate(360deg);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #0A2B4C 0%, #0d3a5f 100%);
    color: #EAEAEA;
    padding: 3rem 2rem 2rem 2rem;
    margin-top: 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #D4AF37, #c8a02b, #D4AF37);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-column h5 {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.footer-column p,
.footer-column a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #D4AF37;
}

.footer-column .footer-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-column .footer-logo:hover {
    transform: scale(1.05);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
    transition: padding-left 0.3s ease;
}

.footer-column ul li:hover {
    padding-left: 10px;
}

.footer-column .cta-button {
    margin-top: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(5px) translateX(-5px);
    }
    75% {
        transform: translateY(-5px) translateX(5px);
    }
}

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

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Icons Fallback */
.icon-home::before { content: '🏠 '; }
.icon-clock::before { content: '⏰ '; }
.icon-calendar::before { content: '📅 '; }
.icon-sparkles::before { content: '✨ '; }
.icon-shield::before { content: '🛡️ '; }
.icon-award::before { content: '🏆 '; }
.icon-key::before { content: '🔑 '; }
.icon-check::before { content: '✅ '; }
.icon-star::before { content: '⭐ '; }
.icon-briefcase::before { content: '💼 '; }
.icon-users::before { content: '👥 '; }
.icon-contract::before { content: '📄 '; }
.icon-tag::before { content: '🏷️ '; }
.icon-kitchen::before { content: '🍳 '; }
.icon-couch::before { content: '🛋️ '; }
.icon-location::before { content: '📍 '; }
.icon-phone::before { content: '📞 '; }
.icon-email::before { content: '✉️ '; }

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    #services-hero {
        padding: 3rem 1rem;
    }

    .service-detail-section {
        padding: 3rem 1rem;
    }

    .service-column-layout,
    .service-column-layout.reverse {
        flex-direction: column;
    }

    .service-features {
        justify-content: center;
    }

    .feature-badge {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
        justify-content: center;
    }

    .addon-showcase {
        grid-template-columns: 1fr;
    }

    .service-area-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul li:hover {
        padding-left: 0;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .commercial-benefits li:hover,
    .addon-category li:hover {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .service-detail-section h2 {
        font-size: 1.8rem;
    }

    .feature-badge {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .addon-category {
        padding: 1.5rem;
    }

    .service-pricing-note {
        flex-direction: column;
        text-align: center;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .service-checklist li:hover,
    .commercial-benefits li:hover,
    .addon-category li:hover,
    .area-card li:hover,
    .footer-column ul li:hover {
        transform: none;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }

    .cta-button:hover {
        transform: none;
    }

    .addon-category:hover,
    .area-card:hover {
        transform: none;
    }
}

/* Loading state */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: #D4AF37;
    animation: rotate 1s ease-in-out infinite;
}
