/* =========================================
 * HOMEPAGE COMPLETE STYLES (CORRECTED)
 * ========================================= */

/* =========================================
 * 1. HERO SECTION
 * ========================================= */
.site-hero {
    position: relative;
    /* Fallback background if image fails to load */
    background-color: var(--dark); 
    text-align: center;
    color: var(--white);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;

    /* Desktop Padding (handles the header offset) */
    padding-top: calc(var(--header-height) + var(--spacing-4xl));
    padding-bottom: var(--spacing-4xl);
    padding-left: 0;
    padding-right: 0;
}

/* CRITICAL FIX: Handles the <picture> tag in your HTML */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Sits behind everything */
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark Gradient Overlay */
.site-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(0, 100, 150, 0.92) 100%);
    z-index: 1; /* Sits on top of image */
    pointer-events: none;
}

/* Radial Accent Glow */
.site-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(94, 200, 229, 0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Ensure Content sits on top of overlays */
.site-hero .container {
    position: relative;
    z-index: 2;
}

/* FIX: Specificity bumped to override global dark text */
.site-hero .hero-tagline {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.6s ease-out;
}

/* FIX: Added .site-hero parent to force WHITE color over global H1 styles */
.site-hero .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    font-weight: 800;
    
    /* Force White */
    color: #ffffff; 
    color: var(--white);
    
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FIX: Specificity bumped to ensure readability */
.site-hero .hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.92);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* --- Hero Anchor Links --- */
.hero-anchor-links {
    margin-top: 40px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.hero-anchor-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hero-anchor-links a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.hero-anchor-links a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
    min-width: 140px;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
    text-shadow: 0 0 30px rgba(94, 234, 212, 0.5);
}

.stat-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    max-width: 160px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
 * 2. SOCIAL PROOF SECTION
 * ========================================= */
.site-social-proof {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-lighter) 100%);
}

.social-proof-label {
    text-align: center;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-2xl);
}

.testimonial-featured {
    max-width: 950px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-light);
    padding: var(--spacing-3xl);
    position: relative;
    transition: transform var(--transition-base);
}

.testimonial-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.testimonial-featured::before {
    content: '\201C';
    position: absolute;
    top: var(--spacing-xl);
    left: var(--spacing-2xl);
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--gray-light);
}

.testimonial-author strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    font-size: 1.125rem;
}

.testimonial-author span {
    color: var(--gray);
    font-size: 0.9375rem;
}

.testimonial-rating {
    color: #f39c12;
    font-size: 0.9375rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.testimonial-rating i {
    margin-right: 2px;
}

/* =========================================
 * 3. SERVICES SECTION
 * ========================================= */
.site-services {
    padding: var(--spacing-4xl) 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    position: relative;
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Industry-specific icon styles */
.dental-card .service-icon { background: linear-gradient(135deg, #00a79d 0%, #00d4c4 100%); box-shadow: 0 8px 20px rgba(0, 167, 157, 0.3); }
.law-card .service-icon { background: linear-gradient(135deg, #004d40 0%, #00796b 100%); box-shadow: 0 8px 20px rgba(0, 77, 64, 0.3); }
.restaurant-card .service-icon { background: linear-gradient(135deg, #c82a34 0%, #e74c3c 100%); box-shadow: 0 8px 20px rgba(200, 42, 52, 0.3); }
.gym-card .service-icon { background: linear-gradient(135deg, #7ed957 0%, #92e36e 100%); box-shadow: 0 8px 20px rgba(126, 217, 87, 0.3); }
.salon-card .service-icon { background: linear-gradient(135deg, #ff6b9d 0%, #ffa8c5 100%); box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3); }
.medical-card .service-icon { background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 100%); box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3); }
.consulting-card .service-icon { background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%); box-shadow: 0 8px 20px rgba(123, 31, 162, 0.3); }

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
    font-weight: 700;
}

.service-card p {
    color: var(--gray-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-card p strong {
    color: var(--dark);
    font-weight: 700;
    display: block;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--primary);
    margin-top: var(--spacing-md);
    transition: all var(--transition-base);
    font-size: 0.95rem;
}

.service-link i {
    transition: transform var(--transition-base);
    font-size: 0.9rem;
}

.service-card:hover .service-link {
    color: var(--primary-dark);
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* =========================================
 * 4. WHY CHOOSE US
 * ========================================= */
.site-why-choose {
    padding: var(--spacing-4xl) 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.feature-item {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-lighter) 100%);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 147, 208, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform var(--transition-slow);
}

.feature-item:hover::before {
    transform: scale(1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 8px 20px rgba(0, 147, 208, 0.3);
    transition: transform var(--transition-base);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.feature-item h4 span {
    display: block;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--primary);
    margin-top: var(--spacing-xs);
}

.feature-item p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin: 0;
}

/* =========================================
 * 5. HOW IT WORKS
 * ========================================= */
.site-how-it-works {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(180deg, var(--gray-lighter) 0%, var(--white) 100%);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    position: relative;
}

/* Connective Line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(12.5% + 30px);
    right: calc(12.5% + 30px);
    height: 3px;
    z-index: 0;
    background-image: repeating-linear-gradient(
        90deg,
        var(--primary-light),
        var(--primary-light) 6px,
        transparent 6px,
        transparent 12px
    );
    background-size: 12px 100%;
    opacity: 0.5;
}

.process-step {
    text-align: center;
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: grid;
    place-items: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 8px 20px rgba(0, 147, 208, 0.4);
    position: relative;
    z-index: 2;
    line-height: 1;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--white);
    z-index: -1;
}

.process-step h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.process-step h4 span {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: var(--spacing-xs);
}

.process-step p {
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

/* =========================================
 * 6. FAQ SECTION
 * ========================================= */
.site-faq {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-lighter) 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: var(--spacing-2xl) auto 0;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.faq-item h4 {
    color: var(--dark);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.faq-item h4::before {
    content: 'Q';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
}

.faq-item p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin: 0;
    padding-left: calc(28px + var(--spacing-sm));
}

/* =========================================
 * 7. CTA SECTION (Matches HTML)
 * ========================================= */
.site-cta {
    padding: var(--spacing-4xl) 0;
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.site-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(94, 234, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-2xl);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xl) auto;
    max-width: 550px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}

.cta-benefits li i {
    flex-shrink: 0;
    color: var(--accent);
}

.cta-footer {
    margin-top: var(--spacing-xl);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* =========================================
 * 8. HOMEPAGE RESPONSIVE STYLES
 * ========================================= */

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) {
    .process-steps::before {
        left: calc(12.5% + 25px);
        right: calc(12.5% + 25px);
    }
}

/* Tablet Landscape (992px - 1023px) */
@media (max-width: 1023px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .services-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .cta-benefits { grid-template-columns: 1fr; text-align: left; }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .site-hero {
        padding-top: calc(var(--header-height) + var(--spacing-2xl));
        padding-bottom: var(--spacing-2xl);
        min-height: 80vh;
    }
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    .process-steps { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    
    .testimonial-featured { padding: var(--spacing-xl); }
    .testimonial-featured::before {
        font-size: 4rem;
        top: var(--spacing-md);
        left: var(--spacing-lg);
    }
    
    .cta-box { padding: var(--spacing-xl) var(--spacing-md); }
}

/* Small Mobile (320px - 575px) */
@media (max-width: 575px) {
    .hero-title { font-size: clamp(2rem, 8vw, 2.5rem); }
    .service-card, .feature-item, .process-step, .faq-item { padding: var(--spacing-xl); }
    .step-number { width: 50px; height: 50px; font-size: 1.5rem; }
    .hero-anchor-links a { padding: 5px 10px; font-size: 0.8rem; }
}