﻿/* =========================
   Special Elevators — style.css
   ========================= */

/* ---------- Design Tokens ---------- */
:root {
    /* Core palette */
    --bg: #ffffff;
    --text: #0b1220;
    --muted: #5c667c;
    /* Brand */
    --brand: #2D6CDF;
    --brand-2: #0ea5e9;
    --brand-contrast: #ffffff;
    --brand-hover: #2a5bd6;
    /* Accent & surfaces */
    --accent: #f59e0b;
    --card: #f5f7fb;
    --border: #e6e9f2;
    /* Layout */
    --container: 1160px;
    --gap: 16px;
    --radius: 16px;
    /* Shadows */
    --shadow: 0 10px 30px rgba(20,40,80,.08);
    --elev-1: 0 6px 16px rgba(20,40,80,.08);
    --elev-2: 0 12px 28px rgba(20,40,80,.12);
    /* Gradients / overlays */
    --gradient-brand: linear-gradient(135deg,var(--brand),var(--brand-2));
    --gradient-hero: linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.25));
    --nav-bg: rgba(255,255,255,.92);
    /* Components */
    --dot: #c7d2fe;
    --dot-active: #2D6CDF;
    /* Accessibility */
    --focus: #a5b4fc;
}

    /* (Optional) Dark Mode
   Enable by adding data-theme="dark" on <html> or <body> */
    :root[data-theme="dark"] {
        --bg: #0b1220;
        --text: #e6eaf5;
        --muted: #a3adc2;
        --card: #0f1a2c;
        --border: #1f2a3d;
        --nav-bg: rgba(13,20,34,.85);
        --shadow: 0 10px 30px rgba(0,0,0,.35);
        --elev-1: 0 6px 16px rgba(0,0,0,.35);
        --elev-2: 0 12px 28px rgba(0,0,0,.45);
        --gradient-hero: linear-gradient(0deg,rgba(0,0,0,.55),rgba(0,0,0,.35));
    }

/* ---------- Base ---------- */
* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth
}

html, body, * {
    font-family: Tahoma, Verdana, Segoe UI, Arial, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(var(--container),94%);
    margin-inline: auto
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0
}

.logo {
    width: 34px;
    height: 34px
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    letter-spacing: .3px
}

.brand-text {
    font-size: 1.05rem
}

.menu {
    display: flex;
    gap: 1.1rem;
    align-items: center
}

.nav-link {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 700;
    transition: background .15s ease,color .15s ease
}

    .nav-link.active, .nav-link:hover {
        color: var(--text);
        background: #eef2ff
    }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(45,108,223,.25);
    transition: transform .15s ease, box-shadow .15s ease
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(45,108,223,.30)
    }

    .btn.ghost {
        background: transparent;
        color: var(--brand);
        border: 1px solid var(--brand);
        box-shadow: none
    }

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 22px
}

/* ---------- Hero Slider ---------- */
.hero-slider {
    position: relative;
    isolation: isolate;
    min-height: 72vh;
    width: 100%;
    background: #0b1220;
    color: #fff;
    overflow: hidden;
}

.hero-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform .6s ease;
    will-change: transform;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: 72vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

    .hero-slide::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--gradient-hero);
        z-index: 0
    }

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1080px,92%);
    margin-inline: auto;
    text-align: center
}

.hero-kicker {
    display: inline-block;
    margin-bottom: .75rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .8rem;
    background: rgba(255,255,255,.18);
    padding: .4rem .7rem;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(2rem,4.2vw,3.8rem);
    line-height: 1.1;
    margin: .3rem 0 .6rem
}

.hero-sub {
    font-size: clamp(1rem,1.4vw,1.25rem);
    opacity: .92;
    max-width: 880px;
    margin: 0 auto 1.2rem
}

.btn.outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.9);
    color: #fff
}

    .btn.outline:hover {
        background: rgba(255,255,255,.12)
    }

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #0b1220;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 26px
}

    .hero-nav:hover {
        background: #fff
    }

    .hero-nav.prev {
        left: 16px
    }

    .hero-nav.next {
        right: 16px
    }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5)
}

    .hero-dot.active {
        background: #fff
    }

/* ---------- Hero (static section kept) ---------- */
.hero {
    padding: 72px 0 36px;
    background: linear-gradient(180deg,#f8fbff,transparent)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 26px;
    align-items: center
}

.badge {
    display: inline-flex;
    gap: .5rem;
    font-weight: 800;
    color: var(--accent);
    background: #fff3d6;
    border: 1px solid #ffe2a8;
    padding: 6px 12px;
    border-radius: 999px
}

h1 {
    font-size: clamp(2rem,3.6vw,3.2rem);
    line-height: 1.05;
    margin: 14px 0 10px
}

.lead {
    color: var(--muted);
    font-size: 1.05rem
}

.hero-cta {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap
}

.ghost {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    color: var(--text);
    transition: background .15s ease
}

    .ghost:hover {
        background: #f5f7fb
    }

/* ---------- Stats Cards ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px; /* little more spacing between cards */
    margin-top: 24px;
}

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px; /* rounder corners */
    padding: 32px 24px; /* more padding for bigger size */
    text-align: center;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    transform: scale(1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .stat:hover {
        transform: scale(1.05); /* lift effect */
        box-shadow: 0 16px 36px rgba(20,40,80,.12);
    }

    .stat b {
        font-size: 2.2rem; /* much larger numbers */
        display: block;
        margin-bottom: 8px;
        color: var(--brand); /* numbers in brand color */
    }

    .stat .tag {
        font-size: 1rem; /* bigger label text */
        font-weight: 600;
        color: var(--muted);
    }


/* ---------- Sections ---------- */
section {
    padding: 64px 0
}

.section--alt {
    background: linear-gradient(180deg,#f8fbff,transparent)
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px
}

    .section-head h2 {
        margin: 0;
        font-size: clamp(1.6rem,2.4vw,2.1rem)
    }

.kicker {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: .75rem
}

/* ---------- Cards & Grids ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow)
}

.about {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px
}

.services {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.service {
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg,#ffffff,#f9fbff)
}

    .service h3 {
        margin: .2rem 0 .4rem
    }

.tag {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    font-size: .8rem;
    color: var(--muted)
}

.clients {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.testimonial {
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border)
}

.quote {
    font-weight: 700
}

.client {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: 12px;
    color: var(--muted)
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--brand),var(--brand-2))
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.project-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow)
}

.jobs {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.job {
    background: #fff;
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius)
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

form {
    display: grid;
    gap: 12px
}

input, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text)
}

textarea {
    min-height: 120px;
    resize: vertical
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.form-hint {
    color: var(--muted);
    font-size: .9rem
}

.map.ph {
    height: 220px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--border);
    color: var(--muted)
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 22px 0;
    border-top: 1px solid var(--border);
    color: var(--muted)
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

    .foot a {
        padding: 6px 10px;
        border-radius: 10px
    }

/* ---------- Services Carousel ---------- */
.carousel {
    position: relative
}


/* ---------- Services Carousel (equal-height, taller cards) ---------- */
.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow: hidden;
    scroll-behavior: smooth;
    align-items: stretch; /* ⬅ make all slides same height */
}

.carousel-card {
    flex: 0 0 calc(33.333% - 11px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 22px; /* more breathing room */
    min-height: 300px; /* ⬅ taller card */
    height: 100%; /* stretch to match row height */
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex; /* equalize layout inside */
    flex-direction: column;
}

    .carousel-card .tag {
        color: var(--muted);
        font-weight: 700;
        font-size: .9rem;
    }

    .carousel-card h3 {
        margin: .5rem 0 .6rem;
        font-size: 1.2rem;
    }

    .carousel-card p {
        color: var(--muted);
        margin: 0 0 1rem;
        flex: 1; /* ⬅ pushes button to the bottom */
    }

    .carousel-card .btn {
        align-self: flex-start; /* button stays bottom-left */
    }

/* Arrows & dots unchanged, keep your existing styles */

/* Responsive */
@media (max-width: 1024px) {
    .carousel-card {
        flex-basis: calc(50% - 8px);
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .carousel-card {
        flex-basis: 100%;
        min-height: 280px;
    }

    .carousel-btn {
        display: none;
    }
}


    .carousel-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(20,40,80,.12)
    }

    .carousel-card h3 {
        margin: .2rem 0 .4rem
    }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer
}

    .carousel-btn:hover {
        background: #eef2ff
    }

    .carousel-btn.prev {
        left: -6px
    }

    .carousel-btn.next {
        right: -6px
    }

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot);
    opacity: .7
}

    .carousel-dot.active {
        opacity: 1;
        background: var(--dot-active)
    }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.gallery-item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff
}

    .gallery-item img, .gallery-item video {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover
    }

    .gallery-item .label {
        position: absolute;
        left: 10px;
        bottom: 10px;
        background: rgba(0,0,0,.6);
        color: #fff;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: .8rem
    }

/* ---------- Lightbox ---------- */
.lightbox {
    border: 0;
    border-radius: 16px;
    padding: 0;
    max-width: min(92vw,1000px)
}

    .lightbox::backdrop {
        background: rgba(0,0,0,.6)
    }

.lightbox-stage {
    background: #000;
    display: grid;
    place-items: center
}

    .lightbox-stage img, .lightbox-stage video {
        max-width: 100%;
        max-height: 70vh
    }

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: #fff;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px
}

.lightbox-caption {
    padding: 10px 14px;
    font-size: .95rem
}

/* ---------- A11y & Motion ---------- */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* ---------- Responsive ---------- */
@media (max-width:1024px) {
    .carousel-card {
        flex-basis: calc(50% - 8px)
    }
}

@media (max-width:960px) {
    .hero-slider, .hero-slide {
        min-height: 64vh;
        height: 64vh
    }

    .hero-grid, .about, .contact-grid {
        grid-template-columns: 1fr
    }

    .services, .clients, .grid3, .jobs {
        grid-template-columns: 1fr 1fr
    }

    .menu {
        display: none;
        position: absolute;
        top: 58px;
        right: 3%;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 10px;
        flex-direction: column;
        width: 240px
    }

        .menu.open {
            display: flex
        }

    .mobile-toggle {
        display: inline-flex
    }

    .hero-nav {
        display: none
    }
}

@media (max-width:640px) {
    .carousel-card {
        flex-basis: 100%
    }
}

@media (max-width:560px) {
    .services, .clients, .grid3, .jobs {
        grid-template-columns: 1fr
    }

    .form-row {
        grid-template-columns: 1fr
    }
}
/* ===== Scroll-triggered Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

    .reveal.visible {
        opacity: 1;
        transform: none;
    }

/* Staggered animation for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > * {
    opacity: 1;
    transform: none;
}

    .reveal-stagger.visible > *:nth-child(1) {
        transition-delay: 0s;
    }

    .reveal-stagger.visible > *:nth-child(2) {
        transition-delay: 0.1s;
    }

    .reveal-stagger.visible > *:nth-child(3) {
        transition-delay: 0.2s;
    }

    .reveal-stagger.visible > *:nth-child(4) {
        transition-delay: 0.3s;
    }

    .reveal-stagger.visible > *:nth-child(5) {
        transition-delay: 0.4s;
    }

    .reveal-stagger.visible > *:nth-child(6) {
        transition-delay: 0.5s;
    }

    .reveal-stagger.visible > *:nth-child(7) {
        transition-delay: 0.6s;
    }

    .reveal-stagger.visible > *:nth-child(8) {
        transition-delay: 0.7s;
    }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
/* ===== Enhanced Scroll Animations ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal,
.reveal-stagger {
    opacity: 0;
    transform: translateY(30px);
}

    .reveal.visible,
    .reveal-stagger.visible {
        animation: fadeUp 0.8s ease forwards;
    }

        /* stagger effect: delay child elements */
        .reveal-stagger.visible > * {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeUp 0.8s ease forwards;
        }

            .reveal-stagger.visible > *:nth-child(1) {
                animation-delay: 0.1s;
            }

            .reveal-stagger.visible > *:nth-child(2) {
                animation-delay: 0.2s;
            }

            .reveal-stagger.visible > *:nth-child(3) {
                animation-delay: 0.3s;
            }

            .reveal-stagger.visible > *:nth-child(4) {
                animation-delay: 0.4s;
            }

            .reveal-stagger.visible > *:nth-child(5) {
                animation-delay: 0.5s;
            }

            .reveal-stagger.visible > *:nth-child(6) {
                animation-delay: 0.6s;
            }
/* (extend as needed) */

/* Services Zig-Zag Layout */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 30px;
}

    .service-row.reverse {
        grid-template-columns: 2fr 1fr;
    }

        .service-row.reverse .service-icon {
            order: 2;
        }

.service-icon .icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--elev-1);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.service-details .tag {
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--muted);
}

.service-details h3 {
    margin: 0 0 10px;
}

.service-details ul {
    margin: 8px 0 12px 1.2em;
    padding: 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .service-row,
    .service-row.reverse {
        grid-template-columns: 1fr;
    }

        .service-row.reverse .service-icon {
            order: initial;
        }
}


