/* =====================================================================
   ASAS Construction — shared stylesheet (site.css)
   One file for both languages: direction comes from <html dir>, so every
   rule below uses logical properties (inline-start/end) instead of left/right.
   Breakpoints: sm 640px · md 968px (nav collapses) · lg 1280px (container)
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #1a1410;
  --ink-soft: #2a2018;
  --ink-2: #14100c;
  --text: #1f1a15;
  --text-muted: #6b5d4a;
  --text-subtle: #857766;
  --gold: #c9a961;
  --gold-deep: #a88c5f;
  --gold-text: #8a6d3b;          /* 4.9:1 on white — the only gold allowed for small text on light */
  --gold-tint: rgba(201, 169, 97, 0.14);
  --gold-line: rgba(201, 169, 97, 0.45);
  --surface: #ffffff;
  --surface-2: #fbf8f1;
  --surface-3: #f4efe4;
  --border: #ece4d0;
  --border-strong: #d9ccae;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.74);
  --on-dark-faint: rgba(255, 255, 255, 0.09);
  --whatsapp: #128c7e;
  --danger: #b3261e;
  --overlay-hero: linear-gradient(135deg, rgba(26, 20, 16, 0.82) 0%, rgba(26, 20, 16, 0.55) 55%, rgba(168, 140, 95, 0.35) 100%);
  --gradient-gold: linear-gradient(135deg, #c9a961 0%, #a88c5f 100%);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-y: clamp(56px, 8vw, 104px);
  --gutter: clamp(16px, 4vw, 24px);
  --container: 1240px;
  --container-narrow: 760px;

  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px; --radius-pill: 999px;
  --shadow-sm: 0 2px 12px rgba(26, 20, 16, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 20, 16, 0.10);
  --shadow-lg: 0 24px 50px rgba(26, 20, 16, 0.18);
  --shadow-focus: 0 0 0 4px rgba(201, 169, 97, 0.38);

  --font-ar: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-en: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: var(--font-ar);
  --text-xs: 0.75rem; --text-sm: 0.8125rem; --text-base: 1rem; --text-md: 1.0625rem; --text-lg: 1.1875rem;
  --h4: 1.125rem;
  --h3: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --h1: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  --display: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  --leading-tight: 1.2; --leading-body: 1.75; --leading-loose: 1.9;
  --tracking-eyebrow: 0.18em; --tracking-caps: 0.06em;

  --dur: 0.25s; --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --z-nav: 100; --z-menu: 200; --z-float: 300; --z-modal: 400;
  --header-h: 112px;
}
[dir="ltr"] { --font-body: var(--font-en); }
[dir="rtl"] { --tracking-eyebrow: 0; --tracking-caps: 0; }   /* never track Arabic script */

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
main { overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body);
  color: var(--text); background: var(--surface); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: var(--leading-tight); color: var(--ink); font-weight: 800; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: var(--h1); font-weight: 900; }
h2 { font-size: var(--h2); font-weight: 900; }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, [role="button"], input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
select { background-color: var(--surface); color: var(--text); }
input, select, textarea { font: inherit; color: inherit; }
:target { scroll-margin-top: var(--header-h); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-xs); }
::selection { background: var(--gold); color: var(--ink); }
[lang="en"] { font-family: var(--font-en); }
[dir="rtl"] [lang="en"] { unicode-bidi: isolate; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000; padding: 10px 18px; background: var(--ink); color: var(--gold); font-weight: 700; border-radius: var(--radius-sm); transition: top 0.15s; }
.skip-link:focus { top: 12px; outline-color: #fff; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
section, .section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto var(--space-8); }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head p { font-size: var(--text-md); color: var(--text-muted); }
.section--dark .section-head p { color: var(--on-dark-muted); }
.section-tag, .eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--space-4);
  color: var(--gold-text); font-size: var(--text-sm); font-weight: 700; letter-spacing: var(--tracking-eyebrow);
}
[dir="ltr"] .section-tag, [dir="ltr"] .eyebrow { text-transform: uppercase; }
.section-tag::before, .section-tag::after, .eyebrow::before, .eyebrow::after { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 1px; }
.is-start .section-tag::before, .about-content .section-tag::before, .section-tag.is-start::before { display: none; }
.section--dark .section-tag, .section--dark .eyebrow, .gallery-head .section-tag { color: var(--gold); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ---------- 4. Header: top bar + nav ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-nav); }
.top-bar { background: var(--ink); color: var(--on-dark); font-size: var(--text-sm); padding-block: 7px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.top-bar .contact-info { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.top-bar .contact-info span { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-muted); }
.top-bar .contact-info a { color: inherit; }
.top-bar .contact-info a:hover { color: var(--gold); }
.top-bar .social { display: flex; align-items: center; gap: 4px; }
.top-bar .social a { color: var(--on-dark); width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); opacity: 0.8; }
.top-bar .social a:hover { opacity: 1; color: var(--gold); background: var(--on-dark-faint); }
.top-bar .social a svg { width: 15px; height: 15px; fill: currentColor; }
.lang-switch, .top-bar .social .lang-switch {
  display: inline-flex; align-items: center; gap: 6px; width: auto; height: 30px; padding: 0 12px; margin-inline-start: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-sm); color: #fff; font-size: 12px; font-weight: 700; opacity: 1;
  font-family: var(--font-en);
}
.lang-switch:hover, .top-bar .social .lang-switch:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lang-switch svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.icon-svg { width: 16px; height: 16px; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.site-nav, nav.site-nav { background: var(--surface); border-bottom: 2px solid var(--gold); box-shadow: var(--shadow-sm); padding-block: 12px; position: relative; }
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); list-style: none; }
.nav-links a { display: inline-block; padding: 8px 2px; color: var(--ink); font-weight: 700; font-size: 0.9375rem; position: relative; }
.nav-links a::after { content: ''; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--gold-text); }
.nav-links a.btn-cta { background: var(--gold); color: var(--ink); padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 800; }
.nav-links a.btn-cta::after { display: none; }
.nav-links a.btn-cta:hover { background: var(--ink); color: var(--gold); }
.asas-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 42px; flex: 0 0 auto; background: var(--gold); border-radius: var(--radius-sm); padding: 0 11px; }
.asas-burger span { display: block; height: 3px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur); }
.asas-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.asas-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.asas-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 968px) {
  :root { --header-h: 80px; }
  .top-bar .contact-info { display: none; }
  .top-bar .container { justify-content: center; }
  .logo img { height: 42px; }
  .asas-burger { display: flex; }
  .nav-links { display: none; }
  .nav-links.asas-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; inset-inline: 0;
    background: var(--surface); box-shadow: var(--shadow-lg); padding: 8px 0 12px; z-index: var(--z-menu); max-height: calc(100vh - 80px); overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .nav-links.asas-open li { list-style: none; }
  .nav-links.asas-open a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--surface-3); font-size: var(--text-md); }
  .nav-links.asas-open a::after { display: none; }
  .nav-links.asas-open a.btn-cta { margin: 10px var(--gutter) 0; text-align: center; border-bottom: 0; }
}

/* ---------- 5. Buttons ---------- */
.btn, .btn-primary, .btn-outline, .btn-ghost, .btn-dark, .submit-btn, .cta-row a, .btn-apply-big, .btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 50px; padding: 0.85em 2.1em;
  border: 2px solid transparent; border-radius: var(--radius-sm); font-weight: 800; font-size: var(--text-base); line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); white-space: nowrap;
}
.btn svg, .btn-primary svg, .btn-outline svg, .btn-ghost svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary, .submit-btn, .btn-submit, .btn-apply-big { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-primary:hover, .submit-btn:hover, .btn-submit:hover, .btn-apply-big:hover { background: var(--ink); border-color: var(--ink); color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: currentColor; color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn-dark, .cta-row a { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.btn-dark:hover, .cta-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.on-light .btn-outline, .section--light .btn-outline { color: var(--ink); }
.on-light .btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--block { width: 100%; }
/* .btn-cta outside the nav = primary gold button */
:not(.nav-links) > .btn-cta, .cta-section .btn-cta, .cta-band .btn-cta, .cta-banner .btn-cta, p > .btn-cta, div > .btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 50px; padding: 0.85em 2.1em; border: 2px solid var(--gold); border-radius: var(--radius-sm);
  background: var(--gold); color: var(--ink); font-weight: 800; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
:not(.nav-links) > .btn-cta:hover, .cta-section .btn-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active, .btn-primary:active, .btn-outline:active, .btn-ghost:active { transform: translateY(0); }
@media (max-width: 640px) {
  .hero-buttons, .cta-buttons, .hero-cta, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn-primary, .hero-buttons .btn-outline, .hero-buttons .btn-ghost, .cta-actions .btn-primary, .cta-actions .btn-outline { width: 100%; white-space: normal; }
}

/* ---------- 6. Home hero ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: center; min-height: max(640px, 88vh);
  padding: 0; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease-in-out; transform: scale(1.06); }
.hero-slide.active { opacity: 1; animation: kenburns 12s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-overlay { position: absolute; inset: 0; background: var(--overlay-hero); z-index: 1; }
.hero > .container { position: relative; z-index: 2; width: 100%; padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.hero-content { max-width: 820px; animation: fadeInUp 0.9s var(--ease) both; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; margin-bottom: var(--space-5); background: rgba(26, 20, 16, 0.45); border: 1px solid var(--gold); color: var(--gold); font-size: var(--text-sm); font-weight: 700; letter-spacing: var(--tracking-eyebrow); border-radius: var(--radius-xs); backdrop-filter: blur(4px); }
.hero h1 { color: #fff; margin-bottom: var(--space-5); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero h1 span { color: var(--gold); }
.hero p, .hero .hero-lead { font-size: var(--text-lg); line-height: var(--leading-loose); color: var(--on-dark-muted); max-width: 640px; margin-bottom: var(--space-6); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.award-badge { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px; margin-bottom: var(--space-6); background: rgba(26, 20, 16, 0.5); border: 1px solid var(--gold-line); border-inline-start: 4px solid var(--gold); border-radius: var(--radius-sm); backdrop-filter: blur(6px); }
.award-badge .award-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.award-badge .award-icon svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.award-badge .award-title { display: block; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 2px; font-family: var(--font-en); text-transform: uppercase; }
.award-badge .award-desc { display: block; color: #fff; font-size: 0.9375rem; font-weight: 600; }
.hero-dots { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 8px; padding-block: 8px 20px; }
.hero-dots button { position: relative; width: 40px; height: 28px; background: transparent; border-radius: var(--radius-sm); }
.hero-dots button::before { content: ''; position: absolute; inset-inline: 2px; top: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); transition: background var(--dur); }
.hero-dots button:hover::before { background: #fff; }
.hero-dots button.active::before, .hero-dots button[aria-current="true"]::before { background: var(--gold); box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.5); }
.hero-dots .hero-pause { width: 34px; height: 34px; margin-inline-start: 8px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hero-dots .hero-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero-dots .hero-pause:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.hero-stats { position: relative; z-index: 3; background: rgba(20, 16, 12, 0.92); border-top: 1px solid var(--gold-line); padding-block: 28px; backdrop-filter: blur(8px); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.stat-item { position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; inset-inline-start: calc(var(--space-5) * -0.5); top: 15%; height: 70%; width: 1px; background: var(--on-dark-faint); }
.stat-item h3, .stat-item .stat-num { font-size: var(--display); font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; direction: ltr; }
.stat-item p { font-size: var(--text-sm); color: var(--on-dark-muted); font-weight: 600; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (max-width: 968px) {
  .hero { min-height: 0; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .stat-item + .stat-item::before { display: none; }
  .hero-stats { padding-block: 22px; }
}
@media (max-width: 640px) {
  .hero-dots { display: none; }
  .award-badge { width: 100%; }
}

/* ---------- 7. Inner page hero ---------- */
.page-hero {
  --hero-img: none; position: relative; isolation: isolate; color: #fff; text-align: center; background: var(--ink);
  padding-block: clamp(72px, 11vw, 140px) clamp(56px, 8vw, 100px); overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center / cover no-repeat; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--overlay-hero); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-4); }
.page-hero h1 span { color: var(--gold); }
.page-hero p, .page-hero .lead { color: var(--on-dark-muted); font-size: var(--text-lg); max-width: 700px; margin-inline: auto; }
.page-hero .section-tag, .page-hero .eyebrow, .page-hero .hero-tag { color: var(--gold); justify-content: center; }
.breadcrumb, .crumb { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--space-4); color: var(--on-dark-muted); font-size: var(--text-sm); list-style: none; }
.breadcrumb a, .crumb a { color: var(--gold); }
.breadcrumb li + li::before, .crumb span + span::before { content: '/'; margin-inline-end: 8px; opacity: 0.5; }

/* ---------- 8. Cards ---------- */
.card, .service-card, .project-card, .proj-card, .why-card, .cert-card, .iso-card, .eq-card, .cat-card, .job-card, .contact-card, .fc-card, .benefit, .wj-card, .pp-item, .sv-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.card:hover, .service-card:hover, .project-card:hover, .proj-card:hover, .eq-card:hover, .cat-card:hover, .cert-card:hover, .iso-card:hover, .fc-card:hover, .job-card:hover, .benefit:hover, .wj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); }
.card__media, .service-image, .proj-img, .eq-img, .card-media { position: relative; overflow: hidden; background: var(--ink); }
.card__media img, .service-image img, .proj-img img, .eq-img img, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img, .service-card:hover .service-image img, .proj-card:hover .proj-img img, .eq-card:hover .eq-img img { transform: scale(1.05); }

/* Service cards (home) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--space-5); }
.service-card { overflow: hidden; }
.service-image { height: 240px; background-size: cover; background-position: center; }
.service-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 20, 16, 0) 45%, rgba(26, 20, 16, 0.55) 100%); }
.service-body { padding: var(--space-5) var(--space-5) var(--space-6); }
.service-number { font-size: 0.8125rem; font-weight: 800; color: var(--gold-text); letter-spacing: var(--tracking-caps); margin-bottom: var(--space-3); font-family: var(--font-en); }
.service-card h3 { margin-bottom: var(--space-3); }
.service-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* Featured project cards (home) */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--space-5); }
.proj-card { overflow: hidden; }
.proj-img { aspect-ratio: 16 / 10; }
.proj-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 20, 16, 0.6) 0%, rgba(26, 20, 16, 0) 55%); pointer-events: none; }
.proj-value { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; padding: 6px 12px; background: var(--gold); color: var(--ink); font-size: var(--text-sm); font-weight: 800; border-radius: var(--radius-xs); }
.proj-location { position: absolute; bottom: 12px; inset-inline-start: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: var(--text-sm); font-weight: 600; }
.proj-location svg { width: 14px; height: 14px; fill: var(--gold); }
.proj-body { padding: var(--space-5); }
.proj-body h3 { margin-bottom: var(--space-2); font-size: 1.125rem; }
.proj-body p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: var(--space-4); }
.proj-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--text-subtle); font-size: var(--text-sm); }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-meta svg { width: 14px; height: 14px; fill: var(--gold-deep); }
.cta-row { text-align: center; margin-top: var(--space-7); }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-5); }
.why-card { text-align: center; padding: var(--space-6) var(--space-5); background: transparent; border-color: transparent; }
.why-card:hover { background: var(--surface); }
.why-icon, .icon-tile { width: 76px; height: 76px; margin: 0 auto var(--space-5); border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); color: var(--gold-text); display: flex; align-items: center; justify-content: center; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.why-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-card:hover .why-icon { background: var(--gold); color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card h3 { margin-bottom: var(--space-3); }
.why-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-img { position: relative; height: 540px; border-radius: var(--radius-md); background-size: cover; background-position: center; box-shadow: var(--shadow-lg); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img::before { content: ''; position: absolute; inset-inline-end: -24px; bottom: -24px; width: 180px; height: 180px; background: var(--gold); z-index: -1; border-radius: var(--radius-md); }
.about-content h2 { margin-bottom: var(--space-5); }
.about-content p { color: var(--text-muted); margin-bottom: var(--space-4); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--gradient-gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-item h4 { font-size: 0.9375rem; margin-bottom: 2px; }
.feature-item p { font-size: var(--text-sm); color: var(--text-subtle); margin: 0; }
@media (max-width: 968px) { .about-grid { grid-template-columns: 1fr; gap: var(--space-6); } .about-img { height: 340px; } }
@media (max-width: 640px) { .about-features { grid-template-columns: 1fr; } }

/* Partners strip */
.partners-strips { margin-top: var(--space-6); }
.partners-strip { position: relative; overflow: hidden; direction: ltr; padding-block: var(--space-6); border-block: 1px solid var(--border); background: var(--surface); }
.partners-strip::before, .partners-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.partners-strip::before { left: 0; background: linear-gradient(90deg, var(--surface) 20%, rgba(255, 255, 255, 0)); }
.partners-strip::after { right: 0; background: linear-gradient(-90deg, var(--surface) 20%, rgba(255, 255, 255, 0)); }
.partners-scroll { display: flex; align-items: center; gap: 64px; width: max-content; animation: scroll-left 60s linear infinite; will-change: transform; }
.partners-strip:hover .partners-scroll, .partners-strip:focus-within .partners-scroll { animation-play-state: paused; }
.partner-logo { flex-shrink: 0; height: 72px; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 64px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(100%); opacity: 0.8; transition: filter var(--dur), opacity var(--dur); }
.partner-logo:hover img { filter: none; opacity: 1; }
@keyframes scroll-left { to { transform: translateX(-50%); } }

/* Certificates / ISO (home + certificates page) */
.certs-grid, .iso-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-5); }
.cert-card, .iso-card { text-align: center; padding: var(--space-6) var(--space-5); }
.cert-card img, .iso-card img { width: 90px; height: auto; margin: 0 auto var(--space-4); object-fit: contain; }
.cert-card h4, .iso-card h4 { margin-bottom: 4px; font-family: var(--font-en); }
.cert-card p, .iso-card p { color: var(--gold-text); font-size: var(--text-sm); font-weight: 700; }

/* Gallery marquee (home) */
.gallery-marquee { padding: 0; background: var(--ink); color: var(--on-dark); overflow: hidden; position: relative; }
.gallery-head { text-align: center; padding: var(--section-y) var(--gutter) var(--space-7); max-width: 780px; margin-inline: auto; }
.gallery-head h2 { color: #fff; margin-bottom: var(--space-4); }
.gallery-head p { color: var(--on-dark-muted); }
.gallery-marquee::before, .gallery-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 3; pointer-events: none; }
.gallery-marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), rgba(26, 20, 16, 0)); }
.gallery-marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), rgba(26, 20, 16, 0)); }
.marquee-track { display: flex; gap: 22px; width: max-content; direction: ltr; padding: 0 0 var(--section-y); animation: marquee 48s linear infinite; will-change: transform; }
.gallery-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; width: 360px; height: 460px; border-radius: var(--radius-md); position: relative; overflow: hidden; background: var(--ink-soft) center / cover; box-shadow: var(--shadow-lg); transition: transform 0.4s var(--ease); }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }
.marquee-item:hover { transform: translateY(-6px); }
.marquee-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 20, 16, 0) 55%, rgba(26, 20, 16, 0.85) 100%); }
.marquee-item span { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; color: #fff; font-weight: 800; font-size: var(--text-md); z-index: 2; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 768px) { .marquee-item { width: 250px; height: 330px; } .marquee-track { gap: 14px; } }

/* CTA bands */
.cta-banner, .cta-band, .cta-section { position: relative; overflow: hidden; text-align: center; padding-block: var(--section-y); background: var(--surface-2); border-block: 3px solid var(--gold); }
.cta-banner h2, .cta-band h2, .cta-section h2 { margin-bottom: var(--space-4); }
.cta-banner p, .cta-band p, .cta-section p { color: var(--text-muted); font-size: var(--text-md); max-width: 640px; margin: 0 auto var(--space-6); }
.cta-actions, .cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.cta-band--dark, .section--dark.cta-band { background: var(--ink); color: var(--on-dark); border-color: var(--gold); }
.cta-band--dark h2 { color: #fff; }
.cta-band--dark p { color: var(--on-dark-muted); }

/* ---------- 9. Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { margin-bottom: var(--space-4); }
.form-group label, .form label { display: block; margin-bottom: 8px; font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea, .form-control {
  width: 100%; padding: 13px 16px; border: 1.5px solid #8f8574; border-radius: var(--radius-sm); background: var(--surface); font-size: var(--text-base); color: var(--text); transition: border-color var(--dur), box-shadow var(--dur);
}
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible, .form-control:focus-visible { outline: none; border-color: var(--gold-text); box-shadow: var(--shadow-focus); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: var(--text-sm); color: var(--text-subtle); margin-top: 6px; }
.form-status { margin-top: var(--space-4); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #edf7ee; color: #1e5e2a; border: 1px solid #b7dfbb; }
.form-status.is-error { display: block; background: #fbeceb; color: var(--danger); border: 1px solid #f1c2bf; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- 10. Footer ---------- */
.site-footer, footer.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: var(--space-9) 0 0; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--space-7); padding-bottom: var(--space-8); }
.footer-col h4 { color: #fff; font-size: var(--h4); margin-bottom: var(--space-5); padding-bottom: 12px; position: relative; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 40px; height: 2px; background: var(--gold); }
.footer-about .logo { margin-bottom: var(--space-5); }
.footer-about .logo img { height: 56px; background: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.footer-about p { line-height: var(--leading-loose); margin-bottom: var(--space-5); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--on-dark-faint); color: #fff; }
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }
.footer-social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--on-dark-muted); display: inline-flex; align-items: center; gap: 8px; }
.footer-col ul a:hover { color: var(--gold); padding-inline-start: 4px; }
.footer-col ul a.footer-highlight { color: var(--gold); font-weight: 700; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
.footer-bottom { border-top: 1px solid var(--on-dark-faint); padding: var(--space-5) 0; text-align: center; font-size: var(--text-sm); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: var(--gold); }
@media (max-width: 968px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { justify-content: center; } }

/* ---------- 11. Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: var(--z-float); width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); transition: transform var(--dur) var(--ease), background var(--dur);
}
[dir="rtl"] .whatsapp-float { inset-inline-end: auto; inset-inline-start: 24px; }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); background: #0b6b5f; }
@media (max-width: 640px) { .whatsapp-float { width: 52px; height: 52px; inset-block-end: 16px; inset-inline-end: 16px; } [dir="rtl"] .whatsapp-float { inset-inline-start: 16px; } }

/* ---------- 12. Filters / tabs / badges (shared) ---------- */
.filter-bar, .filters, .filters-en { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: var(--space-7); }
.filter-tab, .filter-btn, .filter-btn-en, .office-tab { padding: 10px 20px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--text-sm); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.filter-tab:hover, .filter-btn:hover, .filter-btn-en:hover, .office-tab:hover { border-color: var(--gold); color: var(--gold-text); }
.filter-tab.active, .filter-btn.active, .filter-btn-en.active, .office-tab.active, [aria-pressed="true"].filter-tab, [aria-pressed="true"].filter-btn, [aria-selected="true"].office-tab { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.badge, .tag, .job-cat, .project-category { display: inline-block; padding: 4px 10px; border-radius: var(--radius-xs); background: var(--gold-tint); color: var(--gold-text); font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--tracking-caps); }

/* ---------- 13. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-slide.active, .marquee-track, .partners-scroll { animation: none !important; }
}
@media print {
  .top-bar, .site-nav, .whatsapp-float, .hero-dots, .skip-link { display: none !important; }
  .hero, .page-hero { min-height: 0; padding: 24px 0; color: #000; background: #fff; }
  a { color: inherit; }
}

/* ---------- 14. Projects grid (uniform cards, featured project, filters with counts) ---------- */
.projects-count { text-align: center; color: var(--text-subtle); font-size: var(--text-sm); margin: calc(var(--space-5) * -1) 0 var(--space-6); }
.filter-tab__n { display: inline-block; min-width: 22px; padding: 0 6px; margin-inline-start: 4px; border-radius: var(--radius-pill); background: var(--gold-tint); color: var(--gold-text); font-size: 11px; line-height: 20px; font-variant-numeric: tabular-nums; }
.filter-tab.active .filter-tab__n, .filter-tab[aria-pressed="true"] .filter-tab__n { background: var(--gold); color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.pcard { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; color: inherit; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.pcard:hover, .pcard:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); }
.pcard[hidden] { display: none; }
.pcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 20, 16, 0.45), rgba(26, 20, 16, 0) 45%); pointer-events: none; }
.pcard__cat { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; padding: 5px 12px; border-radius: var(--radius-xs); background: rgba(26, 20, 16, 0.78); color: var(--gold); font-size: var(--text-xs); font-weight: 800; backdrop-filter: blur(4px); }
.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); flex: 1; }
.pcard__title { font-size: 1.125rem; line-height: 1.35; text-wrap: balance; }
.pcard__text { color: var(--text-muted); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--text-subtle); font-size: var(--text-sm); }
.pcard__meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pcard__meta svg { width: 15px; height: 15px; flex-shrink: 0; stroke: var(--gold-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pcard__more { color: var(--gold-text); font-weight: 800; font-size: var(--text-sm); }
.pcard--featured { grid-column: span 2; flex-direction: row; }
.pcard--featured .pcard__media { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
.pcard--featured .pcard__body { padding: var(--space-6); }
.pcard--featured .pcard__title { font-size: var(--h3); }
.pcard--featured .pcard__text { -webkit-line-clamp: 4; font-size: var(--text-base); }
@media (max-width: 968px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard--featured { flex-direction: column; }
  .pcard--featured .pcard__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; gap: var(--space-4); }
  .pcard--featured { grid-column: auto; }
}
/* project detail: hero image via custom property, uniform gallery, lightbox */
.proj-hero { background-image: linear-gradient(rgba(26, 20, 16, 0.82), rgba(26, 20, 16, 0.55)), var(--proj-hero, none) !important; background-size: cover !important; background-position: center !important; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-3); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
@media (max-width: 968px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
.lightbox::backdrop { background: rgba(10, 8, 6, 0.92); }
.lightbox__img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); margin: 0 auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; padding: 12px 4px 0; font-size: var(--text-sm); }
.lightbox__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.lightbox__btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox__nav { display: flex; gap: 8px; }
body.lightbox-open { overflow: hidden; }
/* appreciation awards gallery: landscape photos, 4 per row on desktop */
.gallery-grid--awards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 968px) { .gallery-grid--awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery-grid--awards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
