
/* =========================================================
   ASAS — أساس للأعمال المساحية والهندسية
   Design system derived from brand guide Rev.01 (2026)
   Palette ratio 60·25·10·5 — navy · steel · gold · white
   ========================================================= */

:root{
  --navy:#3A4552;
  --navy-deep:#232B33;
  --steel:#5D87A8;
  --steel-light:#8FB0C8;
  --gold:#F2C830;
  --gold-deep:#D9AE12;
  --paper:#F6F4EE;
  --paper-line:#E4E1D6;
  --ink:#232B33;
  --white:#FFFFFF;
  --muted:#5C6672;
  --danger:#B5473C;

  --font-display:'Tajawal', sans-serif;
  --font-body:'IBM Plex Sans Arabic', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --container:1200px;
  --gap:24px;
  --radius:2px;
  --ease:cubic-bezier(.22,.7,.2,1);
}

*,*::before,*::after{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.9;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font:inherit; cursor:pointer; border:none; background:none; color:inherit;}
input,textarea,select{font:inherit; color:inherit;}

.mono{
  font-family:var(--font-mono);
  direction:ltr; unicode-bidi:isolate;
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.01ms !important; transition-duration:.01ms !important;}
}

/* ===== Layout helpers ===== */
.wrap{max-width:var(--container); margin-inline:auto; padding-inline:24px;}
section{padding:96px 0;}
@media (max-width:780px){ section{padding:64px 0;} }

.bg-blueprint{
  position:relative;
  background-color:var(--navy-deep); color:var(--white);
  background-image:
    linear-gradient(rgba(93,135,168,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,135,168,0.14) 1px, transparent 1px),
    linear-gradient(rgba(93,135,168,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,135,168,0.3) 1px, transparent 1px);
  background-size:8px 8px, 8px 8px, 40px 40px, 40px 40px;
}
.bg-paper{
  background-color:var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size:28px 28px;
}
.bg-white{background:var(--white);}

/* Corner tick frame — signature brand device, used on plates/cards */
.tick-frame{position:relative;}
.tick-frame::before,.tick-frame::after{
  content:""; position:absolute; width:16px; height:16px; pointer-events:none;
  border-color:var(--gold-deep);
}
.tick-frame::before{top:-1px; inset-inline-end:-1px; border-top:3px solid; border-inline-end:3px solid;}
.tick-frame::after{bottom:-1px; inset-inline-start:-1px; border-bottom:3px solid; border-inline-start:3px solid;}

/* ===== Eyebrow / section kicker ===== */
.eyebrow{
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-mono); font-size:12px; letter-spacing:2px;
  color:var(--steel); text-transform:uppercase; margin-bottom:14px;
  direction:ltr; unicode-bidi:isolate; justify-content:flex-end;
}
.eyebrow .rule{flex:0 0 46px; height:1px; background:rgba(93,135,168,0.5);}
.eyebrow.center{justify-content:center;}
.eyebrow.on-dark{color:var(--gold);}
.eyebrow.on-dark .rule{background:rgba(242,200,48,0.4);}

.section-head{max-width:680px; margin-inline-start:auto; text-align:end; margin-bottom:52px;}
.section-head.left{margin-inline:0; text-align:start;}
.section-head.center{margin-inline:auto; text-align:center;}

h1,h2,h3,h4{font-family:var(--font-display); color:var(--navy); line-height:1.15;}
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark h4{color:var(--white);}

h1{font-weight:900; font-size:clamp(36px,6vw,68px); letter-spacing:-0.5px;}
h2{font-weight:800; font-size:clamp(28px,3.4vw,42px);}
h3{font-weight:700; font-size:20px;}
p{color:var(--muted); font-size:16px;}
.on-dark p{color:var(--steel-light);}
.lead{font-size:18px; line-height:2; max-width:600px; margin-inline-start:auto;}
.lead.left{margin-inline:0;}

.accent{color:var(--gold);}
.text-steel{color:var(--steel);}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 30px; font-family:var(--font-display); font-weight:700; font-size:15px;
  border-radius:var(--radius); transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{background:var(--gold); color:var(--navy-deep);}
.btn-primary:hover{background:var(--gold-deep); transform:translateY(-2px); box-shadow:0 14px 30px -10px rgba(242,200,48,0.45);}
.btn-outline{border:1.5px solid rgba(93,135,168,0.55); color:var(--navy);}
.btn-outline:hover{background:var(--navy); color:var(--white); border-color:var(--navy);}
.on-dark .btn-outline{color:var(--white); border-color:rgba(255,255,255,0.35);}
.on-dark .btn-outline:hover{background:var(--white); color:var(--navy-deep);}
.btn-sm{padding:10px 18px; font-size:13px;}
.btn-block{width:100%; justify-content:center;}

/* ===== Navigation ===== */
.site-header{
  position:fixed; inset-inline:0; top:0; z-index:100;
  background:rgba(246,244,238,0.7); backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid rgba(58,69,82,0.08);
  transition:background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.solid{background:rgba(246,244,238,0.96); border-color:rgba(58,69,82,0.14);}
.nav{
  max-width:var(--container); margin-inline:auto; padding:0 24px;
  height:78px; display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{display:flex; align-items:center; gap:12px;}
.brand-mark{width:46px; height:46px; border-radius:50%; overflow:hidden; flex:none; box-shadow:0 0 0 1px rgba(93,135,168,0.35);}
.brand-mark img{width:100%; height:100%; object-fit:cover;}
.brand-name{font-family:var(--font-display); font-weight:800; font-size:17px; color:var(--navy); line-height:1.25;}
.brand-name small{display:block; font-family:var(--font-mono); font-weight:500; font-size:10px; letter-spacing:1.5px; color:var(--steel); direction:ltr; margin-top:2px;}

.nav-links{display:flex; align-items:center; gap:6px;}
.nav-links a{
  padding:10px 16px; font-size:14.5px; font-weight:500; color:var(--navy);
  border-radius:var(--radius); transition:color .2s, background .2s;
}
.nav-links a:hover{background:rgba(93,135,168,0.12); color:var(--steel);}
.nav-links a.active{color:var(--navy); font-weight:700; position:relative;}
.nav-links a.active::after{content:""; position:absolute; bottom:4px; inset-inline:16px; height:2px; background:var(--gold-deep);}
.nav-links li.current-menu-item > a{color:var(--navy); font-weight:700; position:relative;}
.nav-links li.current-menu-item > a::after{content:""; position:absolute; bottom:4px; inset-inline:16px; height:2px; background:var(--gold-deep);}

.nav-cta{display:flex; align-items:center; gap:14px;}
.nav-toggle{display:none; width:42px; height:42px; align-items:center; justify-content:center; border:1px solid rgba(58,69,82,0.2); border-radius:var(--radius);}
.nav-toggle span{position:relative; width:18px; height:2px; background:var(--navy);}
.nav-toggle span::before,.nav-toggle span::after{content:""; position:absolute; width:18px; height:2px; background:var(--navy); left:0; transition:transform .25s;}
.nav-toggle span::before{top:-6px;}
.nav-toggle span::after{top:6px;}

@media (max-width:960px){
  .nav-links{
    position:fixed; inset:78px 0 0 0; background:var(--paper);
    flex-direction:column; align-items:stretch; padding:20px 24px; gap:2px;
    transform:translateY(-8px); opacity:0; pointer-events:none; transition:opacity .25s, transform .25s;
    border-top:1px solid rgba(58,69,82,0.1);
  }
  .nav-links a{padding:16px 8px; font-size:16px; border-bottom:1px solid rgba(58,69,82,0.08);}
  body.nav-open .nav-links{opacity:1; transform:none; pointer-events:auto;}
  .nav-toggle{display:flex;}
  .nav-cta .btn{display:none;}
}

html{overflow-x:hidden;}

/* ===== Hero ===== */
.hero{
  min-height:100vh; display:flex; align-items:center; position:relative;
  padding:150px 0 90px;
  overflow:hidden;   /* clips .corner-ring; in LTR it would otherwise force a 220px h-scroll */
}
.hero .wrap{position:relative; z-index:2;}
.hero-coords{
  position:absolute; bottom:34px; inset-inline:24px; display:flex; gap:36px; flex-wrap:wrap;
  justify-content:space-between; font-family:var(--font-mono); font-size:11px; color:rgba(143,176,200,0.65);
  direction:ltr; letter-spacing:1px; z-index:2;
}
.corner-ring{position:absolute; border-radius:50%; border:1px solid rgba(242,200,48,0.12); pointer-events:none;}

.hero-stats{
  margin-top:64px; border-top:1px solid rgba(143,176,200,0.25);
  display:grid; grid-template-columns:repeat(4,1fr);
}
.hero-stats div{padding:22px 20px 0; border-inline-start:1px solid rgba(143,176,200,0.2);}
.hero-stats div:first-child{border-inline-start:none;}
.hero-stats .num{font-family:var(--font-mono); font-weight:700; font-size:26px; color:var(--gold); direction:ltr;}
.hero-stats .lbl{font-size:12.5px; color:var(--steel-light); margin-top:6px;}
@media (max-width:780px){
  .hero-stats{grid-template-columns:1fr 1fr; row-gap:24px;}
  .hero-stats div:nth-child(3){border-inline-start:none;}
  .hero-coords{display:none;}
}

/* ===== 360 product showcase (hero) ===== */
.hero-grid{display:grid; grid-template-columns:1.15fr 1fr; gap:40px; align-items:center;}
@media (max-width:900px){ .hero-grid{grid-template-columns:1fr; gap:56px;} }

.spin-stage{
  position:relative; width:100%; max-width:360px; aspect-ratio:1/1; margin-inline:auto;
  display:flex; align-items:center; justify-content:center; perspective:1300px;
}
.spin-ring{position:absolute; inset:0; border-radius:50%; border:1px dashed rgba(242,200,48,0.35); animation:ring-spin 16s linear infinite;}
.spin-ring.r2{inset:12%; border-color:rgba(143,176,200,0.4); animation-duration:24s; animation-direction:reverse;}
/* circular viewer holding the 360° turntable clip */
.spin-viewer{
  position:relative; width:78%; aspect-ratio:1/1; border-radius:50%; overflow:hidden;
  z-index:2; cursor:grab; touch-action:pan-y;
  box-shadow:0 34px 70px -22px rgba(0,0,0,0.65), 0 0 0 1px rgba(143,176,200,0.28) inset;
  /* feather the clip's studio backdrop into the blueprint background */
  -webkit-mask-image:radial-gradient(circle at 50% 50%, #000 62%, rgba(0,0,0,0.55) 82%, transparent 99%);
          mask-image:radial-gradient(circle at 50% 50%, #000 62%, rgba(0,0,0,0.55) 82%, transparent 99%);
}
.spin-viewer.is-grabbing{cursor:grabbing;}
.spin-video{
  width:100%; height:100%; object-fit:cover; display:block;
  filter:saturate(1.05) contrast(1.04);
}
/* transparent overlay so drags land on the stage, not the video element */
.spin-grab{position:absolute; inset:0;}

.spin-toggle{
  position:absolute; z-index:4; bottom:12%; inset-inline-end:6%;
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(35,43,51,0.82); border:1px solid rgba(242,200,48,0.45);
  color:var(--gold); backdrop-filter:blur(6px);
  transition:background .2s, transform .2s;
}
.spin-toggle:hover{background:var(--gold); color:var(--navy-deep); transform:scale(1.06);}
.spin-toggle svg{width:15px; height:15px;}
.spin-toggle .ico-play{display:none;}
.spin-toggle[aria-pressed="true"] .ico-play{display:block;}
.spin-toggle[aria-pressed="true"] .ico-pause{display:none;}

.spin-tag{
  position:absolute; bottom:-6px; inset-inline:0; text-align:center; z-index:3;
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:1.5px; color:var(--gold);
  direction:ltr; background:rgba(35,43,51,0.75); backdrop-filter:blur(6px); padding:6px 10px; margin-inline:auto; width:fit-content;
  border:1px solid rgba(242,200,48,0.3);
}
.spin-hint{
  position:absolute; top:-2px; inset-inline:0; text-align:center; z-index:3;
  font-size:11.5px; color:var(--steel-light); opacity:.85;
  transition:opacity .4s;
}
.spin-stage.is-touched .spin-hint{opacity:0;}

@keyframes ring-spin{ to{ transform:rotate(360deg); } }

@media (prefers-reduced-motion: reduce){
  .spin-ring{animation:none;}
}

/* ===== Reveal on scroll ===== */
/* Hidden only when JS is confirmed running (html.js). If main.js ever fails
   to load, .reveal content stays fully visible instead of vanishing. */
.js .reveal{opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
@media (prefers-reduced-motion: reduce){ .js .reveal{opacity:1; transform:none; transition:none;} }
.js .reveal.is-visible{opacity:1; transform:none;}

/* ===== Cards ===== */
.grid{display:grid; gap:var(--gap);}
.grid-2{grid-template-columns:1fr 1fr;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
@media (max-width:960px){ .grid-3,.grid-4{grid-template-columns:1fr 1fr;} }
@media (max-width:640px){ .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;} }

.card{
  background:var(--white); border:1px solid rgba(58,69,82,0.1);
  padding:34px 28px; transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover{transform:translateY(-4px); box-shadow:0 26px 50px -24px rgba(35,43,51,0.25); border-color:rgba(93,135,168,0.35);}
.card .icon{width:52px; height:52px; margin-bottom:20px; color:var(--steel);}
.card h3{margin-bottom:10px;}
.card p{font-size:14.5px;}
.card .tag{
  display:inline-block; margin-top:16px; font-family:var(--font-mono); font-size:10.5px;
  letter-spacing:1px; color:var(--steel); direction:ltr;
}

/* Plate card (used in gallery/equipment — mimics a technical drawing sheet) */
.plate{background:var(--white); border:1px solid rgba(58,69,82,0.12);}
.plate-visual{
  aspect-ratio:4/3; position:relative; display:flex; align-items:center; justify-content:center;
  background:var(--navy-deep); overflow:hidden;
}
.plate-visual svg{width:60%; height:60%;}
.plate-visual img{width:100%; height:100%; object-fit:cover;}
.plate-body{padding:20px 22px 22px;}
.plate-body h3{font-size:17px; margin-bottom:6px;}
.plate-body p{font-size:13.5px; margin-bottom:14px;}
.plate-meta{
  display:flex; justify-content:space-between; padding-top:12px; border-top:1px dashed rgba(58,69,82,0.18);
  font-family:var(--font-mono); font-size:10.5px; color:var(--muted); direction:ltr;
}
.plate-tag{
  position:absolute; top:14px; inset-inline-start:14px; z-index:2;
  background:rgba(35,43,51,0.7); backdrop-filter:blur(4px); color:var(--gold);
  font-family:var(--font-mono); font-size:10px; letter-spacing:1.5px; padding:5px 10px; direction:ltr;
}

/* ===== Stat / title-block strip (signature footer device) ===== */
.title-block{
  border-top:1px solid rgba(143,176,200,0.25);
  display:grid; grid-template-columns:repeat(5,1fr);
}
.title-block > div{padding:16px 18px; border-inline-start:1px solid rgba(143,176,200,0.2);}
.title-block > div:first-child{border-inline-start:none;}
.tb-label{font-family:var(--font-mono); font-size:9.5px; letter-spacing:1.5px; color:var(--steel-light); direction:ltr; text-transform:uppercase;}
.tb-value{font-family:var(--font-mono); font-size:12.5px; color:var(--white); margin-top:5px; direction:ltr; font-weight:600;}
@media (max-width:780px){
  .title-block{grid-template-columns:1fr 1fr;}
  .title-block > div:nth-child(3){border-inline-start:none;}
}

/* ===== Footer ===== */
.site-footer{background:var(--navy-deep); color:var(--white);}
.footer-top{padding:80px 0 50px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px;}
@media (max-width:900px){ .footer-top{grid-template-columns:1fr 1fr; row-gap:40px;} }
@media (max-width:560px){ .footer-top{grid-template-columns:1fr;} }
.footer-brand .brand-mark{width:52px; height:52px;}
.footer-brand{display:flex; flex-direction:column; gap:16px;}
.footer-brand p{max-width:280px; font-size:14px;}
.footer-col h4{font-family:var(--font-mono); font-size:11px; letter-spacing:1.5px; color:var(--gold); text-transform:uppercase; margin-bottom:18px; direction:ltr;}
.footer-col a{display:block; padding:6px 0; font-size:14px; color:var(--steel-light); transition:color .2s;}
.footer-col a:hover{color:var(--white);}
.footer-col .mono{color:var(--steel-light); font-size:13px; display:block; padding:6px 0;}
.social-row{display:flex; gap:10px; margin-top:6px;}
.social-row a{
  width:36px; height:36px; border:1px solid rgba(143,176,200,0.3); border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0;
}
.social-row a:hover{background:var(--gold); border-color:var(--gold);}
.social-row a:hover svg{stroke:var(--navy-deep);}
.social-row svg{width:16px; height:16px; stroke:var(--steel-light);}

.footer-bottom{
  border-top:1px solid rgba(143,176,200,0.15); padding:22px 0;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-family:var(--font-mono); font-size:11px; color:rgba(143,176,200,0.6); direction:ltr;
}

/* ===== CTA band ===== */
.cta-band{
  background:var(--navy); position:relative; overflow:hidden;
  border-top:1px solid rgba(242,200,48,0.3); border-bottom:1px solid rgba(242,200,48,0.3);
}
.cta-band .wrap{display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; padding:64px 24px;}
.cta-band h2{font-size:clamp(24px,3vw,34px);}

/* ===== Forms ===== */
.field{margin-bottom:20px;}
.field label{display:block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:8px;}
.field input, .field select, .field textarea{
  width:100%; padding:14px 16px; border:1.5px solid rgba(58,69,82,0.18); border-radius:var(--radius);
  background:var(--white); font-size:15px; transition:border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--steel);}
.field textarea{resize:vertical; min-height:120px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
@media (max-width:640px){ .field-row{grid-template-columns:1fr;} }
.form-note{font-size:12.5px; color:var(--muted); margin-top:-6px; margin-bottom:20px;}
.form-success{
  display:none; padding:18px 20px; background:rgba(242,200,48,0.12); border:1px solid rgba(242,200,48,0.4);
  color:var(--navy); font-weight:600; font-size:14px; margin-bottom:20px;
}
.form-success.show{display:block;}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--gold-deep); outline-offset:2px;
}

/* ===== Gallery filter ===== */
.filter-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:44px; justify-content:center;}
.filter-btn{
  padding:10px 20px; font-family:var(--font-mono); font-size:11.5px; letter-spacing:1px;
  border:1px solid rgba(58,69,82,0.2); border-radius:20px; color:var(--muted); direction:ltr;
  transition:all .2s;
}
.filter-btn.active, .filter-btn:hover{background:var(--navy); color:var(--white); border-color:var(--navy);}
.gallery-item{transition:opacity .3s, transform .3s;}
.gallery-item.hidden{display:none;}

/* ===== Page header (sub-pages) ===== */
.page-hero{padding:160px 0 70px; position:relative;}
.page-hero .eyebrow{justify-content:flex-end;}
.breadcrumb{font-family:var(--font-mono); font-size:11.5px; color:var(--steel-light); direction:ltr; margin-top:18px;}
.breadcrumb a{color:var(--gold);}

/* Split layout */
.split{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;}
@media (max-width:900px){ .split{grid-template-columns:1fr; gap:40px;} }

.badge-list{display:flex; flex-direction:column; gap:18px; margin-top:28px;}
.badge-item{display:flex; gap:16px; align-items:flex-start;}
.badge-num{
  font-family:var(--font-mono); font-size:12px; color:var(--navy-deep); background:var(--gold);
  width:30px; height:30px; flex:none; display:flex; align-items:center; justify-content:center; direction:ltr;
}
.on-dark .badge-num{color:var(--navy-deep);}
.badge-item h4{font-size:16px; margin-bottom:4px;}
.badge-item p{font-size:13.5px;}

/* Decorative frame visual (used instead of photography) */
.frame-visual{
  aspect-ratio:1/1; background:var(--navy-deep); position:relative; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(93,135,168,0.4);
}
.frame-visual svg{width:70%; height:70%;}

/* Utility */
.mt-0{margin-top:0 !important;}
.center{text-align:center;}

/* =========================================================
   Bilingual layer — language switch + English (LTR) mode
   ========================================================= */
.lang-switch{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; height:34px; padding:0 12px;
  font-family:var(--font-mono); font-size:12px; font-weight:600; letter-spacing:1px;
  color:var(--navy); border:1px solid rgba(93,135,168,0.5); border-radius:var(--radius);
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lang-switch:hover{background:var(--navy); color:var(--white); border-color:var(--navy);}

/* English: Latin-first type stack, Arabic faces stay as fallback */
html[lang="en"] body{
  font-family:'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height:1.75;
}
html[lang="en"] h1, html[lang="en"] h2,
html[lang="en"] h3, html[lang="en"] h4{
  font-family:'Tajawal', 'Segoe UI', system-ui, sans-serif;
  letter-spacing:-0.2px;
}
html[lang="en"] h1{line-height:1.08;}

/* eyebrow rules already run LTR; keep them aligned with text flow in EN */
html[lang="en"] .eyebrow{justify-content:flex-start;}
html[lang="en"] .eyebrow.center{justify-content:center;}
html[lang="en"] .section-head{margin-inline:0 auto; text-align:start;}
html[lang="en"] .section-head.center{margin-inline:auto; text-align:center;}
html[lang="en"] .lead{margin-inline:0 auto;}
html[lang="en"] .lead.left{margin-inline:0;}
html[lang="en"] .badge-list[style]{margin-inline-start:0 !important;}

@media (max-width:960px){
  .lang-switch{min-width:40px; height:32px; padding:0 10px; font-size:11.5px;}
}

/* ===== Spec table (equipment / project detail pages) ===== */
.spec-table{
  width:100%; margin-top:28px; border-collapse:collapse;
  border:1px solid rgba(58,69,82,0.14); background:var(--white);
}
.spec-table caption{
  caption-side:top; text-align:start;
  font-family:var(--font-mono); font-size:11px; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--steel);
  padding:0 0 10px;
}
.spec-table th, .spec-table td{
  padding:13px 16px; font-size:14.5px; text-align:start; vertical-align:top;
  border-top:1px solid rgba(58,69,82,0.12);
}
.spec-table tr:first-child th, .spec-table tr:first-child td{border-top:none;}
.spec-table th{
  width:38%; font-weight:600; color:var(--navy);
  background:rgba(93,135,168,0.06);
  border-inline-end:1px solid rgba(58,69,82,0.12);
}
.spec-table td{color:var(--muted);}
.spec-table td.mono{font-family:var(--font-mono); direction:ltr; unicode-bidi:isolate; color:var(--navy);}
@media (max-width:560px){
  .spec-table th{width:46%;}
  .spec-table th, .spec-table td{padding:11px 12px; font-size:13.5px;}
}

/* "also known as" line above the social icons */
.footer-akaknown{
  font-size:13px; color:var(--steel-light); opacity:.9; margin-top:2px;
}
.footer-akaknown strong{color:var(--gold); font-weight:600;}

/* ---------- contact page: quote form, direct links, map ---------- */
.quote-form{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:26px;}
.quote-form .field-full{grid-column:1 / -1;}
.quote-form label{display:block;font-size:.82rem;font-weight:700;letter-spacing:.04em;color:var(--navy);margin-bottom:8px;}
.quote-form input,.quote-form select,.quote-form textarea{
  width:100%;padding:13px 15px;font:inherit;font-size:.95rem;color:var(--navy);
  background:var(--white);border:1px solid var(--steel-light);border-radius:4px;
  transition:border-color .18s ease,box-shadow .18s ease;}
.quote-form input:focus,.quote-form select:focus,.quote-form textarea:focus{
  outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(198,160,74,.18);}
.quote-form textarea{resize:vertical;min-height:140px;line-height:1.7;}
.quote-form input:invalid:not(:placeholder-shown){border-color:#c0483c;}
.form-note{margin-top:12px;font-size:.88rem;min-height:1.2em;}
.form-note.ok{color:#1f7a4d;}
.form-note.err{color:#c0483c;}
.direct-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;}
.btn-ghost{background:transparent;color:var(--navy);border:1px solid var(--steel-light);}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold);}
.map-frame{position:relative;width:100%;aspect-ratio:4 / 3;border:1px solid var(--steel-light);border-radius:4px;overflow:hidden;background:var(--paper);}
.map-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
.footer-alias{margin-top:10px;font-size:.9rem;color:var(--steel-light);}
@media (max-width:720px){.quote-form{grid-template-columns:1fr;}.map-frame{aspect-ratio:1 / 1;}}
/* ==========================================================================
   ENGLISH / LTR REFINEMENTS
   The layout is built on logical properties, so it mirrors automatically.
   These rules correct the places where a design tuned for Arabic reads
   awkwardly in Latin type: looser tracking, different optical sizes, and
   blocks that were deliberately pushed to the inline-end for RTL.
   ========================================================================== */

/* Latin faces now actually load; give them the tracking Latin needs. */
html[lang="en"] body{
  font-family:'IBM Plex Sans','Segoe UI',system-ui,-apple-system,sans-serif;
  line-height:1.7;
  letter-spacing:0;
}
html[lang="en"] h1,html[lang="en"] h2,
html[lang="en"] h3,html[lang="en"] h4{
  font-family:'Tajawal','Segoe UI',system-ui,sans-serif;
  letter-spacing:-0.4px;
}
/* Arabic sets huge display sizes comfortably; Latin at 900/68px reads shouty. */
html[lang="en"] h1{font-size:clamp(32px,5vw,58px); line-height:1.06; letter-spacing:-1px;}
html[lang="en"] h2{font-size:clamp(26px,3vw,38px); line-height:1.14;}
html[lang="en"] h3{font-size:19px; line-height:1.3;}
html[lang="en"] .lead{font-size:17px; line-height:1.75;}

/* Text blocks: hug the start edge (left) instead of the RTL inline-end. */
html[lang="en"] .lead{margin-inline:0 auto;}
html[lang="en"] .lead.left{margin-inline:0;}
html[lang="en"] .section-head{margin-inline:0 auto; text-align:start;}
html[lang="en"] .section-head.center{margin-inline:auto; text-align:center;}
html[lang="en"] .eyebrow{justify-content:flex-start;}
html[lang="en"] .eyebrow.center{justify-content:center;}

/* Inline styles in the markup push blocks to the inline-end for Arabic.
   In English those should sit flush left instead. */
html[lang="en"] [style*="margin-inline-start:auto"]{margin-inline-start:0 !important;}
html[lang="en"] .badge-list[style]{margin-inline-start:0 !important;}

/* Mono/technical labels are already LTR; just stop the RTL letter-spacing
   from over-tracking Latin caps. */
html[lang="en"] .eyebrow span,
html[lang="en"] .footer-col h4,
html[lang="en"] .tb-label{letter-spacing:1.2px;}

/* Cards and plates: even optical rhythm for Latin descenders. */
html[lang="en"] .card p,html[lang="en"] .plate-body p{line-height:1.68;}
html[lang="en"] .plate-meta{letter-spacing:.6px;}

/* Spec tables read left-to-right; keep the label column tight. */
html[lang="en"] .spec-table th{width:44%; text-align:start;}
html[lang="en"] .spec-table td{text-align:start;}

/* Brand lockup: the Latin sub-label no longer needs the RTL nudge. */
html[lang="en"] .brand-name{letter-spacing:-0.2px;}
html[lang="en"] .brand-name small{letter-spacing:1.4px;}

/* Forms */
html[lang="en"] .quote-form label{letter-spacing:.02em;}
html[lang="en"] .quote-form textarea{line-height:1.65;}

/* Buttons: Arabic glyphs are wider; Latin needs a touch more horizontal room
   relative to its x-height so labels do not look cramped. */
html[lang="en"] .btn{letter-spacing:.2px;}
/* ==========================================================================
   TRAINING PAGE — department band, course accordions, instructor cards
   ========================================================================== */

/* ---- Department branding band ---- */
.dept-band{display:grid; grid-template-columns:180px 1fr; gap:40px; align-items:center;}
.dept-logo{position:relative; width:180px; height:180px; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(93,135,168,.28); border-radius:6px; background:var(--navy-deep); overflow:hidden;
  padding:18px;}
.dept-logo img{max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain;}
.dept-logo-ph{display:none; flex-direction:column; align-items:center; gap:10px; color:var(--steel);}
.dept-logo.is-placeholder .dept-logo-ph{display:flex;}
.dept-logo-ph svg{width:44px; height:44px;}
.dept-logo-ph em{font-family:var(--font-mono); font-style:normal; font-size:10px; letter-spacing:1.6px; direction:ltr;}
.dept-copy h2{margin-top:10px;}

.dept-stats{display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin-top:56px;
  border:1px solid var(--steel-light); border-radius:6px; overflow:hidden; background:var(--white);}
.dept-stats div{padding:26px 20px; text-align:center; border-inline-start:1px solid var(--steel-light);}
.dept-stats div:first-child{border-inline-start:none;}
.dept-stats .num{display:block; font-family:var(--font-mono); font-weight:700; font-size:28px; color:var(--gold); direction:ltr;}
.dept-stats .lbl{display:block; font-size:12.5px; color:var(--muted); margin-top:8px;}

/* ---- Avatars (placeholder monograms until real photos are supplied) ---- */
.avatar{display:inline-flex; align-items:center; justify-content:center; flex:none;
  width:44px; height:44px; border-radius:50%;
  background:linear-gradient(140deg,var(--navy),var(--navy-deep));
  color:var(--gold); font-family:var(--font-display); font-weight:700; font-size:14px;
  box-shadow:0 0 0 1px rgba(93,135,168,.3);}
.avatar::after{content:attr(data-initials);}
.avatar-lg{width:74px; height:74px; font-size:22px; margin-bottom:16px;}

/* ---- Course accordion ---- */
.course-list{display:flex; flex-direction:column; gap:14px;}
.course{border:1px solid var(--steel-light); border-radius:6px; background:var(--white); overflow:hidden;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);}
.course[open]{border-color:var(--gold); box-shadow:0 8px 30px rgba(11,31,51,.07);}
.course-head{display:grid; grid-template-columns:56px minmax(0,1fr) 264px 28px; gap:20px; align-items:center;
  padding:22px 24px; cursor:pointer; list-style:none;}
.course-head::-webkit-details-marker{display:none;}
.course-head:hover{background:var(--paper);}
.course-id{font-family:var(--font-mono); font-size:20px; font-weight:700; color:var(--gold); direction:ltr;}
.course-title h3{margin:0;}
.course-meta{display:flex; flex-wrap:wrap; gap:14px; margin-top:8px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.6px; color:var(--muted);}
.course-meta span{position:relative;}
.course-meta span+span::before{content:"·"; position:absolute; inset-inline-start:-9px; color:var(--steel-light);}
.course-tutor{display:flex; align-items:center; gap:12px;}
.tutor-name{font-weight:700; font-size:13.5px; color:var(--navy); line-height:1.35;}
.tutor-name small{display:block; font-weight:400; font-size:11.5px; color:var(--muted); margin-top:3px;}
.course-chevron{width:28px; height:28px; border-radius:50%; border:1px solid var(--steel-light);
  position:relative; flex:none; transition:transform .25s var(--ease), border-color .2s;}
.course-chevron::before,.course-chevron::after{content:""; position:absolute; top:50%; left:50%;
  width:11px; height:1.5px; background:var(--navy); transform:translate(-50%,-50%);}
.course-chevron::after{transform:translate(-50%,-50%) rotate(90deg); transition:opacity .25s var(--ease);}
.course[open] .course-chevron{border-color:var(--gold); transform:rotate(180deg);}
.course[open] .course-chevron::after{opacity:0;}

.course-body{display:none;}
.course[open] .course-body{padding:0 24px 28px; display:grid; grid-template-columns:1fr 1fr; gap:28px 40px;
  border-top:1px solid var(--steel-light); padding-top:26px; margin-top:2px;}
.course-body h4{font-family:var(--font-mono); font-size:11px; letter-spacing:1.6px; color:var(--gold);
  text-transform:uppercase; margin-bottom:12px; direction:ltr;}
.course-overview p{line-height:1.9;}
.course-syllabus ul{margin:0; padding:0; list-style:none;}
.course-syllabus li{position:relative; padding-inline-start:20px; margin-bottom:9px; font-size:14.5px; line-height:1.7;}
.course-syllabus li::before{content:""; position:absolute; inset-inline-start:0; top:10px;
  width:6px; height:6px; border-radius:50%; background:var(--gold);}
.course-facts{grid-column:1 / -1; display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:0;
  border:1px solid var(--steel-light); border-radius:5px; overflow:hidden; background:var(--paper);}
.course-facts div{padding:16px 18px; border-inline-start:1px solid var(--steel-light);}
.course-facts div:first-child{border-inline-start:none;}
.course-facts .k{display:block; font-family:var(--font-mono); font-size:10px; letter-spacing:1.4px;
  color:var(--muted); text-transform:uppercase; direction:ltr;}
.course-facts .v{display:block; font-weight:700; font-size:15px; color:var(--navy); margin-top:6px;}
.course-cta{grid-column:1 / -1; justify-self:start; display:inline-flex; align-items:center; gap:10px;}
.course-cta::before{content:""; width:16px; height:16px; flex:none;
  background:currentColor; -webkit-mask:var(--wa-mask) center/contain no-repeat; mask:var(--wa-mask) center/contain no-repeat;}
:root{--wa-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15L2 22l5.2-1.4A10 10 0 1 0 12 2zm5.1 14.1c-.2.6-1.2 1.2-1.7 1.2-.4 0-1 .1-3.2-.8-2.7-1.1-4.4-3.9-4.5-4-.1-.2-1-1.4-1-2.6s.6-1.8.9-2c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5s.8 1.9.8 2c.1.2.1.3 0 .5s-.2.4-.3.5l-.4.5c-.2.2-.3.3-.1.6s.7 1.2 1.5 1.9c1 .9 1.9 1.2 2.2 1.3.2.1.4.1.6-.1l.8-.9c.2-.2.4-.2.6-.1l1.8.9c.2.1.4.2.5.3s.1.6-.1 1.2z'/></svg>");}

/* ---- Instructor cards ---- */
.tutor-card{background:var(--white); border:1px solid var(--steel-light); border-radius:6px; padding:30px 26px;
  transition:border-color .2s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);}
.tutor-card:hover{border-color:var(--gold); transform:translateY(-4px); box-shadow:0 14px 36px rgba(11,31,51,.08);}
.tutor-card h3{margin:0;}
.tutor-role{font-family:var(--font-mono); font-size:11.5px; letter-spacing:.6px; color:var(--gold); margin:8px 0 12px;}

/* ---- Responsive ---- */
@media (max-width:960px){
  .dept-band{grid-template-columns:1fr; gap:26px; text-align:start;}
  .dept-logo{width:140px; height:140px;}
  .dept-stats{grid-template-columns:1fr 1fr;}
  .dept-stats div:nth-child(3){border-inline-start:none;}
  .course-head{grid-template-columns:44px 1fr 28px; gap:14px;}
  .course-tutor{grid-column:2 / 3; margin-top:10px;}
  .course[open] .course-body{grid-template-columns:1fr; gap:24px;}
  .course-facts{grid-template-columns:1fr 1fr;}
  .course-facts div:nth-child(3){border-inline-start:none;}
}
@media (max-width:560px){
  .dept-stats{grid-template-columns:1fr;}
  .dept-stats div{border-inline-start:none; border-top:1px solid var(--steel-light);}
  .dept-stats div:first-child{border-top:none;}
  .course-facts{grid-template-columns:1fr;}
  .course-facts div{border-inline-start:none; border-top:1px solid var(--steel-light);}
  .course-facts div:first-child{border-top:none;}
  .course-cta{width:100%; justify-content:center;}
}

/* English tweaks for the training components */
html[lang="en"] .course-meta{letter-spacing:.4px;}
html[lang="en"] .tutor-name small{font-size:11px;}
html[lang="en"] .course-syllabus li{font-size:15px;}
/* ---- Course status pills ---- */
.pill{display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:100px;
  font-family:var(--font-mono); font-size:10px; letter-spacing:1px; font-weight:600; text-transform:uppercase;}
.pill::before{content:""; width:5px; height:5px; border-radius:50%; background:currentColor;}
.pill-live{background:rgba(31,122,77,.1); color:#1f7a4d;}
.pill-soon{background:rgba(143,176,200,.16); color:var(--steel);}
.course-meta span.pill+span::before{content:none;}
.course-meta .pill{letter-spacing:1px;}

/* Courses not yet running read as muted until they launch */
.course-soon .course-head{opacity:.72;}
.course-soon:hover .course-head,.course-soon[open] .course-head{opacity:1;}
.course-soon .course-id{color:var(--steel);}

/* ---- Grouped syllabus (multi-axis courses) ---- */
.syl-group{font-weight:700; font-size:14px; color:var(--navy); margin:18px 0 10px;
  padding-inline-start:12px; border-inline-start:3px solid var(--gold);}
.course-syllabus .syl-group:first-of-type{margin-top:0;}
.course-syllabus ul+.syl-group{margin-top:22px;}

/* ---- Instructor WhatsApp link on profile cards ---- */
.tutor-wa{display:inline-flex; align-items:center; gap:8px; margin-top:16px;
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.8px; color:var(--navy);
  border:1px solid var(--steel-light); border-radius:100px; padding:7px 15px;
  transition:border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);}
.tutor-wa::before{content:""; width:14px; height:14px; flex:none; background:currentColor;
  -webkit-mask:var(--wa-mask) center/contain no-repeat; mask:var(--wa-mask) center/contain no-repeat;}
.tutor-wa:hover{border-color:#1f7a4d; color:#1f7a4d; background:rgba(31,122,77,.06);}

/* ---- Training venue line in the department band ---- */
.dept-venue{margin-top:18px; padding-top:16px; border-top:1px solid var(--steel-light);
  font-size:14.5px; color:var(--muted);}
.dept-venue strong{color:var(--navy);}

/* Tutor cards become flex columns so the WhatsApp pill aligns at the bottom */
.tutor-card{display:flex; flex-direction:column; align-items:flex-start;}
.tutor-card p:last-of-type{flex:1;}

/* An empty tutor slot (coming-soon courses) must not collapse the head grid */
.course-tutor:empty{min-height:44px;}

html[lang="en"] .syl-group{font-size:14.5px;}
html[lang="en"] .pill{letter-spacing:.8px;}
/* ==========================================================================
   TRAINING — desktop alignment fix
   The instructor column was `auto`, so it sized to each card's qualification
   string (86px–293px) and every course head aligned differently. It is now a
   fixed 264px track, with the text wrapping inside it instead of pushing the
   columns around. minmax(0,1fr) on the title track is the grid-blowout guard:
   without it a long title refuses to shrink below its content width.
   ========================================================================== */
.course-title{min-width:0;}
.course-title h3{overflow-wrap:anywhere;}
.course-tutor{min-width:0;}
.tutor-name{min-width:0; overflow-wrap:anywhere;}
.tutor-name small{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; line-height:1.4;
}
.course-meta{min-width:0;}

/* Below the 4-column breakpoint the tutor block moves under the title, so the
   fixed track must be released or it overflows the narrower head. */
@media (max-width:960px){
  .course-head{grid-template-columns:44px minmax(0,1fr) 28px;}
  .tutor-name small{-webkit-line-clamp:3;}
}
/* ==========================================================================
   HEADER — laptop-width overflow fix
   The mobile breakpoint is 960px, but the full desktop nav (brand + 7 links +
   language switch + CTA button) needs ~1041px. Between 960px and ~1060px the
   hamburger was hidden AND the nav did not fit, so the "اطلب عرض سعر" button
   was clipped past the right edge — masked by html{overflow-x:hidden}.
   The nav without that button needs only ~890px, so it is dropped across the
   whole intermediate band. Contact is still reachable from the nav itself.
   ========================================================================== */
@media (max-width:1080px){
  .nav-cta .btn{display:none;}
  .nav-links{gap:20px;}
}
@media (max-width:1000px){
  .nav-links{gap:15px; font-size:14px;}
}
/* ==========================================================================
   EQUIPMENT — real product photography + commercial agency logos
   ========================================================================== */

/* Product shots are supplied on white backgrounds, so the plate must be light.
   `contain` (not `cover`) keeps the whole instrument visible and stops tall
   portrait shots being cropped through the middle. */
.plate-visual.has-photo{background:var(--white); padding:14px;}
.plate-visual.has-photo img{width:100%; height:100%; object-fit:contain;}

/* ---- Commercial agency logo strip ---- */
.agency-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:44px;}
.agency-card{
  background:var(--white); border:1px solid var(--steel-light); border-radius:6px;
  padding:26px 22px; text-align:center;
  transition:border-color .2s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.agency-card:hover{border-color:var(--gold); transform:translateY(-4px); box-shadow:0 14px 36px rgba(11,31,51,.08);}
.agency-logo{
  height:70px; display:flex; align-items:center; justify-content:center;
  margin-bottom:18px; padding-bottom:18px; border-bottom:1px solid var(--steel-light);
}
/* Logos vary wildly in aspect ratio (Topcon is nearly square, CHCNAV is a wide
   wordmark). Constrain both axes so they optically match instead of one
   dwarfing the others. */
.agency-logo img{max-height:100%; max-width:80%; width:auto; height:auto; object-fit:contain;}
.agency-card p{font-size:13.5px; line-height:1.7; color:var(--muted); margin:0;}

/* ---- "Not listed?" band under the catalogue ---- */
.notice-band{
  display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
  margin-top:44px; padding:28px 32px;
  background:var(--white); border:1px solid var(--steel-light); border-radius:6px;
  border-inline-start:3px solid var(--gold);
}
.notice-band h3{margin:0 0 6px;}
.notice-band p{margin:0; font-size:14px; color:var(--muted); max-width:620px;}

@media (max-width:960px){
  .agency-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:560px){
  .agency-grid{grid-template-columns:1fr;}
  .notice-band{flex-direction:column; align-items:flex-start;}
}
/* ==========================================================================
   EQUIPMENT CARDS — v2 layout
   Dark blueprint visual + floating availability badge, category eyebrow,
   model title, description, spec box, WhatsApp footer link.
   ========================================================================== */

.eq-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:34px;}

.eq-card{
  display:flex; flex-direction:column;
  background:var(--white); border:1px solid var(--steel-light); border-radius:10px;
  overflow:hidden;
  transition:border-color .2s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.eq-card:hover{border-color:var(--gold); transform:translateY(-4px); box-shadow:0 18px 44px rgba(11,31,51,.10);}

/* ---- Visual: blueprint field with the product floated on a light plate ----
   The supplied product shots are on white backgrounds, so they cannot sit
   directly on the dark grid. They are inset on a light rounded plate instead,
   which reads as a photo pinned to a drawing sheet. */
.eq-visual{
  position:relative; aspect-ratio:4 / 3; padding:0;
  background-color:var(--navy-deep);
  background-image:
    linear-gradient(rgba(93,135,168,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,135,168,0.14) 1px, transparent 1px),
    linear-gradient(rgba(93,135,168,0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,135,168,0.30) 1px, transparent 1px);
  background-size:8px 8px, 8px 8px, 40px 40px, 40px 40px;
}
/* Absolutely positioned so the photo's own aspect ratio can never drive the
   container height — otherwise a portrait shot (AT-B4 is 358x556) makes its
   card taller than the rest and the grid goes ragged. */
.eq-photo{
  position:absolute; inset:16px; border-radius:6px; overflow:hidden;
  background:var(--white); display:flex; align-items:center; justify-content:center; padding:10px;
}
.eq-photo img{width:100%; height:100%; object-fit:contain;}

.eq-badge{
  position:absolute; top:14px; inset-inline-end:14px; z-index:2;
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:100px;
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:1px; font-weight:600;
  color:#7BE0A8; background:rgba(18,44,32,.85); border:1px solid rgba(123,224,168,.45);
  backdrop-filter:blur(4px);
}
.eq-badge::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor;}

/* ---- Body ---- */
.eq-body{display:flex; flex-direction:column; flex:1; padding:22px 22px 20px;}
.eq-cat{
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:1.6px;
  color:var(--steel); text-transform:uppercase; margin:0 0 8px;
}
.eq-body h3{font-size:17.5px; line-height:1.35; margin:0 0 10px;}
.eq-desc{font-size:13.5px; line-height:1.75; color:var(--muted); margin:0 0 18px;}

/* ---- Spec box: soft inner panel, two columns, hairline dividers ---- */
.eq-specs{
  margin:0 0 16px; padding:4px 14px;
  background:var(--paper); border:1px solid var(--steel-light); border-radius:8px;
}
.eq-specs > div{
  display:flex; align-items:baseline; justify-content:space-between; gap:14px;
  padding:11px 0; border-bottom:1px solid rgba(93,135,168,.22);
}
.eq-specs > div:last-child{border-bottom:none;}
.eq-specs dt{font-size:12.5px; color:var(--muted); flex:none;}
.eq-specs dd{
  margin:0; font-family:var(--font-mono); font-size:12.5px; font-weight:600;
  color:var(--navy); text-align:end; unicode-bidi:isolate;
}

/* ---- Footer link ---- */
.eq-more{
  margin-top:auto; display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; line-height:1.6; color:var(--navy); font-weight:600;
  border-top:1px dashed var(--steel-light); padding-top:14px;
  transition:color .2s var(--ease);
}
.eq-more::before{
  content:""; width:15px; height:15px; flex:none; background:currentColor;
  -webkit-mask:var(--wa-mask) center/contain no-repeat; mask:var(--wa-mask) center/contain no-repeat;
}
.eq-more:hover{color:#1f7a4d;}

@media (max-width:1080px){ .eq-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:680px){ .eq-grid{grid-template-columns:1fr;} }

/* ==========================================================================
   AGENCY GRID — 5 logos, harmonised
   ========================================================================== */
.agency-grid{grid-template-columns:repeat(5,1fr);}
/* Partner lockups differ enormously in aspect (Topcon 0.91, Leica 1.59,
   CHCNAV 4.88). A single max-height would render the stacked and square marks
   nearly twice the height of the wide wordmarks. Each shape class is capped so
   the five read at comparable optical weight instead. */
.agency-logo img{
  max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain;
  filter:grayscale(1); opacity:.72;
  transition:filter .25s var(--ease), opacity .25s var(--ease);
}
.agency-logo--wide img{max-height:100%; max-width:100%;}
.agency-logo--stack img{max-height:88%; max-width:92%;}
.agency-logo--square img{max-height:100%; max-width:92%;}
.agency-card:hover .agency-logo img{filter:grayscale(0); opacity:1;}

/* Text wordmark shown until the real Leica Geosystems file is supplied */
.agency-wordmark{display:none;}
.agency-logo.is-wordmark .agency-wordmark{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  font-family:var(--font-display); font-weight:900; font-size:19px; letter-spacing:1.5px;
  color:var(--navy); direction:ltr; line-height:1;
}
.agency-logo.is-wordmark .agency-wordmark em{
  font-family:var(--font-mono); font-style:normal; font-weight:500;
  font-size:8.5px; letter-spacing:2.2px; color:var(--steel);
}

@media (max-width:1180px){ .agency-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:820px){ .agency-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .agency-grid{grid-template-columns:1fr;} }

html[lang="en"] .eq-cat{letter-spacing:1.2px;}
html[lang="en"] .eq-specs dt,html[lang="en"] .eq-specs dd{font-size:12.5px;}
/* ==========================================================================
   PHOTO GALLERIES — course photos (training) and GIS project outputs
   ========================================================================== */

/* ---- Course photos: masonry-ish grid. Portrait shots span two rows so the
   mixed 4:3 / 3:4 set packs without gaps or letterboxing. ---- */
.photo-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  grid-auto-rows:150px; gap:14px; margin-top:38px;
}
.photo-item{
  position:relative; margin:0; grid-row:span 2; overflow:hidden;
  border-radius:8px; border:1px solid var(--steel-light); background:var(--navy-deep);
}
.photo-item.photo-tall{grid-row:span 3;}
.photo-item img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s var(--ease);
}
.photo-item:hover img{transform:scale(1.05);}
.photo-item figcaption{
  position:absolute; inset-inline:0; bottom:0; padding:26px 14px 12px;
  font-size:12.5px; line-height:1.5; color:var(--white);
  background:linear-gradient(to top, rgba(11,31,51,.88), rgba(11,31,51,0));
  opacity:0; transform:translateY(6px);
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.photo-item:hover figcaption,.photo-item:focus-within figcaption{opacity:1; transform:none;}

@media (max-width:1080px){ .photo-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:760px){ .photo-grid{grid-template-columns:repeat(2,1fr); grid-auto-rows:120px;} }
@media (max-width:480px){
  .photo-grid{grid-template-columns:1fr; grid-auto-rows:auto;}
  .photo-item,.photo-item.photo-tall{grid-row:auto; aspect-ratio:4/3;}
  .photo-item figcaption{opacity:1; transform:none;}
}

/* ---- GIS outputs: maps need to be read, not cropped, so `contain` on a
   light plate rather than `cover`. ---- */
.gis-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:26px; margin-top:38px;}
.gis-item{
  margin:0; display:flex; flex-direction:column; overflow:hidden;
  background:var(--white); border:1px solid var(--steel-light); border-radius:10px;
  transition:border-color .2s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gis-item:hover{border-color:var(--gold); transform:translateY(-4px); box-shadow:0 18px 44px rgba(11,31,51,.10);}
.gis-shot{
  position:relative; aspect-ratio:4 / 3; background:var(--paper);
  border-bottom:1px solid var(--steel-light);
}
.gis-shot img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:10px;}
.gis-item figcaption{padding:20px 22px 22px;}
.gis-item figcaption h3{font-size:16.5px; line-height:1.4; margin:0 0 8px;}
.gis-item figcaption p{font-size:13.5px; line-height:1.75; color:var(--muted); margin:0;}

@media (max-width:820px){ .gis-grid{grid-template-columns:1fr;} }

html[lang="en"] .photo-item figcaption{font-size:12px;}
html[lang="en"] .gis-item figcaption p{line-height:1.7;}