/* ==========================================================================
   MAXIGARD - CARPET CLEANING DEDICATED SERVICE PAGE (carpet-cleaning.css)
   Pixel-Perfect Implementation matching Brand & Provided Design Specs
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. THEME VARIABLES
   -------------------------------------------------------------------------- */
:root {
    --cpt-orange: #FF6600;
    --cpt-orange-hover: #E05500;
    --cpt-orange-glow: rgba(255, 102, 0, 0.3);
    --cpt-orange-light: rgba(255, 102, 0, 0.08);
    
    --cpt-navy-deep: #071126;
    --cpt-navy: #0A1836;
    --cpt-navy-card: #0F1F3D;
    
    --cpt-text-navy: #0A1836;
    --cpt-text-body: #475569;
    --cpt-text-muted: #64748B;
    
    --cpt-bg-gray: #F8FAFC;
    --cpt-white: #FFFFFF;
    
    --cpt-border-light: #E2E8F0;
    --cpt-border-dark: rgba(255, 255, 255, 0.1);
    
    --cpt-radius-sm: 8px;
    --cpt-radius-md: 14px;
    --cpt-radius-lg: 20px;
    --cpt-radius-full: 9999px;
    
    --cpt-shadow-sm: 0 4px 14px rgba(10, 24, 54, 0.05);
    --cpt-shadow-md: 0 10px 30px rgba(10, 24, 54, 0.08);
    --cpt-shadow-lg: 0 20px 45px rgba(10, 24, 54, 0.12);
    --cpt-shadow-orange: 0 10px 25px rgba(255, 102, 0, 0.35);
}

.carpet-page-wrapper {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--cpt-text-body);
}

/* Top Announcement Bar - Home Page Match */
.top-bar {
    background-color: #0B162C !important;
    color: #FFFFFF !important;
    font-size: 0.825rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .top-info-item {
    color: #CBD5E1 !important;
}

.top-bar .top-info-item.link-item:hover {
    color: #FFFFFF !important;
}

.top-bar .icon-orange {
    color: #FF6600 !important;
}

/* Active Nav Indicator for Services */
.nav-item.active .nav-link {
    color: var(--cpt-orange) !important;
    position: relative;
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cpt-orange);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   2. SECTION 1: HERO SECTION - FULL-BLEED RIGHT PHOTO COVER
   -------------------------------------------------------------------------- */
.carpet-hero {
    position: relative;
    padding: 100px 0 65px 0;
    background: #FFFFFF;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.carpet-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.carpet-hero-row {
    display: flex;
    align-items: center;
    min-height: 460px;
}

/* Left Content */
.carpet-hero-content {
    max-width: 580px;
    width: 100%;
    position: relative;
    z-index: 4;
}

.carpet-tag {
    display: inline-block;
    color: var(--cpt-orange);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.carpet-hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--cpt-navy);
    letter-spacing: -1.2px;
    margin-bottom: 18px;
}

.carpet-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E3A8A;
    line-height: 1.4;
    margin-bottom: 18px;
}

.carpet-hero-desc {
    font-size: 1.02rem;
    line-height: 1.68;
    color: var(--cpt-text-body);
    margin-bottom: 34px;
}

.carpet-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cpt-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--cpt-orange);
    color: var(--cpt-white);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: var(--cpt-radius-sm);
    text-decoration: none;
    box-shadow: var(--cpt-shadow-orange);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-cpt-primary:hover {
    background: var(--cpt-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 102, 0, 0.45);
    color: var(--cpt-white);
}

.btn-cpt-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FFFFFF;
    color: var(--cpt-navy);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--cpt-radius-sm);
    border: 1.5px solid #CBD5E1;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cpt-call:hover {
    border-color: var(--cpt-navy);
    background: #F8FAFC;
    color: var(--cpt-navy);
    transform: translateY(-2px);
    box-shadow: var(--cpt-shadow-sm);
}

/* Full-Bleed Right Photo Cover (Spans 52% of the viewport from right edge) */
.carpet-hero-photo-cover {
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.carpet-hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s ease;
}

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

/* Smooth Fade into White on the Left */
.carpet-hero-photo-fade-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Floating Glassmorphism Feature Card Docked over Right Photo */
.hero-floating-card {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--cpt-radius-md);
    box-shadow: 0 16px 40px rgba(10, 24, 54, 0.14);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 4;
    min-width: 240px;
    animation: floatingSubtle 4s ease-in-out infinite;
}

@keyframes floatingSubtle {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-54%);
    }
}

.hero-floating-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-floating-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #F1F5F9;
    color: var(--cpt-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-floating-icon .icon-green {
    color: #10B981;
}

.hero-floating-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cpt-navy);
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   3. SECTION 2: OUR SERVICE OVERVIEW (TWO COLUMNS)
   -------------------------------------------------------------------------- */
.carpet-service-section {
    padding: 85px 0 95px 0;
    background: #FFFFFF;
}

.carpet-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.carpet-service-visual {
    position: relative;
    border-radius: var(--cpt-radius-md);
    overflow: hidden;
    box-shadow: var(--cpt-shadow-md);
    height: 380px;
}

.carpet-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.carpet-service-visual:hover .carpet-service-img {
    transform: scale(1.04);
}

/* Floating Orange Badge Top-Left */
.cleaner-carpets-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--cpt-orange);
    color: var(--cpt-white);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.35;
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.35);
    z-index: 2;
}

.cleaner-carpets-badge span {
    display: block;
}

.carpet-service-content {
    max-width: 540px;
}

.section-tag-orange {
    display: inline-block;
    color: var(--cpt-orange);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-main-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--cpt-navy);
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 22px;
}

.carpet-service-content p {
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--cpt-text-body);
    margin-bottom: 18px;
}

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

/* --------------------------------------------------------------------------
   4. SECTION 3: WHY CHOOSE OUR CARPET CLEANING? (2X2 BENEFIT GRID)
   -------------------------------------------------------------------------- */
.carpet-why-section {
    padding: 95px 0 100px 0;
    background: var(--cpt-bg-gray);
    border-top: 1px solid var(--cpt-border-light);
    border-bottom: 1px solid var(--cpt-border-light);
}

.carpet-why-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.carpet-why-content {
    max-width: 480px;
}

.carpet-why-content .section-main-title {
    margin-bottom: 20px;
}

.carpet-why-content p {
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--cpt-text-body);
}

/* 2x2 Benefits Grid */
.carpet-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.benefit-card {
    background: var(--cpt-white);
    border: 1px solid var(--cpt-border-light);
    border-radius: var(--cpt-radius-md);
    padding: 26px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(10, 24, 54, 0.03);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cpt-shadow-md);
    border-color: rgba(255, 102, 0, 0.3);
}

.benefit-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #FFF4ED;
    border: 1px solid rgba(255, 102, 0, 0.15);
    color: var(--cpt-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-info {
    flex: 1;
}

.benefit-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cpt-navy);
    margin-bottom: 6px;
    line-height: 1.3;
}

.benefit-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--cpt-text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   5. SECTION 4: OUR PROCESS (SIMPLE 4-STEP CLEANING PROCESS)
   -------------------------------------------------------------------------- */
.carpet-process-section {
    padding: 95px 0 105px 0;
    background: #FFFFFF;
}

.process-header {
    text-align: left;
    margin-bottom: 50px;
}

.process-subtitle {
    font-size: 1.05rem;
    color: var(--cpt-text-muted);
    margin-top: -10px;
}

/* 4-Step Flex Row with Connecting Arrows */
.process-steps-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    position: relative;
}

.process-step-card {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid var(--cpt-border-light);
    border-radius: var(--cpt-radius-md);
    padding: 30px 22px 28px 22px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(10, 24, 54, 0.04);
}

.process-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cpt-shadow-md);
    border-color: rgba(255, 102, 0, 0.4);
}

.step-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.step-badge {
    background: var(--cpt-orange);
    color: var(--cpt-white);
    font-size: 0.85rem;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.35);
    flex-shrink: 0;
}

.step-icon-wrapper {
    font-size: 1.5rem;
    color: var(--cpt-navy);
}

.step-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cpt-navy);
    margin-bottom: 10px;
}

.step-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--cpt-text-muted);
    margin: 0;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 1.1rem;
    padding: 0 6px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. SECTION 5: CTA BANNER (READY FOR FRESHER CARPETS?)
   -------------------------------------------------------------------------- */
.carpet-cta-section {
    position: relative;
    background: linear-gradient(105deg, #050D1D 0%, #0A1836 55%, rgba(10, 24, 54, 0.95) 100%);
    padding: 90px 0;
    color: #FFFFFF;
    overflow: hidden;
}

.carpet-cta-bg-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center right;
    opacity: 0.28;
    mask-image: linear-gradient(to right, transparent 0%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
    pointer-events: none;
}

.carpet-cta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.carpet-cta-content {
    max-width: 620px;
}

.cta-tag-orange {
    display: inline-block;
    color: var(--cpt-orange);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.carpet-cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.18;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
}

.carpet-cta-desc {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #CBD5E1;
    margin-bottom: 34px;
}

.carpet-cta-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--cpt-orange);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: var(--cpt-radius-sm);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cta-quote:hover {
    background: var(--cpt-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 102, 0, 0.5);
    color: #FFFFFF;
}

.btn-cta-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--cpt-radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cta-call:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .carpet-hero-title {
        font-size: 3.2rem;
    }
    .hero-floating-card {
        right: 15px;
        padding: 16px 20px;
        min-width: 200px;
    }
    .process-steps-row {
        gap: 8px;
    }
    .process-step-card {
        padding: 24px 16px;
    }
}

@media (max-width: 1100px) {
    .carpet-hero-title {
        font-size: 3.2rem;
    }
    .hero-floating-card {
        right: 25px;
        padding: 18px 20px;
        min-width: 210px;
    }
    .process-steps-row {
        gap: 8px;
    }
    .process-step-card {
        padding: 24px 16px;
    }
}

@media (max-width: 991px) {
    .carpet-hero {
        padding: 10px 0 40px 0;
        display: block;
        min-height: auto;
    }
    .carpet-hero-row {
        min-height: auto;
    }
    .carpet-hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0;
    }
    .carpet-hero-actions {
        justify-content: center;
    }
    .carpet-hero-photo-cover {
        position: relative;
        width: calc(100% - 32px);
        height: 340px;
        margin: 0 auto 24px auto;
        border-radius: var(--cpt-radius-lg);
        box-shadow: var(--cpt-shadow-md);
    }
    .carpet-hero-photo-fade-left {
        display: none;
    }
    .hero-floating-card {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        margin: 25px auto 0 auto;
        width: calc(100% - 32px);
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .carpet-service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .carpet-service-content {
        max-width: 100%;
    }
    
    .carpet-why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .carpet-why-content {
        max-width: 100%;
    }
    
    .process-steps-row {
        flex-wrap: wrap;
        gap: 20px;
    }
    .process-step-card {
        flex: 1 1 calc(50% - 20px);
        min-width: 260px;
    }
    .process-arrow {
        display: none;
    }
    
    .carpet-cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .carpet-cta-content {
        max-width: 100%;
    }
    .carpet-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .carpet-hero-title {
        font-size: 2.5rem;
    }
    .carpet-hero-subtitle {
        font-size: 1.1rem;
    }
    .section-main-title {
        font-size: 2.1rem;
    }
    .carpet-cta-title {
        font-size: 2.1rem;
    }
    .carpet-benefits-grid {
        grid-template-columns: 1fr;
    }
    .process-step-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    .carpet-hero {
        padding: 8px 0 30px 0;
    }
    .carpet-hero-photo-cover {
        width: calc(100% - 32px);
        height: 250px;
        margin: 0 auto 18px auto;
        border-radius: 14px;
    }
    .carpet-hero-title {
        font-size: 2.3rem;
    }
    .hero-floating-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 20px;
    }
}
