/* ======================================================
   البنيان القوي — Style Sheet
   ====================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --gold: #c8923a;
    --gold-light: #e8b865;
    --gold-dark: #9a6b22;
    --navy: #0d1b2a;
    --navy-light: #152336;
    --navy-mid: #1e3a5f;
    --white: #ffffff;
    --off-white: #f7f4ef;
    --text-dark: #1a1a2e;
    --text-mid: #4a5568;
    --text-light: #718096;
    --green-wa: #25d366;
    --green-wa-dark: #1da851;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, .14);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .22);
    --transition: .35s cubic-bezier(.4, 0, .2, 1);
    --font: 'Cairo', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 3rem);
}

/* ======================================================
   SECTION SHARED
   ====================================================== */
.section {
    padding-block: clamp(60px, 8vw, 110px);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .35rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: .75rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.8;
}

/* ======================================================
   REVEAL ANIMATIONS
   ====================================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 2rem;
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(200, 146, 58, .4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 146, 58, .55);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--green-wa), #28e67a);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, .5);
}

.btn-lg {
    padding: 1.1rem 2.6rem;
    font-size: 1.15rem;
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 27, 42, .96);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
    padding: .6rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.logo-main {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1.1;
}

.logo-sub {
    display: block;
    font-size: .7rem;
    color: rgba(255, 255, 255, .6);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-links a {
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-light);
    background: rgba(255, 255, 255, .06);
}

.nav-links a.active-nav {
    color: var(--gold-light);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
    color: var(--navy) !important;
    padding: .5rem 1.3rem !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 146, 58, .45);
}

/* Hamburger */
.nav-toggle-check {
    display: none;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .5rem;
    z-index: 200;
}

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 99px;
    transition: var(--transition);
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1.14);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(13, 27, 42, .9) 0%,
            rgba(13, 27, 42, .72) 50%,
            rgba(30, 58, 95, .6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 6rem;
    max-width: 780px;
}

.hero-badge {
    display: inline-block;
    background: rgba(200, 146, 58, .2);
    border: 1px solid rgba(200, 146, 58, .4);
    color: var(--gold-light);
    font-size: .85rem;
    font-weight: 700;
    padding: .4rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 1.4rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, .82);
    line-height: 2;
    margin-bottom: 2.4rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    padding: 1.2rem 2rem;
    width: fit-content;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.stat-plus {
    color: var(--gold-light);
    font-weight: 900;
}

.stat-label {
    display: block;
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
    margin-top: .25rem;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, .15);
}

/* Scroll down arrow */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, .6);
    animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ======================================================
   ABOUT
   ====================================================== */
.about {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-para {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 2;
    margin-bottom: 1.2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--gold);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateX(-6px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 1.7rem;
    flex-shrink: 0;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .3rem;
}

.value-card p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ======================================================
   SERVICES
   ====================================================== */
.services {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.services-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(200, 146, 58, .08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(30, 58, 95, .6) 0%, transparent 50%);
    pointer-events: none;
}

.services .section-title {
    color: var(--white);
}

.services .section-desc {
    color: rgba(255, 255, 255, .65);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 146, 58, .12), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(200, 146, 58, .35);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(200, 146, 58, .15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.7rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: rgba(200, 146, 58, .28);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .65rem;
}

.service-card p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.8;
}

.service-arrow {
    margin-top: 1.2rem;
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
    transition: var(--transition);
}

.service-card:hover .service-arrow {
    transform: translateX(-5px);
}

/* ======================================================
   GALLERY
   ====================================================== */
.gallery {
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 240px 240px;
    gap: .75rem;
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
    grid-column: 6 / 9;
}

.gallery-item:nth-child(3) {
    grid-column: 9 / 13;
}

.gallery-item:nth-child(4) {
    grid-column: 6 / 9;
}

.gallery-item:nth-child(5) {
    grid-column: 9 / 13;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, .8) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    background: rgba(200, 146, 58, .25);
    padding: .3rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(200, 146, 58, .4);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(90vw, 900px);
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--gold);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: var(--gold);
}

.lightbox-nav.prev {
    right: 1.5rem;
}

.lightbox-nav.next {
    left: 1.5rem;
}

/* ======================================================
   CONTACT
   ====================================================== */
.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.contact-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .6rem;
}

.contact-link {
    font-size: .95rem;
    color: var(--text-mid);
    transition: color var(--transition);
    word-break: break-word;
}

.contact-card:hover .contact-link {
    color: var(--gold-dark);
}

/* WhatsApp CTA */
.whatsapp-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.whatsapp-pulse {
    position: absolute;
    width: 280px;
    height: 64px;
    border-radius: 999px;
    background: rgba(37, 211, 102, .25);
    animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(.9);
        opacity: .7;
    }

    70% {
        transform: scale(1.25);
        opacity: 0;
    }

    100% {
        transform: scale(.9);
        opacity: 0;
    }
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
    padding-block: 2.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: .9rem;
    color: rgba(255, 255, 255, .6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-copy {
    font-size: .85rem;
    color: rgba(255, 255, 255, .45);
}

/* ======================================================
   FLOATING WHATSAPP
   ====================================================== */
.float-whatsapp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
    width: 62px;
    height: 62px;
    background: var(--green-wa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
    transition: var(--transition);
    animation: wa-pulse 3s ease-in-out infinite;
}

@keyframes wa-pulse {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
    }

    50% {
        box-shadow: 0 6px 36px rgba(37, 211, 102, .75);
    }
}

.float-whatsapp:hover {
    transform: scale(1.12) translateY(-4px);
    background: var(--green-wa-dark);
}

.float-tooltip {
    position: absolute;
    left: calc(100% + .75rem);
    background: var(--navy);
    color: var(--white);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.float-whatsapp:hover .float-tooltip {
    opacity: 1;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-values {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .value-card {
        flex: 1 1 250px;
    }
}

@media (max-width: 768px) {

    /* Navbar mobile */
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: 75vw;
        max-width: 320px;
        background: var(--navy);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform .45s cubic-bezier(.4, 0, .2, 1);
        gap: .25rem;
        box-shadow: -8px 0 40px rgba(0, 0, 0, .4);
    }

    .nav-links a {
        padding: .75rem 1rem;
        font-size: 1.05rem;
        width: 100%;
    }

    .nav-toggle-check:checked~.nav-links {
        transform: translateX(0);
    }

    .nav-toggle-check:checked~.nav-hamburger {
        z-index: 201;
    }

    .nav-toggle-check:checked~.nav-hamburger span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle-check:checked~.nav-hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-check:checked~.nav-hamburger span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Hero */
    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        height: 200px;
    }

    .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        height: 240px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Float wa */
    .float-whatsapp {
        bottom: 1.2rem;
        left: 1.2rem;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(n) {
        grid-column: auto;
        height: 200px;
    }

    .gallery-item:nth-child(1) {
        grid-column: auto;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        padding: 1rem 1.2rem;
        gap: 1rem;
    }
}