:root {
    --green: #08634f;
    --green-dark: #064b3d;
    --green-deep: #033b31;
    --green-light: #eaf5f1;
    --text: #15221e;
    --muted: #687873;
    --border: #dfe7e4;
    --background: #ffffff;
    --soft: #f5f8f7;
    --container: 1240px;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    color: var(--text);
    background: var(--background);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 92px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(220, 230, 226, 0.8);
    backdrop-filter: blur(16px);
    z-index: 1000;
    transition: height .25s ease, box-shadow .25s ease;
}

    .site-header.scrolled {
        height: 76px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, .06);
    }

.header-inner {
    display: flex;
    align-items: center;
    gap: 36px;
}

.site-brand {
    margin-left: 20px;
}

    .site-brand img {
        display: block;
        width: 145px;
        height: auto;
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

    .main-nav a {
        position: relative;
        font-size: 14px;
        font-weight: 500;
    }

        .main-nav a::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: var(--green);
            transition: width .2s ease;
        }

        .main-nav a:hover::after {
            width: 100%;
        }

.portal-button {
    min-height: 46px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green);
    color: white;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.mobile-menu-button {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 780px;
    height: 100vh;
    overflow: hidden;
    background: var(--green-deep);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    /* Never change image scale */
    transform: none;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
}

    .hero-slide.active {
        opacity: 1;
    }

 
    .hero-slide.active {
        opacity: 1;
    }

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.07);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(2, 35, 29, .45), rgba(3, 70, 56, .88) );
}

.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 92px;
}

.hero-copy {
    max-width: 650px;
    color: white;
}
.hero-copy-slide {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

    .hero-copy-slide.active {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

.hero-label,
.section-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--green);
    font-size: 18px;
    font-weight: 600;
}

.hero-label {
    color: #bde7d8;
}

.hero-copy h1 {
    margin: 0 0 24px;
    font-size: clamp(55px, 6vw, 88px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.hero-copy > p {
    max-width: 620px;
    margin: 0;
    font-size: 19px;
    line-height: 2;
    color: rgba(255,255,255,.88);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 36px;
}

.button {
    min-height: 54px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 9px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

    .button:hover {
        transform: translateY(-2px);
    }

/* Tahaqqaq App navigation link */
.app-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    color: #08634f !important;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(8, 99, 79, .22);
    border-radius: 9px;
    background: rgba(8, 99, 79, .055);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .app-nav-link::before {
        content: "↓";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #08634f;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
    }

    .app-nav-link:hover {
        color: #064b3d !important;
        background: #eaf5f1;
        border-color: rgba(8, 99, 79, .38);
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(3, 59, 49, .08);
    }

        .app-nav-link:hover::before {
            background: #064b3d;
        }

    .app-nav-link:active {
        transform: translateY(0);
    }
.app-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 9px;
    background: #08634f;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: .2s ease;
}

    .app-nav-button:hover {
        background: #064b3d;
        transform: translateY(-1px);
    }
.button-primary {
    background: white;
    color: var(--green);
}

.button-outline {
    color: white;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.06);
}

.hero-tagline {
    margin-top: 34px;
    font-size: 14px;
    color: rgba(255,255,255,.68);
}

.hero-dots {
    position: absolute;
    z-index: 6;
    bottom: 38px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 26px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}

    .hero-dot.active {
        width: 48px;
        background: white;
    }


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}

.section-heading h2,
.section-title-center h2,
.entities-copy h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.35;
}

.about-content {
    padding-top: 36px;
}

    .about-content p {
        color: var(--muted);
        line-height: 2;
        font-size: 17px;
    }

    .about-content .large-text {
        margin-top: 0;
        color: var(--text);
        font-size: 24px;
        font-weight: 500;
    }


/* =========================================================
   HOW
   ========================================================= */

.how-section {
    background: var(--soft);
}

.section-title-center {
    max-width: 650px;
    margin: 0 auto 65px;
    text-align: center;
}

    .section-title-center p {
        color: var(--muted);
    }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    position: relative;
    min-height: 340px;
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.step-number {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #9caaa5;
    font-size: 13px;
    font-weight: 600;
}

.step-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green);
    font-size: 24px;
}

.step-card h3 {
    font-size: 22px;
}

.step-card p {
    color: var(--muted);
    line-height: 1.9;
}


/* =========================================================
   TRUST
   ========================================================= */

.trust-section {
    padding: 120px 0;
    color: white;
    background: linear-gradient( 135deg, var(--green-deep), var(--green) );
}

.trust-heading {
    margin-bottom: 70px;
}

    .trust-heading > span {
        color: #9dd5c2;
    }

    .trust-heading h2 {
        margin: 15px 0 0;
        font-size: clamp(38px, 4vw, 58px);
        line-height: 1.4;
    }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.18);
}

    .trust-grid article {
        min-height: 260px;
        padding: 32px;
        border-left: 1px solid rgba(255,255,255,.18);
    }

.trust-number {
    color: #8fc8b5;
    font-size: 15px;
}

.trust-grid h3 {
    margin-top: 60px;
    font-size: 20px;
}

.trust-grid p {
    color: rgba(255,255,255,.72);
    line-height: 1.9;
}


/* =========================================================
   ENTITIES
   ========================================================= */

.entities-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.entities-copy p {
    max-width: 540px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
}

.button-green {
    color: white;
    background: var(--green);
}

.portal-preview {
    overflow: hidden;
    min-height: 460px;
    background: #f7faf9;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(18, 57, 47, .12);
}

.preview-top {
    height: 48px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

    .preview-top span {
        width: 8px;
        height: 8px;
        background: #cbd5d2;
        border-radius: 50%;
    }

.preview-content {
    padding: 50px;
}

.preview-logo {
    color: var(--green);
    font-size: 26px;
    font-weight: 700;
}

.preview-line {
    width: 55%;
    height: 10px;
    margin-top: 20px;
    background: #dfe9e6;
    border-radius: 10px;
}

    .preview-line.large {
        width: 75%;
        margin-top: 45px;
    }

.preview-box {
    height: 70px;
    margin-top: 20px;
    border: 1px solid #dbe6e2;
    border-radius: 10px;
    background: white;
}


/* =========================================================
   SECURITY MESSAGE
   ========================================================= */

.security-message {
    padding: 130px 0;
    color: white;
    text-align: center;
    background: #082e27;
}

.security-message-inner {
    max-width: 850px;
}

.section-eyebrow.light {
    color: #8fd0b9;
}

.security-message h2 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.35;
}

.security-message p {
    max-width: 650px;
    margin: 30px auto 0;
    color: rgba(255,255,255,.72);
    font-size: 18px;
    line-height: 2;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 75px 0 25px;
    color: white;
    background: #05241f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand img {
    width: 165px;
}

.footer-brand p {
    color: rgba(255,255,255,.6);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
    text-align: right;
}
    .footer-links strong,
    .footer-contact strong {
        margin-bottom: 8px;
    }

    .footer-links a,
    .footer-contact a {
        color: rgba(255,255,255,.65);
        font-size: 14px;
    }

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.45);
    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .main-nav,
    .portal-button {
        display: none;
    }

    .mobile-menu-button {
        margin-right: auto;
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
    }

        .mobile-menu-button span {
            width: 22px;
            height: 2px;
            margin: 0 auto;
            background: var(--green);
        }

    .main-nav.mobile-open {
        position: absolute;
        display: flex;
        top: 76px;
        right: 20px;
        left: 20px;
        padding: 25px;
        flex-direction: column;
        align-items: stretch;
        background: white;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(0,0,0,.12);
    }

    .hero {
        min-height: 700px;
    }

    .about-grid,
    .entities-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .site-container {
        width: min(calc(100% - 32px), var(--container));
    }

    .site-header {
        height: 76px;
    }

    .site-brand img {
        width: 115px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 76px;
    }

    .hero-copy h1 {
        font-size: 50px;
    }

    .hero-copy > p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section,
    .trust-section {
        padding: 85px 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

        .trust-grid article {
            border-left: none;
            border-bottom: 1px solid rgba(255,255,255,.15);
        }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.footer-grid {
    direction: rtl;
}

.footer-brand,
.footer-links,
.footer-contact {
    text-align: right;
    align-items: flex-start;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
}

    .footer-links strong,
    .footer-contact strong {
        width: 100%;
        text-align: right;
    }

    .footer-links a {
        width: 100%;
        text-align: right;
    }

    /* البريد نفسه LTR ولكن يبقى في يمين العمود */
    .footer-contact a {
        align-self: flex-start;
        direction: ltr;
        text-align: left;
    }