/*
 * Ultra-Modern Service Page Styles - Professional Design
 * Inspired by best-in-class corporate websites
 * 
 * @package Home_Services_LeadGen
 * @since 1.0.0
 */

/* Reset and Base */
.site-main {
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Slate Palette Override */
.palette-modern-slate .modern-hero {
    background-color: var(--wp--preset--color--modern-dark);
}

.palette-modern-slate .hero-badge,
.palette-modern-slate .section-badge {
    background: color-mix(in srgb, var(--wp--preset--color--modern-orange) 15%, transparent);
    color: var(--wp--preset--color--modern-orange);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
}

.palette-modern-slate .btn-primary {
    background: var(--wp--preset--gradient--modern-orange-gradient);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
}

.palette-modern-slate .stats-section {
    background: var(--wp--preset--color--modern-orange);
}

.palette-modern-slate .process-section,
.palette-modern-slate .cta-section {
    background: var(--wp--preset--gradient--modern-dark-gradient);
}

/* Fallback for non-modern-slate palettes */
body:not(.palette-modern-slate) .modern-hero {
    background-color: var(--wp--preset--color--primary);
}

body:not(.palette-modern-slate) .hero-badge,
body:not(.palette-modern-slate) .section-badge {
    background: color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
    color: var(--wp--preset--color--primary);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
}

body:not(.palette-modern-slate) .btn-primary {
    background: var(--wp--preset--color--primary);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
}

body:not(.palette-modern-slate) .stats-section {
    background: var(--wp--preset--color--primary);
}

body:not(.palette-modern-slate) .process-section,
body:not(.palette-modern-slate) .cta-section {
    background: var(--wp--preset--color--primary);
}

/* Modern Hero Section */
/* Hero styles moved to global-modern.css for reusability */

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 160px;
    text-decoration: none;
    color: inherit;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 20px;
    opacity: 0.9;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.btn-primary {
    background: var(--wp--preset--gradient--modern-orange-gradient);
    color: var(--wp--preset--color--light);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px color-mix(in srgb, var(--wp--preset--color--modern-orange) 40%, transparent);
    background: linear-gradient(135deg, var(--wp--preset--color--modern-orange-alt) 0%, var(--wp--preset--color--modern-orange) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 14px;
}

/* Hero Form Card */
.hero-form-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.form-placeholder {
    padding: 40px;
    text-align: center;
}

.form-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--modern-dark);
    margin-bottom: 8px;
}

.form-placeholder p {
    color: var(--wp--preset--color--modern-gray-500);
    margin-bottom: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-phone,
.contact-email {
    color: var(--wp--preset--color--modern-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Full-Width Sections */
.content-section,
.benefits-section,
.process-section,
.stats-section,
.related-section,
.cta-section {
    width: 100%;
    position: relative;
}

/* Content Section */
.content-section {
    background: var(--wp--preset--color--background);
    padding: 100px 0;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--wp--preset--color--modern-gray-700);
}

.content-prose h2,
.content-prose h3 {
    color: var(--wp--preset--color--modern-dark);
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 24px;
}

.content-prose p {
    margin-bottom: 24px;
}

/* Section Container */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--wp--preset--color--modern-orange) 15%, transparent);
    color: var(--wp--preset--color--modern-orange);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--wp--preset--color--modern-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--wp--preset--color--modern-gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    background: var(--wp--preset--color--modern-gray-50);
    padding: 120px 0;
}

.benefits-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-item {
    background: var(--wp--preset--color--background);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--wp--preset--color--modern-gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--wp--preset--color--modern-dark) 10%, transparent);
    border-color: var(--wp--preset--color--modern-orange);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

.benefit-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--modern-dark);
    margin-bottom: 16px;
}

.benefit-item p {
    color: var(--wp--preset--color--modern-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Process Section */
.process-section {
    background: var(--wp--preset--gradient--modern-dark-gradient);
    color: var(--wp--preset--color--light);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="%23ffffff" opacity="0.1"/></svg>');
    opacity: 0.5;
}

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

.process-section .section-badge {
    background: color-mix(in srgb, var(--wp--preset--color--modern-orange) 15%, transparent);
    color: var(--wp--preset--color--modern-orange);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
}

.process-section .section-title {
    color: var(--wp--preset--color--light);
}

.process-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: var(--wp--preset--gradient--modern-orange-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--wp--preset--color--modern-orange) 30%, transparent);
}

.timeline-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wp--preset--color--light);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--wp--preset--color--light);
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Stats Section */
.stats-section {
    background: var(--wp--preset--color--modern-orange);
    padding: 80px 0;
    color: var(--wp--preset--color--light);
}

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

.stat-card {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
    color: var(--wp--preset--color--light);
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    color: var(--wp--preset--color--light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Related Services */
.related-section {
    background: var(--wp--preset--color--background);
    padding: 120px 0;
}

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

.service-card {
    background: var(--wp--preset--color--background);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--wp--preset--color--modern-gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--wp--preset--color--modern-orange) 90%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

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

.service-arrow {
    color: var(--wp--preset--color--light);
    font-size: 2rem;
    font-weight: bold;
}

.service-info {
    padding: 32px;
}

.service-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--modern-dark);
    margin-bottom: 12px;
}

.service-info p {
    color: var(--wp--preset--color--modern-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Final CTA */
/* CTA styles moved to global-modern.css for reusability */

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 3fr 2fr;
        gap: 60px;
    }
    
    .section-container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 24px 24px;
        text-align: center;
    }
    
    .modern-hero {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-description {
        font-size: 1.125rem;
        margin: 0 auto 32px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 12px;
    }
    
    .stat-box {
        min-width: 140px;
        padding: 14px 16px;
    }
    
    .section-container {
        padding: 0 24px;
    }
    
    .content-container {
        padding: 0 24px;
    }
    
    .benefits-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta-card {
        padding: 60px 40px;
        margin: 0 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .content-section,
    .benefits-section,
    .process-section,
    .stats-section,
    .related-section,
    .cta-section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 20px 16px;
    }
    
    .section-container,
    .content-container {
        padding: 0 16px;
    }
    
    .benefit-item {
        padding: 32px 24px;
    }
    
    .service-info {
        padding: 24px;
    }
    
    .cta-card {
        padding: 40px 24px;
        margin: 0 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}