/* ============================================================
   Shvan Company — modern design system v2
   RTL-ready via CSS logical properties. Fonts/colors come from
   :root variables injected by the layout (DB-driven).
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #122f4e;
    --primary-2: #1d4e7e;
    --primary-dark: #0b1f35;
    --gold: #c6a87d;
    --gold-light: #e6cfa5;
    --gold-dark: #a98a5b;
    --ink: #1c2430;
    --muted: #64748b;
    --bg: #f6f8fb;
    --card: #ffffff;
    --line: #e6e9ee;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 12px rgba(13, 30, 51, .06);
    --shadow: 0 14px 44px rgba(13, 30, 51, .13);
    --shadow-lg: 0 26px 80px rgba(13, 30, 51, .2);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --spring: cubic-bezier(.34, 1.4, .5, 1);
    --font-main: 'Inter', sans-serif;
    --header-h: 74px;
    --grad-gold: linear-gradient(120deg, var(--gold), var(--gold-light));
    --grad-navy: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-2) 100%);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
    font-family: var(--font-main);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--primary); }

.skip-link {
    position: absolute; inset-inline-start: -999px; top: 0; z-index: 2000;
    background: var(--gold); color: #fff; padding: 8px 16px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { inset-inline-start: 12px; }

/* ---------------- Scroll progress + back to top ---------------- */
.scroll-progress {
    position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0;
    background: var(--grad-gold); z-index: 1200; border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(198, 168, 125, .6);
}

.back-top {
    position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1100;
    width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--grad-navy); color: var(--gold-light); font-size: 1.05rem;
    box-shadow: 0 10px 26px rgba(11, 31, 53, .4);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: all .35s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11, 31, 53, .5); }

/* ---------------- Header ---------------- */
.site-header {
    position: fixed; inset-inline: 0; top: 0; z-index: 1000;
    background: rgba(18, 47, 78, .5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(11, 31, 53, .94); box-shadow: 0 6px 26px rgba(0, 0, 0, .22); }

.header-inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { height: 44px; width: auto; object-fit: contain; }
.site-header .brand-name { color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: .3px; white-space: nowrap; }

.main-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.main-nav a {
    color: rgba(255, 255, 255, .85); font-weight: 500; font-size: .94rem;
    padding: 8px 13px; border-radius: 999px; transition: all .25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255, 255, 255, .1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(198, 168, 125, .55);
    color: #fff; padding: 8px 14px; border-radius: 999px; cursor: pointer;
    font-size: .9rem; font-weight: 600; transition: all .25s var(--ease);
}
.lang-btn:hover { background: rgba(198, 168, 125, .28); }
.lang-btn .chev { font-size: .65rem; transition: transform .25s var(--ease); }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }

.lang-menu {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 165px;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
    transition: all .28s var(--spring); z-index: 1001;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-item {
    display: block; padding: 10px 14px; border-radius: 9px; color: var(--ink);
    font-weight: 600; font-size: .95rem; transition: background .2s, padding .2s;
}
.lang-item:hover { background: var(--bg); padding-inline-start: 18px; }
.lang-item.active { color: var(--gold-dark); background: rgba(198, 168, 125, .13); }

/* Burger + mobile nav */
.burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; cursor: pointer; padding: 10px;
}
.burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: all .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none; flex-direction: column; gap: 4px;
    background: rgba(11, 31, 53, .98); backdrop-filter: blur(14px);
    padding: 0 20px; visibility: hidden;
    max-height: 0; overflow: hidden;
    transition: max-height .38s var(--ease), padding .38s var(--ease), visibility .38s;
}
.mobile-nav.open { max-height: 620px; padding: 12px 20px 24px; visibility: visible; }
.mobile-nav a {
    color: rgba(255, 255, 255, .9); font-weight: 600; font-size: 1.05rem;
    padding: 12px 10px; border-radius: 10px;
    display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav a::after { content: '›'; color: var(--gold); opacity: .7; }
[dir="rtl"] .mobile-nav a::after { content: '‹'; }
.mobile-nav a:hover { background: rgba(255, 255, 255, .08); }
.mobile-langs { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.mobile-lang {
    flex: 1; text-align: center; justify-content: center !important; padding: 11px !important;
    border: 1px solid rgba(198, 168, 125, .5); border-radius: 12px !important; font-size: .95rem !important;
}
.mobile-lang::after { display: none; }
.mobile-lang.active { background: var(--grad-gold) !important; color: #10253d !important; border-color: var(--gold); }

@media (max-width: 1020px) {
    .main-nav { display: none; }
    .burger { display: flex; }
    .mobile-nav { display: flex; }
    .header-actions { margin-inline-start: auto; }
    .site-header .brand-name { font-size: .98rem; }
    .lang-btn span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) {
    .site-header .brand-name { display: none; }
    .brand-logo { height: 40px; }
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: .95rem;
    border: none; cursor: pointer; transition: all .3s var(--ease); line-height: 1.2;
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; top: 0; height: 100%; width: 46%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    inset-inline-start: -60%; transform: skewX(-20deg);
    transition: inset-inline-start .55s var(--ease);
}
.btn:hover::after { inset-inline-start: 120%; }
.btn-gold { background: var(--grad-gold); color: #10253d; box-shadow: 0 10px 26px rgba(198, 168, 125, .4); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(198, 168, 125, .55); }
.btn-outline { background: rgba(255, 255, 255, .06); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; transform: translateY(-3px); }
.btn-primary { background: var(--grad-navy); color: #fff; box-shadow: 0 10px 26px rgba(18, 47, 78, .32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(18, 47, 78, .42); }
.btn-ghost { background: rgba(18, 47, 78, .07); color: var(--primary); }
.btn-ghost:hover { background: rgba(18, 47, 78, .13); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }

/* ---------------- Sections & headers ---------------- */
section { padding-block: 96px; position: relative; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; position: relative; z-index: 1; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gold-dark); font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; font-size: .78rem; margin-bottom: 14px;
}
.kicker::before, .kicker::after { content: ''; width: 28px; height: 2px; background: var(--grad-gold); border-radius: 2px; }
.section-head h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 14px;
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Dark section variant (used for featured projects strip) */
.section-dark { background: var(--grad-navy); }
.section-dark::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(198, 168, 125, .12), transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(44, 122, 123, .14), transparent 40%);
}
.section-dark .section-head h2 { background: linear-gradient(120deg, #fff, #cfe0f2); -webkit-background-clip: text; background-clip: text; }
.section-dark .section-head p { color: rgba(255, 255, 255, .72); }
.section-dark .kicker { color: var(--gold-light); }

/* Soft tinted section (sectors) */
.section-tint {
    background:
        radial-gradient(900px 420px at 8% 0%, rgba(13, 148, 136, .07), transparent 60%),
        radial-gradient(900px 420px at 92% 100%, rgba(198, 168, 125, .12), transparent 60%),
        linear-gradient(160deg, #f1f5fa 0%, #f8f4ec 55%, #f1f7f3 100%);
}
.section-tint::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(18, 47, 78, .08) 1px, transparent 1.5px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* Light section with gold aura (about / contact) */
.section-aura { background: var(--card); }
.section-aura::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(720px 340px at 100% 0%, rgba(198, 168, 125, .1), transparent 60%),
        radial-gradient(720px 340px at 0% 100%, rgba(29, 78, 126, .07), transparent 60%);
}

/* ---------------- Reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * {
    opacity: 0; transform: translateY(30px) scale(.96);
    transition: opacity .65s var(--ease), transform .65s var(--spring);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .42s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .49s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: .56s; }
.reveal-stagger.in > *:nth-child(n+10) { transition-delay: .62s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-stagger > *, .hero-badge, .hero h1, .hero p, .hero-actions {
        opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
    }
    .hero-bg img { animation: none !important; transform: none !important; }
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: center;
    padding-block: calc(var(--header-h) + 40px) 90px;
    background: var(--primary-dark); color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.07); animation: heroZoom 16s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% 108%, rgba(198, 168, 125, .22) 0%, transparent 55%),
        linear-gradient(180deg, rgba(11, 31, 53, .84) 0%, rgba(11, 31, 53, .5) 45%, rgba(11, 31, 53, .93) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(198, 168, 125, .16); border: 1px solid rgba(198, 168, 125, .45);
    color: #ecd9b8; padding: 8px 18px; border-radius: 999px;
    font-size: .85rem; font-weight: 600; margin-bottom: 26px;
    animation: fadeUp .8s var(--ease) both;
}
.hero h1 {
    color: #fff; font-size: clamp(2.1rem, 6vw, 4.2rem); font-weight: 800;
    letter-spacing: -.5px; margin-bottom: 22px; animation: fadeUp .8s .1s var(--ease) both;
}
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 640px; margin-bottom: 34px; animation: fadeUp .8s .2s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeUp .8s .3s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-scroll {
    position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .6); font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1;
}
[dir="rtl"] .hero-scroll { transform: translateX(50%); }
.hero-scroll i { animation: bounce 1.8s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.about-copy h3 { color: var(--gold-dark); font-size: 1.15rem; margin-bottom: 16px; font-weight: 700; }
.about-copy p { color: #3d4a5c; margin-bottom: 16px; font-size: 1.02rem; }
.about-media { position: relative; }
.about-media .frame {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3;
}
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-media:hover .frame img { transform: scale(1.05); }
.about-media::after {
    content: ''; position: absolute; inset-inline-end: -16px; bottom: -16px;
    width: 55%; height: 55%; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1;
}

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; position: relative; z-index: 1; }
.stat-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 18px; text-align: center; box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
    transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.stat-card::before {
    content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
    background: var(--grad-gold); transform: scaleX(0); transition: transform .35s var(--ease);
}
.stat-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card .num {
    font-size: 2.3rem; font-weight: 800; line-height: 1.1;
    background: linear-gradient(120deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .num .plus { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.stat-card .lbl { color: var(--muted); font-size: .92rem; margin-top: 6px; font-weight: 500; }

/* ---------------- Sectors ---------------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
.sector-card {
    background: var(--card); border-radius: var(--radius); padding: 30px 26px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .35s var(--spring), box-shadow .35s var(--ease), border-color .35s var(--ease);
    position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.sector-card::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
    background: var(--accent, var(--gold));
    transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.sector-card::after {
    content: ''; position: absolute; inset-inline-end: -46px; top: -46px; width: 130px; height: 130px;
    border-radius: 50%; background: color-mix(in srgb, var(--accent, var(--gold)) 9%, transparent);
    transition: transform .45s var(--ease);
}
.sector-card:hover { transform: translateY(-9px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent, var(--gold)) 35%, var(--line)); }
.sector-card:hover::before { transform: scaleY(1); }
.sector-card:hover::after { transform: scale(1.55); }
.sector-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent, var(--gold)) 13%, #fff);
    color: var(--accent, var(--gold)); font-size: 1.45rem; margin-bottom: 18px;
    position: relative; z-index: 1;
    transition: transform .4s var(--spring), background .3s;
}
.sector-card:hover .sector-icon { transform: scale(1.12) rotate(-6deg); background: var(--accent, var(--gold)); color: #fff; }
.sector-card h3 { font-size: 1.18rem; margin-bottom: 10px; position: relative; z-index: 1; }
.sector-card p { color: var(--muted); font-size: .95rem; flex: 1; position: relative; z-index: 1; }
.sector-card .count {
    margin-top: 16px; font-size: .85rem; font-weight: 700;
    color: var(--accent, var(--gold-dark)); display: inline-flex; align-items: center; gap: 7px;
    position: relative; z-index: 1;
}

/* ---------------- Project cards ---------------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
.project-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4 / 3.4; background: var(--primary-dark);
    box-shadow: var(--shadow-sm); display: block;
    transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.project-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-lg); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); opacity: .94; }
.project-card:hover img { transform: scale(1.08); }
.project-card .overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 22px;
    background: linear-gradient(180deg, transparent 28%, color-mix(in srgb, var(--accent, #091829) 26%, rgba(9, 24, 41, .74)) 78%, rgba(7, 19, 33, .95) 100%);
    transition: background .4s var(--ease);
}
.project-card .chip {
    align-self: flex-start; font-size: .72rem; letter-spacing: 1px; font-weight: 700; text-transform: uppercase;
    background: var(--accent, var(--gold)); color: #fff; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent, var(--gold)) 45%, transparent);
}
.project-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.project-card .meta { color: rgba(255, 255, 255, .78); font-size: .85rem; display: flex; gap: 14px; flex-wrap: wrap; }
.project-card .meta i { color: var(--gold); margin-inline-end: 5px; }
.project-card .go {
    position: absolute; top: 16px; inset-inline-end: 16px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
    color: #fff; display: grid; place-items: center; font-size: .85rem;
    opacity: 0; transform: translateY(-8px); transition: all .35s var(--ease);
}
.project-card:hover .go { opacity: 1; transform: none; background: var(--gold); color: #10253d; }
[dir="rtl"] .project-card .go i { transform: scaleX(-1); }

.projects-cta { text-align: center; margin-top: 44px; position: relative; z-index: 1; }

@media (max-width: 760px) {
    .project-grid.scroll-mobile {
        display: flex; overflow-x: auto; gap: 16px; padding-bottom: 14px;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    }
    .project-grid.scroll-mobile .project-card { flex: 0 0 82%; scroll-snap-align: center; }
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
    position: relative; padding-block: calc(var(--header-h) + 72px) 72px;
    background: var(--grad-navy); color: #fff; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 85% 20%, rgba(198, 168, 125, .16), transparent 42%),
        radial-gradient(circle at 8% 90%, rgba(44, 122, 123, .15), transparent 45%);
}
.page-hero .hero-bg img { opacity: .3; animation: none; transform: none; }
.page-hero .crumbs { position: relative; z-index: 1; font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-hero .crumbs a:hover { color: var(--gold); }
[dir="rtl"] .page-hero .crumbs i { transform: scaleX(-1); }
.page-hero h1 { position: relative; z-index: 1; color: #fff; font-size: clamp(1.8rem, 4.5vw, 3.1rem); animation: fadeUp .6s var(--ease) both; }
.page-hero .sub { position: relative; z-index: 1; color: rgba(255, 255, 255, .82); margin-top: 12px; max-width: 660px; font-size: 1.05rem; animation: fadeUp .6s .1s var(--ease) both; }
.page-hero .chips { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; animation: fadeUp .6s .18s var(--ease) both; }
.page-hero .chip {
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
.page-hero .chip i { color: var(--gold); margin-inline-end: 6px; }

/* ---------------- Project details ---------------- */
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; position: relative; z-index: 1; }
.detail-body h2 { font-size: 1.5rem; margin-bottom: 16px; }
.detail-body > p { color: #3d4a5c; font-size: 1.03rem; white-space: pre-line; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.feature-item {
    display: flex; gap: 14px; background: var(--card); padding: 18px;
    border-radius: var(--radius-sm); border: 1px solid var(--line);
    transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .3s;
}
.feature-item:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-sm);
    border-color: color-mix(in srgb, var(--accent, var(--gold)) 40%, var(--line));
}
.feature-item .fi {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.1rem;
    background: color-mix(in srgb, var(--accent, var(--gold)) 13%, #fff);
    color: var(--accent, var(--gold-dark));
    transition: transform .35s var(--spring);
}
.feature-item:hover .fi { transform: scale(1.12) rotate(-6deg); }
.feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { color: var(--muted); font-size: .88rem; }

.fact-card {
    background: var(--grad-navy); color: #fff; border-radius: var(--radius);
    padding: 28px; position: sticky; top: calc(var(--header-h) + 20px);
    overflow: hidden;
}
.fact-card::before {
    content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 160px; height: 160px;
    border-radius: 50%; background: radial-gradient(circle, rgba(198, 168, 125, .28), transparent 70%);
}
.fact-card h3 { color: var(--gold-light); font-size: 1.02rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; position: relative; }
.fact-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative; }
.fact-row:last-of-type { border-bottom: none; }
.fact-row .v { font-size: 1.3rem; font-weight: 800; color: #fff; }
.fact-row .k { color: rgba(255, 255, 255, .75); font-size: .9rem; text-align: end; }
.fact-card .btn { width: 100%; margin-top: 20px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; display: block; position: relative; box-shadow: var(--shadow-sm); }
.gallery-grid a::after {
    content: '\2b'; position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(11, 31, 53, .35); color: #fff; font-size: 1.6rem; font-weight: 300;
    opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; background: rgba(8, 18, 31, .93);
    display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; object-fit: contain; animation: lbIn .3s var(--spring); }
@keyframes lbIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.lightbox .close { position: absolute; top: 20px; inset-inline-end: 24px; background: rgba(255,255,255,.1); border: none; color: #fff; font-size: 1.4rem; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; }

/* ---------------- News ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad-navy); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.07); }
.news-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.news-card .date { color: var(--gold-dark); font-size: .82rem; font-weight: 700; }
.news-card h3 { font-size: 1.12rem; }
.news-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.news-card .more { color: var(--primary); font-weight: 700; font-size: .9rem; }

.empty-note {
    text-align: center; color: var(--muted); background: var(--card); border: 1.5px dashed var(--line);
    padding: 52px 20px; border-radius: var(--radius); font-size: 1.02rem;
}

.article { max-width: 780px; margin-inline: auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow); }
.article .body { font-size: 1.05rem; color: #33404f; white-space: pre-line; }

/* ---------------- Careers ---------------- */
.careers-band {
    background: var(--grad-navy);
    color: #fff; border-radius: calc(var(--radius) + 6px); padding: 48px 44px;
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
    position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.careers-band::before {
    content: ''; position: absolute; inset-inline-end: -70px; top: -70px; width: 280px; height: 280px;
    border-radius: 50%; background: radial-gradient(circle, rgba(198, 168, 125, .35), transparent 70%);
    animation: floatBlob 7s ease-in-out infinite alternate;
}
.careers-band::after {
    content: ''; position: absolute; inset-inline-start: -60px; bottom: -80px; width: 220px; height: 220px;
    border-radius: 50%; background: radial-gradient(circle, rgba(44, 122, 123, .3), transparent 70%);
    animation: floatBlob 9s ease-in-out infinite alternate-reverse;
}
@keyframes floatBlob { from { transform: translateY(0); } to { transform: translateY(22px); } }
.careers-band > * { position: relative; z-index: 1; }
.careers-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.careers-band p { color: rgba(255, 255, 255, .82); max-width: 560px; }

.workplace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.workplace-card {
    background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
    padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    position: relative; overflow: hidden;
    transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.workplace-card::before {
    content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px;
    background: var(--grad-gold); transform: scaleX(0); transition: transform .4s var(--ease);
}
.workplace-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.workplace-card:hover::before { transform: scaleX(1); }
.workplace-card .logo {
    width: 116px; height: 88px; display: grid; place-items: center; margin-bottom: 4px;
    transition: transform .4s var(--spring);
}
.workplace-card:hover .logo { transform: scale(1.08); }
.workplace-card .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.workplace-card .logo .ph { font-size: 2rem; color: var(--gold); }
.workplace-card h3 { font-size: 1.12rem; }
.workplace-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.badge-open, .badge-closed {
    font-size: .75rem; font-weight: 700; padding: 5px 13px; border-radius: 999px; letter-spacing: .4px;
    display: inline-flex; align-items: center; gap: 6px;
}
.badge-open { background: #e5f5ec; color: #157347; }
.badge-open i { animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.badge-closed { background: #f4f5f7; color: #8a94a3; }

/* Apply form */
.apply-shell { max-width: 860px; margin-inline: auto; position: relative; z-index: 1; }
.apply-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.apply-head { display: flex; align-items: center; gap: 18px; padding: 26px 30px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: linear-gradient(160deg, #fbfcfe, #f4f0e8); }
.apply-head .logo { width: 84px; height: 64px; display: grid; place-items: center; }
.apply-head .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.apply-head h1 { font-size: 1.35rem; }
.apply-head p { color: var(--muted); font-size: .92rem; }

.form-section { padding: 26px 30px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: none; }
.form-section > h3 {
    font-size: 1.02rem; color: var(--primary); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.form-section > h3 i {
    color: var(--gold-dark); background: rgba(198, 168, 125, .15);
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: .9rem;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: #2a3646; }
.form-field label .req { color: #d33; }
.form-field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }

.input, select.input, textarea.input {
    width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: .96rem; background: #fbfcfe; color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198, 168, 125, .16); background: #fff; }
textarea.input { min-height: 110px; resize: vertical; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: #fbfcfe; border: 1.5px solid var(--line); border-radius: 999px;
    cursor: pointer; font-size: .92rem; font-weight: 500;
    transition: all .22s var(--ease);
}
.choice:hover { border-color: var(--gold); transform: translateY(-2px); }
.choice input { accent-color: var(--gold-dark); }
.choice:has(input:checked) {
    background: rgba(198, 168, 125, .15); border-color: var(--gold); color: var(--primary); font-weight: 700;
    box-shadow: 0 4px 12px rgba(198, 168, 125, .22);
}

.file-drop {
    border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center;
    background: #fbfcfe; cursor: pointer; transition: all .25s var(--ease); position: relative;
}
.file-drop:hover, .file-drop.drag { border-color: var(--gold); background: rgba(198, 168, 125, .07); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop i { font-size: 1.6rem; color: var(--gold-dark); margin-bottom: 8px; transition: transform .3s var(--spring); }
.file-drop:hover i { transform: translateY(-3px) scale(1.1); }
.file-drop .fname { font-weight: 700; color: var(--primary); font-size: .9rem; word-break: break-all; }
.file-drop .fhint { font-size: .8rem; color: var(--muted); }

.form-actions { padding: 26px 30px; display: flex; justify-content: flex-end; background: #fbfcfe; }
.alert {
    padding: 15px 20px; border-radius: 12px; margin-bottom: 22px; font-size: .95rem; font-weight: 500;
    white-space: pre-line; animation: fadeUp .4s var(--ease);
}
.alert-error { background: #fdecec; color: #9f2626; border: 1px solid #f5c6c6; }
.alert-success { background: #e5f5ec; color: #135e39; border: 1px solid #bfe5d0; }

.success-panel {
    max-width: 560px; margin-inline: auto; text-align: center; background: var(--card);
    border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 54px 34px;
}
.success-panel .icon {
    width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%;
    background: #e5f5ec; color: #157347; display: grid; place-items: center; font-size: 2.3rem;
    animation: popIn .55s var(--spring) both;
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-panel h1 { font-size: 1.6rem; margin-bottom: 12px; }
.success-panel p { color: var(--muted); margin-bottom: 20px; }
.tracking-code {
    display: inline-block; background: var(--bg); border: 1.5px dashed var(--gold);
    padding: 12px 26px; border-radius: 12px; font-weight: 800; font-size: 1.15rem;
    color: var(--primary); letter-spacing: 1.5px; margin-bottom: 26px;
}

/* ---------------- Contact ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; position: relative; z-index: 1; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card {
    display: flex; gap: 16px; align-items: flex-start; background: var(--bg);
    padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(198, 168, 125, .5); }
.info-card .ic {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: rgba(198, 168, 125, .16); color: var(--gold-dark); font-size: 1.1rem;
    transition: all .35s var(--spring);
}
.info-card:hover .ic { background: var(--grad-gold); color: #10253d; transform: scale(1.08); }
.info-card h4 { font-size: .95rem; margin-bottom: 3px; }
.info-card p { color: var(--muted); font-size: .92rem; word-break: break-word; }
.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, .78); padding-block: 64px 0; position: relative; overflow: hidden; }
.site-footer::before {
    content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-footer::after {
    content: ''; position: absolute; inset-inline-end: -120px; bottom: -120px; width: 340px; height: 340px;
    border-radius: 50%; background: radial-gradient(circle, rgba(198, 168, 125, .1), transparent 70%);
    pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; position: relative; z-index: 1; }
.footer-brand .brand { margin-bottom: 16px; }
.site-footer .brand-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-brand p { font-size: .92rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: #fff; transition: all .3s var(--spring);
}
.socials a:hover { background: var(--grad-gold); color: #10253d; transform: translateY(-4px) scale(1.06); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 2.5px; background: var(--grad-gold); border-radius: 2px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .93rem; transition: color .2s, padding .25s var(--ease); }
.footer-col ul a:hover { color: var(--gold); padding-inline-start: 6px; }
.footer-contact li { display: flex; gap: 10px; font-size: .92rem; align-items: baseline; }
.footer-contact i { color: var(--gold); flex: 0 0 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .55); position: relative; z-index: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
    section { padding-block: 76px; }
    .sector-grid, .project-grid, .news-grid, .workplace-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .detail-layout { grid-template-columns: 1fr; }
    .fact-card { position: static; }
    .contact-layout { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    section { padding-block: 60px; }
    .container { padding-inline: 16px; }
    .section-head { margin-bottom: 40px; }
    .sector-grid, .news-grid, .workplace-grid, .feature-list, .form-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stats-band { gap: 12px; margin-top: 44px; }
    .stat-card { padding: 20px 12px; }
    .stat-card .num { font-size: 1.8rem; }
    .hero-actions .btn { width: 100%; }
    .careers-band { padding: 34px 22px; }
    .careers-band .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-section, .apply-head, .form-actions { padding-inline: 18px; }
    .form-actions .btn { width: 100%; }
    .contact-form { padding: 22px 18px; }
    .page-hero { padding-block: calc(var(--header-h) + 48px) 52px; }
    .detail-body h2 { font-size: 1.3rem; }
    .about-media::after { display: none; }
    .back-top { bottom: 16px; inset-inline-end: 16px; width: 44px; height: 44px; }
}

@media (max-width: 380px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .choice { padding: 9px 13px; font-size: .88rem; }
}
