/* =====================================================================
   HOMEPAGE VISUAL POLISH — spacing, cards, buttons, alignment
   Loaded on index only. Pure layout/visual consistency pass.
   ===================================================================== */

:root {
    --home-section-y: 96px;
    --home-section-y-sm: 48px;
    --home-gutter: 24px;
    --home-grid-gap: 32px;
    --home-card-radius: 12px;
    --home-card-pad: 32px;
    --home-card-shadow: 0 2px 8px rgba(14, 31, 63, 0.10);
    --home-card-shadow-hover: 0 12px 28px rgba(14, 31, 63, 0.10);
    --home-card-title-size: 20px;
    --home-card-title-weight: 700;
    --home-card-title-gap: 16px;
    --home-card-body-size: 15px;
    --home-btn-radius: 12px;
    --home-btn-pad-y: 14px;
    --home-btn-pad-x: 28px;
    --home-btn-font-size: 14px;
    --home-btn-font-weight: 600;
}

/* ---------- Shared container gutters ---------- */
.acc-hero .acc-container,
.acc-scope > .acc-container,
.acc-scope .acc-container {
    padding-left: var(--home-gutter);
    padding-right: var(--home-gutter);
}

/* ---------- Hero padding only (height locked in redesign + equalize JS) ---------- */
.acc-hero-left {
    padding: 70px clamp(var(--home-gutter), 5vw, 80px);
}
.acc-hero-slide {
    min-height: max(620px, calc(100svh - 140px));
}
.acc-hero-right {
    min-height: max(620px, calc(100svh - 140px));
}

.acc-services,
.acc-about,
.acc-statistic,
.acc-uae-section,
.acc-projects,
.acc-cta,
.acc-pricing,
.acc-video,
.acc-team,
.acc-testimonial,
.acc-blog {
    padding-top: var(--home-section-y);
    padding-bottom: var(--home-section-y);
}

/* Hero ke turant baad wali services — pehle wala empty white band kam */
.acc-hero + .acc-services {
    padding-top: var(--home-section-y-sm) !important;
}

.acc-footer {
    padding-top: var(--home-section-y);
}

/* ---------- Section headers ---------- */
.acc-head {
    margin-bottom: var(--home-section-y-sm);
}
.acc-svc-head {
    margin-bottom: var(--home-section-y-sm);
}
.acc-anim-cards .acc-svc-head--minimal {
    margin-bottom: var(--home-section-y-sm);
}
.acc-uae-section .text-center.mb-5 {
    margin-bottom: var(--home-section-y-sm) !important;
}

/* ---------- Unified buttons (homepage CTAs) ---------- */
.acc-scope .acc-btn,
.acc-scope .acc-btn-read {
    border-radius: var(--home-btn-radius);
    padding: var(--home-btn-pad-y) var(--home-btn-pad-x);
    font-size: var(--home-btn-font-size);
    font-weight: var(--home-btn-font-weight);
    gap: 8px;
}

/* ---------- Icon badge (circular, shared across service grids) ---------- */
.acc-svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #FFF4DF;
    color: #E0940F;
    margin-bottom: var(--home-card-title-gap);
}

.acc-services:not(.acc-anim-cards) .acc-svc-card:hover .acc-svc-icon {
    background: #13285A;
    color: #fff;
    transform: scale(1.05);
}

/* ---------- Service / core-services cards ---------- */
.acc-svc-grid {
    gap: var(--home-grid-gap);
    align-items: stretch;
}

.acc-svc-card {
    border-radius: var(--home-card-radius);
    padding: var(--home-card-pad);
    box-shadow: var(--home-card-shadow);
}

.acc-services:not(.acc-anim-cards) .acc-svc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-card-shadow-hover);
}

.acc-svc-card-title {
    font-size: var(--home-card-title-size);
    font-weight: var(--home-card-title-weight);
    margin-bottom: var(--home-card-title-gap);
}

.acc-svc-card-text {
    font-size: var(--home-card-body-size);
    line-height: 1.65;
}

/* ---------- About ---------- */
.acc-about .acc-container {
    gap: var(--home-section-y-sm);
}
.acc-about-collage {
    gap: var(--home-gutter);
}
.acc-collage-tile {
    border-radius: var(--home-card-radius);
}
.acc-about-body .acc-text {
    margin-bottom: var(--home-grid-gap);
}

/* ---------- Statistic / engineering section ---------- */
.acc-statistic-wrap {
    gap: var(--home-section-y-sm);
}
.acc-statistic-grid {
    gap: var(--home-grid-gap);
}
.acc-stat-card {
    border-radius: 8px;
}

/* ---------- UAE / Licensed Operations ---------- */
.uae-content-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--home-section-y-sm);
    align-items: center;
    margin: var(--home-section-y-sm) 0;
}

.uae-info-cards {
    flex: unset;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: var(--home-grid-gap);
}

.uae-info-card {
    border-radius: var(--home-card-radius);
    padding: var(--home-card-pad);
    box-shadow: var(--home-card-shadow);
    gap: var(--home-gutter);
    height: 100%;
}

.uae-info-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 24px;
}

.uae-info-card .card-title {
    font-size: var(--home-card-title-size);
    font-weight: var(--home-card-title-weight);
    margin-bottom: var(--home-card-title-gap);
}

.uae-info-card .card-text {
    font-size: var(--home-card-body-size);
    line-height: 1.65;
}

.uae-map-section {
    flex: unset;
    min-width: 0;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uae-map-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.uae-map-frame {
    max-width: 100%;
    margin: 0 auto;
}

.uae-license-badge {
    border-radius: 8px;
    padding: var(--home-grid-gap) var(--home-card-pad);
    box-shadow: var(--home-card-shadow);
    gap: var(--home-gutter);
}

/* ---------- Latest Projects ---------- */
.acc-projects .gallery-slider.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.acc-projects .gallery-slider.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.acc-projects .gallery-slider.owl-carousel .owl-item {
    display: flex;
    height: auto;
    float: none;
}

.acc-projects .gallery-slider .item {
    padding: 0 8px;
    width: 100%;
    display: flex;
    height: 100%;
}

.acc-project-card {
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.acc-project-card .img-link {
    flex-shrink: 0;
}

.acc-project-card .img.plate {
    height: 250px;
    aspect-ratio: unset;
    border-radius: 0;
}

.acc-project-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.acc-project-card .content {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.acc-project-card .title {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.acc-project-card .title a {
    font-size: 18.5px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(18.5px * 1.35 * 2);
    line-height: 1.35;
}

.acc-project-card .text {
    margin-bottom: 20px;
    flex: 1 1 auto;
    min-height: calc(14px * 1.7 * 3);
}

.acc-project-card .content:not(:has(.text)) .title {
    margin-bottom: calc(20px + (14px * 1.7 * 3));
}

.acc-project-card .text p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acc-project-card .acc-btn-read {
    margin-top: auto;
    flex-shrink: 0;
    align-self: flex-start;
}

.acc-projects .gallery-slider .owl-dots {
    margin-top: 36px;
}

/* ---------- CTA banner ---------- */
.acc-cta .acc-title {
    margin-bottom: var(--home-gutter);
}
.acc-cta .acc-cta-actions {
    gap: var(--home-gutter);
}

/* ---------- Footer ---------- */
.acc-footer .acc-footer-grid {
    gap: var(--home-section-y-sm);
    padding-bottom: var(--home-section-y-sm);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
    .uae-content-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: var(--home-section-y-sm);
    }

    .acc-about-collage {
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .acc-services,
    .acc-about,
    .acc-statistic,
    .acc-uae-section,
    .acc-projects,
    .acc-cta,
    .acc-pricing,
    .acc-video,
    .acc-team,
    .acc-testimonial,
    .acc-blog {
        padding-top: var(--home-section-y-sm);
        padding-bottom: var(--home-section-y-sm);
    }

    .acc-footer {
        padding-top: var(--home-section-y-sm);
    }

    .acc-hero-left {
        padding-top: var(--home-section-y-sm);
        padding-bottom: var(--home-section-y-sm);
    }

    .acc-hero-slide,
    .acc-hero-right {
        min-height: auto;
    }

    .acc-hero-right {
        min-height: 280px;
    }

    .acc-svc-card,
    .uae-info-card {
        padding: var(--home-gutter);
    }

    .uae-license-badge {
        padding: var(--home-gutter);
    }

    .acc-project-card .content {
        padding: var(--home-gutter);
    }

    .acc-project-card .img {
        height: 180px;
    }

    .uae-content-wrapper {
        gap: var(--home-gutter);
        margin: var(--home-gutter) 0;
    }
}

@media (max-width: 575px) {
    .acc-statistic-wrap {
        gap: var(--home-gutter);
    }

    .acc-statistic-grid {
        gap: 16px;
    }
}
