/* =====================================================================
   Homepage experience refresh
   Native, dependency-free carousels with touch scroll-snap support.
   ===================================================================== */

.home-page {
    --home-bg: #f4f7fb;
    --home-surface: #ffffff;
    --home-surface-soft: #edf3f9;
    --home-heading: #153968;
    --home-text: #263b51;
    --home-muted: #6a7c8f;
    --home-border: rgba(28, 66, 123, .13);
    --home-orange: #ee6623;
    --home-blue: #1c427b;
    --home-blue-dark: #102a50;
    --home-supporting-size: clamp(1.08rem, 1.18vw, 1.24rem);
    --home-supporting-line-height: 1.9;
    background: var(--home-bg);
    color: var(--home-text);
    overflow-x: clip;
}

.home-page .home-section {
    position: relative;
    padding: 84px 0;
    overflow: clip;
}

.home-page .home-section::before {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(28, 66, 123, .08);
    border-radius: 50%;
    inset-inline-end: -190px;
    top: 40px;
}

.home-page .home-section-head {
    align-items: flex-end;
    margin-bottom: 32px;
}

.home-page .home-section-head h2,
.home-page .home-about-content h2,
.home-page .home-cta-copy h2 {
    color: var(--home-heading);
}

.home-section-intro {
    max-width: 670px;
    margin: 14px 0 0;
    color: var(--home-muted);
    font-size: 1.02rem;
}

.home-section-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.home-text-link {
    color: var(--home-blue);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 2px solid rgba(238, 102, 35, .35);
}

.home-text-link:hover {
    color: var(--home-orange);
    border-bottom-color: var(--home-orange);
}

/* Hero */
.home-page .home-hero {
    min-height: 620px;
    min-height: min(700px, calc(100svh - 90px));
    overflow: hidden;
    isolation: isolate;
}

.home-page .home-hero .hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 36, 73, .96) 0%, rgba(28, 66, 123, .82) 46%, rgba(28, 66, 123, .20) 100%),
        linear-gradient(0deg, rgba(9, 31, 59, .28), transparent 45%);
}

html[dir="rtl"] .home-page .home-hero .hero-overlay {
    background:
        linear-gradient(270deg, rgba(10, 36, 73, .96) 0%, rgba(28, 66, 123, .82) 46%, rgba(28, 66, 123, .20) 100%),
        linear-gradient(0deg, rgba(9, 31, 59, .28), transparent 45%);
}

.home-hero-pattern {
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: .28;
    background-image:
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .28) 0 2px, transparent 3px),
        linear-gradient(120deg, transparent 0 72%, rgba(255, 255, 255, .12) 72% 72.3%, transparent 72.3%),
        linear-gradient(60deg, transparent 0 84%, rgba(238, 102, 35, .22) 84% 84.25%, transparent 84.25%);
    background-size: 44px 44px, 100% 100%, 100% 100%;
    pointer-events: none;
}

.home-page .home-hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
    align-items: end;
    gap: 70px;
    padding: 92px 0 116px;
}

.home-page .home-hero-content > * {
    max-width: none;
}

.home-hero-copy {
    max-width: 760px;
}

.home-page .home-hero h1 {
    max-width: 760px;
    font-size: clamp(2.7rem, 5.5vw, 5.25rem);
    text-wrap: balance;
}

.home-page .home-hero p {
    max-width: 650px;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.9;
}

.home-page .home-hero .eyebrow {
    color: #ffad82;
}

.home-hero-route {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 20px;
    background: rgba(8, 32, 62, .58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

.home-route-label {
    display: block;
    color: #ffad82;
    font-weight: 800;
    margin-bottom: 16px;
}

.home-route-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
}

.home-route-steps span {
    white-space: nowrap;
}

.home-route-steps i {
    flex: 1;
    min-width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, .36);
    position: relative;
}

.home-route-steps i::after {
    content: "";
    width: 6px;
    height: 6px;
    position: absolute;
    top: 50%;
    inset-inline-end: 0;
    border-radius: 50%;
    background: var(--home-orange);
    transform: translateY(-50%);
}

/* Floating proof strip — official Altayseer identity */
.home-proof {
    position: relative;
    z-index: 5;
    margin-top: -48px;
}

.home-proof-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #182E56;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(24, 46, 86, .24);
    overflow: hidden;
}

.home-proof-item {
    min-height: 110px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-inline-end: 1px solid rgba(255, 255, 255, .14);
}

.home-proof-item:last-child {
    border-inline-end: 0;
}

.home-proof-item strong {
    color: #E96124;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-proof-item span {
    color: rgba(255, 255, 255, .74);
    font-size: .9rem;
    margin-top: 7px;
}

.home-proof-item--brand .proof-brand-title {
    display: block;
    color: #E96124;
    font-size: clamp(.95rem, 1.15vw, 1.2rem);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: .35rem;
}

.home-proof-item--brand .proof-brand-subtitle {
    display: block;
    color: rgba(255, 255, 255, .74);
    font-size: clamp(.9rem, 1vw, 1rem);
    font-weight: 600;
    line-height: 1.5;
}

/* Generic carousel */
.home-carousel {
    min-width: 0;
}

.carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.carousel-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--home-border);
    background: var(--home-surface);
    color: var(--home-blue);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(28, 66, 123, .07);
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.carousel-button span {
    font: 700 1.9rem/1 Arial, sans-serif;
    transform: translateY(-1px);
}

.carousel-button:hover {
    background: var(--home-blue);
    color: #fff;
    border-color: var(--home-blue);
    transform: translateY(-2px);
}

html[dir="rtl"] .carousel-button span {
    transform: translateY(-1px) rotate(180deg);
}

.carousel-viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    padding: 8px 4px 30px;
    margin-inline: -4px;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 22px;
    width: max-content;
    min-width: 100%;
}

.carousel-slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.carousel-footer {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.carousel-status {
    min-width: 54px;
    color: var(--home-muted);
    font-size: .84rem;
    font-weight: 800;
    text-align: center;
    direction: ltr;
}

.home-carousel.is-static .carousel-controls,
.home-carousel.is-static .carousel-footer {
    display: none;
}

/* Services */
.home-services-section {
    background: var(--home-bg);
    padding-top: 78px !important;
}

.services-track .service-slide {
    flex: 0 0 calc((min(1180px, 100vw - 40px) - 44px) / 3);
    width: calc((min(1180px, 100vw - 40px) - 44px) / 3);
}

.home-service-card {
    min-height: 310px;
    padding: 30px;
    border: 1px solid var(--home-border);
    border-radius: 22px;
    background: var(--home-surface);
    box-shadow: 0 14px 35px rgba(28, 66, 123, .06);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-service-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    inset-inline-end: -78px;
    top: -72px;
    background: rgba(238, 102, 35, .08);
    transition: transform .3s ease;
}

.home-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(238, 102, 35, .35);
    box-shadow: 0 24px 55px rgba(28, 66, 123, .14);
}

.home-service-card:hover::after {
    transform: scale(1.2);
}

.home-service-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    position: relative;
    z-index: 1;
}

.home-service-number {
    color: rgba(28, 66, 123, .35);
    font-weight: 800;
    letter-spacing: .08em;
}

.home-service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff2ec;
    color: var(--home-orange);
    font-size: 1.65rem;
}

.home-service-card h3 {
    color: var(--home-heading);
    font-size: 1.32rem;
    line-height: 1.5;
    margin: 26px 0 10px;
    position: relative;
    z-index: 1;
}

.home-service-card p {
    color: var(--home-muted);
    margin: 0 0 24px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    color: var(--home-blue);
    font-weight: 800;
}

.home-card-link > span:last-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(28, 66, 123, .07);
    color: var(--home-orange);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.home-card-link:hover > span:last-child {
    color: #fff;
    background: var(--home-orange);
    transform: translate(2px, -2px);
}

html[dir="rtl"] .home-card-link:hover > span:last-child {
    transform: translate(-2px, -2px);
}

/* About */
.home-about-section {
    background: var(--home-surface);
}

.home-about-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(28, 66, 123, .025), transparent 35%, rgba(238, 102, 35, .018));
}

.home-about-grid {
    position: relative;
    z-index: 1;

    width: min(1500px, calc(100% - 48px));
    max-width: none;

    display: grid;
    grid-template-columns:
        minmax(560px, 1fr)
        minmax(680px, 1.12fr);

    align-items: center;
    gap: clamp(46px, 5vw, 74px);
}

.home-about-media {
    position: relative;

    width: 100%;
    max-width: 700px;

    justify-self: start;

    padding: 0 0 34px 34px;
}
html[dir="rtl"] .home-about-media {
    padding: 0 34px 34px 0;
}

.home-about-image-wrap {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(28, 66, 123, .16);
}

.home-about-image-wrap img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 4.05;

    object-fit: cover;
    object-position: center;
}

.home-about-media::before {
    content: "";
    position: absolute;
    width: 64%;
    height: 62%;
    inset-inline-start: 0;
    bottom: 0;
    border-radius: 24px;
    background: #e9f0f8;
    z-index: -1;
}

.home-about-badge {
    position: absolute;
    inset-inline-end: -26px;
    bottom: 0;
    width: min(270px, 70%);
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--home-blue);
    color: #fff;
    box-shadow: 0 18px 45px rgba(28, 66, 123, .25);
}

.home-about-badge strong,
.home-about-badge span {
    display: block;
}

.home-about-badge strong {
    color: #ffad82;
    font-size: 1.08rem;
}

.home-about-badge span {
    margin-top: 4px;
    color: #e8eff7;
    font-size: .84rem;
}

.home-about-content h2 {
    margin: 0 0 20px;

    color: var(--home-heading);

    font-size: clamp(2.05rem, 2.65vw, 3rem);
    line-height: 1.22;

    white-space: nowrap;
}
.home-about-content > p {
    max-width: 760px;

    margin: 0 0 24px;

    color: var(--home-muted);

    font-size: var(--home-supporting-size);
    line-height: var(--home-supporting-line-height);
}

.home-about-features {
    margin: 28px 0 32px;
    display: grid;
    gap: 10px;
}

.home-about-features > div {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f6f8fb;
}

.home-about-features span {
    color: var(--home-orange);
    font-size: .83rem;
    font-weight: 900;
}

.home-about-features p {
    margin: 0;
    color: var(--home-text);
    font-size: .94rem;
}

/* News */
.home-news-section {
    background: #eaf0f7;
}

.home-news-section::before {
    border-color: rgba(238, 102, 35, .10);
}

.news-track {
    gap: 0;
    width: 100%;
}

.home-news-slide {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    min-height: 460px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 65px rgba(28, 66, 123, .13);
}

.home-news-media {
    min-width: 0;
    overflow: hidden;
    background: #dce5ef;
}

.home-news-media img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: transform .6s ease;
}

.home-news-slide:hover .home-news-media img {
    transform: scale(1.035);
}

.home-news-content {
    padding: clamp(30px, 4.2vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.home-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--home-orange);
    font-size: .84rem;
    font-weight: 900;
    direction: ltr;
}

.home-news-content h3 {
    margin: 22px 0 14px;
    color: var(--home-heading);
    font-size: clamp(1.65rem, 3.2vw, 2.7rem);
    line-height: 1.42;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-content p {
    margin: 0 0 24px;
    color: var(--home-muted);
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-carousel-footer {
    justify-content: space-between;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 66, 123, .24);
    cursor: pointer;
    transition: width .22s ease, background .22s ease;
}

.carousel-dot.is-active {
    width: 30px;
    background: var(--home-orange);
}

/* CTA */
.home-cta-section {
    padding: 76px 0 90px;
    background: var(--home-bg);
}

.home-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(34px, 5vw, 62px);
    background: linear-gradient(125deg, #102a50, #1c427b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 28px 70px rgba(28, 66, 123, .21);
}

.home-cta-card::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    inset-inline-end: -100px;
    top: -170px;
}

.home-cta-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.home-cta-copy > span {
    color: #ffad82;
    font-weight: 800;
}

.home-cta-copy h2 {
    color: #fff !important;
    margin: 8px 0 10px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.home-cta-copy p {
    margin: 0;
    color: #dce8f3;
}

.home-cta-card > .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Dark theme */
html[data-theme="dark"] .home-page {
    --home-bg: #071725;
    --home-surface: #0c263d;
    --home-surface-soft: #102f4a;
    --home-heading: #f4f8fc;
    --home-text: #dce7ef;
    --home-muted: #aebfcd;
    --home-border: rgba(165, 193, 214, .18);
    background: var(--home-bg);
}

html[data-theme="dark"] .home-service-card,
html[data-theme="dark"] .home-news-slide {
    background: var(--home-surface);
    border-color: var(--home-border);
}

html[data-theme="dark"] .home-section-intro,
html[data-theme="dark"] .home-service-card p,
html[data-theme="dark"] .home-about-content > p,
html[data-theme="dark"] .home-news-content p,
html[data-theme="dark"] .carousel-status {
    color: var(--home-muted);
}

html[data-theme="dark"] .home-service-card h3,
html[data-theme="dark"] .home-news-content h3,
html[data-theme="dark"] .home-section-head h2,
html[data-theme="dark"] .home-about-content h2 {
    color: var(--home-heading);
}

html[data-theme="dark"] .home-service-icon {
    background: rgba(238, 102, 35, .13);
}

html[data-theme="dark"] .home-about-section {
    background: #0a2034;
}

html[data-theme="dark"] .home-about-media::before {
    background: #102f4a;
}

html[data-theme="dark"] .home-about-features > div {
    background: #102f4a;
}

html[data-theme="dark"] .home-about-features p {
    color: #dce7ef;
}

html[data-theme="dark"] .home-news-section {
    background: #091e31;
}

html[data-theme="dark"] .carousel-button {
    background: #0c263d;
    color: #dce7ef;
    border-color: var(--home-border);
}

html[data-theme="dark"] .carousel-button:hover {
    background: #1c427b;
    color: #fff;
}

html[data-theme="dark"] .home-text-link,
html[data-theme="dark"] .home-card-link {
    color: #9bc7ee;
}

html[data-theme="dark"] .home-news-media {
    background: #102f4a;
}

html[data-theme="dark"] .carousel-dot {
    background: rgba(204, 224, 238, .28);
}


@supports not (overflow: clip) {
    .home-page {
        overflow-x: visible;
    }

    .home-page .home-section {
        overflow: hidden;
    }
}

/* Tablet */
@media (max-width: 1280px) {
    .home-about-content h2 {
        white-space: normal;
    }
}
@media (max-width: 1024px) {
    .home-page .home-hero-content {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 40px;
    }

    .services-track .service-slide {
        flex-basis: calc((min(100vw - 40px, 1180px) - 22px) / 2);
        width: calc((min(100vw - 40px, 1180px) - 22px) / 2);
    }

    .home-about-grid {
    width: min(100% - 40px, 1180px);
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 46px;
}

    .home-news-slide {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
    }
}

/* Mobile and compact tablets */
@media (max-width: 780px) {
    .home-page .home-section {
        padding: 68px 0;
    }

    .home-page .home-hero {
        min-height: 570px;
        min-height: min(650px, calc(100svh - 72px));
        align-items: end;
    }

    .home-page .home-hero .hero-overlay,
    html[dir="rtl"] .home-page .home-hero .hero-overlay {
        background: linear-gradient(0deg, rgba(7, 27, 53, .98) 0%, rgba(28, 66, 123, .76) 63%, rgba(28, 66, 123, .30) 100%);
    }

    .home-page .home-hero-content {
        width: min(100% - 30px, 1180px);
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 86px 0 92px;
    }

    .home-page .home-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.4rem);
    }

    .home-hero-route {
        display: none;
    }

    .home-proof {
        margin-top: -34px;
    }

    .home-proof-card {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 20px;
    }

    .home-proof-item {
        min-height: 92px;
        padding: 16px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .home-proof-item:nth-child(2) {
        border-inline-end: 0;
    }

    .home-proof-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .home-section-head {
        align-items: flex-start !important;
        gap: 22px;
    }

    .home-section-actions {
        width: 100%;
        justify-content: space-between;
    }

    .services-track .service-slide {
        flex-basis: min(82vw, 340px);
        width: min(82vw, 340px);
    }

    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .home-about-media {
        max-width: 620px;
        margin-inline: auto;
    }

    .home-about-image-wrap img {
        aspect-ratio: 4 / 3.5;
    }

    .home-about-badge {
        inset-inline-end: -4px;
    }

    .home-news-slide {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-news-media img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .home-news-content {
        padding: 28px;
    }

    .home-news-content h3 {
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .home-news-content p {
        line-clamp: 3;
        -webkit-line-clamp: 3;
    }

    .home-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .home-page .home-section {
        padding: 58px 0;
    }

    .home-page .home-hero-content {
        width: min(100% - 26px, 1180px);
        padding-bottom: 82px;
    }

    .home-page .home-hero p {
        margin-bottom: 26px;
    }

    .home-page .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-page .hero-actions .btn {
        width: 100%;
    }

    .home-proof-card {
        margin-inline: 0;
    }

    .home-proof-item strong {
        font-size: 1.48rem;
    }

    .home-proof-item span {
        font-size: .78rem;
    }

    .home-section-actions {
        align-items: center;
    }

    .home-text-link {
        font-size: .88rem;
    }

    .carousel-button {
        width: 44px;
        height: 44px;
    }

    .carousel-track {
        gap: 14px;
    }

    .services-track .service-slide {
        flex-basis: min(86vw, 326px);
        width: min(86vw, 326px);
    }

    .home-service-card {
        min-height: 292px;
        padding: 24px;
    }

    .home-about-media {
        padding-bottom: 42px;
    }

    .home-about-badge {
        width: 78%;
        padding: 16px 18px;
    }

    .home-about-content h2 {
        font-size: 2rem;
    }

    .home-about-features > div {
        grid-template-columns: 38px 1fr;
        padding: 8px 10px;
    }

    .news-viewport {
        padding-bottom: 22px;
    }

    .home-news-slide {
        border-radius: 20px;
    }

    .home-news-content {
        padding: 24px 22px 26px;
    }

    .home-news-content h3 {
        margin-top: 16px;
        font-size: 1.55rem;
    }

    .news-carousel-footer {
        align-items: center;
    }

    .home-cta-section {
        padding: 58px 0 72px;
    }

    .home-cta-card {
        border-radius: 22px;
        padding: 30px 24px;
    }

    .home-cta-card > .btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .home-page .home-hero h1 {
        font-size: 2.15rem;
    }

    .home-proof-item {
        padding-inline: 13px;
    }

    .home-section-actions {
        gap: 10px;
    }

    .carousel-controls {
        gap: 5px;
    }

    .home-news-content h3 {
        font-size: 1.4rem;
    }
}

/* Autoplay-only carousel controls */
.home-page .carousel-controls {
    display: none !important;
}

.home-page .home-section-actions {
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .home-page .home-section-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* =====================================================================
   Seamless loop + larger image-led service cards
   ===================================================================== */

.home-page .carousel-viewport {
    scroll-behavior: auto;
}

.home-page .carousel-slide[data-carousel-clone="true"] {
    pointer-events: none;
}

.home-page .services-track {
    gap: 28px;
}

.home-page .services-track .service-slide {
    flex: 0 0 calc((min(1180px, 100vw - 40px) - 28px) / 2);
    width: calc((min(1180px, 100vw - 40px) - 28px) / 2);
}

.home-page .home-service-card {
    min-height: 520px;
    padding: 0;
    border-radius: 26px;
    background: var(--home-surface);
}

.home-page .home-service-card::after {
    display: none;
}

.home-page .home-service-card:hover {
    transform: translateY(-5px);
}

.home-page .home-service-media {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    background: #dbe5ef;
    color: #fff;
}

.home-page .home-service-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    aspect-ratio: 16 / 8.7;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}

.home-page .home-service-card:hover .home-service-media img {
    transform: scale(1.045);
}

.home-page .home-service-media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 31, 58, .06) 25%, rgba(10, 31, 58, .68) 100%),
        linear-gradient(90deg, rgba(28, 66, 123, .16), transparent 58%);
    pointer-events: none;
}

.home-page .home-service-media-meta {
    position: absolute;
    inset-inline: 22px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 2;
}

.home-page .home-service-number {
    color: #fff;
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .34);
}

.home-page .home-service-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    color: var(--home-orange);
    font-size: 1.7rem;
    box-shadow: 0 12px 30px rgba(5, 24, 46, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-page .home-service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 32px 32px;
}

.home-page .home-service-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.42;
}

.home-page .home-service-card p {
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.85;
    line-clamp: 3;
    -webkit-line-clamp: 3;
}

.home-page .home-service-card .home-card-link {
    padding-top: 16px;
    border-top: 1px solid var(--home-border);
}

html[data-theme="dark"] .home-page .home-service-media {
    background: #102f4a;
}

html[data-theme="dark"] .home-page .home-service-icon {
    background: rgba(12, 38, 61, .92);
    color: #ff9a68;
}

@media (max-width: 1024px) {
    .home-page .services-track .service-slide {
        flex-basis: min(68vw, 560px);
        width: min(68vw, 560px);
    }
}

@media (max-width: 780px) {
    .home-page .services-track {
        gap: 18px;
    }

    .home-page .services-track .service-slide {
        flex-basis: min(88vw, 460px);
        width: min(88vw, 460px);
    }

    .home-page .home-service-card {
        min-height: 490px;
    }

    .home-page .home-service-media,
    .home-page .home-service-media img {
        min-height: 235px;
    }
}

@media (max-width: 620px) {
    .home-page .services-track .service-slide {
        flex-basis: min(88vw, 370px);
        width: min(88vw, 370px);
    }

    .home-page .home-service-card {
        min-height: 455px;
        border-radius: 22px;
    }

    .home-page .home-service-media,
    .home-page .home-service-media img {
        min-height: 210px;
    }

    .home-page .home-service-media-meta {
        inset-inline: 18px;
        bottom: 16px;
    }

    .home-page .home-service-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .home-page .home-service-body {
        padding: 24px 23px 26px;
    }

    .home-page .home-service-card h3 {
        font-size: 1.4rem;
    }
}

/* =====================================================================
   True infinite transform carousel + full-bleed presentation (v4)
   ===================================================================== */
.home-page {
    overflow-x: clip;
}

.home-page .home-carousel {
    overflow: visible;
}

.home-page .carousel-viewport {
    position: relative;
    left: 50%;
    width: min(calc(100vw - 24px), 1600px);
    max-width: none;
    margin: 0;
    padding: 10px 0 34px;
    overflow: hidden;
    transform: translateX(-50%);
    scroll-snap-type: none;
    scroll-behavior: auto;
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.home-page .js-carousel.is-dragging .carousel-viewport {
    cursor: grabbing;
}

.home-page .carousel-track {
    display: flex;
    direction: ltr;
    width: max-content;
    min-width: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.home-page .carousel-slide {
    direction: var(--page-direction, rtl);
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    flex-shrink: 0;
}

html[dir="ltr"] .home-page .carousel-slide {
    direction: ltr;
}

.home-page .carousel-slide[data-carousel-clone="true"] {
    pointer-events: none;
}

/* Full-width service rail: large cards, useful edge peeks, less dead space. */
.home-page .services-track {
    gap: clamp(18px, 1.8vw, 30px);
}

.home-page .services-track .service-slide {
    flex: 0 0 clamp(440px, 39vw, 620px);
    width: clamp(440px, 39vw, 620px);
    opacity: .92;
    transform: scale(.985);
    transition: opacity .45s ease, transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
}

.home-page .services-track .service-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.home-page .home-service-card {
    min-height: 570px;
    box-shadow: 0 22px 60px rgba(28, 66, 123, .12);
}

.home-page .home-service-media,
.home-page .home-service-media img {
    min-height: 310px;
}

.home-page .home-service-media img {
    aspect-ratio: 16 / 8.8;
}

.home-page .home-service-body {
    padding: 32px 34px 34px;
}

/* Full-width centred news feature. Previous and next articles remain visible. */
.home-page .news-track {
    width: max-content;
    gap: clamp(18px, 2vw, 34px);
}

.home-page .home-news-slide {
    flex: 0 0 min(1120px, 76vw);
    width: min(1120px, 76vw);
    opacity: .48;
    transform: scale(.94);
    filter: saturate(.78);
    transition: opacity .55s ease, transform .72s cubic-bezier(.22,.61,.36,1), filter .55s ease;
}

.home-page .home-news-slide.is-active {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
}

.home-page .news-carousel-footer {
    width: min(1180px, calc(100vw - 40px));
    margin-inline: auto;
}

.home-page .carousel-dots {
    justify-content: center;
    flex: 1;
}

.home-page .carousel-status {
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .home-page .services-track .service-slide {
        flex-basis: min(68vw, 590px);
        width: min(68vw, 590px);
    }

    .home-page .home-news-slide {
        flex-basis: min(900px, 84vw);
        width: min(900px, 84vw);
    }
}

@media (max-width: 780px) {
    .home-page .carousel-viewport {
        width: calc(100vw - 14px);
        padding-bottom: 26px;
    }

    .home-page .services-track {
        gap: 16px;
    }

    .home-page .services-track .service-slide {
        flex-basis: min(86vw, 520px);
        width: min(86vw, 520px);
        opacity: .96;
        transform: none;
    }

    .home-page .home-service-card {
        min-height: 510px;
    }

    .home-page .home-service-media,
    .home-page .home-service-media img {
        min-height: 255px;
    }

    .home-page .news-track {
        gap: 14px;
    }

    .home-page .home-news-slide {
        flex-basis: calc(100vw - 34px);
        width: calc(100vw - 34px);
        opacity: .66;
        transform: scale(.965);
    }

    .home-page .home-news-slide.is-active {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 620px) {
    .home-page .services-track .service-slide {
        flex-basis: calc(100vw - 42px);
        width: calc(100vw - 42px);
    }

    .home-page .home-service-card {
        min-height: 480px;
    }

    .home-page .home-service-media,
    .home-page .home-service-media img {
        min-height: 225px;
    }

    .home-page .home-service-body {
        padding: 25px 24px 28px;
    }

    .home-page .home-news-slide {
        flex-basis: calc(100vw - 26px);
        width: calc(100vw - 26px);
        border-radius: 22px;
    }

    .home-page .news-carousel-footer {
        width: calc(100vw - 28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .carousel-track,
    .home-page .carousel-slide {
        transition: none !important;
    }
}

/* =====================================================================
   Carousel visibility + RTL positioning hotfix (v5)
   The viewport itself must stay LTR so transform coordinates and offsets
   always start from the physical left edge. Slide content restores the
   page reading direction independently.
   ===================================================================== */
.home-page .carousel-viewport {
    direction: ltr !important;
}

.home-page .carousel-track {
    direction: ltr !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html[dir="rtl"] .home-page .carousel-slide {
    direction: rtl !important;
}

html[dir="ltr"] .home-page .carousel-slide {
    direction: ltr !important;
}

/* Keep a usable non-JavaScript fallback instead of an empty section. */
html.no-js .home-page .carousel-viewport {
    overflow-x: auto;
    overflow-y: visible;
}

html.no-js .home-page .carousel-track {
    transform: none !important;
}


/* =====================================================================
   Symmetric full-width carousel hotfix (v6)
   Keeps the active card centered so RTL/LTR never leaves one empty side.
   ===================================================================== */
.home-page .services-carousel .carousel-viewport,
.home-page .news-carousel .carousel-viewport {
    width: 100vw;
    max-width: 100vw;
}

.home-page .services-carousel .carousel-track,
.home-page .news-carousel .carousel-track {
    justify-content: flex-start;
}

.home-page .services-track .service-slide {
    flex-basis: clamp(460px, 39vw, 660px);
    width: clamp(460px, 39vw, 660px);
}

/* Active slide is centered; neighboring slides remain visible on both sides. */
.home-page .services-carousel .carousel-viewport,
.home-page .news-carousel .carousel-viewport {
    padding-inline: 0;
}

@media (max-width: 1100px) {
    .home-page .services-track .service-slide {
        flex-basis: min(72vw, 600px);
        width: min(72vw, 600px);
    }
}

@media (max-width: 780px) {
    .home-page .services-carousel .carousel-viewport,
    .home-page .news-carousel .carousel-viewport {
        width: 100vw;
        max-width: 100vw;
    }

    .home-page .services-track .service-slide {
        flex-basis: min(88vw, 520px);
        width: min(88vw, 520px);
    }
}

@media (max-width: 620px) {
    .home-page .services-track .service-slide {
        flex-basis: calc(100vw - 34px);
        width: calc(100vw - 34px);
    }
}
/* ================================================================
   Operating locations counter
   ================================================================ */

.home-proof-item .js-counter {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: #E96124;
    transform-origin: center;
    will-change: transform;
}

.home-proof-item .js-counter.is-counter-complete {
    animation:
        home-counter-pop .52s cubic-bezier(.2, .8, .2, 1),
        home-counter-breathe 2.8s ease-in-out .8s infinite;
}

@keyframes home-counter-pop {
    0% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.16);
    }

    70% {
        transform: scale(.97);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes home-counter-breathe {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.055);
    }
}

.home-proof-item .js-counter.is-counter-complete::after {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        linear-gradient(
            115deg,
            transparent 35%,
            rgba(233, 97, 36, .42) 50%,
            transparent 65%
        );
    transform: translateX(-160%);
    pointer-events: none;
    animation: home-counter-shine 3.2s ease-in-out 1.1s infinite;
}

@keyframes home-counter-shine {
    0%,
    68% {
        transform: translateX(-160%);
    }

    85%,
    100% {
        transform: translateX(160%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-proof-item .js-counter.is-counter-complete,
    .home-proof-item .js-counter.is-counter-complete::after {
        animation: none;
    }
}
/* English Home About title — prevent text clipping */
html[dir="ltr"] .home-about-content {
    min-width: 0;
    overflow: visible;
}

html[dir="ltr"] .home-about-content h2 {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.15;
}