/* Estate Clearance Service - Modern CSS Design System
   ================================================== */

/* Table of Contents
   1. Layout Components
   2. Typography
   3. Hero Section
   4. Sections & Content
   5. Feature Cards
   6. Process Timeline
   7. Pricing Visualization
   8. Contact Section
   9. Animations
   10. Responsive Design
   11. Accessibility
*/

/* ==========================================================================
   1. Layout Components
   ========================================================================== */

.main-content {
    padding-top: var(--space-3xl);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

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

.section-dark {
    background-color: var(--color-black-soft);
    color: var(--color-white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    padding-bottom: var(--space-md);
}

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

.section-dark .section-title::after {
    background-color: var(--color-gold);
}

.text-white {
    color: var(--color-white);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-charcoal);
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

.section h3 {
    margin-bottom: var(--space-sm);
}

.section p {
    color: var(--color-gray);
    line-height: 1.8;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-black);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.7) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-2xl) 0;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-weight: 900;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* ==========================================================================
   4. Sections & Content
   ========================================================================== */

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ==========================================================================
   5. Feature Cards
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background-color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--color-gold);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-white);
}

.feature-card:hover .feature-icon svg {
    color: var(--color-black);
}

.feature-card h3 {
    color: var(--color-black);
    margin-bottom: var(--space-sm);
}

/* ==========================================================================
   6. Process Timeline
   ========================================================================== */

.estate-process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    position: relative;
}

.estate-process-step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.estate-process-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.estate-process-step:nth-child(1) { transition-delay: 0.1s; }
.estate-process-step:nth-child(2) { transition-delay: 0.2s; }
.estate-process-step:nth-child(3) { transition-delay: 0.3s; }
.estate-process-step:nth-child(4) { transition-delay: 0.4s; }

.estate-process-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.estate-process-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.estate-process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.estate-process-step:hover .estate-process-image img {
    transform: scale(1.1);
}

.estate-process-content {
    padding: var(--space-lg);
    text-align: center;
}

.estate-process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-gold);
    color: var(--color-black);
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.estate-process-content h3 {
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.estate-process-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ==========================================================================
   7. Pricing Visualization
   ========================================================================== */

.pricing-visual {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 350px;
    margin: var(--space-2xl) 0;
    padding: var(--space-lg) 0;
}

.price-bar {
    flex: 1;
    max-width: 150px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(30px);
}

.price-bar.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.price-bar:nth-child(1) { transition-delay: 0.1s; }
.price-bar:nth-child(2) { transition-delay: 0.2s; }
.price-bar:nth-child(3) { transition-delay: 0.3s; }

.price-fill {
    width: 80px;
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-black) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    height: var(--height);
    transition: height 1s ease-out;
    position: relative;
    overflow: hidden;
}

.price-bar.in-view .price-fill {
    animation: growHeight 1s ease-out forwards;
}

@keyframes growHeight {
    from { height: 0; }
    to { height: var(--height); }
}

.price-label {
    margin-top: var(--space-sm);
    font-weight: 600;
    color: var(--color-charcoal);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-black);
    margin-top: var(--space-xs);
}

.pricing-factors {
    margin-top: var(--space-3xl);
}

.pricing-factors h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.factor {
    text-align: center;
    padding: var(--space-md);
}

.factor h4 {
    color: var(--color-black);
    margin-bottom: var(--space-xs);
    font-size: 1.125rem;
}

/* ==========================================================================
   8. Contact Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-charcoal) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.contact-section {
    background-color: var(--color-off-white);
    text-align: center;
}

.contact-content h2 {
    margin-bottom: var(--space-sm);
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: var(--space-xl);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-black);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--color-gold);
    transform: translateY(-2px);
}

.contact-item svg {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   9. Animations
   ========================================================================== */

.js .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.js .fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

/* ==========================================================================
   10. Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .estate-process-timeline {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 3rem;
        --space-2xl: 2.5rem;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .pricing-visual {
        height: 280px;
    }
    
    .price-value {
        font-size: 1.25rem;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .check-list li {
        font-size: 1rem;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-visual {
        gap: var(--space-sm);
    }
    
    .price-fill {
        width: 60px;
    }
}

/* ==========================================================================
   11. Accessibility
   ========================================================================== */

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-black {
        border: 2px solid var(--color-white);
    }
    
    .feature-icon {
        border: 2px solid currentColor;
    }
}

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

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Dark mode overrides can be added here if needed */
}

/* Print Styles */
@media print {
    .hero,
    .contact-section {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .btn {
        border: 2px solid var(--color-black);
        color: var(--color-black);
        text-decoration: underline;
    }
}