/* ===========================
   HOME PAGE — home.css
=========================== */

/* ---------------------------
   HERO
--------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.88) 0%,
        rgba(17, 24, 39, 0.75) 50%,
        rgba(220, 38, 38, 0.12) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.hero-content h1 {
    margin: 0.5rem 0 1.25rem;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    letter-spacing: -1px;
    color: #F9FAFB;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(249, 250, 251, 0.75);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(249, 250, 251, 0.5);
    animation: bounce 2s infinite;
    z-index: 1;
    transition: color 0.3s;
}

.hero-scroll:hover {
    color: var(--accent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------------------------
   SERVICES
--------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.12);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background var(--transition);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent);
}

.service-card:hover .service-icon {
    background: var(--accent);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------------------------
   PARALLAX BANNER
--------------------------- */
.parallax-banner {
    position: relative;
    padding: 7rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13, 17, 23, 0.9) 0%,
        rgba(13, 17, 23, 0.7) 60%,
        rgba(220, 38, 38, 0.15) 100%
    );
}

.parallax-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.parallax-content .section-label {
    margin-bottom: 1rem;
}

.parallax-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.25;
    color: #F9FAFB;
}

.parallax-content p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: rgba(249, 250, 251, 0.85);
}

/* ---------------------------
   WHY US
--------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.why-card h3 {
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Stats bar */
.stats-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.stat-item {
    padding: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

/* ---------------------------
   GALLERY
--------------------------- */
.gallery-section {
    background: var(--bg-dark);
}

.gallery-section .section-label {
    color: #F87171;
}

.gallery-section .section-title {
    color: #F9FAFB;
}

.gallery-section .section-subtitle {
    color: rgba(249, 250, 251, 0.7);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    aspect-ratio: 3/4;
}

.gallery-item--wide {
    grid-column: span 3;
    aspect-ratio: unset;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------------------------
   CTA FINAL
--------------------------- */
.cta-section {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 24, 39, 0.95) 0%,
        rgba(13, 17, 23, 0.88) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content .section-label {
    display: block;
    text-align: center;
    margin-bottom: 1.25rem;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #F9FAFB;
}

.cta-content p {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    color: rgba(249, 250, 251, 0.85);
}

.cta-phones {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(249, 250, 251, 0.9);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.cta-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(220, 38, 38, 0.1);
}

/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-divider:nth-child(4),
    .stat-divider:nth-child(6) {
        display: none;
    }

    .stat-divider:nth-child(2) {
        display: block;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    .gallery-item--wide > .gallery-item {
        aspect-ratio: 3/4;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-divider {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-item--wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .parallax-banner,
    .cta-section {
        padding: 4rem 0;
    }

    .hero-bg,
    .parallax-banner,
    .cta-bg {
        background-attachment: scroll;
    }

    .cta-phones {
        flex-direction: column;
        align-items: center;
    }
}
