/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #f3f2ed;
    color: #172f3d;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

body.modal-open,
body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   COLORS
========================================================= */

:root {
    --blue: #17678b;
    --blue-dark: #0e3c52;
    --blue-light: #2b86aa;

    --orange: #e28b32;

    --navy: #102f3f;

    --bg: #f3f2ed;
    --white: #ffffff;

    --text: #173544;
    --gray: #68777e;

    --border: rgba(16, 47, 63, 0.08);
    --border-strong: rgba(16, 47, 63, 0.13);

    --shadow-sm: 0 10px 30px rgba(16, 47, 63, 0.05);
    --shadow-md: 0 15px 45px rgba(16, 47, 63, 0.07);
    --shadow-lg: 0 25px 60px rgba(16, 47, 63, 0.13);
}


/* =========================================================
   GLOBAL CONTAINERS
========================================================= */

.container,
.header-container,
.footer-container {
    width: min(1400px, calc(100% - 100px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    z-index: 9999;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        height 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.site-header.scrolled {
    height: 74px;

    box-shadow:
        0 8px 30px rgba(16, 47, 63, 0.08);
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.header-container {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* =========================================================
   BRAND
========================================================= */

.site-brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--blue);

    text-decoration: none;

    white-space: nowrap;

    flex: 0 1 auto;
    min-width: 0;
}

.site-logo-image {
    width: 42px;
    height: 42px;

    object-fit: contain;

    display: block;

    flex: 0 0 auto;
}

.site-company-name {
    color: var(--blue);

    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;

    transition: color 0.25s ease;
}

.site-brand:hover .site-company-name {
    color: var(--orange);
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 34px;

    flex: 1;
    min-width: 0;
}

.main-nav > a,
.nav-dropdown-toggle {
    position: relative;

    padding: 8px 0;

    color: #354b56;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition: color 0.25s ease;
}

.main-nav > a::after,
.nav-dropdown-toggle::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--orange);

    transition: width 0.25s ease;
}

.main-nav > a:hover,
.nav-dropdown-toggle:hover {
    color: var(--blue);
}

.main-nav > a:hover::after,
.nav-dropdown-toggle:hover::after {
    width: 100%;
}


/* =========================================================
   SERVICES DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;

    display: flex;
    align-items: center;

    height: 100%;
}

.nav-dropdown-toggle {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    height: 100%;

    padding: 8px 0;

    border: 0;
    outline: none;

    background: transparent;

    color: #354b56;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.dropdown-arrow {
    display: inline-block;

    font-size: 11px;

    transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: 50%;

    width: 280px;
    max-width: calc(100vw - 30px);

    margin: 0;
    padding: 10px;

    background: var(--white);

    border: 1px solid var(--border);

    box-shadow:
        0 18px 45px rgba(16, 47, 63, 0.14);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 99999;
}

.nav-dropdown-menu::after {
    content: "";

    position: absolute;

    top: -20px;
    left: 0;

    width: 100%;
    height: 20px;

    background: transparent;
}

.nav-dropdown-menu::before {
    content: "";

    position: absolute;

    top: -6px;
    left: 50%;

    width: 12px;
    height: 12px;

    background: var(--white);

    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);

    transform:
        translateX(-50%)
        rotate(45deg);
}


@media (min-width: 701px) {

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateX(-50%)
            translateY(0);
    }
}


/* =========================================================
   SERVICE ITEMS
========================================================= */

.nav-service-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    width: 100%;

    padding: 13px 14px;

    color: var(--text);

    font-size: 13px;
    font-weight: 600;

    border-radius: 4px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding 0.2s ease;
}

.nav-service-link:hover {
    background: #f3f2ed;

    color: var(--blue);

    padding-left: 18px;
}

.nav-service-title {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
}

.nav-service-link .service-arrow {
    flex-shrink: 0;

    color: var(--orange);

    font-size: 16px;

    transition: transform 0.2s ease;
}

.nav-service-link:hover .service-arrow {
    transform: translateX(3px);
}

.nav-dropdown-empty {
    padding: 18px 14px;

    text-align: center;

    color: var(--gray);

    font-size: 12px;
}


/* =========================================================
   RTL SERVICES
========================================================= */

html[dir="rtl"] .nav-dropdown-menu {
    left: auto;
    right: 50%;

    transform:
        translateX(50%)
        translateY(8px);
}

html[dir="rtl"] .nav-dropdown-menu::before {
    left: auto;
    right: 50%;

    transform:
        translateX(50%)
        rotate(45deg);
}

@media (min-width: 701px) {

    html[dir="rtl"] .nav-dropdown:hover .nav-dropdown-menu,
    html[dir="rtl"] .nav-dropdown:focus-within .nav-dropdown-menu {
        transform:
            translateX(50%)
            translateY(0);
    }
}

html[dir="rtl"] .nav-service-link:hover {
    padding-left: 14px;
    padding-right: 18px;
}

html[dir="rtl"] .nav-service-link:hover .service-arrow {
    transform: translateX(-3px);
}


/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex: 0 0 auto;
}

.language-switcher form {
    margin: 0;
    padding: 0;
}

.language-option {
    min-width: 34px;
    min-height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    outline: none;

    border-radius: 5px;

    background: transparent;

    padding: 5px 2px;

    color: #929da2;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.language-option:hover {
    color: var(--blue);

    background: rgba(23, 103, 139, 0.06);

    transform: translateY(-1px);
}

.language-option.active {
    color: var(--blue);

    background: rgba(23, 103, 139, 0.08);

    box-shadow:
        0 4px 12px rgba(16, 47, 63, 0.16);
}

.language-divider {
    color: #c4c9cc;

    font-size: 12px;

    user-select: none;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    display: none;

    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    border: 0;
    outline: none;

    background: transparent;

    color: var(--navy);

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    width: 100%;
    background: #ffffff;
}


/* =====================================================
   HERO IMAGE
===================================================== */

.hero-image {
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center;
}


/* =====================================================
   HERO CONTENT
===================================================== */

.hero-content {
    width: min(1200px, 90%);
    margin: 0 auto;

    padding: 72px 0 88px;

    color: #20251f;
}


/* =====================================================
   WELCOME / EYEBROW
===================================================== */

.hero-eyebrow {
    display: flex;
    align-items: center;

    margin-bottom: 20px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #9a8060;
}

.hero-eyebrow::before {
    content: "";

    width: 42px;
    height: 1px;

    margin-right: 14px;

    background: #9a8060;

    flex-shrink: 0;
}


/* =====================================================
   HERO TITLE
===================================================== */

/* =====================================================
   HERO TITLE COLORS
===================================================== */

.hero-title {
    max-width: 850px;
    margin: 0 0 26px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #ffffff;
}

/* Welcome To */
.hero-title-blue {
    color: #2f80ed;
    display: inline;
}

/* NewContractingVision — كان أبيض فبيختفي، رجّعناه أزرق غامق عشان يبان اسم الشركة */
.hero-title-main {
    color: var(--blue-dark);
    display: inline;
}


/* =====================================================
   RTL
===================================================== */

html[dir="rtl"] .hero-title {
    text-align: right;
}


/* =====================================================
   HERO DESCRIPTION
===================================================== */

.hero-description {
    max-width: 720px;

    margin: 0;

    font-size: clamp(17px, 1.4vw, 21px);

    line-height: 1.85;

    font-weight: 400;

    color: #697069;
}


/* =====================================================
   ARABIC
===================================================== */

html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero-eyebrow::before {
    margin-right: 0;
    margin-left: 14px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .hero-image {
        height: 430px;
    }

    .hero-content {
        width: 88%;

        padding: 52px 0 65px;
    }

    .hero-eyebrow {
        font-size: 12px;

        margin-bottom: 16px;
    }

   .hero-title {
    max-width: 850px;

    margin: 0 0 24px;

    font-size: clamp(42px, 5.5vw, 76px);
    line-height: 1.08;

    font-weight: 600;
    letter-spacing: -0.035em;

    color: #20251f;
}

.hero-title-blue {
    color: #2F6F9F;
}

/* نفس تصحيح اسم الشركة بس في نسخة الموبايل عشان يفضل ظاهر */
.hero-title-main {
    color: var(--blue-dark);
}

    .hero-description {
        font-size: 16px;

        line-height: 1.8;
    }

}

/* =========================================================
   WELCOME
========================================================= */

.welcome-section {
    width: 100%;

    padding: 120px 0 90px;

    background: var(--bg);
}

.welcome-label {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 20px;

    color: var(--blue);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}

.welcome-label::before {
    content: "";

    width: 40px;
    height: 2px;

    flex-shrink: 0;

    background: var(--orange);
}

.welcome-title {
    max-width: 950px;

    margin-bottom: 28px;

    color: var(--navy);

    font-size:
        clamp(44px, 5.5vw, 78px);

    line-height: 1.03;

    font-weight: 500;

    letter-spacing: -2px;

    overflow-wrap: break-word;
}

.welcome-description {
    max-width: 850px;

    color: var(--gray);

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   SERVICES
========================================================= */

.services-section {
    width: 100%;

    padding: 35px 0 130px;

    background: var(--bg);
}

.methods-grid {
    width: min(1400px, calc(100% - 100px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 32px;

    align-items: start;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.method-card {
    position: relative;

    width: 100%;
    min-width: 0;

    background: var(--white);

    border: 1px solid var(--border);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.method-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow-lg);
}


/* =========================================================
   SERVICE IMAGE
========================================================= */

.method-image {
    position: relative;

    width: 100%;
    height: 420px;

    overflow: hidden;

    background: #d8dcdd;
}

.method-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.65s ease;
}

.method-card:hover .method-image img {
    transform: scale(1.06);
}


/* =========================================================
   SERVICE CARD ARROW
========================================================= */

.method-image::after {
    content: "↗";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--orange);

    color: #fff;

    font-size: 28px;
    font-weight: 300;

    z-index: 5;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.method-card:hover .method-image::after {
    background: var(--blue);

    transform: translateY(-5px);
}


/* =========================================================
   SERVICE CARD CONTENT
========================================================= */

.method-content {
    padding: 28px 30px 32px;
}

.method-tag {
    display: block;

    margin-bottom: 10px;

    color: var(--orange);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.method-content h3 {
    margin: 0 0 14px;

    color: var(--navy);

    font-size: 27px;

    line-height: 1.2;

    font-weight: 600;

    overflow-wrap: break-word;
}

.method-content p {
    max-width: 500px;

    margin: 0;

    color: var(--gray);

    font-size: 14px;

    line-height: 1.85;

    overflow-wrap: break-word;
}

.method-content a {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-top: 21px;

    color: var(--blue);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.5px;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.method-content a span {
    font-size: 18px;
}

.method-content a:hover {
    gap: 15px;

    color: var(--orange);
}

.services-empty {
    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    color: var(--gray);

    font-size: 15px;
}


/* =========================================================
   CONTACT / CTA
========================================================= */

.contact-section {
    width: 100%;

    padding: 110px 0;

    background: #e8e7e1;
}

.contact-box {
    width: min(1400px, calc(100% - 100px));

    margin: auto;

    padding: 65px;

    display: grid;

    grid-template-columns:
        1.4fr 1fr;

    gap: 80px;

    align-items: center;

    background: var(--white);

    border-left: 5px solid var(--orange);

    box-shadow:
        0 20px 55px rgba(16, 47, 63, 0.08);
}

.contact-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}

.contact-box h2 {
    margin: 0 0 15px;

    color: var(--navy);

    font-size: 42px;

    line-height: 1.15;

    font-weight: 500;

    overflow-wrap: break-word;
}

.contact-box p {
    max-width: 650px;

    margin: 0;

    color: var(--gray);

    font-size: 16px;

    line-height: 1.8;

    overflow-wrap: break-word;
}

.contact-details {
    color: var(--text);

    font-size: 15px;

    line-height: 2;

    padding-left: 25px;

    border-left:
        1px solid rgba(16, 47, 63, 0.12);

    min-width: 0;
}

.contact-company {
    margin-bottom: 8px;

    color: var(--navy);

    font-size: 17px;

    font-weight: 700;

    overflow-wrap: break-word;
}

.contact-details a {
    display: block;

    color: var(--blue);

    overflow-wrap: anywhere;

    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--orange);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: 100%;

    padding: 75px 0 30px;

    background: var(--navy);

    color: #fff;
}

.footer-main {
    display: grid;

    grid-template-columns:
        1.3fr 1fr 1fr;

    gap: 70px;

    padding-bottom: 55px;
}

.footer-brand h3 {
    margin-bottom: 18px;

    color: #fff;

    font-size: 24px;

    font-weight: 700;

    overflow-wrap: break-word;
}

.footer-brand p {
    max-width: 380px;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 14px;

    line-height: 1.9;
}

.footer-title {
    margin-bottom: 20px;

    color: var(--orange);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-links a {
    color:
        rgba(255, 255, 255, 0.7);

    font-size: 14px;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links span {
    color:
        rgba(255, 255, 255, 0.65);

    font-size: 14px;

    line-height: 1.8;

    overflow-wrap: break-word;
}

.footer-bottom {
    padding-top: 25px;

    border-top:
        1px solid rgba(255, 255, 255, 0.12);

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 12px;
}


/* =========================================================
   SERVICE DETAIL PAGE
========================================================= */

.detail-page {
    padding: 140px 0 100px;

    background: var(--bg);
}

.detail-container {
    width: min(1100px, calc(100% - 100px));

    margin: auto;
}

.detail-header {
    margin-bottom: 50px;
}

.detail-header .welcome-label {
    margin-bottom: 18px;
}

.detail-title {
    max-width: 900px;

    color: var(--navy);

    font-size:
        clamp(38px, 5vw, 64px);

    line-height: 1.08;

    font-weight: 500;

    letter-spacing: -1.5px;

    overflow-wrap: break-word;
}


/* =========================================================
   OLD DETAIL STACK
========================================================= */

.detail-stack {
    display: flex;

    flex-direction: column;

    gap: 40px;

    width: 100%;

    max-width: 980px;

    margin: 0 auto;
}

.detail-card {
    width: 100%;

    background: var(--white);

    border: 1px solid var(--border);

    overflow: hidden;

    box-shadow:
        0 15px 45px rgba(16, 47, 63, 0.06);
}

.detail-card .method-image {
    width: 100%;

    height: 460px;
}

.detail-card .method-content {
    padding: 0 34px 36px;
}

.detail-card .method-content p {
    max-width: 850px;

    margin: 0;

    color: var(--text);

    font-size: 15px;

    line-height: 1.95;

    overflow-wrap: break-word;
}

.detail-content-header {
    padding: 26px 34px 18px;
}

.detail-item-title {
    margin: 0;

    color: var(--blue);

    font-size: 1.6rem;

    font-weight: 800;

    line-height: 1.4;

    overflow-wrap: anywhere;
}

.detail-card:hover {
    transform: none;

    box-shadow:
        0 15px 45px rgba(16, 47, 63, 0.06);
}

.detail-card:hover .method-image img {
    transform: none;
}

.detail-card .method-image::after {
    content: none;
}

.detail-card + .detail-stack {
    margin-top: 40px;
}

.detail-stack .detail-card {
    box-shadow:
        0 15px 45px rgba(16, 47, 63, 0.06);
}

.detail-empty {
    width: 100%;

    margin-top: 40px;

    padding: 50px 30px;

    background: var(--white);

    border: 1px solid var(--border);

    text-align: center;

    color: var(--gray);

    font-size: 14px;
}


/* =========================================================
   BACK LINK
========================================================= */

.back-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 50px;

    color: var(--blue);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.5px;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.back-link:hover {
    gap: 15px;

    color: var(--orange);
}

.detail-back {
    margin-top: 45px;
}


/* =========================================================
   =========================================================
   NEW SERVICE HIERARCHY
   =========================================================
========================================================= */

.service-hierarchy {
    width: 100%;

    margin-top: 55px;
}


/* =========================================================
   SERVICE ANCHOR
========================================================= */

.service-anchor {
    width: 100%;

    margin-bottom: 65px;
}

.service-anchor:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ANCHOR TITLE
========================================================= */

.anchor-title {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 24px;

    padding-bottom: 16px;

    border-bottom: 1px solid rgba(16, 47, 63, 0.10);
}

.anchor-line {
    width: 5px;
    height: 38px;

    flex: 0 0 5px;

    border-radius: 0;

    background: var(--orange);
}

.anchor-title h2 {
    margin: 0;

    color: var(--navy);

    font-size: 2rem;

    font-weight: 700;

    line-height: 1.3;

    overflow-wrap: anywhere;
}


/* =========================================================
   ANCHOR CARD
========================================================= */

.anchor-card {
    width: 100%;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 0;

    background: var(--white);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   ANCHOR CARD IMAGE
========================================================= */

.anchor-card .method-image {
    height: 390px;
}

.anchor-card .method-image::after {
    content: none;
}

.anchor-card .method-image img {
    transition: none;
}


/* =========================================================
   ANCHOR CONTENT
========================================================= */

.anchor-card .method-content {
    padding: 30px 34px 34px;
}

.anchor-card .method-content h3 {
    color: var(--navy);
}

.anchor-card .method-content p {
    color: var(--gray);

    max-width: 850px;
}


/* =========================================================
   CHILDREN CONTAINER
========================================================= */

.anchor-children {
    width: calc(100% - 28px);

    margin-top: 30px;

    margin-right: 28px;

    padding-right: 26px;

    border-right: 2px solid rgba(23, 103, 139, 0.18);
}


/* =========================================================
   NESTED DETAIL
========================================================= */

.nested-detail {
    position: relative;

    width: 100%;

    margin-bottom: 24px;

    padding: 0;

    border: 1px solid var(--border);

    border-radius: 0;

    background: var(--white);

    box-shadow:
        0 10px 30px rgba(16, 47, 63, 0.045);

    overflow: hidden;

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.nested-detail:last-child {
    margin-bottom: 0;
}

.nested-detail:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 40px rgba(16, 47, 63, 0.09);
}


/* =========================================================
   NESTED DETAIL TITLE
========================================================= */

.nested-detail-title {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 0;

    padding: 20px 24px;

    background: #fafaf8;

    border-bottom: 1px solid var(--border);
}

.nested-detail-title h3 {
    margin: 0;

    color: var(--blue);

    font-size: 1.25rem;

    font-weight: 700;

    line-height: 1.4;

    overflow-wrap: anywhere;
}

.nested-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    border-radius: 50%;

    background: var(--orange);
}


/* =========================================================
   NESTED IMAGE
========================================================= */

.nested-detail-image {
    width: 100%;

    overflow: hidden;

    margin: 0;

    border-radius: 0;

    background: #d8dcdd;
}

.nested-detail-image img {
    display: block;

    width: 100%;

    max-height: 420px;

    min-height: 220px;

    object-fit: cover;

    object-position: center;
}


/* =========================================================
   NESTED CONTENT
========================================================= */

.nested-detail-content {
    padding: 22px 24px 26px;
}

.nested-detail-content p {
    margin: 0;

    color: var(--gray);

    font-size: 14px;

    line-height: 1.95;

    overflow-wrap: break-word;
}


/* =========================================================
   DEEPER CHILDREN
========================================================= */

.nested-children {
    margin-top: 22px;

    margin-right: 20px;

    padding-right: 20px;

    border-right: 2px dashed rgba(23, 103, 139, 0.20);
}


/* =========================================================
   DEEPER NESTED DETAIL
========================================================= */

.nested-children .nested-detail {
    background: #fcfcfa;

    box-shadow:
        0 7px 22px rgba(16, 47, 63, 0.035);
}

.nested-children .nested-detail-title {
    padding: 16px 20px;

    background: transparent;
}

.nested-children .nested-detail-content {
    padding: 18px 20px 22px;
}

.nested-children .nested-detail-title h3 {
    font-size: 1.1rem;
}


/* =========================================================
   HIERARCHY EMPTY STATE
========================================================= */

.service-hierarchy .detail-empty {
    margin-top: 30px;
}


/* =========================================================
   RTL HIERARCHY
========================================================= */

html[dir="rtl"] .anchor-title {
    flex-direction: row;

    text-align: right;
}

html[dir="rtl"] .anchor-line {
    order: 0;
}

html[dir="rtl"] .anchor-children {
    margin-right: 28px;
    margin-left: 0;

    padding-right: 26px;
    padding-left: 0;

    border-right: 2px solid rgba(23, 103, 139, 0.18);
    border-left: 0;
}

html[dir="rtl"] .nested-children {
    margin-right: 20px;
    margin-left: 0;

    padding-right: 20px;
    padding-left: 0;

    border-right: 2px dashed rgba(23, 103, 139, 0.20);
    border-left: 0;
}

html[dir="rtl"] .nested-detail-title,
html[dir="rtl"] .nested-detail-content {
    text-align: right;
}


/* =========================================================
   MODAL
========================================================= */

.site-modal {
    position: fixed;

    inset: 0;

    z-index: 20000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.site-modal.is-open,
.site-modal.active {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}

.site-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(16, 47, 63, 0.65);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.site-modal-box {
    position: relative;

    z-index: 2;

    width: min(700px, 100%);

    max-height:
        calc(100vh - 50px);

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    padding: 55px;

    background: var(--white);

    border-top:
        5px solid var(--orange);

    box-shadow:
        0 30px 80px rgba(16, 47, 63, 0.25);

    transform:
        translateY(25px)
        scale(0.98);

    transition:
        transform 0.3s ease;
}

.site-modal.is-open .site-modal-box,
.site-modal.active .site-modal-box {
    transform:
        translateY(0)
        scale(1);
}

.site-modal-close {
    position: absolute;

    top: 18px;
    right: 20px;

    width: 38px;
    height: 38px;

    border: 0;
    outline: none;

    background: transparent;

    color: var(--navy);

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.site-modal-close:hover {
    color: var(--orange);

    transform: rotate(90deg);
}

.site-modal-label {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.site-modal-content h2 {
    margin-bottom: 18px;

    color: var(--navy);

    font-size:
        clamp(32px, 4vw, 40px);

    line-height: 1.15;

    font-weight: 500;

    overflow-wrap: break-word;
}

.site-modal-content p {
    color: var(--gray);

    font-size: 15px;

    line-height: 1.9;

    overflow-wrap: break-word;
}

.modal-contact-details {
    display: flex;

    flex-direction: column;

    gap: 10px;

    color: var(--gray);

    font-size: 15px;

    line-height: 1.8;
}

.modal-contact-details a {
    color: var(--blue);

    overflow-wrap: anywhere;

    transition: color 0.2s ease;
}

.modal-contact-details a:hover {
    color: var(--orange);
}

.site-modal-content .contact-details {
    margin-top: 30px;

    padding-left: 20px;
}


/* =========================================================
   RTL
========================================================= */

html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .welcome-label {
    flex-direction: row-reverse;

    justify-content: flex-start;
}

html[dir="rtl"] .welcome-label::before {
    order: -1;
}

html[dir="rtl"] .method-image::after {
    right: auto;
    left: 0;
}

html[dir="rtl"] .contact-box {
    border-left: 0;

    border-right: 5px solid var(--orange);
}

html[dir="rtl"] .contact-details {
    padding-left: 0;

    padding-right: 25px;

    border-left: 0;

    border-right:
        1px solid rgba(16, 47, 63, 0.12);
}

html[dir="rtl"] .back-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .detail-item-title {
    text-align: right;
}

html[dir="ltr"] .detail-item-title {
    text-align: left;
}


/* =========================================================
   RTL MODAL
========================================================= */

html[dir="rtl"] .site-modal-box {
    border-top: 0;

    border-right:
        5px solid var(--orange);
}

html[dir="rtl"] .site-modal-close {
    right: auto;

    left: 20px;
}

html[dir="rtl"] .site-modal-content .contact-details {
    padding-left: 0;

    padding-right: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .header-container {
        width: calc(100% - 60px);

        gap: 20px;
    }

    .site-company-name {
        font-size: 16px;
    }

    .site-logo-image {
        width: 38px;
        height: 38px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav > a,
    .nav-dropdown-toggle {
        font-size: 13px;
    }


    /* SERVICES */

    .methods-grid {
        width: calc(100% - 60px);

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px;
    }

    .method-image {
        height: 390px;
    }


    /* CONTACT */

    .contact-box {
        width: calc(100% - 60px);

        gap: 50px;
    }


    /* FOOTER */

    .footer-main {
        grid-template-columns:
            1fr 1fr;

        gap: 45px;
    }


    /* DETAIL */

    .detail-container {
        width: calc(100% - 60px);
    }

    .detail-card .method-image {
        height: 380px;
    }


    /* NEW HIERARCHY */

    .anchor-card .method-image {
        height: 360px;
    }

    .anchor-children {
        width: calc(100% - 18px);

        margin-right: 18px;

        padding-right: 20px;
    }

    .nested-detail-image img {
        max-height: 360px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    /* HEADER */

    .site-header,
    .site-header.scrolled {
        height: 70px;
    }

    .header-container {
        width: calc(100% - 24px);

        gap: 6px;
    }

    .site-brand {
        order: 2;

        gap: 7px;

        min-width: 0;

        flex: 1;
    }

    .site-logo-image {
        width: 34px;
        height: 34px;
    }

    .site-company-name {
        min-width: 0;

        max-width: 100%;

        font-size: 14px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }


    /* MOBILE MENU */

    .mobile-menu {
        display: flex;

        order: 1;

        width: 40px;
        height: 40px;

        flex: 0 0 40px;
    }

    .main-nav {
        position: fixed;

        top: 70px;
        left: 12px;
        right: 12px;

        width: auto;

        height: auto;

        max-height: calc(100vh - 82px);

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 0;

        padding: 10px;

        overflow-y: auto;
        overflow-x: hidden;

        background: var(--white);

        border: 1px solid var(--border);

        box-shadow:
            0 20px 45px rgba(16, 47, 63, 0.16);

        border-radius: 8px;

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }

    .main-nav.open {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);
    }

    .main-nav > a,
    .nav-dropdown-toggle {
        width: 100%;

        min-height: 50px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        padding: 14px 12px;

        border-radius: 6px;

        font-size: 15px;

        color: var(--navy);
    }

    .main-nav > a::after,
    .nav-dropdown-toggle::after {
        display: none;
    }

    .main-nav > a:hover,
    .nav-dropdown-toggle:hover {
        background: #f3f2ed;

        color: var(--blue);
    }


    /* MOBILE DROPDOWN */

    .nav-dropdown {
        width: 100%;

        display: block;

        height: auto;
    }

    .nav-dropdown-toggle {
        height: 50px;
    }

    .nav-dropdown-menu {
        position: static;

        width: 100%;

        max-width: none;

        margin: 0;

        padding: 5px;

        border: 0;

        border-radius: 6px;

        box-shadow: none;

        background: #f7f7f4;

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform: none;

        max-height: 0;

        overflow: hidden;

        transition:
            max-height 0.3s ease,
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .nav-dropdown-menu::before,
    .nav-dropdown-menu::after {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: none;

        max-height: 500px;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-service-link {
        min-height: 45px;

        padding: 11px 12px;

        font-size: 13px;
    }

    .nav-service-link:hover {
        padding-left: 14px;
    }


    /* LANGUAGE */

    .language-switcher {
        order: 3;

        margin-left: 0;

        gap: 3px;

        flex: 0 0 auto;
    }

    .language-option {
        min-width: 29px;

        min-height: 28px;

        padding: 4px 1px;

        font-size: 10px;
    }

    .language-divider {
        font-size: 10px;
    }


    /* HERO */

    /* مهم: الارتفاع الثابت لازم يكون على الصورة بس مش على .hero نفسها،
       عشان لو النص (hero-content) طال شوية عن 430px، الـ section تاخد
       ارتفاعها الطبيعي من غير ما السكشن اللي بعدها (welcome-section)
       يغطي على جزء منها */
    .hero {
        margin-top: 70px;
    }

    .hero-image {
        height: 430px;
    }

    .hero-image img {
        width: 100%;

        height: 100%;

        object-fit: cover;

        object-position: center;
    }


    /* CONTAINER */

    .container {
        width: calc(100% - 30px);
    }


    /* WELCOME */

    .welcome-section {
        padding: 70px 0 60px;
    }

    .welcome-label {
        gap: 9px;

        margin-bottom: 17px;

        font-size: 10px;

        letter-spacing: 1.7px;
    }

    .welcome-label::before {
        width: 28px;
    }

    .welcome-title {
        margin-bottom: 22px;

        font-size: clamp(36px, 10vw, 46px);

        line-height: 1.08;

        letter-spacing: -1px;
    }

    .welcome-description {
        font-size: 15px;

        line-height: 1.8;
    }


    /* SERVICES */

    .services-section {
        padding:
            25px 0
            80px;
    }

    .methods-grid {
        width: calc(100% - 30px);

        grid-template-columns: 1fr;

        gap: 28px;
    }

    .method-card {
        width: 100%;
    }

    .method-card:hover {
        transform: none;

        box-shadow: none;
    }

    .method-image {
        height: 320px;
    }

    .method-card:hover .method-image img {
        transform: none;
    }

    .method-image::after {
        width: 58px;

        height: 58px;

        font-size: 24px;
    }

    .method-content {
        padding: 23px 22px 27px;
    }

    .method-content h3 {
        font-size: 24px;

        line-height: 1.25;
    }

    .method-content p {
        font-size: 14px;

        line-height: 1.8;
    }


    /* CONTACT */

    .contact-section {
        padding: 70px 0;
    }

    .contact-box {
        width: calc(100% - 30px);

        padding: 35px 22px;

        grid-template-columns: 1fr;

        gap: 30px;

        border-left:
            4px solid var(--orange);
    }

    .contact-box h2 {
        font-size: 31px;

        line-height: 1.2;
    }

    .contact-box p {
        font-size: 15px;

        line-height: 1.8;
    }

    .contact-details {
        padding-left: 0;

        padding-top: 22px;

        border-left: 0;

        border-top:
            1px solid rgba(16, 47, 63, 0.12);
    }


    /* FOOTER */

    .site-footer {
        padding: 60px 0 25px;
    }

    .footer-container {
        width: calc(100% - 30px);
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 35px;

        padding-bottom: 40px;
    }

    .footer-brand h3 {
        font-size: 22px;
    }


    /* DETAIL */

    .detail-page {
        padding: 100px 0 65px;
    }

    .detail-container {
        width: calc(100% - 30px);
    }

    .detail-header {
        margin-bottom: 30px;
    }

    .detail-title {
        font-size: clamp(34px, 9vw, 42px);

        line-height: 1.1;

        letter-spacing: -1px;
    }

    .detail-stack {
        gap: 25px;
    }

    .detail-card .method-image {
        height: 260px;
    }

    .detail-card .method-content {
        padding:
            0 20px 25px;
    }

    .detail-content-header {
        padding:
            18px 20px 10px;
    }

    .detail-item-title {
        font-size: 1.25rem;

        line-height: 1.45;
    }

    .detail-card .method-content h3 {
        font-size: 23px;
    }

    .detail-card .method-content p {
        font-size: 14px;

        line-height: 1.9;
    }

    .back-link {
        margin-top: 30px;
    }

    .detail-empty {
        padding: 35px 18px;

        font-size: 13px;
    }


    /* =====================================================
       NEW HIERARCHY MOBILE
    ===================================================== */

    .service-hierarchy {
        margin-top: 35px;
    }

    .service-anchor {
        margin-bottom: 45px;
    }

    .anchor-title {
        gap: 10px;

        margin-bottom: 18px;

        padding-bottom: 12px;
    }

    .anchor-line {
        width: 4px;

        height: 30px;

        flex-basis: 4px;
    }

    .anchor-title h2 {
        font-size: 1.45rem;

        line-height: 1.35;
    }

    .anchor-card {
        border-radius: 0;
    }

    .anchor-card .method-image {
        height: 260px;
    }

    .anchor-card .method-content {
        padding:
            22px 20px 25px;
    }

    .anchor-card .method-content h3 {
        font-size: 22px;
    }

    .anchor-card .method-content p {
        font-size: 14px;

        line-height: 1.85;
    }

    .anchor-children {
        width: calc(100% - 8px);

        margin-top: 22px;

        margin-right: 8px;

        padding-right: 12px;

        border-right-width: 2px;
    }

    .nested-detail {
        margin-bottom: 18px;
    }

    .nested-detail:hover {
        transform: none;

        box-shadow:
            0 10px 30px rgba(16, 47, 63, 0.045);
    }

    .nested-detail-title {
        gap: 9px;

        padding:
            15px 17px;
    }

    .nested-detail-title h3 {
        font-size: 1.05rem;

        line-height: 1.4;
    }

    .nested-dot {
        width: 8px;

        height: 8px;

        flex-basis: 8px;
    }

    .nested-detail-image img {
        min-height: 180px;

        max-height: 280px;
    }

    .nested-detail-content {
        padding:
            17px 17px 20px;
    }

    .nested-detail-content p {
        font-size: 13px;

        line-height: 1.9;
    }

    .nested-children {
        margin-top: 17px;

        margin-right: 10px;

        padding-right: 11px;
    }

    .nested-children .nested-detail-title {
        padding:
            13px 15px;
    }

    .nested-children .nested-detail-content {
        padding:
            15px 15px 18px;
    }


    /* MODAL */

    .site-modal {
        align-items: center;

        padding: 12px;
    }

    .site-modal-box {
        width: 100%;

        max-width: 100%;

        max-height:
            calc(100dvh - 24px);

        padding:
            48px 22px 28px;

        border-top:
            4px solid var(--orange);

        border-radius: 2px;
    }

    .site-modal-close {
        top: 10px;

        right: 12px;

        width: 36px;

        height: 36px;

        font-size: 28px;
    }

    .site-modal-content h2 {
        font-size: 30px;

        line-height: 1.2;
    }

    .site-modal-content p {
        font-size: 14px;

        line-height: 1.8;
    }

    .modal-contact-details {
        font-size: 14px;
    }


    /* RTL MOBILE */

    html[dir="rtl"] .contact-box {
        border-left: 0;

        border-right:
            4px solid var(--orange);
    }

    html[dir="rtl"] .contact-details {
        padding-right: 0;

        border-right: 0;

        border-top:
            1px solid rgba(16, 47, 63, 0.12);
    }

    html[dir="rtl"] .site-modal-box {
        border-top: 0;

        border-right:
            4px solid var(--orange);
    }

    html[dir="rtl"] .site-modal-close {
        right: auto;

        left: 12px;
    }

    html[dir="rtl"] .detail-item-title {
        text-align: right;
    }

    html[dir="rtl"] .nav-dropdown-menu {
        left: auto;

        right: auto;
    }

    html[dir="rtl"] .nav-service-link:hover {
        padding-left: 12px;

        padding-right: 14px;
    }

    html[dir="rtl"] .anchor-children {
        margin-right: 8px;

        margin-left: 0;

        padding-right: 12px;

        padding-left: 0;

        border-right:
            2px solid rgba(23, 103, 139, 0.18);

        border-left: 0;
    }

    html[dir="rtl"] .nested-children {
        margin-right: 10px;

        margin-left: 0;

        padding-right: 11px;

        padding-left: 0;

        border-right:
            2px dashed rgba(23, 103, 139, 0.20);

        border-left: 0;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .site-header,
    .site-header.scrolled {
        height: 66px;
    }

    .header-container {
        width: calc(100% - 16px);

        gap: 4px;
    }

    .main-nav {
        top: 66px;

        left: 8px;

        right: 8px;

        max-height: calc(100vh - 76px);
    }

    .site-logo-image {
        width: 30px;

        height: 30px;
    }

    .site-brand {
        gap: 5px;
    }

    .site-company-name {
        font-size: 12px;
    }

    .mobile-menu {
        width: 36px;

        height: 36px;

        flex-basis: 36px;

        font-size: 21px;
    }

    .language-option {
        min-width: 26px;

        padding-left: 0;

        padding-right: 0;
    }

    .language-divider {
        font-size: 9px;
    }

    .hero {
        margin-top: 66px;
    }

    .hero-image {
        height: 380px;
    }

    .welcome-title {
        font-size: 36px;
    }

    .method-image {
        height: 290px;
    }

    .method-content {
        padding:
            21px 19px 24px;
    }

    .method-content h3 {
        font-size: 22px;
    }

    .contact-box {
        padding:
            30px 18px;
    }

    .contact-box h2 {
        font-size: 28px;
    }

    .detail-page {
        padding-top: 92px;
    }

    .detail-title {
        font-size: 32px;
    }

    .detail-item-title {
        font-size: 1.1rem;
    }

    .detail-card .method-image {
        height: 230px;
    }


    /* HIERARCHY */

    .anchor-title {
        gap: 8px;
    }

    .anchor-line {
        width: 3px;

        height: 27px;

        flex-basis: 3px;
    }

    .anchor-title h2 {
        font-size: 1.3rem;
    }

    .anchor-card .method-image {
        height: 220px;
    }

    .anchor-card .method-content {
        padding:
            19px 17px 22px;
    }

    .anchor-card .method-content h3 {
        font-size: 20px;
    }

    .anchor-children {
        margin-right: 5px;

        padding-right: 9px;
    }

    .nested-detail-title {
        padding:
            13px 14px;
    }

    .nested-detail-title h3 {
        font-size: 0.98rem;
    }

    .nested-detail-image img {
        min-height: 160px;

        max-height: 230px;
    }

    .nested-detail-content {
        padding:
            15px 14px 18px;
    }

    .nested-detail-content p {
        font-size: 13px;
    }

    .nested-children {
        margin-right: 7px;

        padding-right: 8px;
    }

    .site-modal {
        padding: 8px;
    }

    .site-modal-box {
        max-height: calc(100dvh - 16px);

        padding:
            46px 18px 24px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 340px) {

    .site-company-name {
        font-size: 11px;
    }

    .mobile-menu {
        width: 34px;

        height: 34px;

        flex-basis: 34px;

        font-size: 20px;
    }

    .language-option {
        min-width: 24px;

        font-size: 9px;
    }

    .hero-image {
        height: 340px;
    }

    .welcome-title {
        font-size: 32px;
    }

    .method-image {
        height: 250px;
    }

    /* HIERARCHY */

    .anchor-title h2 {
        font-size: 1.2rem;
    }

    .anchor-card .method-image {
        height: 200px;
    }

    .nested-detail-title h3 {
        font-size: 0.92rem;
    }

    .nested-detail-image img {
        min-height: 140px;

        max-height: 200px;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .method-card:hover {
        transform: none;

        box-shadow: none;
    }

    .method-card:hover .method-image img {
        transform: none;
    }

    .method-card:hover .method-image::after {
        transform: none;

        background: var(--orange);
    }

    .nested-detail:hover {
        transform: none;

        box-shadow:
            0 10px 30px rgba(16, 47, 63, 0.045);
    }

    .site-brand:hover .site-company-name {
        color: var(--blue);
    }

    .main-nav > a:hover,
    .nav-dropdown-toggle:hover {
        color: var(--navy);
    }

    .language-option:hover {
        transform: none;

        color: #929da2;

        background: transparent;
    }

    .language-option.active:hover {
        color: var(--blue);

        background: rgba(23, 103, 139, 0.08);
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }
}
 
/* =========================================================
   PROJECTS PAGE
========================================================= */

.projects-page {
    padding: 120px 0 80px;
}

.projects-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.projects-page-header {
    margin-bottom: 55px;
}

.projects-page-title {
    margin: 0 0 18px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;

    color: var(--blue);
}

.projects-page-description {
    max-width: 650px;

    margin: 0;

    color: #687780;

    font-size: 16px;
    line-height: 1.9;
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.project-categories-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.project-category-card {
    position: relative;

    min-height: 220px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    padding: 30px;

    background: #fff;

    border: 1px solid rgba(16, 47, 63, .1);

    border-radius: 16px;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.project-category-card:hover {
    transform: translateY(-5px);

    border-color: rgba(16, 47, 63, .2);

    box-shadow:
        0 20px 50px rgba(16, 47, 63, .10);
}

.project-category-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-category-number {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--orange);
}

.project-category-card h2 {
    margin: 0;

    color: var(--blue);

    font-size: 28px;
    line-height: 1.2;
}

.project-category-count {
    color: #7a858b;

    font-size: 13px;
}

.project-category-arrow {
    font-size: 30px;

    color: var(--orange);

    transition: transform .25s ease;
}

.project-category-card:hover .project-category-arrow {
    transform: translateX(-5px);
}


/* =========================================================
   PROJECTS GRID
========================================================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid rgba(16, 47, 63, .1);

    border-radius: 14px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(16, 47, 63, .10);
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-card-image {
    width: 100%;
    height: 300px;

    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .4s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.04);
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-card-content {
    padding: 24px;
}

.project-card-content h2 {
    margin: 0 0 12px;

    color: var(--blue);

    font-size: 24px;
    line-height: 1.3;
}

.project-card-content p {
    margin: 0;

    color: #687780;

    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   EMPTY
========================================================= */

.projects-empty {
    padding: 60px 20px;

    text-align: center;

    color: #7a858b;

    border: 1px dashed rgba(16, 47, 63, .15);

    border-radius: 14px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 800px) {

    .project-categories-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-page {
        padding-top: 100px;
    }

    .project-category-card {
        min-height: 190px;
    }

    .project-card-image {
        height: 250px;
    }
}
.footer-credit {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #aaa;
    letter-spacing: 0.3px;
}

.footer-credit span {
    color: #fff;
    font-weight: 600;
}

.footer-credit a {
    color: #aaa;
    text-decoration: none;
    margin-left: 8px;
    transition: 0.3s;
}

.footer-credit a:hover {
    color: #00bcd4;
}