/* ==========================================================================
   Pivot Jordan — public site styles
   Colors come from the Pivot logo: teal "PIVOT" + orange "V".
   Logical properties (inline-start/end) are used so Arabic (RTL) flips automatically.
   ========================================================================== */
:root {
    --primary: #0a6e67;
    --primary-dark: #075049;
    --primary-soft: #e6f2f1;
    --accent: #f7a21b;
    --accent-dark: #df8a04;
    --dark: #0b2524;
    --dark-2: #102f2e;
    --heading: #0f1f1f;
    --text: #5d6b6b;
    --border: #e3eae9;
    --soft: #f4f8f7;
    --white: #fff;
    --font-heading: "Hind", "Segoe UI", sans-serif;
    --font-body: "Mulish", "Segoe UI", sans-serif;
    --shadow: 0 20px 50px rgba(11, 37, 36, .08);
    --shadow-lg: 0 30px 70px rgba(11, 37, 36, .14);
    --radius: 6px;
    --header-h: 120px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

.lang-ar {
    --font-heading: "Cairo", "Segoe UI", sans-serif;
    --font-body: "Cairo", "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
    background: var(--white);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading);
    font-weight: 700;
    line-height: 1.25;
}
a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }
.text-accent { color: var(--accent); }
.flip-rtl { display: inline-block; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.skip-link { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2000; background: var(--accent); color: var(--dark); padding: 8px 14px; }

.section { padding: 110px 0; position: relative; }
.section-sm { padding: 80px 0; }
.bg-soft { background: var(--soft); }
.bg-dark-pv { background: var(--dark); }

/* ---------- Buttons ---------- */
.btn-pv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 16px 34px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn-pv::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
    z-index: -1;
}
.btn-pv:hover { color: var(--white); border-color: var(--primary); }
.btn-pv:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-outline-pv { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-pv:hover { color: var(--white); }
.btn-dark-pv { background: var(--dark); border-color: var(--dark); color: var(--white); }
.btn-dark-pv::before { background: var(--primary); }
.btn-sm-pv { padding: 10px 20px; font-size: 12px; }
.link-more {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.link-more i { transition: transform .3s; }
.link-more:hover i { transform: translateX(4px); }
[dir="rtl"] .link-more:hover i { transform: scaleX(-1) translateX(4px); }

/* ---------- Section titles ---------- */
.section-title { margin-bottom: 50px; max-width: 720px; }
.section-title.centered { margin-inline: auto; }
.section-title .subtitle,
.subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 14px;
}
.subtitle::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.section-title.centered .subtitle::after { content: ""; width: 34px; height: 2px; background: var(--accent); }
.section-title h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 0; }
.section-title.light h2 { color: var(--white); }
.section-title.light .subtitle, .subtitle.light { color: var(--accent); }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.section-head .section-title { margin-bottom: 0; }

/* ---------- Rich text from the admin editor ---------- */
.rich-text p { margin-bottom: 1.1em; }
.rich-text h2, .rich-text h3 { margin: 1.4em 0 .6em; font-size: 24px; }
.rich-text ul { padding: 0; list-style: none; margin-bottom: 1.2em; }
.rich-text ul li { position: relative; padding-inline-start: 32px; margin-bottom: 10px; }
.rich-text ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-soft);
}
.rich-text ul li::after {
    content: "";
    position: absolute;
    inset-inline-start: 7px;
    top: 10px;
    width: 6px;
    height: 10px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.check-list.two-cols ul { columns: 2; column-gap: 30px; }
.check-list.two-cols li { break-inside: avoid; }
.rich-text a { text-decoration: underline; }
.lead-text { font-size: 19px; color: var(--heading); }

/* ---------- Header ---------- */
.site-header {
    display: grid;
    grid-template-columns: 290px 1fr;
    background: var(--white);
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 30px rgba(11, 37, 36, .06);
}
.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 34px;
    background: var(--white);
    border-inline-end: 1px solid var(--border);
    position: relative;
}
.header-brand::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.header-brand img { max-height: 84px; width: auto; }
.topbar {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 46px;
    padding-inline: 40px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.topbar-welcome { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-info { display: flex; gap: 26px; }
.topbar-info a, .topbar-info span { color: var(--text); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-info i { color: var(--accent); }
.topbar-social {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding-inline: 30px;
    background: var(--primary-soft);
}
.topbar-social a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--dark);
    border-radius: 50%;
    transition: background .25s, color .25s;
}
.topbar-social a:hover { background: var(--primary); color: var(--white); }
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    padding-inline: 40px 30px;
}
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-links > li > a {
    color: var(--heading);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 14px;
    position: relative;
}
.nav-links > li > a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    inset-inline-start: 14px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary); }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 22px; }
.has-dropdown > a { padding-inline-end: 26px !important; }
.has-dropdown > a::before {
    content: "";
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-70%) rotate(45deg);
}
.dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 270px;
    background: var(--white);
    list-style: none;
    padding: 14px 0;
    margin: 0;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: block;
    padding: 9px 26px;
    color: var(--heading);
    font-size: 15px;
    transition: padding .25s, color .25s;
}
.dropdown a:hover { color: var(--primary); padding-inline-start: 32px; }
.nav-actions { display: flex; align-items: center; gap: 26px; }
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: "Cairo", var(--font-heading);
    font-weight: 700;
    color: var(--heading);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 6px 16px;
    transition: all .25s;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.call-box { display: flex; align-items: center; gap: 12px; color: var(--heading); }
.call-icon {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--dark);
    display: grid;
    place-items: center;
    font-size: 20px;
    position: relative;
}
.call-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: ripple 2s infinite;
}
@keyframes ripple { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.call-text { display: flex; flex-direction: column; line-height: 1.3; }
.call-text small { font-size: 13px; color: var(--text); }
.call-text strong { font-family: var(--font-heading); font-size: 18px; }
.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 9px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--dark); border-radius: 2px; }
.menu-toggle span:nth-child(2) { width: 70%; margin-inline-start: auto; }

/* sticky header */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    inset-inline: 0;
    animation: slideDown .45s var(--ease);
}
.site-header.is-sticky .topbar { display: none; }
.site-header.is-sticky .header-brand img { max-height: 54px; }
.site-header.is-sticky .header-brand { padding-block: 10px; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* mobile menu */
.mobile-menu { max-width: 340px; }
.mobile-logo { max-height: 56px; }
.mobile-links { list-style: none; padding: 0; margin: 0; }
.mobile-links a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: var(--heading);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 17px;
}
.mobile-links a.active { color: var(--primary); }
.mobile-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.mobile-contact a { color: var(--text); }
.mobile-menu .topbar-social { background: none; padding: 0; height: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); }
.hero-swiper { height: clamp(560px, calc(100vh - var(--header-h)), 780px); }
.hero-slide { position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    transition: transform 7s linear;
}
.swiper-slide-active .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(8, 36, 35, .88) 0%, rgba(8, 36, 35, .62) 55%, rgba(8, 36, 35, .45) 100%);
}
[dir="rtl"] .hero-overlay { background: linear-gradient(-100deg, rgba(8, 36, 35, .88) 0%, rgba(8, 36, 35, .62) 55%, rgba(8, 36, 35, .45) 100%); }
.hero-shape { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.hero-shape-left {
    inset-inline-start: 0;
    width: 32%;
    background: linear-gradient(180deg, rgba(10, 110, 103, .55), rgba(10, 110, 103, .15));
    clip-path: polygon(0 0, 55% 0, 100% 100%, 0 100%);
}
[dir="rtl"] .hero-shape-left { clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); }
.hero-shape-right {
    inset-inline-end: 0;
    width: 26%;
    background: linear-gradient(200deg, rgba(247, 162, 27, .55), rgba(247, 162, 27, 0) 70%);
    clip-path: polygon(0 0, 100% 0, 100% 55%);
}
[dir="rtl"] .hero-shape-right { clip-path: polygon(0 0, 100% 0, 0 55%); }
.hero-lines {
    position: absolute;
    inset-inline-end: 4%;
    bottom: 0;
    width: 220px;
    height: 260px;
    background: repeating-linear-gradient(120deg, transparent 0 14px, rgba(255, 255, 255, .25) 14px 15px);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
    opacity: .7;
}
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); }
.hero-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 20px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .6);
    margin-bottom: 26px;
}
.lang-ar .hero-subtitle { letter-spacing: 0; }
.hero-title {
    color: var(--white);
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.02;
    margin: 0 auto 40px;
    max-width: 1000px;
}
.lang-ar .hero-title { line-height: 1.35; text-transform: none; }
.hero-title .text-accent { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; text-transform: none; }
.lang-ar .hero-title .text-accent { font-family: inherit; font-style: normal; font-weight: 700; }
.hero-subtitle, .hero-title, .hero-content .btn-pv { opacity: 0; transform: translateY(40px); }
.swiper-slide-active .hero-subtitle, .swiper-slide-active .hero-title, .swiper-slide-active .hero-content .btn-pv {
    opacity: 1;
    transform: none;
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.swiper-slide-active .hero-title { transition-delay: .25s; }
.swiper-slide-active .hero-content .btn-pv { transition-delay: .5s, .5s, 0s, 0s; }
.hero-nav {
    position: absolute;
    inset-inline-end: 6%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero-nav button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .8);
    background: transparent;
    color: var(--white);
    font-size: 20px;
    transition: all .3s;
}
.hero-nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.hero-pagination.swiper-pagination-bullets { bottom: 30px; }
.hero-pagination .swiper-pagination-bullet { background: var(--white); opacity: .5; width: 10px; height: 10px; }
.hero-pagination .swiper-pagination-bullet-active { background: var(--accent); opacity: 1; width: 30px; border-radius: 5px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    position: relative;
    padding: 110px 0 100px;
    background: var(--dark) url("/uploads/seed/hero/solar-plant.jpg") center / cover no-repeat;
    overflow: hidden;
    text-align: center;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(8, 36, 35, .93), rgba(8, 36, 35, .75));
}
.page-header-shape {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 30%;
    background: rgba(10, 110, 103, .45);
    clip-path: polygon(0 0, 60% 0, 100% 100%, 0 100%);
}
.page-header::after {
    content: "";
    position: absolute;
    inset-inline-end: 6%;
    bottom: 0;
    width: 180px;
    height: 100%;
    background: repeating-linear-gradient(120deg, transparent 0 14px, rgba(247, 162, 27, .35) 14px 15px);
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); font-size: clamp(34px, 4.5vw, 58px); margin-bottom: 18px; }
.crumbs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 10px 24px; margin: 0; background: rgba(255, 255, 255, .08); border-radius: 30px; }
.crumbs li { color: rgba(255, 255, 255, .75); display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--accent); }
.crumbs a { color: var(--white); }
.crumbs a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about-media { position: relative; padding-inline-end: 60px; padding-bottom: 60px; }
.about-img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-media::before {
    content: "";
    position: absolute;
    inset-inline-end: 20px;
    bottom: 20px;
    width: 65%;
    height: 70%;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    z-index: -1;
}
.about-badge {
    position: absolute;
    top: 30px;
    inset-inline-end: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: grid;
    place-items: center;
}
.badge-text { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 18s linear infinite; }
.badge-text text { font-family: "Hind", sans-serif; font-size: 15.5px; font-weight: 700; letter-spacing: 2.4px; fill: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-center {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}
.badge-center strong { font-family: var(--font-heading); font-size: 24px; }
.badge-center small { font-size: 12px; opacity: .8; }
.about-exp {
    position: absolute;
    bottom: 0;
    inset-inline-start: 30px;
    background: var(--accent);
    color: var(--dark);
    padding: 24px 30px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    max-width: 300px;
}
.about-exp strong { font-family: var(--font-heading); font-size: 46px; line-height: 1; }
.about-exp span { font-weight: 700; line-height: 1.3; }

/* ---------- Services ---------- */
.services-section .section-decor {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 40%;
    height: 100%;
    background: repeating-linear-gradient(120deg, transparent 0 22px, rgba(10, 110, 103, .05) 22px 23px);
    pointer-events: none;
}
.service-card {
    position: relative;
    height: 100%;
    padding: 46px 38px 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
    z-index: 1;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--primary), var(--primary-dark));
    transform: translateY(101%);
    transition: transform .5s var(--ease);
    z-index: -1;
}
.service-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    transition: width .45s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: translateY(0); }
.service-card:hover::after { width: 100%; }
.service-num {
    position: absolute;
    top: 22px;
    inset-inline-end: 28px;
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    transition: -webkit-text-stroke-color .4s;
}
.service-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 34px;
    margin-bottom: 28px;
    transition: all .45s var(--ease);
}
.service-card h3 { font-size: 23px; margin-bottom: 14px; }
.service-card h3 a { color: var(--heading); }
.service-card p { margin-bottom: 20px; }
.service-card h3 a, .service-card p, .service-card .link-more { transition: color .4s; }
.service-card:hover .service-icon { background: var(--accent); color: var(--dark); transform: rotateY(180deg); }
.service-card:hover h3 a, .service-card:hover .link-more { color: var(--white); }
.service-card:hover p { color: rgba(255, 255, 255, .82); }
.service-card:hover .service-num { -webkit-text-stroke-color: rgba(255, 255, 255, .3); }

/* ---------- Stats ---------- */
.stats-band {
    position: relative;
    padding: 80px 0;
    background: var(--primary);
    overflow: hidden;
}
.stats-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(120deg, transparent 0 26px, rgba(255, 255, 255, .05) 26px 27px);
}
.stat-item { position: relative; text-align: center; color: var(--white); }
.stat-item i { font-size: 40px; color: var(--accent); display: block; margin-bottom: 8px; }
.stat-number { font-family: "Hind", sans-serif; font-weight: 700; font-size: clamp(38px, 4vw, 54px); line-height: 1.1; }
.stat-item p { margin: 6px 0 0; color: rgba(255, 255, 255, .85); font-weight: 600; }

/* ---------- What we do ---------- */
.wwd-media { position: relative; padding: 0 0 40px; padding-inline-start: 40px; }
.wwd-media::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 70%;
    height: 80%;
    background: var(--accent);
    border-radius: var(--radius);
}
.wwd-media img { position: relative; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Projects ---------- */
.project-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -10px 0 46px; }
.project-filter button {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--heading);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 9px 24px;
    border-radius: 30px;
    transition: all .3s;
}
.bg-dark-pv .project-filter button { color: var(--white); border-color: rgba(255, 255, 255, .2); }
.project-filter button:hover, .project-filter button.active { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.project-col { transition: opacity .35s, transform .35s; }
.project-col.is-hidden { display: none; }
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); height: 100%; }
.project-thumb { display: block; aspect-ratio: 4 / 3.3; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.1); }
.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 36, 35, .85) 0%, rgba(8, 36, 35, 0) 55%);
    pointer-events: none;
}
.project-info {
    position: absolute;
    inset-inline: 22px;
    bottom: 22px;
    z-index: 2;
    padding-inline-end: 64px;
}
.project-cat {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 12px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.project-info h3 { font-size: 21px; margin: 0; }
.project-info h3 a { color: var(--white); }
.project-info h3 a:hover { color: var(--accent); }
.project-arrow {
    position: absolute;
    inset-inline-end: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 20px;
    transform: scale(0);
    transition: transform .4s var(--ease), background .3s;
}
[dir="rtl"] .project-arrow i { transform: scaleX(-1); }
.project-card:hover .project-arrow { transform: scale(1); }
.project-arrow:hover { background: var(--accent); color: var(--dark); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; position: relative; padding-top: 10px; }
.timeline::before {
    content: "";
    position: absolute;
    top: 72px;
    inset-inline: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary) 0 10px, transparent 10px 18px);
}
.timeline-item { position: relative; text-align: center; padding: 0 6px; }
.timeline-year { display: block; font-family: "Hind", sans-serif; font-weight: 700; font-size: 40px; color: var(--accent); line-height: 1.2; margin-bottom: 14px; }
.timeline-dot {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--white);
    border: 5px solid var(--primary);
    position: relative;
    z-index: 1;
    transition: transform .3s;
}
.timeline-item:hover .timeline-dot { transform: scale(1.3); border-color: var(--accent); }
.timeline-item h3 { font-size: 20px; margin-bottom: 8px; }
.timeline-item p { font-size: 15px; margin: 0; }

/* ---------- Call to action ---------- */
.cta-band { position: relative; background: var(--accent); padding: 70px 0; overflow: hidden; }
.cta-lines {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 45%;
    background: repeating-linear-gradient(120deg, transparent 0 18px, rgba(11, 37, 36, .08) 18px 19px);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner .subtitle { color: var(--dark); }
.cta-inner .subtitle::before { background: var(--dark); }
.cta-inner h2 { font-size: clamp(26px, 3vw, 40px); margin: 0; max-width: 620px; }
.cta-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-phone { display: flex; align-items: center; gap: 14px; color: var(--dark); }
.cta-phone .call-icon { background: var(--dark); color: var(--accent); }
.cta-phone .call-icon::after { border-color: var(--dark); }
.cta-phone small { display: block; font-weight: 600; }
.cta-phone strong { font-family: var(--font-heading); font-size: 22px; }

/* ---------- News ---------- */
.news-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-thumb { position: relative; display: block; aspect-ratio: 16 / 10.5; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.08); }
.news-date {
    position: absolute;
    bottom: 0;
    inset-inline-start: 26px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
    text-align: center;
    line-height: 1.1;
    border-radius: var(--radius) var(--radius) 0 0;
}
.news-date strong { display: block; font-family: "Hind", sans-serif; font-size: 26px; }
.news-date small { font-size: 12px; text-transform: uppercase; }
.news-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 21px; margin-bottom: 12px; }
.news-body h3 a { color: var(--heading); }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { flex: 1; }

/* ---------- Clients ---------- */
.clients-section { border-top: 1px solid var(--border); }
.client-logo {
    display: grid;
    place-items: center;
    height: 120px;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .3s, box-shadow .3s;
}
.client-logo img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .35s, opacity .35s; }
.client-logo:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.client-logo:hover img { filter: none; opacity: 1; }

/* ---------- About page ---------- */
.value-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; border-bottom: 4px solid var(--accent); }
.value-thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.value-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.value-card:hover .value-thumb img { transform: scale(1.06); }
.value-body { padding: 30px; }
.value-body h3 { font-size: 24px; margin-bottom: 14px; }
.quote-box { position: relative; padding: 40px 44px; background: var(--primary-soft); border-inline-start: 4px solid var(--primary); border-radius: var(--radius); font-size: 17px; }
.quote-box p:last-child { margin: 0; }

/* ---------- Team ---------- */
.team-card { text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; }
.team-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: linear-gradient(150deg, var(--primary), var(--dark)); display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials { font-family: "Hind", sans-serif; font-size: 72px; font-weight: 700; color: var(--accent); }
.team-social { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; transform: translateY(70px); transition: transform .4s var(--ease); }
.team-card:hover .team-social { transform: none; }
.team-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--dark); display: grid; place-items: center; }
.team-body { padding: 24px; }
.team-body h3 { font-size: 21px; margin-bottom: 4px; }
.team-body span { color: var(--primary); font-weight: 700; }
.team-body p { font-size: 15px; margin: 12px 0 0; }

/* ---------- Certificates ---------- */
.cert-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; }
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.cert-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--soft); padding: 14px; }
.cert-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cert-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 110, 103, .75); color: var(--white); font-size: 34px; opacity: 0; transition: opacity .3s; }
.cert-thumb:hover .cert-zoom { opacity: 1; }
.cert-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cert-body h3 { font-size: 17px; margin: 0; flex: 1; }

/* ---------- Detail pages ---------- */
.detail-hero-img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); margin-bottom: 34px; }
.detail-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: var(--dark); display: grid; place-items: center; font-size: 30px; margin-bottom: 18px; }
.detail-title { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.post-meta { color: var(--primary); font-weight: 700; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.side-widget { background: var(--soft); border-radius: var(--radius); padding: 32px 30px; margin-bottom: 30px; }
.side-widget h4 { font-size: 22px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--border); position: relative; }
.side-widget h4::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 0; width: 50px; height: 2px; background: var(--accent); }
.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.side-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    color: var(--heading);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all .3s;
}
.side-list a:hover, .side-list a.active { background: var(--primary); color: var(--white); }
.help-widget { background: linear-gradient(160deg, var(--primary), var(--dark)); color: var(--white); padding: 40px 30px; border-radius: var(--radius); text-align: center; margin-bottom: 30px; }
.help-widget > i { font-size: 46px; color: var(--accent); }
.help-widget h4 { color: var(--white); font-size: 26px; margin: 12px 0 8px; }
.help-widget p { color: rgba(255, 255, 255, .8); }
.help-phone { display: block; color: var(--accent); font-family: "Hind", sans-serif; font-size: 24px; font-weight: 700; }
.help-phone:hover { color: var(--white); }
.download-widget { display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: var(--accent); color: var(--dark); font-family: var(--font-heading); font-weight: 700; border-radius: var(--radius); }
.download-widget i { font-size: 34px; }
.download-widget:hover { background: var(--dark); color: var(--white); }
.project-facts { background: var(--white); box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 34px 30px; position: sticky; top: 110px; }
.project-facts h4 { font-size: 22px; margin-bottom: 18px; }
.project-facts ul { list-style: none; padding: 0; margin: 0 0 26px; }
.project-facts li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.project-facts li i { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 18px; }
.project-facts small { display: block; color: var(--text); font-size: 13px; }
.project-facts strong { color: var(--heading); font-family: var(--font-heading); }
.gallery-title { margin: 60px 0 26px; font-size: 28px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 110, 103, .7); color: var(--white); font-size: 26px; opacity: 0; transition: opacity .3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover span { opacity: 1; }
.recent-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.recent-posts a { display: flex; gap: 14px; align-items: center; color: var(--heading); font-family: var(--font-heading); font-weight: 600; line-height: 1.35; }
.recent-posts img { width: 80px; height: 70px; object-fit: cover; border-radius: var(--radius); flex: none; }
.recent-posts small { display: block; color: var(--primary); font-family: var(--font-body); font-size: 13px; }

/* ---------- Contact ---------- */
.contact-card { text-align: center; padding: 44px 30px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); height: 100%; border-bottom: 3px solid transparent; transition: border-color .3s, transform .3s; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-6px); }
.contact-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--primary); color: var(--white); display: inline-grid; place-items: center; font-size: 30px; margin-bottom: 20px; }
.contact-card h3 { font-size: 22px; }
.contact-card p { margin: 0 0 4px; }
.contact-card p a { color: var(--text); }
.contact-form .form-control { border: 1px solid var(--border); background: var(--soft); border-radius: var(--radius); padding: 15px 20px; font-size: 15px; }
.contact-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 110, 103, .12); background: var(--white); }
.contact-form .input-validation-error { border-color: #dc3545; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-box { height: 100%; min-height: 460px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-box iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------- Error ---------- */
.error-page { padding: 130px 0; }
.error-code { font-family: "Hind", sans-serif; font-weight: 700; font-size: clamp(110px, 18vw, 200px); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--primary); }
.error-page h1 { font-size: 36px; margin: 20px 0 10px; }
.error-page p { margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--dark); color: rgba(255, 255, 255, .72); padding-top: 100px; overflow: hidden; }
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 35%;
    height: 100%;
    background: repeating-linear-gradient(120deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 23px);
}
.site-footer .container { position: relative; }
.footer-logo { display: inline-block; background: var(--white); padding: 12px 18px; border-radius: var(--radius); margin-bottom: 22px; }
.footer-logo img { max-height: 64px; }
.footer-title { color: var(--white); font-size: 21px; margin-bottom: 26px; padding-bottom: 14px; position: relative; }
.footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 40px; height: 2px; background: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, .72); transition: color .25s, padding .25s; }
.footer-links a:hover { color: var(--accent); padding-inline-start: 6px; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 14px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { color: var(--accent); font-size: 18px; }
.footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-contact a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: var(--white); display: grid; place-items: center; transition: all .3s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.footer-bottom { margin-top: 70px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; text-align: center; position: relative; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
    transition: transform .3s;
}
.whatsapp-float:hover { color: var(--white); transform: scale(1.08); }
.back-to-top {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 900;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: var(--white);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .35s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); color: var(--dark); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .badge-text, .call-icon::after { animation: none; }
    .hero-bg { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1399.98px) {
    .site-header { grid-template-columns: 240px 1fr; }
    .topbar-welcome { display: none; }
    .topbar { justify-content: flex-end; }
    .nav-links > li > a { padding: 8px 10px; font-size: 15px; }
    .call-text { display: none; }
}
@media (max-width: 1199.98px) {
    :root { --header-h: 84px; }
    .site-header { grid-template-columns: auto 1fr; }
    .header-brand { padding: 12px 20px; border: 0; }
    .header-brand img { max-height: 60px; }
    .topbar { display: none; }
    .nav-links { display: none; }
    .main-nav { height: 84px; padding-inline: 10px 20px; justify-content: flex-end; }
    .menu-toggle { display: flex; }
    .nav-actions { gap: 16px; }
    .call-icon { width: 46px; height: 46px; font-size: 18px; }
}
@media (max-width: 991.98px) {
    .section { padding: 80px 0; }
    .about-media { padding-inline-end: 30px; }
    .hero-nav { display: none; }
    .project-facts { position: static; }
}
@media (max-width: 767.98px) {
    .section { padding: 64px 0; }
    .section-sm { padding: 56px 0; }
    .lang-switch span, .nav-actions .lang-switch { padding: 6px 12px; font-size: 14px; }
    .about-badge { width: 120px; height: 120px; top: 14px; }
    .badge-center { width: 62px; height: 62px; }
    .badge-center strong { font-size: 18px; }
    .about-exp { padding: 16px 20px; inset-inline-start: 12px; }
    .about-exp strong { font-size: 34px; }
    .check-list.two-cols ul { columns: 1; }
    .timeline { grid-template-columns: 1fr; gap: 10px; }
    .timeline::before { top: 0; bottom: 0; inset-inline-start: 11px; inset-inline-end: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--primary) 0 10px, transparent 10px 18px); }
    .timeline-item { text-align: start; padding-inline-start: 48px; padding-bottom: 20px; }
    .timeline-dot { position: absolute; inset-inline-start: 0; top: 10px; margin: 0; }
    .timeline-year { font-size: 30px; margin-bottom: 4px; }
    .cta-actions { width: 100%; justify-content: space-between; }
    .page-header { padding: 80px 0 70px; }
    .whatsapp-float { width: 52px; height: 52px; font-size: 26px; bottom: 18px; inset-inline-start: 18px; }
    .back-to-top { bottom: 18px; inset-inline-end: 18px; }
}
@media (max-width: 575.98px) {
    .call-box { display: none; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 15px; }
}
