/* ==========================================================================
   FALCON ENGINEERING SOLUTIONS — Core Design System
   Author: Product/Design/Front-End team build
   Notes : Direction-neutral (uses logical properties) so the same file powers
           both LTR (English) and RTL (Arabic). Arabic-only tweaks live in
           style-ar.css. Layered on top of Bootstrap 5.
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. Design tokens                                                           */
/* -------------------------------------------------------------------------- */
:root {
  /* Brand — exact orange sampled from the Falcon logo (#D54222) + tonal ramp */
  --fal-50:  #FBEAE5;
  --fal-100: #F5CBBF;
  --fal-200: #EBA08D;
  --fal-300: #E0745B;
  --fal-400: #D95638;
  --fal-500: #D54222;   /* primary */
  --fal-600: #B7351A;   /* hover / pressed */
  --fal-700: #942A15;
  --fal-800: #711F10;
  --fal-900: #4F150A;

  --brand:        var(--fal-500);
  --brand-strong: var(--fal-600);
  --brand-text:   var(--fal-600);            /* readable brand tone on light  */
  --on-brand:     #ffffff;
  --brand-grad:   linear-gradient(135deg, #E86338 0%, #D54222 55%, #B7351A 100%);

  /* Ink + neutrals */
  --ink:        #15171B;
  --ink-soft:   #23272E;
  --page:       #ffffff;
  --surface:    #ffffff;
  --surface-2:  #F6F7F9;
  --surface-3:  #EEF1F4;
  --line:       #E5E8EC;
  --line-strong:#D3D8DF;

  --text:   #16181D;
  --text-2: #4B535C;
  --text-3: #79828C;

  --success: #1E9E62;
  --warning: #C9880A;
  --danger:  #D23A2E;

  /* Typography */
  --font-head: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16,18,22,.06), 0 2px 6px rgba(16,18,22,.05);
  --shadow:    0 8px 24px rgba(16,18,22,.09);
  --shadow-lg: 0 22px 60px rgba(16,18,22,.16);
  --shadow-brand: 0 12px 30px rgba(213,66,34,.32);

  /* Motion */
  --t:      .30s cubic-bezier(.4,0,.2,1);
  --t-fast: .16s ease;

  /* Layout */
  --nav-h: 74px;
  --maxw: 1220px;

  color-scheme: light;
}

[data-theme="dark"] {
  --brand-text: #F0714A;                     /* lifted for contrast on dark   */
  --on-brand:   #ffffff;

  --ink:       #05070A;
  --ink-soft:  #0D1013;
  --page:      #0F1114;
  --surface:   #171A1F;
  --surface-2: #1C2027;
  --surface-3: #23272F;
  --line:      #2A2F37;
  --line-strong:#3A414A;

  --text:   #ECEDEF;
  --text-2: #B7BDC5;
  --text-3: #838B95;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 10px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 26px 64px rgba(0,0,0,.6);
  --shadow-brand: 0 12px 34px rgba(213,66,34,.42);

  color-scheme: dark;
}

/* -------------------------------------------------------------------------- */
/* 2. Base                                                                    */
/* -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); color: var(--text); font-weight: 700; line-height: 1.14; letter-spacing: -.01em; margin: 0 0 .5em; }

a { color: var(--brand-text); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-strong); }

img, svg { max-width: 100%; }
img { height: auto; }

p { margin: 0 0 1rem; }
ul { margin: 0; }

::selection { background: var(--fal-500); color: #fff; }

:focus-visible { outline: 3px solid var(--fal-400); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  font-weight: 600; transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #fff; }

/* -------------------------------------------------------------------------- */
/* 3. Typography scale & helpers                                              */
/* -------------------------------------------------------------------------- */
.display-hero { font-size: clamp(2.4rem, 6vw, 4.35rem); font-weight: 800; line-height: 1.03; letter-spacing: -.025em; }
.h-xl { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.lead-lg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); line-height: 1.75; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-text);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }

.text-gradient {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-muted-2 { color: var(--text-2) !important; }
.text-brand { color: var(--brand-text) !important; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-surface-2 { background: var(--surface-2); }
.bg-ink { background: var(--ink); color: #fff; }
/* padding-inline must be >= half of the largest row gutter used inside it
   (Bootstrap .row.g-5 = 3rem gutter -> -1.5rem/-24px side margins) so those
   rows never bleed 4px past the viewport when the container fills the screen. */
.container-fal { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 22px); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* -------------------------------------------------------------------------- */
/* 4. Buttons                                                                 */
/* -------------------------------------------------------------------------- */
.btn-fal {
  --_bg: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap; text-align: center;
}
.btn-fal i { font-size: 1.05em; }
.btn-fal--primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-fal--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(213,66,34,.45); }
.btn-fal--dark { background: var(--ink); color: #fff; }
.btn-fal--dark:hover { color:#fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-fal--outline { background: transparent; color: var(--brand-text); border-color: var(--line-strong); }
.btn-fal--outline:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--fal-50); transform: translateY(-2px); }
.btn-fal--light { background: #fff; color: var(--ink); }
.btn-fal--light:hover { color: var(--brand-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-fal--ghost-light { background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-fal--ghost-light:hover { background: rgba(255,255,255,.16); color:#fff; transform: translateY(-2px); }
.btn-fal--sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn-fal--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-fal--block { width: 100%; }

.link-arrow { display:inline-flex; align-items:center; gap:.4rem; font-family: var(--font-head); font-weight: 600; }
.link-arrow i { transition: transform var(--t); }
.link-arrow:hover i { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover i { transform: translateX(-4px); }

/* -------------------------------------------------------------------------- */
/* 5. Top contact bar                                                         */
/* -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.82);
  font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
.topbar .container-fal { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar__meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar__meta span, .topbar__meta a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__meta i { color: var(--brand-text); }
.topbar__social { display:flex; align-items:center; gap:.85rem; }
.topbar__social a { font-size: .95rem; }

/* -------------------------------------------------------------------------- */
/* 6. Header / navbar                                                         */
/* -------------------------------------------------------------------------- */
/* NB: no backdrop-filter/filter/transform on the header — those create a
   containing block that would trap the fixed mobile menu inside it. */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow var(--t), background var(--t); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.navbar-fal { display: flex; align-items: center; gap: 1.25rem; min-height: var(--nav-h); }

/* Brand logo lockup */
.brand-logo { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1; flex: none; }
.brand-logo__lockup { display: inline-flex; align-items: center; gap: .34em; }
.brand-logo__word { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; letter-spacing: .01em; color: var(--brand-text); }
.brand-logo__mark { width: 1.75em; height: 1.25em; color: var(--ink); flex: none; }
[data-theme="dark"] .brand-logo__mark { color: #fff; }
.brand-logo__tag { font-family: var(--font-head); font-weight: 600; font-size: .52rem; letter-spacing: .34em; text-transform: uppercase; color: var(--text-3); padding-inline-start: .15em; }

.nav-links { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; list-style: none; padding: 0; margin-bottom: 0; }
.nav-links > li > a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--text);
  padding: .55rem .8rem; border-radius: var(--r-sm); position: relative; display: block;
}
.nav-links > li > a::after { content:""; position:absolute; inset-inline: .8rem; bottom: .32rem; height: 2px; background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: inline-start; transition: transform var(--t); }
.nav-links > li > a:hover { color: var(--brand-text); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links > li > a.active { color: var(--brand-text); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

/* icon button (theme + lang) */
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); cursor: pointer; font-size: 1.05rem; transition: all var(--t-fast);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-text); transform: translateY(-1px); }
.lang-switch { font-family: var(--font-head); font-weight: 700; font-size: .8rem; width: auto; padding-inline: .85rem; gap:.35rem; letter-spacing: .04em; }

.theme-toggle .bi-sun { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun { display: inline; }
[data-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }

.nav-toggle { display: none; }

/* Mobile menu (offcanvas-ish) */
@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  /* Off-canvas mode: the now fixed-position .nav-menu no longer pushes the
     controls to the far edge, so push them there directly — the burger/theme/
     language group sits opposite the logo (left in AR/RTL, right in EN/LTR). */
  .nav-actions { margin-inline-start: auto; }
  .nav-menu {
    position: fixed; inset: 0; inset-inline-start: auto; width: min(360px, 86vw);
    background: var(--surface); box-shadow: var(--shadow-lg); z-index: 1050;
    transform: translateX(105%); visibility: hidden;
    transition: transform var(--t), visibility 0s linear var(--t); padding: 1.25rem;
    display: flex; flex-direction: column; overflow-y: auto;
  }
  /* The panel is pinned to the right edge, so it must hide/open from the RIGHT in
     both directions. The old RTL translateX(-105%) slid it left across the screen
     and left a visible sliver on load; visibility:hidden guarantees it's gone. */
  [dir="rtl"] .nav-menu { inset-inline-start: 0; inset-inline-end: auto; }
  .nav-menu.open { transform: translateX(0); visibility: visible; transition: transform var(--t), visibility 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .1rem; width: 100%; margin-top: 2.5rem; }
  .nav-links > li > a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links > li > a::after { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(5,7,10,.5); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity var(--t); }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  .nav-menu__close { position: absolute; top: 1rem; inset-inline-end: 1rem; }
}
@media (min-width: 992px) { .nav-menu__close { display: none; } }

/* Small phones: the bar keeps logo + language + theme + burger on one row.
   The letter-spaced tagline is the widest logo part, so drop it here and trim
   the wordmark + action spacing so nothing overflows down to 320px (EN & AR). */
@media (max-width: 480px) {
  /* Reclaim side padding on phones (columns stack here, so the smaller g-5
     gutter is invisible but keeps the row from bleeding past the edge). */
  .container-fal { padding-inline: 16px; }
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .navbar-fal { gap: .5rem; }
  .brand-logo__word { font-size: 1.3rem; }
  .brand-logo__tag { display: none; }
  .nav-actions { gap: .3rem; }
  .nav-actions .lang-switch { padding-inline: .55rem; }
}

/* -------------------------------------------------------------------------- */
/* 7. Hero                                                                    */
/* -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--ink) url("../img/hero-hvac.jpg") center/cover no-repeat; color: #fff; overflow: hidden; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem,7vw,6rem); }
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(213,66,34,.40), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(213,66,34,.14), transparent 60%),
    linear-gradient(150deg, rgba(18,20,26,.93) 0%, rgba(13,15,19,.88) 55%, rgba(9,11,14,.93) 100%);
}
.hero__grid { position:absolute; inset:0; opacity:.5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 80%); }
.hero__wing { position:absolute; inset-inline-end: -6%; top: 50%; transform: translateY(-50%); width: min(760px, 60%); color: rgba(213,66,34,.14); pointer-events:none; }
[dir="rtl"] .hero__wing { transform: translateY(-50%) scaleX(-1); }
.hero .container-fal { position: relative; z-index: 2; }
.hero__inner { max-width: 760px; }
.hero__slogan {
  display:inline-flex; align-items:center; gap:.6rem; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); color:#fff; padding:.5rem 1rem; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight:600; font-size:.82rem; letter-spacing:.04em; margin-bottom: 1.6rem;
}
.hero__slogan i { color: var(--fal-300); }
.hero h1 { color: #fff; margin-bottom: 1.35rem; }
.hero h1 .accent { color: var(--fal-300); }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 2.2rem; }
.hero__cta { display:flex; flex-wrap:wrap; gap:.9rem; margin-bottom: 3rem; }
.hero__stats { display:flex; flex-wrap:wrap; gap: clamp(1.5rem, 5vw, 3.5rem); border-top:1px solid rgba(255,255,255,.14); padding-top: 1.8rem; }
.hero__stat .n { font-family:var(--font-head); font-weight:800; font-size: clamp(1.8rem,3vw,2.5rem); line-height:1; color:#fff; direction:ltr; }
[dir="rtl"] .hero__stat .n, [dir="rtl"] .stat__n { unicode-bidi: isolate; }
.hero__stat .n .plus { color: var(--fal-300); }
.hero__stat .l { font-size:.85rem; color: rgba(255,255,255,.66); margin-top:.35rem; }

/* -------------------------------------------------------------------------- */
/* 8. Trust / certifications strip                                            */
/* -------------------------------------------------------------------------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust__row { display:flex; align-items:center; justify-content:center; gap: clamp(1.25rem,4vw,3rem); flex-wrap:wrap; padding: 1.5rem 0; }
.trust__item { display:flex; align-items:center; gap:.65rem; color: var(--text-2); font-weight:600; font-family:var(--font-head); font-size:.92rem; }
.trust__item i { font-size: 1.5rem; color: var(--brand-text); }
.trust__sep { width:1px; height:34px; background: var(--line); }
@media (max-width: 575.98px){ .trust__sep{ display:none; } }

/* -------------------------------------------------------------------------- */
/* 9. Cards — solutions / brands / projects / pillars / stats                 */
/* -------------------------------------------------------------------------- */
.card-fal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t), box-shadow var(--t), border-color var(--t); height: 100%; }

/* Solution card */
.sol-card { padding: 1.75rem; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.sol-card::after { content:""; position:absolute; inset-block-start:0; inset-inline-start:0; width:100%; height:3px; background:var(--brand-grad); transform: scaleX(0); transform-origin: inline-start; transition: transform var(--t); }
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sol-card:hover::after { transform: scaleX(1); }
.sol-card__icon { width: 58px; height: 58px; border-radius: 15px; display:inline-flex; align-items:center; justify-content:center; font-size:1.65rem; background: var(--fal-50); color: var(--brand-text); margin-bottom: 1.15rem; transition: all var(--t); }
[data-theme="dark"] .sol-card__icon { background: rgba(213,66,34,.15); }
.sol-card:hover .sol-card__icon { background: var(--brand-grad); color:#fff; transform: rotate(-6deg); }
.sol-card h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.sol-card p { color: var(--text-2); font-size: .93rem; margin-bottom: 1.1rem; }
.sol-card .link-arrow { margin-top: auto; color: var(--brand-text); font-size:.9rem; }

/* Pillar card */
.pillar { padding: 1.9rem 1.7rem; position: relative; overflow: hidden; border-color: var(--line-strong); }
.pillar__num { display: none; }        /* numbers/marks removed — icon-led cards */
.pillar__icon { width:56px; height:56px; border-radius:16px; display:inline-flex; align-items:center; justify-content:center; font-size:1.55rem; background:var(--fal-50); color:var(--brand-text); margin-bottom:1.1rem; transition:all var(--t); position:relative; z-index:1; }
[data-theme="dark"] .pillar__icon { background: rgba(213,66,34,.15); }
.pillar:hover .pillar__icon { background: var(--brand-grad); color:#fff; transform: rotate(-6deg); }
.pillar h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.pillar p { color: var(--text-2); font-size: .92rem; line-height: 1.6; margin: 0; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(213,66,34,.5); }

/* Brand logo tile */
.brand-tile { display:flex; align-items:center; justify-content:center; padding: 1.25rem 1.1rem; background: #fff; border:1px solid var(--line); border-radius: var(--r); min-height: 128px; transition: all var(--t); }
.brand-tile img { max-height: 68px; max-width: 100%; width: auto; object-fit: contain; opacity: 1; }
.brand-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }

/* Client / existing-facility logo tile */
.client-tile { display:flex; align-items:center; justify-content:center; padding: 1.1rem 1rem; background:#fff; border:1px solid var(--line); border-radius: var(--r); min-height: 128px; height:100%; transition: all var(--t); }
.client-tile img { max-height: 80px; max-width: 100%; width:auto; object-fit: contain; }
.client-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }

/* Project card */
.project-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; display:flex; align-items:flex-end; color:#fff; background: var(--ink); isolation:isolate; }
.project-card__bg { position:absolute; inset:0; z-index:-2; background-size:cover; background-position:center; transition: transform .7s ease; }
.project-card::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(10,12,15,.15) 0%, rgba(10,12,15,.55) 55%, rgba(10,12,15,.92) 100%); }
.project-card:hover .project-card__bg { transform: scale(1.07); }
.project-card__wm { position:absolute; top:-6px; inset-inline-end:10px; font-size:7.5rem; line-height:1; color:rgba(255,255,255,.08); z-index:-1; pointer-events:none; }
.project-card__body { padding: 1.5rem; width: 100%; }
.project-card .tag { display:inline-block; background: var(--brand); color:#fff; font-family:var(--font-head); font-weight:600; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding:.3rem .7rem; border-radius: var(--r-pill); margin-bottom:.75rem; }
.project-card h3 { color:#fff; font-size:1.2rem; margin-bottom:.35rem; }
.project-card .meta { font-size:.85rem; color: rgba(255,255,255,.75); }

/* Stat card (with icon) */
.stat-card { text-align:center; padding: 1.9rem 1rem; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); height:100%; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stat-card__ico { width:60px; height:60px; border-radius:16px; display:inline-flex; align-items:center; justify-content:center; font-size:1.7rem; background:var(--fal-50); color:var(--brand-text); margin-bottom:1.1rem; transition:all var(--t); }
[data-theme="dark"] .stat-card__ico { background: rgba(213,66,34,.15); }
.stat-card:hover .stat-card__ico { background: var(--brand-grad); color:#fff; transform: rotate(-6deg); }

/* Stat block */
.stat { text-align:center; padding: 1rem; }
.stat__n { font-family:var(--font-head); font-weight:800; font-size: clamp(2.2rem,4vw,3.1rem); line-height:1; color: var(--brand-text); direction:ltr; }
.stat__n .plus { color: var(--fal-300); }
.stat__l { color: var(--text-2); font-weight:600; font-family:var(--font-head); margin-top:.5rem; font-size:.95rem; }

/* -------------------------------------------------------------------------- */
/* 10. About split / feature list                                             */
/* -------------------------------------------------------------------------- */
.vm-card { padding: 1.75rem; border-radius: var(--r-lg); border:1px solid var(--line); background: var(--surface); height:100%; }
.vm-card__icon { width:52px; height:52px; border-radius: 14px; display:inline-flex; align-items:center; justify-content:center; font-size:1.5rem; background: var(--brand-grad); color:#fff; margin-bottom:1rem; }
.vm-card h3 { font-size:1.25rem; }
.feature-li { display:flex; gap:.7rem; align-items:flex-start; margin-bottom:.85rem; color: var(--text-2); }
.feature-li i { color: var(--brand-text); font-size:1.15rem; margin-top:.15rem; flex:none; }
.media-frame { position:relative; border-radius: var(--r-xl); overflow:hidden; box-shadow: var(--shadow-lg); }
.media-frame img { display:block; width:100%; }
.media-badge { position:absolute; inset-block-end:1.2rem; inset-inline-start:1.2rem; background: var(--surface); color:var(--text); border-radius: var(--r); padding:1rem 1.25rem; box-shadow: var(--shadow); display:flex; align-items:center; gap:.85rem; }
.media-badge .n { font-family:var(--font-head); font-weight:800; font-size:1.9rem; color:var(--brand-text); line-height:1; }

/* -------------------------------------------------------------------------- */
/* 11. CTA band                                                               */
/* -------------------------------------------------------------------------- */
.cta-band { position:relative; overflow:hidden; background: var(--brand-grad); color:#fff; border-radius: var(--r-xl); padding: clamp(2.5rem,5vw,4rem); }
.cta-band::before { content:""; position:absolute; inset-inline-end:-4%; top:-40%; width:420px; height:420px; color:rgba(255,255,255,.12); background: currentColor; -webkit-mask: url("../logos/falcon-mark.svg") no-repeat center/contain; mask: url("../logos/falcon-mark.svg") no-repeat center/contain; }
.cta-band h2 { color:#fff; margin-bottom:.6rem; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom:0; }

/* -------------------------------------------------------------------------- */
/* 12. Footer                                                                 */
/* -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: clamp(3rem,6vw,4.5rem); }
.site-footer h4 { color:#fff; font-size: .82rem; letter-spacing:.14em; text-transform:uppercase; font-family:var(--font-head); margin-bottom:1.2rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color:#fff; }
.footer-brand .brand-logo__word { color:#fff; }
.footer-brand .brand-logo__mark { color:#fff; }
.footer-brand .brand-logo__tag { color: rgba(255,255,255,.5); }
.footer-links { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.6rem; }
.footer-contact li { display:flex; gap:.7rem; margin-bottom:.9rem; }
.footer-contact i { color: var(--fal-300); font-size:1.05rem; margin-top:.15rem; flex:none; }
.footer-social { display:flex; gap:.6rem; margin-top:1rem; }
.footer-social a { width:40px; height:40px; border-radius: var(--r-pill); border:1px solid rgba(255,255,255,.18); display:inline-flex; align-items:center; justify-content:center; color:#fff; transition: all var(--t-fast); }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: clamp(2rem,4vw,3rem); padding: 1.5rem 0; font-size:.85rem; color: rgba(255,255,255,.55); }
.footer-bottom .container-fal { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }

/* -------------------------------------------------------------------------- */
/* 13. Back to top + WhatsApp float                                           */
/* -------------------------------------------------------------------------- */
.to-top, .wa-float { position: fixed; inset-block-end: 22px; z-index: 1020; width: 50px; height: 50px; border-radius: var(--r-pill); display:inline-flex; align-items:center; justify-content:center; box-shadow: var(--shadow); border:none; cursor:pointer; transition: all var(--t); }
.to-top { inset-inline-end: 22px; background: var(--ink); color:#fff; opacity:0; visibility:hidden; transform: translateY(12px); font-size:1.1rem; }
.to-top.show { opacity:1; visibility:visible; transform: none; }
.to-top:hover { background: var(--brand); transform: translateY(-3px); }
.wa-float { inset-inline-start: 22px; background:#25D366; color:#fff; font-size:1.6rem; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); color:#fff; }

/* -------------------------------------------------------------------------- */
/* 14. Reveal-on-scroll animation                                             */
/* -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

/* -------------------------------------------------------------------------- */
/* 15. Forms (quote / contact)                                                */
/* -------------------------------------------------------------------------- */
.form-fal .form-label { font-family: var(--font-head); font-weight:600; font-size:.86rem; color: var(--text); margin-bottom:.4rem; }
.form-fal .form-control, .form-fal .form-select {
  background: var(--surface); border:1px solid var(--line-strong); color: var(--text);
  border-radius: var(--r-sm); padding: .8rem 1rem; font-size:.95rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-fal .form-control::placeholder { color: var(--text-3); }
.form-fal .form-control:focus, .form-fal .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(213,66,34,.15); background: var(--surface); color: var(--text); outline: none; }
.form-note { font-size:.82rem; color: var(--text-3); }

.form-status { display:none; border-radius: var(--r); padding: .9rem 1.1rem; font-size:.92rem; margin-bottom:1rem; align-items:center; gap:.6rem; }
.form-status.show { display:flex; }
.form-status--ok { background: rgba(30,158,98,.12); color: var(--success); border:1px solid rgba(30,158,98,.3); }
.form-status--err { background: rgba(210,58,46,.1); color: var(--danger); border:1px solid rgba(210,58,46,.3); }

/* -------------------------------------------------------------------------- */
/* 16. Utilities                                                              */
/* -------------------------------------------------------------------------- */
.divider-x { height:1px; background: var(--line); border:0; }
.badge-fal { display:inline-flex; align-items:center; gap:.35rem; background: var(--fal-50); color: var(--brand-text); font-family:var(--font-head); font-weight:600; font-size:.78rem; padding:.3rem .75rem; border-radius: var(--r-pill); }
[data-theme="dark"] .badge-fal { background: rgba(213,66,34,.16); }
.no-scroll { overflow: hidden; }

/* Marquee (brands auto-scroll optional) */
.marquee { overflow:hidden; }
.marquee__track { display:flex; gap:1rem; width:max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* Show more / less toggles (row shows first N children until expanded) */
.more-collapsed.more-3 > *:nth-child(n+4) { display: none; }
.more-collapsed.more-4 > *:nth-child(n+5) { display: none; }
.more-wrap { text-align: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.js-more .bi { transition: transform var(--t); }
.js-more.is-open .bi { transform: rotate(180deg); }

/* Brands slider (auto-scrolling marquee) */
.brands-slider { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); padding: .25rem 0; }
.brands-slider .brand-slide { flex: 0 0 auto; width: 208px; }
.brands-slider .brand-tile { height: 100%; margin: 0; }
@media (max-width: 575.98px) { .brands-slider .brand-slide { width: 158px; } }

/* Brands carousel with prev / next controls */
.brands-carousel { position: relative; display: flex; align-items: center; gap: .6rem; }
.brands-viewport { flex: 1 1 auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.brands-viewport::-webkit-scrollbar { display: none; }
.brands-track { display: flex; gap: 1rem; padding: .25rem 0; }
.brands-carousel .brand-slide { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
.brands-carousel .brand-tile { height: 100%; margin: 0; }
.brands-nav { flex: none; width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; cursor: pointer; transition: all var(--t-fast); box-shadow: var(--shadow-sm); }
.brands-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }
.brands-nav:active { transform: scale(.95); }

/* PDF viewer page (viewer.html / viewer-ar.html) — full-height embedded catalog */
.pdf-viewer { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--surface-2); }
.pdf-viewer__bar { flex: 0 0 auto; display: flex; align-items: center; gap: 1rem; padding: .65rem clamp(12px, 3vw, 22px); background: var(--surface); border-bottom: 1px solid var(--line); }
.pdf-viewer__title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin: 0; min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-viewer__actions { display: flex; gap: .5rem; flex: 0 0 auto; }
.pdf-viewer__frame { flex: 1 1 auto; width: 100%; border: 0; background: var(--surface-2); }
@media (max-width: 575.98px) { .brands-carousel .brand-slide { width: 150px; } .brands-nav { width: 40px; height: 40px; font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .brands-viewport { scroll-behavior: auto; } }

/* -------------------------------------------------------------------------- */
/* 17b. Inner pages — hero, breadcrumb, product/brand/ref/download/contact    */
/* -------------------------------------------------------------------------- */
.page-hero { position: relative; background: var(--ink) url("../img/hero-hvac.jpg") center/cover no-repeat; color: #fff; padding: clamp(3rem,7vw,5rem) 0 clamp(2.5rem,5vw,3.5rem); overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(900px 520px at 85% -20%, rgba(213,66,34,.42), transparent 60%), linear-gradient(150deg, rgba(16,18,22,.92) 0%, rgba(11,13,16,.90) 100%); }
.page-hero .container-fal { position: relative; z-index: 2; }
.page-hero h1 { color:#fff; font-size: clamp(2rem,4.5vw,3.1rem); margin-bottom:.55rem; letter-spacing:-.02em; }
.page-hero p { color: rgba(255,255,255,.84); max-width: 660px; margin: 0; font-size: clamp(1rem,1.5vw,1.15rem); }
.breadcrumb-fal { display:flex; gap:.5rem; align-items:center; font-size:.83rem; color:rgba(255,255,255,.68); margin:0 0 1.1rem; list-style:none; padding:0; flex-wrap:wrap; font-family:var(--font-head); font-weight:600; }
.breadcrumb-fal a { color:rgba(255,255,255,.68); } .breadcrumb-fal a:hover{ color:#fff; }
.breadcrumb-fal li { display:flex; align-items:center; gap:.5rem; }
.breadcrumb-fal li::after { content:"/"; opacity:.45; }
.breadcrumb-fal li:last-child::after { content:""; } .breadcrumb-fal li:last-child { color:#fff; }

.prod-card { display:flex; flex-direction:column; height:100%; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color:transparent; }
.prod-card__media { position:relative; height:200px; background:var(--surface-2); display:flex; align-items:center; justify-content:center; overflow:hidden; border-bottom:1px solid var(--line); }
.prod-card__media img { width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.prod-card:hover .prod-card__media img { transform: scale(1.05); }
.prod-card__media--icon { background: linear-gradient(135deg, var(--fal-50), var(--surface)); }
[data-theme="dark"] .prod-card__media--icon { background: linear-gradient(135deg, rgba(213,66,34,.14), var(--surface-2)); }
.prod-card__media--icon i { font-size:3.3rem; color:var(--brand-text); }
.prod-card__brand { position:absolute; top:12px; inset-inline-end:12px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-pill); padding:.3rem .75rem; font-family:var(--font-head); font-weight:700; font-size:.72rem; letter-spacing:.02em; color:var(--text-2); box-shadow:var(--shadow-sm); }
.prod-card__body { padding:1.5rem; display:flex; flex-direction:column; flex:1; }
.prod-card__body h3 { font-size:1.18rem; margin-bottom:.5rem; }
.prod-card__body > p { color:var(--text-2); font-size:.92rem; margin-bottom:.85rem; }
.prod-list { list-style:none; padding:0; margin:auto 0 0; display:flex; flex-wrap:wrap; gap:.4rem; }
.prod-list li { font-size:.78rem; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-pill); padding:.26rem .7rem; color:var(--text-2); }

.brand-card { text-align:center; padding:1.75rem; height:100%; }
.brand-card__logo { height:66px; display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem; }
.brand-card__logo img { max-height:56px; max-width:80%; object-fit:contain; }
[data-theme="dark"] .brand-card__logo img { filter: brightness(0) invert(1); }
.brand-card h3 { font-size:1.06rem; margin-bottom:.25rem; }
.brand-card .cat { display:block; font-size:.78rem; color:var(--brand-text); font-family:var(--font-head); font-weight:700; margin-bottom:.65rem; letter-spacing:.02em; }
.brand-card p { font-size:.88rem; color:var(--text-2); margin:0; }

.ref-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-lg); }
.ref-table { width:100%; border-collapse:collapse; min-width:660px; font-size:.9rem; }
.ref-table thead th { background:var(--brand); color:#fff; font-family:var(--font-head); font-weight:600; text-align:start; padding:.9rem 1rem; white-space:nowrap; position:sticky; top:0; }
.ref-table tbody td { padding:.78rem 1rem; border-bottom:1px solid var(--line); color:var(--text-2); }
.ref-table tbody tr:nth-child(even){ background:var(--surface-2); }
.ref-table tbody tr:hover{ background:var(--fal-50); }
[data-theme="dark"] .ref-table tbody tr:hover{ background:rgba(213,66,34,.10); }
.ref-table .yr { color:var(--brand-text); font-weight:700; white-space:nowrap; }
.ref-name { color:var(--text); font-weight:600; }
.sector-filter { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.5rem; }
.sector-chip { font-family:var(--font-head); font-weight:600; font-size:.84rem; padding:.5rem 1.05rem; border-radius:var(--r-pill); border:1px solid var(--line-strong); background:var(--surface); color:var(--text-2); cursor:pointer; transition:all var(--t-fast); }
.sector-chip:hover{ border-color:var(--brand); color:var(--brand-text); }
.sector-chip.active{ background:var(--brand); color:#fff; border-color:var(--brand); }
.clients-wall { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:clamp(1rem,3vw,2rem); }
.clients-wall img { width:100%; height:auto; display:block; }

.dl-card { display:flex; gap:1.1rem; align-items:center; padding:1.1rem; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); transition:all var(--t); height:100%; }
.dl-card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); border-color:transparent; }
.dl-card__thumb { flex:none; width:76px; height:100px; border-radius:var(--r-sm); overflow:hidden; box-shadow:var(--shadow-sm); background:var(--surface-2); }
.dl-card__thumb img{ width:100%; height:100%; object-fit:cover; }
.dl-card__body{ flex:1; min-width:0; } .dl-card__body h3{ font-size:1rem; margin-bottom:.2rem; } .dl-card__body p{ font-size:.82rem; color:var(--text-3); margin:0 0 .6rem; }

.map-frame { border:0; width:100%; min-height:360px; border-radius:var(--r-lg); display:block; }
.info-card { display:flex; gap:1rem; padding:1.4rem; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); height:100%; }
.info-card > i { font-size:1.5rem; color:var(--brand-text); flex:none; }
.info-card h3{ font-size:1rem; margin-bottom:.35rem; }
.info-card p, .info-card a{ font-size:.9rem; color:var(--text-2); margin:0; display:block; }
.about-media { border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--shadow-lg); }
.about-media img{ width:100%; display:block; }
.value-ico { width:54px;height:54px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;font-size:1.55rem;background:var(--brand-grad);color:#fff;margin-bottom:1rem; }

/* -------------------------------------------------------------------------- */
/* 17c. 8-item nav fit + careers job cards + open-positions                   */
/* -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .navbar-fal { gap: .85rem; }
  .nav-links { gap: .1rem; }
  .nav-links > li > a { padding: .5rem .6rem; font-size: .9rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .nav-actions .btn-fal--primary { display: none !important; }
}
.job-card { display:flex; flex-direction:column; padding:1.6rem; height:100%; }
.job-card__head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.5rem; }
.job-card__head h3 { font-size:1.12rem; margin:0; }
.job-card__meta { display:flex; flex-wrap:wrap; gap:.35rem .9rem; font-size:.83rem; color:var(--text-3); margin-bottom:.8rem; }
.job-card__meta span { display:inline-flex; align-items:center; gap:.35rem; }
.job-card__meta i { color: var(--brand-text); }
.job-card > p { color:var(--text-2); font-size:.92rem; margin-bottom:1.1rem; }
.job-card .btn-fal { margin-top:auto; align-self:flex-start; }

/* -------------------------------------------------------------------------- */
/* 17. Reduced motion                                                         */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================== */
/*  BRAND LOGO — real logo artwork (added 2026-07-18)             */
/*  Swaps the built "FALCON" text+mark lockup for the actual      */
/*  Falcon logo image across the marketing header + footer.       */
/*    Header : falcon-logo.png (light) / -inverted.png (dark)     */
/*    Footer : falcon-logo-white-bg.png on a rounded white card   */
/*  Console + auth pages are handled in dashboard.css.            */
/* ============================================================== */
.navbar-fal .brand-logo__lockup,
.navbar-fal .brand-logo__tag,
.footer-brand .brand-logo__lockup,
.footer-brand .brand-logo__tag { display: none; }

/* Header (marketing nav) — transparent logo, theme-aware */
.navbar-fal .brand-logo::before {
  content: "";
  display: block;
  width: 190px; height: 53px;
  background: url("../logos/falcon-logo.png") left center / contain no-repeat;
}
[dir="rtl"] .navbar-fal .brand-logo::before { background-position: right center; }
[data-theme="dark"] .navbar-fal .brand-logo::before {
  background-image: url("../logos/falcon-logo-inverted.png");
}
@media (max-width: 575.98px) {
  /* Compact wordmark (drops the letter-spaced tagline) so the logo doesn't
     crowd the burger/theme/lang controls on phones — down to 320px, EN & AR. */
  .navbar-fal .brand-logo::before {
    width: 120px; height: 22px;
    background-image: url("../logos/falcon-wordmark.png");
  }
  [data-theme="dark"] .navbar-fal .brand-logo::before {
    background-image: url("../logos/falcon-wordmark-inverted.png");
  }
}

/* Footer — white-bg logo shown as a clean rounded card */
.footer-brand.brand-logo { display: inline-block; }
.footer-brand.brand-logo::before {
  content: "";
  display: block;
  width: 208px; height: 74px;
  background: #fff url("../logos/falcon-logo-white-bg.png") center / 168px auto no-repeat;
  border-radius: 12px;
}
