@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #eef4fa;
    --text: #334155;
    --muted: #64748b;
    --heading: #0f2c4f;
    --line: #d6e2ee;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow-sm: 0 8px 22px rgba(16, 46, 80, 0.08);
    --shadow-md: 0 18px 40px rgba(16, 46, 80, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Cairo", sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 300px at 8% 0%, rgba(190, 210, 71, 0.18), transparent),
        radial-gradient(800px 300px at 100% 100%, rgba(40, 68, 101, 0.08), transparent),
        var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background: #fff;
    transition: opacity 360ms ease, visibility 360ms ease;
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; }
.site-loader__inner img {
    width: clamp(170px, 24vw, 290px);
    animation: pulse 1.7s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 1; }
}

.site-shell { width: 100%; padding-bottom: 2.8rem; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem clamp(1rem, 3.5vw, 3rem);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(15, 47, 87, 0.05);
}
.brand img { width: clamp(152px, 16vw, 220px); }

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.nav-link,
.lang-switch {
    padding: 0.45rem 0.75rem;
    border-radius: 9px;
    font-size: 0.94rem;
    font-weight: 700;
    color: #1f3858;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.nav-link:hover,
.lang-switch:hover {
    background: rgba(190, 210, 71, 0.24);
    color: #0f2c4f;
    transform: translateY(-1px);
}
.nav-actions { display: flex; gap: 0.55rem; }

.hero-slider,
.capability-strip,
.section-grid,
.content-band,
.split-panel,
.contact-shell,
.archive-grid,
.product-gallery,
.partners-strip,
.news-section,
.testimonials,
.photo-showcase,
.pdf-review,
.inner-hero,
.generic-page {
    margin: 1.25rem clamp(1rem, 3.5vw, 3rem) 0;
}

.hero-slider {
    position: relative;
    min-height: clamp(520px, 72vh, 720px);
    border-radius: 0;
    overflow: hidden;
    margin-inline: 0;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 7vw, 6rem);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 700ms ease, transform 1800ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.7) 45%, rgba(255,255,255,0.18));
}

.rtl .hero-slider::after {
    background: linear-gradient(270deg, rgba(255,255,255,0.92), rgba(255,255,255,0.7) 45%, rgba(255,255,255,0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    inset-inline-start: clamp(1rem, 7vw, 6rem);
    bottom: 1.4rem;
    display: flex;
    gap: 0.5rem;
}

.hero-controls button {
    width: 38px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 44, 79, 0.28);
    cursor: pointer;
}

.hero-controls button.is-active {
    background: var(--brand-accent);
}

.capability-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 0;
    background: var(--line);
}

.capability-strip article {
    background: #fff;
    padding: 1rem clamp(1rem, 3vw, 2rem);
}

.capability-strip strong {
    display: block;
    color: var(--heading);
    font-size: 1.2rem;
}

.capability-strip span {
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
    background: rgba(190, 210, 71, 0.25);
    color: #37510c;
}

h1,h2,h3 {
    color: var(--heading);
    line-height: 1.25;
    margin: 0.6rem 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.28rem, 2.1vw, 2rem); font-weight: 800; }
h3 { font-size: clamp(1.03rem, 1.35vw, 1.26rem); font-weight: 700; }
p { margin: 0 0 0.9rem; line-height: 1.85; color: var(--text); }

.hero-cta,
.card-grid,
.project-grid,
.archive-grid,
.section-grid,
.contact-shell,
.form-grid,
.footer-meta {
    display: grid;
    gap: 1rem;
}

.hero-cta { grid-auto-flow: column; justify-content: start; margin-top: 1.2rem; }

.glass-card,
.spotlight,
.chairman,
.content-band,
.split-panel,
.archive-card,
.contact-info,
.contact-form,
.generic-page,
.gallery-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.glass-card,
.spotlight,
.chairman,
.content-band,
.split-panel,
.contact-info,
.contact-form,
.generic-page {
    padding: 1.2rem;
}

.section-head.centered { text-align: center; }
.section-grid { grid-template-columns: 1.15fr 0.85fr; }

.chairman { position: relative; overflow: hidden; }
.quote-mark {
    position: absolute;
    inset-inline-end: 1rem;
    top: 0.15rem;
    font-size: 5.4rem;
    color: rgba(15, 47, 87, 0.11);
}

.content-band.dark {
    background: linear-gradient(180deg, #ffffff, #eef4fb);
}

.card-grid,
.project-grid,
.archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-card .icon-wrap {
    width: 80px;
    height: 80px;
    padding: 0.7rem;
    border-radius: 18px;
    background: #eef6da;
}

.list-stack { display: grid; gap: 0.9rem; }
.list-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0.85rem;
    align-items: center;
    background: #f9fbfe;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.85rem;
}
.list-card img,
.archive-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 12px;
}

.project-card {
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
}
.overlay {
    height: 100%;
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background: linear-gradient(180deg, rgba(28, 38, 56, 0.12), rgba(28, 38, 56, 0.66));
}
.overlay h3,
.overlay p,
.overlay span { color: #fff; }

.inner-hero,
.generic-page {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
}
.inner-hero { text-align: center; }

.archive-card { overflow: hidden; padding: 0; }
.archive-card__body { padding: 1rem; }

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.gallery-card { overflow: hidden; }
.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.gallery-card__body { padding: 0.92rem; }
.gallery-card h2 { margin-top: 0; font-size: 1.07rem; }

.photo-showcase {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.partners-grid,
.news-grid,
.testimonials-grid {
    display: grid;
    gap: 1rem;
}

.partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partners-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.partners-grid article img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 0.45rem;
}

.partners-grid article h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.partners-grid article p {
    font-size: 0.87rem;
    color: var(--muted);
}

.news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.news-card__body {
    padding: 0.9rem;
}

.testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonials-grid blockquote {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.testimonials-grid cite {
    display: block;
    margin-top: 0.55rem;
    color: var(--muted);
    font-style: normal;
    font-weight: 700;
}
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 0.75rem;
}
.mosaic-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.5rem 0.6rem;
    font-size: 0.83rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(16, 46, 80, 0.72));
}
.mosaic-item:nth-child(1),
.mosaic-item:nth-child(6) { grid-column: span 2; grid-row: span 2; }

.pdf-review {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}
.pdf-frame-wrap {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.pdf-frame-wrap iframe {
    width: 100%;
    min-height: 650px;
    height: 78vh;
    border: 0;
}

.contact-shell { grid-template-columns: 0.95fr 1.05fr; }
.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.38rem;
}

.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid label { display: grid; gap: 0.35rem; }
.form-grid .full { grid-column: 1 / -1; }

input, textarea {
    width: 100%;
    border: 1px solid #cddaea;
    border-radius: 12px;
    padding: 0.8rem 0.92rem;
    font-family: "Cairo", sans-serif;
    font-size: 0.95rem;
    color: #1f334c;
    background: #fff;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #98b6d9;
    box-shadow: 0 0 0 3px rgba(152, 182, 217, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 0;
    border-radius: 999px;
    padding: 0.78rem 1.25rem;
    font-family: "Cairo", sans-serif;
    font-size: 0.93rem;
    font-weight: 800;
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: #1c2b05;
    background: linear-gradient(135deg, var(--brand-accent), #d9e887);
    box-shadow: 0 11px 24px rgba(190, 210, 71, 0.35);
}
.btn-secondary {
    color: #1f3858;
    background: #e8f1fb;
}

.flash-success {
    margin-bottom: 0.85rem;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    color: #204417;
    background: #e2f7c6;
}

.site-footer {
    margin: 1.25rem clamp(1rem, 3.5vw, 3rem) 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.site-footer img { width: 124px; margin-bottom: 0.58rem; }
.site-footer p { margin-bottom: 0.45rem; }
.footer-meta {
    grid-auto-flow: column;
    align-items: center;
}

.rich-text p:last-child { margin-bottom: 0; }

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 560ms ease, transform 560ms ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (max-width: 1180px) {
    .hero-slider,
    .capability-strip,
    .section-grid,
    .card-grid,
    .project-grid,
    .archive-grid,
    .product-gallery,
    .partners-grid,
    .news-grid,
    .testimonials-grid,
    .contact-shell {
        grid-template-columns: 1fr;
    }
    .hero-slider { min-height: 520px; }
    .mosaic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px;
    }
    .mosaic-item:nth-child(1),
    .mosaic-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 760px) {
    .topbar {
        position: static;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .nav { justify-content: flex-start; gap: 0.24rem; }
    .nav-actions { justify-content: flex-start; }
    .hero-cta,
    .footer-meta { grid-auto-flow: row; }
    .form-grid { grid-template-columns: 1fr; }
    .list-card { grid-template-columns: 1fr; }
    .mosaic-grid { grid-template-columns: 1fr; }
    .pdf-frame-wrap iframe { min-height: 480px; }
}
