/* ==========================================================================
   Homepage Styles
   ========================================================================== */

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-slate-900);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(80% 50%, rgb(0 0 0) 0%, transparent 50%), linear-gradient(to left, rgb(15 17 26 / 71%) 0%, rgb(15 17 26) 30%, rgb(15 17 26 / 83%) 60%, rgba(15, 17, 26, 0.3) 100%);

}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(47, 183, 106, 0.04) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-block: var(--space-32) var(--space-24);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.375rem 1rem;
    background: rgba(47, 183, 106, 0.1);
    border: 1px solid rgba(47, 183, 106, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-accent);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-8);
}

.hero-title {
    font-family: var(--font-arabic);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-slate-50);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.hero-title-en {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-slate-400);
    margin-bottom: var(--space-6);
    line-height: var(--leading-normal);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-slate-200);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-4);
    max-width: 650px;
}

.hero-subtitle-en {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-slate-400);
    margin-bottom: var(--space-10);
    max-width: 600px;
}

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

.hero-cta a {
    font-family: "Cairo", sans-serif;
}

.hero-cta .btn_cta2 {
    border: 1px solid #2fb76a;
}

/* Decorative corner elements */
.hero-deco {
    position: absolute;
    bottom: var(--space-12);
    left: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    z-index: 2;
}

html[dir="rtl"] .hero-deco {
    left: auto;
    right: var(--space-8);
}

.hero-deco .deco-line {
    width: 48px;
    height: 2px;
    background: var(--color-accent);
}

.hero-deco .deco-text {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── About Strip ── */
.about-strip {
    --about-bg: #FFFFFF;
    --about-text: #4B5A6A;
    --about-title: var(--color-primary);
    /* #0F4C35 */
    --about-accent: #B2DF5D;
    /* Light green/lime from mockup */
    --about-accent-hover: var(--color-accent);
    /* #2FB76A */

    position: relative;
    background-color: var(--about-bg);
    color: var(--about-text);
    padding-block: var(--space-24);
    overflow: hidden;
    border-bottom: 1px solid var(--color-slate-200);
}

/* Green Accent Arc Top-Left */
.about-strip .about-accent-arc {
    position: absolute;
    top: -120px;
    width: 320px;
    height: 320px;
    background-color: #212f6378;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

.about-strip .about-accent-arc-2 {
    height: 150px;
    width: 150px;
    background: #22306361;
    border-radius: 100%;
    transform: translate3d(-21.8px, -0.3px, 0px);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    position: absolute;
    display: block;
    right: -50px;
    bottom: -60px;
}

html[dir="rtl"] .about-strip .about-accent-arc {
    left: -120px;
}

html[dir="ltr"] .about-strip .about-accent-arc {
    right: -120px;
}

/* Flex Layout — RTL auto-reverses items, no grid-column needed */
.about-strip .about-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-8);
    position: relative;
    z-index: 2;
}

.about-strip .about-col-text {
    flex: 1;
    min-width: 0;
}

.about-strip .about-col-image {
    flex: 1.2;
    min-width: 0;
}

/* Image Column */
.about-strip .about-col-image {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-strip .about-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #FFFFFF;
    outline: 1px solid var(--color-slate-200);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    background: var(--color-slate-50);
}

.about-strip .about-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.about-strip .about-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.about-strip .about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.about-strip .about-vertical-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    border-left: 2px dashed var(--about-accent);
    transform: translateX(-50%);
    pointer-events: none;
}

.about-strip .about-leaves-svg {
    width: 80px;
    height: 100%;
    position: relative;
    z-index: 2;
    overflow: visible;
}

html[dir="ltr"] .about-strip .about-leaves-svg {
    transform: scaleX(-1);
}

/* Text Column */
.about-strip .about-col-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Label with horizontal line */
.about-strip .about-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.about-strip .about-label {
    font-family: var(--font-arabic);
    color: var(--color-primary-light);
    font-weight: 700;
    font-size: var(--text-base);
}

[lang="en-AU"] .about-strip .about-label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-strip .about-label-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--color-accent);
    min-width: 60px;
}

/* Heading Typography */
.about-strip h2 {
    color: var(--about-title) !important;
}

.about-strip .about-heading {
    font-family: var(--font-arabic);
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    text-align: right;
}

html[dir="ltr"] .about-strip .about-heading {
    text-align: left;
}

[lang="en-AU"] .about-strip .about-heading {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    line-height: var(--leading-normal);
}

/* Description text */
.about-strip .about-desc {
    font-family: var(--font-arabic);
    font-size: var(--text-base);
    color: var(--about-text);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-6);
}

[lang="en-AU"] .about-strip .about-desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

/* Button */
.about-strip .about-btn-wrap {
    margin-top: var(--space-6);
}

.about-strip .btn-about-outline {
    background: #FFFFFF;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    font-family: var(--font-arabic);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.about-strip .btn-about-outline:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 53, 0.25);
    border-color: var(--color-primary);
}

.section-services {
    background: var(--color-primary);
}

/* ── Services Slider Cards ── */
.services-swiper {
    padding-bottom: var(--space-12);
}

.service-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-md);
    background: var(--color-slate-800);
}

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

.service-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-thumbnail img {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.service-card:hover .service-overlay {
    background: rgba(26, 85, 78, 0.85);
    /* Dark teal matching the mockup */
}

.service-content {
    position: relative;
    z-index: 2;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.service-title {
    color: #ffffff;
    font-size: var(--text-2xl);
    font-family: var(--font-display, sans-serif);
    font-weight: 700;
    margin: 0;
    transition: color 0.4s ease;
}

.service-card:hover .service-title {
    color: var(--about-accent, #cfec4c);
    /* Bright lime green */
}

.service-excerpt {
    color: #ffffff;
    font-size: var(--text-sm);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin-top: 0;
}

.service-card:hover .service-excerpt {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: var(--space-4);
}

[lang="en-AU"] .service-content {
    text-align: left;
}

[lang="en-AU"] .service-excerpt {
    border-left: 1px dashed var(--about-accent, #cfec4c);
    padding-left: 1rem;
}

[lang="ar"] .service-content {
    text-align: right;
}

[lang="ar"] .service-excerpt {
    border-right: 1px dashed var(--about-accent, #cfec4c);
    padding-right: 1rem;
}

.service-link {
    position: absolute;
    bottom: 0;
    z-index: 3;
    width: 80px;
    height: 80px;
    background-color: var(--about-accent, #cfec4c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-900);
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    transition: all 0.4s ease;
}

[lang="en-AU"] .service-link {
    right: 0;
    border-top-left-radius: 100%;
    transform: translate(100%, 100%);
    padding-top: 20px;
    padding-left: 20px;
}

[lang="ar"] .service-link {
    left: 0;
    border-top-right-radius: 100%;
    transform: translate(-100%, 100%);
    padding-top: 20px;
    padding-right: 20px;
}

[lang="ar"] .service-link i {
    transform: scaleX(-1);
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translate(0, 0);
}


/* ── Why Vellora Grid ── */
#why-vellora {
    width: 100%;
    height: auto;
    min-height: 550px;
    background-image: url('../../images/bgwhy.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

/* ── HSE Slider Section ── */
.hse-slider-section {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hse-swiper {
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.hse-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
    text-align: start;
}

.hse-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 85, 78, 0.85) 0%, rgba(47, 183, 106, 0.6) 100%);
}

.hse-slider-container {
    position: relative;
    z-index: 2;
    width: 1200px;
    max-width: 100%;
    color: #fff;
}

.hse-swiper .slider-title {
    position: relative;
    max-width: 75%;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hse-swiper .slider-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 150px;
    height: 3px;
    background: #fff;
}

.hse-swiper .slider-desc {
    font-size: 1.3rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 75%;
}

.hse-pagination {
    right: 30px !important;
}

.hse-pagination .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    margin: 8px 0 !important;
}

.hse-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #2FB76A;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .slider-title {
        font-size: 2.2rem !important;
    }

    .slider-desc {
        font-size: 1.1rem !important;
    }
}

/* ── Clients Slider Section ── */
.clients-section {
    padding: 40px 0;
    background-color: #fff;
    overflow: hidden;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #cfec4c;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.clients-nav {
    display: flex;
    gap: 15px;
}

.swiper-button-prev-clients,
.swiper-button-next-clients {
    color: #92c021;
    cursor: pointer;
    transition: color var(--transition-base);
}

.swiper-button-prev-clients:hover,
.swiper-button-next-clients:hover {
    color: var(--color-primary);
}

.swiper-button-prev-clients i,
.swiper-button-next-clients i {
    font-size: 20px;
}

.clients-header h3 {
    color: #92c021;
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
}

.clients-swiper .swiper-wrapper {
    align-items: center;
}

.client-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.client-slide img {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity var(--transition-base), filter var(--transition-base);
}

.client-slide:hover img {
    opacity: 1;
    filter: grayscale(0);
}

/* Client placeholder when no logo */
.client-slide .client-name {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: #555;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.client-slide:hover .client-name {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-title-en {
        font-size: var(--text-xl);
    }

    .hero-content {
        padding-block: var(--space-24) var(--space-16);
    }

    .hero-deco {
        display: none;
    }

    .service-card {
        height: 300px;
    }

    .about-strip .about-grid {
        flex-direction: column;
    }

    .about-strip .about-deco-divider {
        display: none;
    }

    .about-strip .about-col-image,
    .about-strip .about-col-text {
        flex: unset;
        width: 100%;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .hse-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta .cta-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
}