/* ===========================================================================
   TELMA GENERAL CONTRACTING — Website 2027 Theme
   تلما للمقاولات العامة — ثيم موقع 2027
   Brand: Violet #7f4594  ·  Blue #24539e
   Stack: Bootstrap 5.3 + Font Awesome 6 + vanilla JS (no jQuery)
   =========================================================================== */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------- */
:root {
  /* Brand */
  --tl-violet:        #7f4594;
  --tl-violet-dark:   #673679;
  --tl-violet-light:  #a071b4;
  --tl-blue:          #24539e;
  --tl-blue-dark:     #1a3e78;
  --tl-blue-light:    #5b84c6;
  --tl-gold:          #d99a2b;

  --tl-grad:          linear-gradient(135deg, #7f4594 0%, #24539e 100%);
  --tl-grad-rev:      linear-gradient(135deg, #24539e 0%, #7f4594 100%);
  --tl-grad-soft:     linear-gradient(135deg, rgba(127,69,148,.10), rgba(36,83,158,.10));

  /* Neutrals — light */
  --tl-ink:           #0f172a;
  --tl-heading:       #15213b;
  --tl-body:          #4a5568;
  --tl-muted:         #6b7a90;
  --tl-line:          #e3e8ef;
  --tl-surface:       #ffffff;
  --tl-surface-2:     #f6f8fc;
  --tl-surface-3:     #eceff6;
  --tl-invert:        #0f1729;

  /* Shape */
  --tl-radius:        18px;
  --tl-radius-sm:     12px;
  --tl-radius-lg:     26px;
  --tl-pill:          999px;

  /* Elevation */
  --tl-shadow-xs:     0 1px 2px rgba(15,23,42,.06);
  --tl-shadow-sm:     0 2px 6px rgba(15,23,42,.07);
  --tl-shadow:        0 10px 28px -8px rgba(15,23,42,.14), 0 3px 10px -4px rgba(15,23,42,.07);
  --tl-shadow-lg:     0 28px 60px -18px rgba(15,23,42,.26), 0 10px 24px -10px rgba(15,23,42,.12);
  --tl-ring:          0 0 0 4px rgba(127,69,148,.22);

  /* Motion */
  --tl-ease:          cubic-bezier(.22,.61,.36,1);
  --tl-fast:          .18s var(--tl-ease);
  --tl-base:          .32s var(--tl-ease);
  --tl-slow:          .6s  var(--tl-ease);

  /* Layout */
  --tl-nav-h:         78px;

  /* Type */
  --tl-font:          'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tl-font-ar:       'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* Dark theme */
[data-theme="dark"] {
  --tl-ink:           #f3f6fb;
  --tl-heading:       #ffffff;
  --tl-body:          #b3bed0;
  --tl-muted:         #8b98ac;
  --tl-line:          #26304a;
  --tl-surface:       #10172a;
  --tl-surface-2:     #151e35;
  --tl-surface-3:     #1c2742;
  --tl-invert:        #070c18;
  --tl-violet-light:  #b98fcb;
  --tl-blue-light:    #7fa3dd;
  --tl-grad-soft:     linear-gradient(135deg, rgba(160,113,180,.16), rgba(91,132,198,.16));
  --tl-shadow-xs:     0 1px 2px rgba(0,0,0,.5);
  --tl-shadow-sm:     0 2px 8px rgba(0,0,0,.45);
  --tl-shadow:        0 12px 32px -10px rgba(0,0,0,.65), 0 4px 12px -6px rgba(0,0,0,.5);
  --tl-shadow-lg:     0 32px 70px -20px rgba(0,0,0,.8), 0 12px 28px -12px rgba(0,0,0,.6);
  --tl-ring:          0 0 0 4px rgba(185,143,203,.3);
  color-scheme: dark;
}

/* ---------------------------------------------------------------
   1b. BOOTSTRAP BRIDGE
   Bootstrap 5.3 supplies the reboot, the responsive grid (.row/.col-*)
   and the utility classes; these variables make it wear TELMA's theme.
   --------------------------------------------------------------- */
:root {
  --bs-body-font-family: var(--tl-font);
  --bs-body-font-size: 1rem;
  --bs-body-color: var(--tl-body);
  --bs-body-bg: var(--tl-surface);
  --bs-heading-color: var(--tl-heading);
  --bs-border-color: var(--tl-line);
  --bs-primary: #7f4594;
  --bs-primary-rgb: 127, 69, 148;
  --bs-secondary: #24539e;
  --bs-secondary-rgb: 36, 83, 158;
  --bs-link-color: #7f4594;
  --bs-link-hover-color: #24539e;
  --bs-border-radius: var(--tl-radius-sm);
}
html[lang="ar"] { --bs-body-font-family: var(--tl-font-ar); }

/* Match Bootstrap's container to the site's own measure. */
@media (min-width: 1200px) { .container { max-width: 1240px; } }
@media (min-width: 1400px) { .container { max-width: 1240px; } }
.container { padding-inline: 20px; }

/* ---------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--tl-nav-h) + 16px);
  /* Never let a stray wide element give the document a horizontal scrollport.
     In RTL that overflow grows leftwards and pushes the whole page off screen,
     so this is clipped on <html> as well as on <body>. `clip` (unlike `hidden`)
     creates no scroll container; the `hidden` below is the fallback. */
  overflow-x: hidden;
  overflow-x: clip;
}

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

html[lang="ar"] body { font-family: var(--tl-font-ar); line-height: 1.9; }

h1, h2, h3, h4, h5, h6 {
  color: var(--tl-heading);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6 { letter-spacing: 0; line-height: 1.35; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--tl-violet); text-decoration: none; transition: color var(--tl-fast); }
a:hover { color: var(--tl-blue); }

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

:focus-visible { outline: 3px solid var(--tl-violet-light); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(127,69,148,.22); color: var(--tl-heading); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--tl-surface-2); }
::-webkit-scrollbar-thumb { background: var(--tl-violet-light); border-radius: var(--tl-pill); border: 3px solid var(--tl-surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--tl-violet); }

/* ---------------------------------------------------------------
   2b. PAGE LOADER
   Hidden unless scripts are running, so a visitor with JavaScript
   disabled never sees a cover that cannot be dismissed.
   --------------------------------------------------------------- */
:root {
  /* How long the loader takes to fade away once the page is ready.
     How long it STAYS is set by data-min-ms in index.html. */
  --tl-loader-fade: .5s;
  /* Speed of the sliding progress bar (lower = faster). */
  --tl-loader-bar-speed: 1.15s;
}

.tl-loader { display: none; }

html.tl-js .tl-loader {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  background: var(--tl-surface);
  transition: opacity var(--tl-loader-fade) var(--tl-ease),
              visibility var(--tl-loader-fade) var(--tl-ease);
}
html.tl-js .tl-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.tl-loader__box { text-align: center; padding: 20px; }

.tl-loader__logo {
  width: min(220px, 56vw); height: auto;
  animation: tl-loader-breathe 1.8s var(--tl-ease) infinite;
}
[data-theme="dark"] .tl-loader__logo { filter: brightness(0) invert(1); }

.tl-loader__bar {
  width: min(220px, 56vw); height: 4px; margin: 1.7rem auto 0;
  border-radius: var(--tl-pill); background: var(--tl-surface-3); overflow: hidden;
}
.tl-loader__bar span {
  display: block; width: 40%; height: 100%;
  border-radius: var(--tl-pill); background: var(--tl-grad);
  animation: tl-loader-slide var(--tl-loader-bar-speed) var(--tl-ease) infinite;
}
html[dir="rtl"] .tl-loader__bar span { animation-name: tl-loader-slide-rtl; }

.tl-loader__text {
  margin: .9rem 0 0; font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--tl-muted);
}
html[lang="ar"] .tl-loader__text { letter-spacing: 0; text-transform: none; font-size: .9rem; }

@keyframes tl-loader-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .72; transform: scale(.97); } }
@keyframes tl-loader-slide     { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
@keyframes tl-loader-slide-rtl { 0% { transform: translateX(110%); }  100% { transform: translateX(-360%); } }

/* Skip link */
.tl-skip {
  position: fixed; top: -100px; inset-inline-start: 16px; z-index: 2100;
  background: var(--tl-violet); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--tl-radius-sm) var(--tl-radius-sm); font-weight: 700;
  transition: top var(--tl-fast);
}
.tl-skip:focus { top: 0; color: #fff; }

/* ---------------------------------------------------------------
   3. LANGUAGE SWITCHING (both languages live in the HTML)
   --------------------------------------------------------------- */
html:not([lang="ar"]) .lang-ar { display: none !important; }
html[lang="ar"]        .lang-en { display: none !important; }

/* ---------------------------------------------------------------
   4. UTILITIES
   --------------------------------------------------------------- */
.tl-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

.tl-grad-text {
  background: var(--tl-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.tl-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tl-violet);
  background: var(--tl-grad-soft);
  border: 1px solid var(--tl-line);
  padding: .45rem 1rem; border-radius: var(--tl-pill);
  margin-bottom: 1.1rem;
}
html[lang="ar"] .tl-eyebrow { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.tl-eyebrow i { font-size: .85em; }

.tl-section { padding: clamp(68px, 9vw, 120px) 0; position: relative; }
.tl-section--alt { background: var(--tl-surface-2); }

.tl-section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 68px); text-align: center; }
.tl-section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .5rem; }
.tl-section-head p { font-size: 1.08rem; color: var(--tl-muted); margin: 0; }
.tl-section-head--start { text-align: start; margin-inline: 0; }

.tl-rule { width: 76px; height: 5px; border-radius: var(--tl-pill); background: var(--tl-grad); margin: 1.1rem auto 1.5rem; border: 0; opacity: 1; }
.tl-section-head--start .tl-rule { margin-inline: 0; }

/* ---------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------- */
.tl-btn {
  --_bg: var(--tl-grad);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: inherit; font-size: .98rem; font-weight: 700; line-height: 1;
  padding: 1rem 1.7rem; border-radius: var(--tl-pill);
  border: 1px solid transparent; cursor: pointer;
  background: var(--_bg); color: #fff;
  box-shadow: var(--tl-shadow-sm);
  transition: transform var(--tl-fast), box-shadow var(--tl-base), background var(--tl-base), color var(--tl-base), border-color var(--tl-base);
  text-align: center;
}
.tl-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--tl-shadow); }
.tl-btn:active { transform: translateY(-1px); }
.tl-btn i { transition: transform var(--tl-base); }
.tl-btn:hover i.tl-arrow { transform: translateX(4px); }
html[dir="rtl"] .tl-btn:hover i.tl-arrow { transform: translateX(-4px); }

.tl-btn--ghost { background: transparent; color: var(--tl-heading); border-color: var(--tl-line); box-shadow: none; }
.tl-btn--ghost:hover { color: var(--tl-violet); border-color: var(--tl-violet); background: var(--tl-grad-soft); }

.tl-btn--glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.38); backdrop-filter: blur(10px); box-shadow: none; }
.tl-btn--glass:hover { background: rgba(255,255,255,.26); border-color: #fff; }

.tl-btn--light { background: #fff; color: var(--tl-violet); }
.tl-btn--light:hover { background: #fff; color: var(--tl-blue); }

.tl-btn--sm { padding: .68rem 1.2rem; font-size: .88rem; }
.tl-btn--block { width: 100%; }

/* ---------------------------------------------------------------
   6. TOP BAR
   --------------------------------------------------------------- */
.tl-topbar {
  background: var(--tl-grad); color: rgba(255,255,255,.9);
  font-size: .85rem; position: relative; z-index: 1035;
}
.tl-topbar .tl-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; flex-wrap: wrap; }
.tl-topbar a { color: rgba(255,255,255,.9); }
.tl-topbar a:hover { color: #fff; }
.tl-topbar-contact { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.tl-topbar-contact a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.tl-topbar-tools { display: flex; align-items: center; gap: .35rem; }
.tl-topbar-social { display: flex; gap: .2rem; margin-inline-end: .4rem; }
.tl-topbar-social a {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background var(--tl-fast), transform var(--tl-fast);
}
.tl-topbar-social a:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

.tl-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-family: inherit; font-size: .8rem; font-weight: 700;
  padding: .32rem .8rem; border-radius: var(--tl-pill); cursor: pointer;
  transition: background var(--tl-fast), border-color var(--tl-fast);
}
.tl-chip:hover { background: rgba(255,255,255,.26); border-color: #fff; color: #fff; }

@media (max-width: 767.98px) {
  .tl-topbar { font-size: .78rem; }
  .tl-topbar .tl-container { justify-content: center; padding-block: .4rem; }
  .tl-topbar-contact { gap: .9rem; justify-content: center; }
  .tl-topbar-social { display: none; }
}

/* ---------------------------------------------------------------
   7. NAVBAR
   --------------------------------------------------------------- */
.tl-nav {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--tl-surface) 82%, transparent);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--tl-base), border-color var(--tl-base), background var(--tl-base);
}
.tl-nav.is-stuck { box-shadow: var(--tl-shadow-sm); border-bottom-color: var(--tl-line); }

.tl-nav .tl-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--tl-nav-h); }

.tl-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.tl-brand img { height: 46px; width: auto; transition: transform var(--tl-base); }
.tl-brand:hover img { transform: scale(1.04); }
[data-theme="dark"] .tl-brand img { filter: brightness(0) invert(1); }

.tl-menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.tl-menu > li > a {
  position: relative; display: block; padding: .6rem .95rem;
  font-size: .94rem; font-weight: 700; color: var(--tl-body);
  border-radius: var(--tl-radius-sm); transition: color var(--tl-fast), background var(--tl-fast);
}
.tl-menu > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: .3rem; translate: -50% 0;
  width: 0; height: 3px; border-radius: var(--tl-pill); background: var(--tl-grad);
  transition: width var(--tl-base);
}
.tl-menu > li > a:hover { color: var(--tl-heading); background: var(--tl-surface-2); }
.tl-menu > li > a.is-active { color: var(--tl-violet); }
.tl-menu > li > a.is-active::after { width: 22px; }

.tl-nav-cta { display: flex; align-items: center; gap: .6rem; }

.tl-burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--tl-line);
  background: var(--tl-surface-2); border-radius: var(--tl-radius-sm);
  align-items: center; justify-content: center; cursor: pointer; color: var(--tl-heading);
  transition: background var(--tl-fast), border-color var(--tl-fast), color var(--tl-fast);
}
.tl-burger:hover { border-color: var(--tl-violet); color: var(--tl-violet); }
.tl-burger span { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: background var(--tl-fast); }
.tl-burger span::before, .tl-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform var(--tl-base), top var(--tl-base);
}
.tl-burger span::before { top: -6px; }
.tl-burger span::after  { top: 6px; }
.tl-burger[aria-expanded="true"] span { background: transparent; }
.tl-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.tl-burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 991.98px) {
  .tl-burger { display: inline-flex; }
  .tl-nav-cta > .tl-btn { display: none; }
  .tl-menu {
    position: fixed; top: var(--tl-nav-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--tl-surface); border-bottom: 1px solid var(--tl-line);
    box-shadow: var(--tl-shadow); padding: 1rem 20px 1.4rem;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height var(--tl-base), opacity var(--tl-base), visibility var(--tl-base), padding var(--tl-base);
  }
  .tl-menu.is-open { max-height: 78vh; max-height: 78svh; overflow-y: auto; opacity: 1; visibility: visible; -webkit-overflow-scrolling: touch; }
  .tl-menu > li > a { padding: .85rem 1rem; font-size: 1rem; }
  .tl-menu > li > a::after { display: none; }
  .tl-menu > li > a.is-active { background: var(--tl-grad-soft); }
  .tl-menu .tl-menu-cta { margin-top: .6rem; }
  .tl-menu .tl-menu-cta .tl-btn { width: 100%; }
}
@media (min-width: 992px) { .tl-menu .tl-menu-cta { display: none; } }

/* ---------------------------------------------------------------
   8. HERO
   --------------------------------------------------------------- */
.tl-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 88vh, 880px);
  display: flex; align-items: center;
  color: #fff;
}
/* svh ignores the mobile address bar, so the hero does not jump as it hides. */
@supports (height: 100svh) {
  .tl-hero { min-height: clamp(560px, 88svh, 880px); }
}
.tl-hero__bg { position: absolute; inset: 0; z-index: -3; }
.tl-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.tl-hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,16,32,.74) 0%, rgba(10,16,32,.42) 42%, rgba(10,16,32,.86) 100%),
    linear-gradient(115deg, rgba(127,69,148,.78) 0%, rgba(36,83,158,.62) 55%, rgba(36,83,158,.28) 100%);
}
.tl-hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 35%, transparent 100%);
}
.tl-hero__inner { padding-block: clamp(90px, 13vh, 150px) clamp(70px, 10vh, 120px); width: 100%; }
.tl-hero__content { max-width: 780px; }

.tl-hero .tl-eyebrow {
  color: #fff; background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32); backdrop-filter: blur(8px);
}
.tl-hero h1 {
  color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1.1rem;
  text-shadow: 0 2px 28px rgba(0,0,0,.35);
}
html[lang="ar"] .tl-hero h1 { letter-spacing: 0; line-height: 1.25; }
.tl-hero h1 .tl-hero__accent {
  background: linear-gradient(100deg, #ffffff 0%, #e4cdf0 45%, #b9d1f5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.tl-hero__lead {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: rgba(255,255,255,.9);
  max-width: 58ch; margin-bottom: 2.2rem; font-weight: 500;
  text-shadow: 0 1px 14px rgba(0,0,0,.3);
}
.tl-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 3rem; }

.tl-hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--tl-radius);
  overflow: hidden; backdrop-filter: blur(12px); max-width: 760px;
}
.tl-hero__stat { background: rgba(14,20,40,.34); padding: 1.3rem 1.2rem; text-align: center; }
.tl-hero__stat b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.02em; }
.tl-hero__stat span { display: block; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.76); text-transform: uppercase; letter-spacing: .08em; margin-top: .3rem; }
html[lang="ar"] .tl-hero__stat span { text-transform: none; letter-spacing: 0; font-size: .85rem; }

.tl-hero__scroll {
  position: absolute; bottom: 26px; inset-inline-start: 50%; translate: -50% 0; z-index: 2;
  color: rgba(255,255,255,.75); font-size: 1.3rem; animation: tl-bob 2.4s var(--tl-ease) infinite;
}
.tl-hero__scroll:hover { color: #fff; }
@keyframes tl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

/* ---------------------------------------------------------------
   9. TRUST STRIP (marquee)
   --------------------------------------------------------------- */
.tl-strip { background: var(--tl-surface-3); border-block: 1px solid var(--tl-line); padding: 1.1rem 0; overflow: hidden; }
.tl-strip__track { display: flex; gap: 3.2rem; width: max-content; animation: tl-slide 36s linear infinite; }
.tl-strip:hover .tl-strip__track { animation-play-state: paused; }
.tl-strip__item {
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap;
  font-weight: 700; font-size: .92rem; color: var(--tl-muted); letter-spacing: .02em;
}
.tl-strip__item i { color: var(--tl-violet); font-size: 1.05rem; }
@keyframes tl-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .tl-strip__track { animation-name: tl-slide-rtl; }
@keyframes tl-slide-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------------------------------------------------------------
   10. ABOUT
   --------------------------------------------------------------- */
.tl-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 991.98px) { .tl-about__grid { grid-template-columns: 1fr; } }

.tl-about__visual { position: relative; }
.tl-about__card {
  background: var(--tl-surface); border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius-lg); padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: var(--tl-shadow); position: relative; overflow: hidden;
}
.tl-about__card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 6px; background: var(--tl-grad);
}
.tl-about__card img { display: block; margin-inline: auto; max-width: 340px; width: 100%; }
[data-theme="dark"] .tl-about__card img { filter: brightness(0) invert(1); }

.tl-about__badge {
  position: absolute; bottom: -26px; inset-inline-end: -14px;
  background: var(--tl-grad); color: #fff; border-radius: var(--tl-radius);
  padding: 1.1rem 1.5rem; box-shadow: var(--tl-shadow-lg); text-align: center;
  border: 4px solid var(--tl-surface);
}
.tl-about__badge b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; }
.tl-about__badge span { font-size: .78rem; font-weight: 600; opacity: .9; }
@media (max-width: 575.98px) { .tl-about__badge { position: static; margin-top: 1.2rem; display: block; } }

.tl-feature-list { display: grid; gap: .85rem; margin: 1.8rem 0 2.2rem; list-style: none; padding: 0; }
.tl-feature-list li { display: flex; align-items: flex-start; gap: .8rem; font-weight: 600; color: var(--tl-body); }
.tl-feature-list i {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tl-grad-soft); color: var(--tl-violet);
  display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; margin-top: .22rem;
}

/* ---------------------------------------------------------------
   11. CARDS (Mission / Expertise)
   --------------------------------------------------------------- */
.tl-grid { display: grid; gap: 1.6rem; }
.tl-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tl-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.tl-card {
  --tl-origin: left;
  position: relative; background: var(--tl-surface);
  border: 1px solid var(--tl-line); border-radius: var(--tl-radius);
  padding: clamp(1.6rem, 3vw, 2.3rem); overflow: hidden;
  transition: transform var(--tl-base), box-shadow var(--tl-base), border-color var(--tl-base);
  height: 100%;
}
.tl-card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: var(--tl-grad); transform: scaleX(0); transform-origin: var(--tl-origin);
  transition: transform var(--tl-base);
}
html[dir="rtl"] .tl-card { --tl-origin: right; }
.tl-card:hover { transform: translateY(-7px); box-shadow: var(--tl-shadow-lg); border-color: transparent; }
.tl-card:hover::before { transform: scaleX(1); }

.tl-card__icon {
  width: 62px; height: 62px; border-radius: 18px;
  background: var(--tl-grad-soft); border: 1px solid var(--tl-line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--tl-violet); margin-bottom: 1.3rem;
  transition: background var(--tl-base), color var(--tl-base), transform var(--tl-base), border-color var(--tl-base);
}
.tl-card:hover .tl-card__icon { background: var(--tl-grad); color: #fff; border-color: transparent; transform: rotate(-6deg) scale(1.06); }
.tl-card h3 { font-size: 1.28rem; margin-bottom: .6rem; }
.tl-card p { font-size: .97rem; margin: 0; }
.tl-card--center { text-align: center; }
.tl-card--center .tl-card__icon { margin-inline: auto; display: flex; }

/* ---------------------------------------------------------------
   12. COUNTERS BAND
   --------------------------------------------------------------- */
.tl-band {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background: var(--tl-grad); padding: clamp(60px, 8vw, 96px) 0;
}
.tl-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: radial-gradient(circle at 18% 22%, #fff 0 1.5px, transparent 1.6px),
                    radial-gradient(circle at 72% 78%, #fff 0 1.5px, transparent 1.6px);
  background-size: 46px 46px;
}
.tl-band h2 { color: #fff; }
.tl-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2rem 1.4rem; text-align: center; }
.tl-counter b { display: block; font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.tl-counter span { display: block; margin-top: .55rem; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .1em; }
html[lang="ar"] .tl-counter span { text-transform: none; letter-spacing: 0; font-size: .95rem; }

/* ---------------------------------------------------------------
   13. PORTFOLIO
   --------------------------------------------------------------- */
.tl-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 2.6rem; }
.tl-filter {
  font-family: inherit; font-size: .88rem; font-weight: 700;
  padding: .62rem 1.25rem; border-radius: var(--tl-pill); cursor: pointer;
  background: var(--tl-surface); color: var(--tl-body);
  border: 1px solid var(--tl-line);
  transition: color var(--tl-fast), background var(--tl-base), border-color var(--tl-fast), transform var(--tl-fast), box-shadow var(--tl-base);
}
.tl-filter:hover { color: var(--tl-violet); border-color: var(--tl-violet-light); transform: translateY(-2px); }
.tl-filter.is-active { background: var(--tl-grad); color: #fff; border-color: transparent; box-shadow: var(--tl-shadow-sm); }

.tl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1.4rem; }

.tl-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--tl-radius); aspect-ratio: 4 / 3;
  background: var(--tl-surface-3); box-shadow: var(--tl-shadow-sm);
  transition: transform var(--tl-base), box-shadow var(--tl-base), opacity var(--tl-base);
}
.tl-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tl-slow); }
.tl-tile__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; color: #fff; text-align: start;
  background: linear-gradient(to top, rgba(8,13,28,.9) 0%, rgba(8,13,28,.5) 42%, rgba(8,13,28,0) 78%);
  opacity: 0; transition: opacity var(--tl-base);
}
.tl-tile__tag {
  align-self: flex-start; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  background: var(--tl-grad); padding: .28rem .7rem; border-radius: var(--tl-pill); margin-bottom: .55rem;
}
html[lang="ar"] .tl-tile__tag { text-transform: none; letter-spacing: 0; font-size: .74rem; }
.tl-tile__overlay h4 { color: #fff; font-size: 1.05rem; margin: 0; font-weight: 700; }
.tl-tile__zoom {
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem;
  transform: scale(.6); opacity: 0; transition: transform var(--tl-base), opacity var(--tl-base);
}
.tl-tile:hover { transform: translateY(-4px); box-shadow: var(--tl-shadow); }
.tl-tile:hover img { transform: scale(1.09); }
.tl-tile:hover .tl-tile__overlay { opacity: 1; }
.tl-tile:hover .tl-tile__zoom { transform: scale(1); opacity: 1; }
.tl-tile:focus-visible .tl-tile__overlay { opacity: 1; }
.tl-tile:focus-visible .tl-tile__zoom { opacity: 1; transform: scale(1); }

.tl-tile.is-hidden { display: none; }

.tl-gallery__more { text-align: center; margin-top: 2.4rem; }

/* ---------------------------------------------------------------
   14. LIGHTBOX
   --------------------------------------------------------------- */
.tl-lb {
  position: fixed; inset: 0; z-index: 2000; display: none;
  background: rgba(6,10,22,.94); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.tl-lb.is-open { display: flex; animation: tl-fade .25s var(--tl-ease); }
@keyframes tl-fade { from { opacity: 0; } to { opacity: 1; } }
.tl-lb__figure { max-width: min(1100px, 100%); max-height: 100%; text-align: center; margin: 0; }
.tl-lb__figure img {
  max-width: 100%; max-height: 78vh; border-radius: var(--tl-radius-sm);
  box-shadow: var(--tl-shadow-lg); animation: tl-pop .32s var(--tl-ease);
}
@keyframes tl-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.tl-lb__caption { color: #fff; margin-top: 1rem; font-weight: 600; font-size: 1.02rem; }
.tl-lb__count { color: rgba(255,255,255,.55); font-size: .85rem; margin-top: .25rem; }
.tl-lb__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26);
  color: #fff; font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--tl-fast), transform var(--tl-fast), border-color var(--tl-fast);
}
.tl-lb__btn:hover { background: rgba(255,255,255,.26); border-color: #fff; transform: scale(1.07); }
.tl-lb__close { top: 22px; inset-inline-end: 22px; }
.tl-lb__prev  { inset-inline-start: clamp(10px, 3vw, 36px); }
.tl-lb__next  { inset-inline-end: clamp(10px, 3vw, 36px); }
html[dir="rtl"] .tl-lb__prev i, html[dir="rtl"] .tl-lb__next i { transform: scaleX(-1); }

/* ---------------------------------------------------------------
   15. PROCESS
   --------------------------------------------------------------- */
.tl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); gap: 1.6rem; counter-reset: tl-step; }
.tl-step { position: relative; padding-top: .5rem; counter-increment: tl-step; }
.tl-step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--tl-surface); border: 2px solid var(--tl-line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; color: var(--tl-violet);
  margin-bottom: 1.1rem; position: relative; z-index: 1;
  transition: background var(--tl-base), color var(--tl-base), border-color var(--tl-base);
}
.tl-step__num::after { content: counter(tl-step, decimal-leading-zero); }
.tl-step:hover .tl-step__num { background: var(--tl-grad); color: #fff; border-color: transparent; }
.tl-step:not(:last-child)::before {
  content: ""; position: absolute; top: 28px; inset-inline-start: 56px; inset-inline-end: -1.6rem;
  height: 2px; background: repeating-linear-gradient(90deg, var(--tl-line) 0 7px, transparent 7px 14px);
}
@media (max-width: 767.98px) { .tl-step:not(:last-child)::before { display: none; } }
.tl-step h3 { font-size: 1.13rem; margin-bottom: .45rem; }
.tl-step p { font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------
   15b. FAQ
   Built on <details>/<summary>: it opens and closes without any
   JavaScript, and screen readers and search engines read it as plain
   question-and-answer content.
   --------------------------------------------------------------- */
.tl-faq { max-width: 860px; margin-inline: auto; display: grid; gap: .9rem; }

.tl-faq__item {
  background: var(--tl-surface); border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius); overflow: hidden;
  transition: border-color var(--tl-base), box-shadow var(--tl-base);
}
.tl-faq__item[open] { border-color: var(--tl-violet-light); box-shadow: var(--tl-shadow); }
.tl-faq__item:hover { border-color: var(--tl-violet-light); }

.tl-faq__item summary {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.04rem; color: var(--tl-heading);
  transition: color var(--tl-fast);
}
.tl-faq__item summary::-webkit-details-marker { display: none; }
.tl-faq__item summary::marker { content: ""; }
.tl-faq__item summary:hover { color: var(--tl-violet); }
.tl-faq__item[open] summary { color: var(--tl-violet); }

.tl-faq__chev {
  margin-inline-start: auto; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tl-grad-soft); color: var(--tl-violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; transition: transform var(--tl-base), background var(--tl-base), color var(--tl-base);
}
.tl-faq__item[open] .tl-faq__chev { transform: rotate(180deg); background: var(--tl-grad); color: #fff; }

.tl-faq__body { padding: 0 1.4rem 1.3rem; }
.tl-faq__body p { margin: 0; font-size: .98rem; }
.tl-faq__body a { font-weight: 700; }

@media (max-width: 575.98px) {
  .tl-faq__item summary { padding: 1rem 1.1rem; font-size: .96rem; gap: .7rem; }
  .tl-faq__body { padding: 0 1.1rem 1.1rem; }
}

/* ---------------------------------------------------------------
   16. CTA
   --------------------------------------------------------------- */
.tl-cta {
  background: var(--tl-grad); color: #fff; border-radius: var(--tl-radius-lg);
  padding: clamp(2.4rem, 6vw, 4.2rem); text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--tl-shadow-lg);
}
.tl-cta::before {
  content: ""; position: absolute; top: -60%; inset-inline-end: -16%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.2) 0%, transparent 68%);
}
.tl-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); position: relative; }
.tl-cta p { color: rgba(255,255,255,.88); max-width: 58ch; margin-inline: auto; margin-bottom: 2rem; position: relative; font-size: 1.05rem; }
.tl-cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; position: relative; }

/* ---------------------------------------------------------------
   17. CONTACT
   --------------------------------------------------------------- */
.tl-contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
@media (max-width: 991.98px) { .tl-contact__grid { grid-template-columns: 1fr; } }

.tl-info { display: grid; gap: 1rem; }
.tl-info__item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--tl-surface); border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius); padding: 1.3rem 1.4rem;
  transition: border-color var(--tl-base), box-shadow var(--tl-base), transform var(--tl-base);
}
.tl-info__item:hover { border-color: var(--tl-violet-light); box-shadow: var(--tl-shadow); transform: translateY(-3px); }
.tl-info__icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
  background: var(--tl-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.tl-info__item h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--tl-muted); margin: 0 0 .28rem; font-weight: 700; }
html[lang="ar"] .tl-info__item h4 { text-transform: none; letter-spacing: 0; font-size: .88rem; }
.tl-info__item p, .tl-info__item a { margin: 0; font-weight: 700; color: var(--tl-heading); font-size: 1rem; overflow-wrap: anywhere; }
.tl-info__item a:hover { color: var(--tl-violet); }

.tl-form {
  background: var(--tl-surface); border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--tl-shadow);
}
.tl-field { margin-bottom: 1.15rem; }
.tl-field label { display: block; font-size: .85rem; font-weight: 700; color: var(--tl-heading); margin-bottom: .45rem; }
.tl-field .tl-req { color: #d9534f; }
.tl-input {
  width: 100%; font-family: inherit; font-size: .97rem; color: var(--tl-heading);
  background: var(--tl-surface-2); border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius-sm); padding: .85rem 1rem;
  transition: border-color var(--tl-fast), box-shadow var(--tl-fast), background var(--tl-fast);
}
.tl-input::placeholder { color: var(--tl-muted); opacity: .8; }
.tl-input:focus { outline: none; border-color: var(--tl-violet); background: var(--tl-surface); box-shadow: var(--tl-ring); }
.tl-input:user-invalid { border-color: #d9534f; }
textarea.tl-input { resize: vertical; min-height: 132px; }
.tl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.15rem; }
@media (max-width: 575.98px) { .tl-field-row { grid-template-columns: 1fr; } }

.tl-alert {
  display: none; align-items: flex-start; gap: .7rem;
  padding: .9rem 1.1rem; border-radius: var(--tl-radius-sm);
  font-weight: 600; font-size: .94rem; margin-bottom: 1.1rem;
}
.tl-alert.is-shown { display: flex; }
.tl-alert--ok  { background: rgba(31,145,90,.12); color: #1f915a; border: 1px solid rgba(31,145,90,.3); }
.tl-alert--err { background: rgba(217,83,79,.12); color: #c9433e; border: 1px solid rgba(217,83,79,.3); }

/* Honeypot. Hidden the direction-safe way: an off-screen offset such as
   left:-9999px overflows leftwards in RTL, which would widen the page. */
.tl-hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tl-hp input { width: 1px; }

/* Map. The live Google embed is optional (see index.html) — when it is used,
   max-width keeps a slow or blocked frame from widening the page. */
.tl-map { border-radius: var(--tl-radius); overflow: hidden; border: 1px solid var(--tl-line); box-shadow: var(--tl-shadow-sm); margin-top: 1rem; }
.tl-map iframe { display: block; width: 100%; max-width: 100%; height: 260px; border: 0; }
[data-theme="dark"] .tl-map iframe { filter: invert(.9) hue-rotate(180deg); }

/* Lightweight location card used in place of a third-party frame. */
.tl-maplink {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.2rem;
  margin-top: 1rem; padding: 1.5rem 1.5rem;
  border: 1px solid var(--tl-line); border-radius: var(--tl-radius);
  background-color: var(--tl-surface-2);
  background-image:
    linear-gradient(var(--tl-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tl-line) 1px, transparent 1px);
  background-size: 34px 34px;
  box-shadow: var(--tl-shadow-sm);
  transition: border-color var(--tl-base), box-shadow var(--tl-base), transform var(--tl-base);
}
.tl-maplink::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--tl-surface-2) 10%, transparent 55%, var(--tl-surface-2) 95%);
}
.tl-maplink:hover { border-color: var(--tl-violet-light); box-shadow: var(--tl-shadow); transform: translateY(-3px); }
.tl-maplink > * { position: relative; }
.tl-maplink__pin {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--tl-grad); color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--tl-violet) 12%, transparent);
}
.tl-maplink__text { flex: 1; }
.tl-maplink__text strong { display: block; color: var(--tl-heading); font-size: 1.05rem; font-weight: 700; }
.tl-maplink__text span { display: block; color: var(--tl-muted); font-size: .92rem; }
.tl-maplink__go { flex-shrink: 0; color: var(--tl-violet); font-size: 1.1rem; }
html[dir="rtl"] .tl-maplink__go i { transform: scaleX(-1); }

/* ---------------------------------------------------------------
   18. FOOTER
   --------------------------------------------------------------- */
.tl-footer { background: var(--tl-invert); color: rgba(255,255,255,.66); padding-top: clamp(56px, 7vw, 84px); }
[data-theme="dark"] .tl-footer { border-top: 1px solid var(--tl-line); }
.tl-footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: .01em; }
.tl-footer a { color: rgba(255,255,255,.66); }
.tl-footer a:hover { color: #fff; }
.tl-footer p { font-size: .94rem; }
.tl-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-bottom: 2.6rem; }
@media (max-width: 991.98px) { .tl-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 575.98px) { .tl-footer__grid { grid-template-columns: 1fr; } }
.tl-footer__logo { height: 48px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.tl-footer__links { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; font-size: .94rem; }
.tl-footer__links a { display: inline-flex; align-items: center; gap: .5rem; transition: gap var(--tl-fast), color var(--tl-fast); }
.tl-footer__links a:hover { gap: .75rem; }
.tl-footer__links i { font-size: .62rem; color: var(--tl-violet-light); }

.tl-social { display: flex; gap: .5rem; margin-top: 1.3rem; }
.tl-social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff;
  transition: background var(--tl-base), transform var(--tl-fast), border-color var(--tl-fast);
}
.tl-social a:hover { background: var(--tl-grad); border-color: transparent; transform: translateY(-4px); color: #fff; }

.tl-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center;
  font-size: .88rem;
}

/* ---------------------------------------------------------------
   19. FLOATING ACTIONS
   --------------------------------------------------------------- */
.tl-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1040; display: grid; gap: .65rem; }
.tl-float a, .tl-float button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; box-shadow: var(--tl-shadow);
  transition: transform var(--tl-fast), box-shadow var(--tl-base), opacity var(--tl-base), visibility var(--tl-base);
}
.tl-float a:hover, .tl-float button:hover { transform: translateY(-4px) scale(1.06); box-shadow: var(--tl-shadow-lg); color: #fff; }
.tl-wa { background: #25d366; position: relative; }
.tl-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: tl-pulse 2.4s infinite;
}
@keyframes tl-pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.tl-top { background: var(--tl-grad); opacity: 0; visibility: hidden; font-size: 1.05rem; }
.tl-top.is-shown { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------
   20. SCROLL REVEAL
   --------------------------------------------------------------- */
/* The fade-in is a decoration, so it is applied ONLY when scripts are
   running (html.tl-js, set by the inline script in the head). Without that
   guard, opacity:0 would hide the whole page for good if js/telma.js ever
   failed to load — a blocked script, a bad upload or a stale cache would
   leave the visitor looking at a blank screen. */
html.tl-js .tl-reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--tl-ease), transform .7s var(--tl-ease);
}
html.tl-js .tl-reveal.is-in { opacity: 1; transform: none; }
.tl-reveal[data-delay="1"] { transition-delay: .08s; }
.tl-reveal[data-delay="2"] { transition-delay: .16s; }
.tl-reveal[data-delay="3"] { transition-delay: .24s; }
.tl-reveal[data-delay="4"] { transition-delay: .32s; }

/* ===============================================================
   21. DEVICE ADAPTATION
   The layout above is fluid (grid auto-fit + clamp), so it already
   reflows at any width. This section handles what fluidity alone
   cannot: input type, very small phones, short landscape screens
   and very large monitors.
   =============================================================== */

/* ---- 21a. Touch devices (phones, tablets, touch laptops) -------
   There is no hover on a touch screen, so anything revealed only on
   :hover would never be seen. Project captions are shown permanently
   instead, and the hover-zoom is dropped. */
@media (hover: none) {
  .tl-tile__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(8,13,28,.88) 0%, rgba(8,13,28,.34) 48%, rgba(8,13,28,0) 80%);
  }
  .tl-tile__zoom { opacity: 1; transform: none; }
  .tl-tile:hover img { transform: none; }
  .tl-tile:hover { transform: none; box-shadow: var(--tl-shadow-sm); }
  .tl-tile:active { transform: scale(.98); }

  /* Cards and buttons: keep the pressed state, drop the lift. */
  .tl-card:hover, .tl-info__item:hover, .tl-maplink:hover { transform: none; }
  .tl-card:hover::before { transform: scaleX(1); }
  .tl-btn:hover { transform: none; }
  .tl-btn:active { transform: scale(.97); }
  .tl-filter:hover { transform: none; }

  /* The marquee cannot be paused by hovering, so let it run. */
  .tl-strip:hover .tl-strip__track { animation-play-state: running; }
}

/* Comfortable tap targets (Apple/Google both ask for ~44px). */
@media (pointer: coarse) {
  .tl-menu > li > a { padding-block: .9rem; }
  .tl-filter { padding: .75rem 1.25rem; }
  .tl-topbar-social a { width: 36px; height: 36px; }
  .tl-footer__links a, .tl-footer__links li { min-height: 32px; }
  .tl-social a { width: 46px; height: 46px; }
  .tl-float a, .tl-float button { width: 56px; height: 56px; }
}

/* ---- 21b. Phones ----------------------------------------------- */
@media (max-width: 767.98px) {
  /* iOS zooms the page in when a focused field is under 16px. */
  .tl-input { font-size: 16px; }

  /* Two thumbnails per row reads better than 21 full-width photos. */
  .tl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

  .tl-section-head { margin-bottom: 2.4rem; }
  .tl-hero__actions { gap: .7rem; }
  .tl-hero__actions .tl-btn { flex: 1 1 100%; }
}

@media (max-width: 575.98px) {
  /* Tighten the hero so "About" is reachable in one scroll on a phone. */
  .tl-hero__inner { padding-block: 70px 46px; }
  .tl-hero__lead { font-size: 1.02rem; margin-bottom: 1.6rem; }
  .tl-hero__actions { margin-bottom: 2rem; }
  .tl-hero .tl-eyebrow { margin-bottom: .85rem; }
  .tl-cta__actions .tl-btn { width: 100%; }

  /* Captions have to fit a thumbnail roughly 160px wide. */
  .tl-tile__overlay { padding: .75rem .7rem; }
  .tl-tile__overlay h4 { font-size: .86rem; line-height: 1.25; }
  .tl-tile__tag { font-size: .58rem; padding: .2rem .5rem; margin-bottom: .32rem; }
  .tl-tile__zoom { width: 32px; height: 32px; font-size: .72rem; top: .55rem; inset-inline-end: .55rem; }

  /* Lightbox: move the arrows off the photo and onto the bar below. */
  .tl-lb { padding: 1rem .6rem 5.2rem; }
  .tl-lb__btn { width: 46px; height: 46px; }
  .tl-lb__prev, .tl-lb__next { top: auto; bottom: 20px; }
  .tl-lb__prev { inset-inline-start: calc(50% - 74px); }
  .tl-lb__next { inset-inline-end: calc(50% - 74px); }
  .tl-lb__figure img { max-height: 60vh; }
  .tl-lb__close { top: 14px; inset-inline-end: 14px; }
}

/* ---- 21c. Very small phones (320–399px) ------------------------ */
@media (max-width: 399.98px) {
  .tl-container, .container { padding-inline: 16px; }
  .tl-brand img { height: 38px; }
  .tl-topbar { font-size: .74rem; }
  .tl-topbar-contact { gap: .7rem; }
  .tl-hero__stat { padding: 1rem .8rem; }
  .tl-card, .tl-form { padding: 1.4rem 1.2rem; }
  .tl-info__item { padding: 1.1rem; gap: .9rem; }
  .tl-maplink { padding: 1.2rem; gap: .9rem; }
}

/* ---- 21d. Short / landscape screens ----------------------------
   A phone held sideways is only ~360px tall; a full-height hero would
   take two screens before any content appears. */
@media (max-height: 560px) and (orientation: landscape) {
  .tl-hero { min-height: auto; }
  .tl-hero__inner { padding-block: 86px 54px; }
  .tl-hero h1 { font-size: clamp(1.9rem, 5.2vw, 2.8rem); margin-bottom: .7rem; }
  .tl-hero__lead { margin-bottom: 1.4rem; font-size: 1rem; }
  .tl-hero__actions { margin-bottom: 1.4rem; }
  .tl-hero__stat { padding: .7rem .8rem; }
  .tl-hero__stat b { font-size: 1.35rem; }
  .tl-hero__scroll { display: none; }
  .tl-menu.is-open { max-height: 62vh; }
  .tl-lb__figure img { max-height: 70vh; }
}

/* ---- 21e. Large monitors ---------------------------------------
   Keep the measure readable but stop the page looking marooned in
   the middle of a wide screen. */
@media (min-width: 1600px) {
  .tl-container, .container { max-width: 1400px; }
  .tl-hero__content { max-width: 900px; }
  .tl-hero__stats { max-width: 880px; }
  .tl-gallery { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
}

@media (min-width: 2000px) {
  html { font-size: 17.5px; }
  .tl-container, .container { max-width: 1600px; }
  .tl-hero__content { max-width: 1020px; }
}

@media (min-width: 2560px) {
  html { font-size: 19px; }
  .tl-container, .container { max-width: 1780px; }
  .tl-gallery { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
}

/* Below ~360px two thumbnails get too small to read, so stack them. */
@media (max-width: 359.98px) {
  .tl-gallery { grid-template-columns: 1fr; }
}

/* ---- 21f. Foldables and other very narrow windows -------------- */
@media (max-width: 300px) {
  .tl-container, .container { padding-inline: 12px; }
  .tl-hero h1 { font-size: 2.1rem; }
  .tl-hero__stats { grid-template-columns: 1fr; }
}

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

@media print {
  .tl-topbar, .tl-nav, .tl-float, .tl-hero__scroll, .tl-filters, .tl-lb, .tl-strip { display: none !important; }
  body { color: #000; background: #fff; }
  .tl-section { padding: 18px 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
