/* Al Itqan site customisations (shared by all pages) */
/* ---------- language switch button ---------- */
.header-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: 20px;
}
html[dir="rtl"] .btn.left-icon i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(35, 35, 35, 0.25);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    color: #232323;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header-button .btn {
    white-space: nowrap;
}
@media (max-width: 575px) {
    /* phones: round phone-icon button */
    .contact-call-btn > span {
        padding: 10px 12px !important;
    }
    .contact-call-btn i {
        margin: 0 !important;
    }
}
.lang-toggle:hover {
    background-color: #fff;
    border-color: #232323;
}
.lang-toggle i {
    font-size: 16px;
}
.lang-toggle[lang="ar"] .lang-toggle-text {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
}

/* ---------- Arabic / right-to-left ---------- */
html.lang-loading body {
    opacity: 0;
}
html[lang="ar"] body,
html[lang="ar"] .alt-font,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .nav-link,
html[lang="ar"] .btn,
html[lang="ar"] p {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
/* negative/extra letter-spacing breaks joined Arabic letters */
html[lang="ar"] body *:not(.hero-title-en):not(.hero-title-en *) {
    letter-spacing: normal !important;
}
html[lang="ar"] .lang-toggle-text {
    font-family: var(--alt-font, sans-serif);
}
/* header (phones/tablets): logo on the right, menu button and switch pushed to the left */
@media (max-width: 991px) {
    html[dir="rtl"] .navbar .me-auto {
        margin-right: 0 !important;
        margin-left: auto !important;
    }
}
html[dir="rtl"] .navbar-nav {
    padding-right: 0;
}
/* hero title: right side, Arabic name first and largest */
html[dir="rtl"] .hero-video-section::after {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%);
}
html[dir="rtl"] .hero-title {
    left: auto;
    right: 6%;
    display: flex;
    flex-direction: column;
    text-align: right;
}
html[dir="rtl"] .hero-title-ar {
    order: -1;
    margin-bottom: 10px;
    font-size: clamp(34px, 4.6vw, 78px);
    font-weight: 800;
    line-height: 1.3;
    text-align: right;
}
html[dir="rtl"] .hero-title-en {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 40px);
    direction: ltr;
    text-align: right;
}
html[dir="rtl"] .hero-title-en span {
    display: inline;
    margin: 0;
    font-size: 1em;
    letter-spacing: 0;
}
/* about us */
html[dir="rtl"] .about-banner::before {
    background: linear-gradient(270deg, rgba(20, 20, 25, 0.85) 0%, rgba(20, 20, 25, 0.55) 55%, rgba(20, 20, 25, 0.15) 100%);
}
html[dir="rtl"] .about-heading,
html[dir="rtl"] .about-subheading {
    line-height: 1.35;
}
/* features tagline badge spacing */
html[dir="rtl"] #features .me-10px {
    margin-right: 0 !important;
    margin-left: 10px !important;
}
@media (min-width: 992px) {
    html[dir="rtl"] #about .ps-lg-6 {
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
        padding-right: 4.5rem !important;
    }
    html[dir="rtl"] footer .text-lg-start { text-align: right !important; }
    html[dir="rtl"] footer .text-lg-end { text-align: left !important; }
}
@media (max-width: 767px) {
    html[dir="rtl"] .hero-title { left: 20px; right: 20px; }
}
.lang-toggle-short {
    display: none;
}
@media (max-width: 575px) {
    .lang-toggle { height: 36px; padding: 0 12px; font-size: 14px; }
}
/* narrow phones: keep the header on one row */
@media (max-width: 420px) {
    .header-icon { gap: 8px; margin-inline-start: 8px; }
    .lang-toggle { gap: 5px; padding: 0 10px; }
    .lang-toggle-text { display: none; }
    .lang-toggle-short { display: inline; }
    .lang-toggle[lang="ar"] .lang-toggle-short {
        font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
        font-size: 17px;
        line-height: 1;
    }
    .contact-call-btn > span { padding: 9px 10px !important; }
    header .navbar .container-fluid > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
    header .navbar-brand img.mobile-logo { max-height: 30px; }
}
@media (max-width: 340px) {
    header .navbar-brand img.mobile-logo { max-height: 26px; }
    .header-icon { margin-inline-start: 0; gap: 6px; }
}

.hero-video-section {
    position: relative;
    overflow: hidden;
    background-color: #000;
    line-height: 0;
}
/* darken the left side so the title stays readable on bright frames */
.hero-video-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}
.hero-title {
    position: absolute;
    z-index: 2;
    left: 6%;
    top: 55%;
    transform: translateY(-50%);
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.hero-title-en {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(30px, 4.6vw, 78px);
    white-space: nowrap;
    font-weight: 800;
    letter-spacing: -0.02em;
    word-spacing: 0.1em;
    line-height: 1;
    opacity: 0;
    animation: hero-rise 1s ease-out 0.5s forwards;
}
.hero-title-en span {
    display: block;
    font-weight: 300;
    letter-spacing: 6px;
    font-size: 0.45em;
    margin-top: 10px;
}
.hero-title-ar {
    margin: 0;
    color: #fff;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    font-size: clamp(20px, 2.6vw, 42px);
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    animation: hero-rise 1s ease-out 1.1s forwards;
}
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-video-controls {
    position: absolute;
    z-index: 3;
    left: 25px;
    bottom: 25px;
    display: flex;
    gap: 12px;
}
.hero-video-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-video-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.08);
}
@media (max-width: 767px) {
    .hero-video-section .hero-video { height: 75vh; max-height: none; }
    .hero-title { left: 20px; right: 20px; top: 50%; }
    .hero-video-controls { left: 18px; bottom: 18px; }
    .hero-video-btn { width: 42px; height: 42px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-title-en, .hero-title-ar { animation: none; opacity: 1; }
}
.hero-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: cover;
}
/* keep the header readable over the hero video (same frosted style the theme uses once scrolled) */
header .navbar.header-reverse.glass-effect {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.85) !important;
}
/* about us section */
.about-section {
    background-color: #fff;
}
.about-section p {
    margin-bottom: 18px;
}
.about-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff007b 15%, #a419be 65%, #7b16da 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-heading {
    margin-bottom: 25px;
    color: #232323;
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}
.about-subheading {
    margin-bottom: 20px;
    color: #232323;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}
.about-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #f4f4f6;
    color: #232323;
    font-size: 15px;
    font-weight: 600;
}
.about-location i {
    color: #a419be;
}
.about-photo {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-photo-wide { aspect-ratio: 16 / 10; }
.about-photo-tall { aspect-ratio: 4 / 5; }
.about-block {
    margin-top: 110px;
}
.about-feature {
    display: flex;
    gap: 20px;
    margin-top: 28px;
}
.about-feature h4,
.about-card h4 {
    margin-bottom: 8px;
    color: #232323;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.about-feature p,
.about-card p {
    margin-bottom: 0;
}
.about-feature-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff007b 0%, #a419be 55%, #7b16da 100%);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-stat {
    margin: 2px 0 8px;
    color: #a419be;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}
.about-stat span {
    color: #828282;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}
.about-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 380px;
    padding: 60px;
    border-radius: 20px;
    background-size: cover;
    background-position: center 40%;
}
.about-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 20, 25, 0.85) 0%, rgba(20, 20, 25, 0.55) 55%, rgba(20, 20, 25, 0.15) 100%);
}
.about-banner-content {
    position: relative;
    max-width: 560px;
}
.about-banner-content .about-subheading,
.about-banner-content p {
    color: #fff;
}
.about-cards {
    position: relative;
    margin-top: -70px;
    padding: 0 30px;
}
.about-card {
    height: 100%;
    padding: 35px 30px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.about-card .about-feature-icon {
    margin-bottom: 20px;
}
@media (max-width: 991px) {
    .about-block { margin-top: 70px; }
}
@media (max-width: 767px) {
    .about-banner { min-height: 300px; padding: 35px 25px; }
    .about-cards { margin-top: 25px; padding: 0; }
    .about-cards .col + .col { margin-top: 20px; }
}
/* plant video section: three production steps */
.plant-video-section {
    background-color: #fff;
}
.plant-video-section p {
    margin-bottom: 0;
}
.process-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 30px;
    max-width: 1080px;
    margin: 0 auto;
}
.process-step {
    margin: 0;
}
.process-video-frame {
    overflow: hidden;
    border-radius: 22px;
    background-color: #111;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}
.process-video {
    display: block;
    width: 100%;
    aspect-ratio: 478 / 850;
    object-fit: cover;
}
.process-step figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    color: #232323;
    font-size: 20px;
    font-weight: 700;
}
.process-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff007b 0%, #a419be 55%, #7b16da 100%);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* phones/tablets: swipe sideways through the three steps */
@media (max-width: 767px) {
    .process-strip {
        display: flex;
        gap: 16px;
        margin: 0 -15px;
        padding: 0 15px 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .process-strip::-webkit-scrollbar { display: none; }
    .process-step {
        flex: 0 0 72%;
        scroll-snap-align: center;
    }
    .process-step figcaption { font-size: 17px; margin-top: 14px; }
}
/* contact us section */
.contact-section {
    background: linear-gradient(135deg, #1b1b22 0%, #2a2733 100%);
}
.contact-card {
    height: 100%;
    padding: 40px 30px;
    border-radius: 18px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
.contact-card .about-feature-icon {
    margin: 0 auto 20px;
}
.contact-card h4 {
    margin-bottom: 10px;
    color: #232323;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.contact-value {
    display: block;
    margin-bottom: 22px;
    color: #232323;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}
p.contact-value {
    margin-bottom: 0;
}
a.contact-value:hover {
    color: #a419be;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    background-color: #232323;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact-btn:hover {
    color: #fff;
    background-color: #7b16da;
    transform: translateY(-2px);
}
.contact-icon-whatsapp {
    background: #25d366;
}
.contact-btn-whatsapp {
    background-color: #25d366;
}
.contact-btn-whatsapp:hover {
    background-color: #1ebe5d;
}
/* product rows (one brand per row) */
.product-row {
    padding: 0 55px;
}
.product-card {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover img {
    transform: scale(1.06);
}
.product-card {
    cursor: zoom-in;
}
/* product image lightbox */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.product-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.product-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
.product-lightbox.open img {
    transform: scale(1);
}
.product-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background-color: #fff;
    color: #232323;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.product-lightbox-close:hover {
    transform: rotate(90deg);
}
@media (max-width: 575px) {
    .product-lightbox { padding: 15px; }
    .product-lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 20px; }
}
.product-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    border-radius: 50%;
    background-color: #232323;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.product-nav:hover {
    background-color: #7b16da;
}
.product-nav-prev { left: 0; }
.product-nav-next { right: 0; }
@media (max-width: 575px) {
    .product-row { padding: 0 45px; }
    .product-nav { width: 36px; height: 36px; margin-top: -18px; font-size: 17px; }
}
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
    color: #fff;
    background-color: #1ebe5d;
    transform: scale(1.08);
}
@media (max-width: 767px) {
    .whatsapp-float { right: 18px; bottom: 18px; width: 54px; height: 54px; font-size: 30px; }
}
/* pages opened at an anchor (e.g. index.html#contact) land below the fixed header */
section[id] {
    scroll-margin-top: 80px;
}
/* inner page title banner */
.page-title-section {
    position: relative;
    padding: 190px 0 110px;
    background-size: cover;
    background-position: center 45%;
    text-align: center;
}
.page-title-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.55) 0%, rgba(20, 20, 25, 0.8) 100%);
}
.page-title-section .container {
    position: relative;
}
.page-title-section h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(38px, 5vw, 70px);
    font-weight: 800;
    line-height: 1.15;
}
.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}
.page-breadcrumb a {
    color: #fff;
}
.page-breadcrumb a:hover {
    color: #ff7ab8;
}
.page-breadcrumb li + li::before {
    content: "/";
    margin-inline-end: 10px;
    color: rgba(255, 255, 255, 0.5);
}
header .navbar-nav .nav-link.is-current {
    font-weight: 700;
    color: #a419be !important;
}
@media (max-width: 767px) {
    .page-title-section { padding: 140px 0 70px; }
}
/* ---------- products: captions, preview button, catalogue page ---------- */
.product-item {
    margin: 0;
}
.product-item figcaption {
    padding: 16px 6px 0;
    text-align: center;
    line-height: 1.35;
}
.product-brand {
    display: block;
    margin-bottom: 4px;
    color: #a419be;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}
.product-name {
    display: block;
    color: #232323;
    font-size: 17px;
    font-weight: 700;
}
.product-pack {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    border-radius: 20px;
    background-color: #ececf1;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    background-color: #232323;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.view-all-btn:hover {
    color: #fff;
    background-color: #7b16da;
    transform: translateY(-2px);
}
html[dir="rtl"] .view-all-btn i {
    transform: scaleX(-1);
}
.page-title-dark {
    background: linear-gradient(135deg, #1b1b22 0%, #2a2733 100%);
}
.page-title-dark::before {
    display: none;
}
.product-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}
.product-filter {
    padding: 10px 26px;
    border: 1px solid #d5d5dc;
    border-radius: 50px;
    background-color: #fff;
    color: #232323;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.product-filter:hover {
    border-color: #232323;
}
.product-filter.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #ff007b 0%, #a419be 55%, #7b16da 100%);
    color: #fff;
}
.product-brand-block + .product-brand-block {
    margin-top: 70px;
}
.product-brand-block[hidden] {
    display: none;
}
.product-brand-title {
    margin-bottom: 30px;
    color: #232323;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}
@media (max-width: 1199px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .product-name { font-size: 15px; }
    .product-brand-title { font-size: 28px; }
}
.products-cta {
    padding-top: 0;
    background-color: #f7f7fa;
}
.products-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 45px 50px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1b1b22 0%, #2a2733 100%);
}
.products-cta-inner h3 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}
.products-cta-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}
.products-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.products-cta-buttons .contact-btn:not(.contact-btn-whatsapp) {
    background-color: #fff;
    color: #232323;
}
.products-cta-buttons .contact-btn:not(.contact-btn-whatsapp):hover {
    background-color: #7b16da;
    color: #fff;
}
@media (max-width: 767px) {
    .products-cta-inner { padding: 35px 25px; text-align: center; justify-content: center; }
    .products-cta-buttons { justify-content: center; }
}
