/* Small additions on top of the compiled stylesheet (it cannot be rebuilt here). */

:root {
    --swiper-theme-color: var(--color-brand-600, #0d61a9);
    --swiper-pagination-bullet-inactive-color: #d0d4d7;
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-bullet-horizontal-gap: 5px;
}

/* Reference logos: continuous, touch-draggable strip */
.web-logo-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.web-logo-swiper .swiper-slide {
    width: auto;
    height: 3.5rem;
}

/* Testimonials: equal-height cards and room for the pagination dots */
.web-testimonial-swiper {
    --swiper-pagination-bottom: 0px;
    padding-bottom: 3rem;
}

.web-testimonial-swiper .swiper-wrapper {
    height: auto;
}

.web-testimonial-swiper .swiper-slide {
    height: auto;
}

/* Project gallery -------------------------------------------------------------
   Borderless tiles: the artwork floats on a soft tile and the caption sits below it,
   so the grid reads as a gallery instead of a wall of boxed cards. */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: 2.5rem 1.75rem;
}

@media (max-width: 640px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1rem;
    }
}

.project-tile {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-tile__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #f1f3f5;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.project-tile:hover .project-tile__media {
    background: var(--color-brand-50, #f3f7fb);
    box-shadow: 0 26px 44px -28px rgba(13, 97, 169, 0.55);
}

.project-tile__img {
    position: absolute;
    inset: 13%;
    width: 74%;
    height: 74%;
    object-fit: contain;
    border-radius: 0.75rem;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-tile:hover .project-tile__img {
    transform: scale(1.06);
}

.project-tile__initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-brand-300, #9ec0dd);
}

/* Round arrow that slides in on hover (top-right, mirrored in RTL) */
.project-tile__go {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: var(--color-brand-600, #0d61a9);
    color: #fff;
    opacity: 0;
    transform: translateY(6px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-tile:hover .project-tile__go,
.project-tile:focus-visible .project-tile__go {
    opacity: 1;
    transform: none;
}

/* Touch screens have no hover: keep the arrow visible there. */
@media (hover: none) {
    .project-tile__go {
        opacity: 1;
        transform: none;
        width: 2rem;
        height: 2rem;
        top: 0.75rem;
        inset-inline-end: 0.75rem;
    }
}

.project-tile__caption {
    margin-top: 1rem;
    padding-inline: 0.25rem;
}

.project-tile__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    transition: color 0.2s ease;
}

.project-tile:hover .project-tile__title {
    color: var(--color-brand-600, #0d61a9);
}

.project-tile__text {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #7e8791;
}
/* Detail page artwork panel */
.project-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
    max-height: 28rem;
    padding: 3rem;
    border-radius: 1.5rem;
    background: #f1f3f5;
}

.project-hero img {
    max-width: 100%;
    max-height: 22rem;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(20, 30, 40, 0.18));
}

@media (prefers-reduced-motion: reduce) {
    .project-tile__media,
    .project-tile__img,
    .project-tile__go {
        transition: none;
    }
}
/* Service page: numbered steps and FAQ list ----------------------------------- */
.step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2.5rem 2rem;
    padding: 0;
    list-style: none;
}

.step-list__item {
    padding-top: 1.25rem;
    border-top: 2px solid #d9dde1;
    transition: border-color 0.25s ease;
}

.step-list__item:hover {
    border-top-color: var(--color-brand-600, #0d61a9);
}

.step-list__number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-brand-300, #9ec0dd);
}

.step-list__title {
    margin-top: 1rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
}

.step-list__text {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #5e666e;
}

[dir='rtl'] .step-list__number {
    letter-spacing: normal;
}

.faq-list__item {
    border-bottom: 1px solid #dfe2e5;
}

.faq-list__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #222;
    transition: color 0.2s ease;
}

.faq-list__question:hover {
    color: var(--color-brand-600, #0d61a9);
}

.faq-list__answer {
    padding-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #5e666e;
}
/* Rich text (CKEditor) tables inside prose */
.prose-content table{width:100%;border-collapse:collapse}
.prose-content th,.prose-content td{border:1px solid var(--color-neutral-200);padding:.5rem .75rem;text-align:start}
.prose-content p{margin:0}

/* Language switcher (EN / AR / FR) */
.lang-switch{display:inline-flex;align-items:center;gap:.25rem;border:1px solid var(--color-neutral-300,#d4d4d4);border-radius:.375rem;padding:.25rem;font-size:.875rem;font-weight:500;line-height:1}
.lang-switch__item{border-radius:.25rem;padding:.35rem .65rem;color:var(--color-neutral-700,#404040);transition:background-color .15s,color .15s}
a.lang-switch__item:hover{background:var(--color-neutral-100,#f5f5f5);color:var(--color-brand-600,#0d61a9)}
.lang-switch__item.is-active{background:var(--color-brand-600,#0d61a9);color:#fff}

/* Cookie consent banner */
.cookie-banner{position:fixed;z-index:60;inset-inline:1rem;bottom:1rem;max-width:42rem;margin-inline:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;background:#fff;color:#171717;border:1px solid #e5e5e5;border-radius:.75rem;box-shadow:0 12px 40px rgba(0,0,0,.18)}
.cookie-banner[hidden]{display:none}
.cookie-banner__body{flex:1 1 18rem;min-width:0}
.cookie-banner__title{font-size:.95rem;font-weight:600;margin:0 0 .25rem}
.cookie-banner__text{font-size:.85rem;line-height:1.5;margin:0;color:#525252}
.cookie-banner__link{color:#0d61a9;text-decoration:underline;text-underline-offset:2px}
.cookie-banner__actions{display:flex;flex-wrap:wrap;gap:.5rem}
.cookie-banner__btn{cursor:pointer;border-radius:.5rem;padding:.55rem 1rem;font-size:.85rem;font-weight:600;line-height:1.2;border:1px solid transparent;transition:background-color .15s,color .15s,border-color .15s}
.cookie-banner__btn--primary{background:#0d61a9;color:#fff}
.cookie-banner__btn--primary:hover{background:#0b5290}
.cookie-banner__btn--ghost{background:#fff;color:#404040;border-color:#d4d4d4}
.cookie-banner__btn--ghost:hover{background:#f5f5f5}
.cookie-banner__btn:focus-visible{outline:2px solid #0d61a9;outline-offset:2px}
.footer-cookie-link{background:none;border:0;padding:0;cursor:pointer;color:#a3a3a3;text-decoration:underline;text-underline-offset:2px}
.footer-cookie-link:hover{color:#fff}
@media (max-width:480px){.cookie-banner__actions{width:100%}.cookie-banner__btn{flex:1 1 0}}

/* WhatsApp floating button: sits on the reading-end side (right in LTR, left in RTL) */
.whatsapp-fab{position:fixed;z-index:55;inset-inline-end:1.25rem;bottom:1.25rem;display:inline-flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;border-radius:9999px;background:#25d366;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:transform .15s,background-color .15s,bottom .2s}
.whatsapp-fab:hover{background:#1ebe5b;transform:scale(1.06)}
.whatsapp-fab:focus-visible{outline:3px solid #0d61a9;outline-offset:3px}
.whatsapp-fab svg{width:1.9rem;height:1.9rem}
@media (max-width:860px){html.cookie-open .whatsapp-fab{bottom:11rem}}
