/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero--short {
    min-height: 60vh;
}

.hero--shorter {
    min-height: 50vh;
}

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

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video hero background */
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* On desktop, hide fallback image when video is present */
@media (min-width: 768px) {
    .hero--video .hero__bg {
        display: none;
    }
}

/* On mobile, hide video and show poster fallback image */
@media (max-width: 767px) {
    .hero__video {
        display: none;
    }
    .hero--video .hero__bg {
        display: block;
    }
}

/* Reduced motion: hide video, show fallback */
@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }
    .hero--video .hero__bg {
        display: block !important;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--color-overlay-heavy) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: var(--space-16);
    width: 100%;
}

.hero__badge {
    margin-bottom: var(--space-5);
}

.hero__title {
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-5);
    max-width: 800px;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.hero__buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* ---- Services Grid Section ---- */
.services-section .section-header {
    margin-bottom: var(--space-10);
}

.services-section .section-header h2 {
    margin-top: var(--space-3);
}

/* ---- Stats Section ---- */
.stats-section {
    background-color: var(--color-bg-secondary);
    position: relative;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    text-align: center;
}

.stat {
    padding: var(--space-5) var(--space-4);
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--color-border);
}

.stat__number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .hero__scroll-indicator {
        display: none;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat {
        padding: var(--space-4) var(--space-3);
    }
    .stat__number {
        font-size: var(--text-3xl);
    }
    .stat:not(:last-child)::after {
        display: none;
    }
    .testimonial__quote {
        font-size: var(--text-xl);
    }
}

/* ---- Why Choose Us Section ---- */
.why-section__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.why-section__content .section-label {
    margin-bottom: 0;
}

.value-item {
    padding-left: var(--space-5);
    border-left: 2px solid var(--color-accent);
}

.value-item__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.value-item__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.why-section__image {
    position: relative;
}

.why-section__image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.why-section__image::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    border-top: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-md) 0 0;
    z-index: 1;
}

.why-section__image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 80px;
    height: 80px;
    border-bottom: 3px solid var(--color-accent);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 0 0 var(--radius-md);
    z-index: 1;
}

/* Why Choose Us mobile adjustments */
@media (max-width: 767px) {
    .why-section__image::before {
        width: 40px;
        height: 40px;
        top: -6px;
        right: -6px;
    }
    .why-section__image::after {
        width: 40px;
        height: 40px;
        bottom: -6px;
        left: -6px;
    }
    .why-section__image img {
        min-height: 250px;
    }
}

/* ---- Testimonial Section ---- */
.testimonial-section {
    position: relative;
    overflow: hidden;
}

.testimonial-section .hero__bg {
    position: absolute;
    inset: 0;
}

.testimonial-section .hero__overlay {
    background: var(--color-overlay-heavy);
}

.testimonial__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
}

.testimonial__quote {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    line-height: var(--leading-snug);
    font-style: italic;
    margin: var(--space-5) 0;
}

.testimonial__author {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    letter-spacing: var(--tracking-wide);
}

/* ---- CTA Section ---- */
.cta-section {
    text-align: center;
    background: linear-gradient(to bottom, var(--color-bg-secondary), var(--color-bg-primary));
}

.cta-section h2 {
    margin-bottom: var(--space-4);
}

.cta-section p {
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

.cta__contacts {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.cta__contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-secondary);
}

.cta__contact-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.cta__contact-item a {
    color: var(--color-text-secondary);
    font-weight: var(--weight-medium);
}

.cta__contact-item a:hover {
    color: var(--color-accent);
}

/* CTA section mobile layout */
@media (max-width: 767px) {
    .cta__contacts {
        flex-direction: column;
        align-items: center;
        gap: var(--space-5);
    }
    .cta__contact-item {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        text-align: left;
    }
    .cta__contact-item a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    .cta__contact-item div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .cta__contact-item div a {
        min-height: auto;
    }
}
