/* ==========================================================================
   المسارات المتطورة | Advanced Tracks — Design System
   Brand: navy #2b2d48 / #383a5c, orange #d78b31
   ========================================================================== */

@font-face {
  font-family: "DIN Next Arabic";
  src: url("../fonts/DINNextLTArabic-Bold.woff") format("woff"),
       url("../fonts/DINNextLTArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:        #2b2d48;
  --navy-2:      #383a5c;
  --navy-900:    #20223a;
  --navy-700:    #3a3d5e;
  --orange:      #d78b31;
  --orange-600:  #c67a20;
  --orange-100:  #f7ead8;
  --gold:        #e8a94b;

  --sand:        #faf8f4;
  --sand-2:      #f3efe8;
  --paper:       #ffffff;
  --ink:         #23253c;
  --ink-2:       #5b6075;
  --line:        #e7e3da;
  --line-2:      #d9d4c8;

  --shadow-sm: 0 1px 2px rgba(32,34,58,.06), 0 2px 8px rgba(32,34,58,.05);
  --shadow-md: 0 6px 18px rgba(32,34,58,.08), 0 2px 6px rgba(32,34,58,.05);
  --shadow-lg: 0 20px 50px rgba(32,34,58,.16);
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --container: 1200px;
  --header-h: 84px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --font-head: "DIN Next Arabic", "Cairo", system-ui, sans-serif;
  --font-body: "Cairo", "DIN Next Arabic", system-ui, "Segoe UI", sans-serif;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }

p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }

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

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

/* ----------------------------------------------------------------- layout */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--tight { padding: clamp(40px,6vw,72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  color: var(--orange-600);
  font-size: .82rem; letter-spacing: .14em; font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--orange); display:inline-block; border-radius:2px; flex:none; }
.eyebrow svg { width: 18px; height: 18px; flex: none; }
.post__meta svg { width: 15px; height: 15px; flex: none; vertical-align: -2px; }
.crumb svg { width: 15px; height: 15px; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display:none; }
.section-head p { margin-top: 14px; font-size: 1.08rem; }

.lead { font-size: 1.18rem; color: var(--ink-2); line-height: 1.9; }

.blueprint {
  background-image:
    linear-gradient(rgba(43,45,72,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,45,72,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  line-height: 1; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.btn--primary { background: var(--orange); color: #20223a; box-shadow: 0 8px 20px rgba(215,139,49,.32); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(215,139,49,.4); }
.btn--primary:hover svg { transform: translateX(-4px); }
.btn--dark { background: var(--navy); color:#fff; }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--light { background:#fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--on-dark { background: transparent; color:#fff; border-color: rgba(255,255,255,.35); }
.btn--on-dark:hover { background: rgba(255,255,255,.1); border-color:#fff; transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn-row { display:flex; flex-wrap: wrap; gap: 14px; }

.textlink {
  display:inline-flex; align-items:center; gap:8px; font-family:var(--font-head); font-weight:700;
  color: var(--navy); border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: color .2s, border-color .2s, gap .2s;
}
.textlink svg { width:18px;height:18px; transition: transform .25s var(--ease); }
.textlink:hover { color: var(--orange-600); border-color: var(--orange); }
.textlink:hover svg { transform: translateX(-5px); }

/* ----------------------------------------------------------------- header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s, height .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.header__inner { display:flex; align-items:center; gap: 24px; width: min(100% - 40px, 1320px); margin-inline:auto; }
.header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); border-color: var(--line); height: 70px; }

.brand { display:flex; align-items:center; gap: 12px; margin-inline-end: auto; }
.brand img { height: 62px; width:auto; transition: height .35s var(--ease); }
.header.scrolled .brand img { height: 52px; }
@media (max-width:600px){ .brand img { height: 50px; } }
.brand .logo-color { display:none; }
.brand .logo-white { display:block; }
.header.scrolled .brand .logo-color,
.header.solid .brand .logo-color { display:block; }
.header.scrolled .brand .logo-white,
.header.solid .brand .logo-white { display:none; }

.nav { display:flex; align-items:center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  color: #fff; padding: 10px 14px; border-radius: 8px; position: relative;
  transition: color .2s, background .2s;
}
.nav a::after {
  content:""; position:absolute; inset-inline: 14px; bottom: 4px; height:2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold); }
.header.scrolled .nav a, .header.solid .nav a { color: var(--navy); }
.header.scrolled .nav a:hover, .header.solid .nav a:hover { color: var(--orange-600); }
.header.scrolled .nav a[aria-current="page"], .header.solid .nav a[aria-current="page"] { color: var(--orange-600); }

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

.header.solid { position: fixed; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-color: var(--line); }
body.has-solid-header { padding-top: var(--header-h); }

.burger { display:none; width: 46px; height: 46px; border:none; background: transparent; border-radius: 10px; position: relative; flex: none; }
.burger span { position:absolute; inset-inline: 11px; height:2.5px; background:#fff; border-radius:2px; transition: .3s var(--ease); }
.header.scrolled .burger span, .header.solid .burger span { background: var(--navy); }
.burger span:nth-child(1){ top: 16px; } .burger span:nth-child(2){ top: 22px; } .burger span:nth-child(3){ top: 28px; }
body.menu-open .burger span:nth-child(1){ top:22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity:0; }
body.menu-open .burger span:nth-child(3){ top:22px; transform: rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 99; visibility: hidden; }
.drawer__scrim { position:absolute; inset:0; background: rgba(20,22,38,.5); opacity:0; transition: opacity .3s; }
.drawer__panel {
  position:absolute; inset-block:0; inset-inline-end:0; width: min(86vw, 360px);
  background:#fff; box-shadow: var(--shadow-lg); transform: translateX(100%);
  transition: transform .38s var(--ease); display:flex; flex-direction:column; padding: 22px; overflow-y:auto;
}
body.menu-open .drawer { visibility: visible; }
body.menu-open .drawer__scrim { opacity:1; }
body.menu-open .drawer__panel { transform: translateX(0); }
.drawer__head { display:flex; align-items:center; justify-content: space-between; margin-bottom: 18px; }
.drawer__head img { height: 46px; }
.drawer__close { width:42px;height:42px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:1.4rem;color:var(--navy); line-height:1; }
.drawer nav { display:flex; flex-direction:column; }
.drawer nav a { font-family:var(--font-head); font-weight:700; font-size:1.12rem; color:var(--navy); padding:15px 8px; border-bottom:1px solid var(--line); }
.drawer nav a[aria-current="page"]{ color: var(--orange-600); }
.drawer__cta { margin-top: 22px; display:flex; flex-direction:column; gap:12px; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; min-height: clamp(560px, 88vh, 820px); display:flex; align-items:center; color:#fff; overflow:hidden; }
.hero__bg { position:absolute; inset:0; z-index:-2; }
.hero__bg img { width:100%; height:100%; object-fit: cover; }
.hero__overlay {
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(to bottom, rgba(18,20,34,.6) 0%, rgba(18,20,34,.12) 18%, transparent 32%),
    linear-gradient(75deg, rgba(32,34,58,.94) 0%, rgba(43,45,72,.82) 42%, rgba(43,45,72,.5) 100%);
}
.hero__overlay::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(32,34,58,.85), transparent 38%);
}
.hero .container { padding-top: var(--header-h); width: min(100% - 40px, var(--container)); }
.hero__content { max-width: 640px; }
.hero h1 { color:#fff; margin: 10px 0 18px; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; line-height:1.9; max-width: 560px; }
.hero .btn-row { margin-top: 32px; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero__track { margin-top: 40px; display:flex; align-items:center; gap: 16px; flex-wrap:wrap; font-family:var(--font-head); font-weight:700; color: rgba(255,255,255,.92); font-size:.96rem; }
.hero__track .dot { width:7px;height:7px;border-radius:50%; background: var(--orange); }
.hero__line { position:absolute; inset-inline:0; bottom:0; height: 110px; z-index:-1; opacity:.5; pointer-events:none; }

.page-hero { position: relative; color:#fff; padding: clamp(120px,16vw,180px) 0 clamp(56px,7vw,84px); overflow:hidden; }
.page-hero__bg { position:absolute; inset:0; z-index:-2; }
.page-hero__bg img { width:100%;height:100%;object-fit:cover; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(80deg, rgba(32,34,58,.95), rgba(43,45,72,.74)); }
.page-hero h1 { color:#fff; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 620px; margin-top:14px; font-size:1.12rem; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }

.crumb { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:.9rem; color: rgba(255,255,255,.75); margin-bottom: 18px; font-family:var(--font-head); }
.crumb a:hover { color:#fff; }
.crumb .sep { opacity:.5; }
.crumb--dark { color: var(--ink-2); }
.crumb--dark a:hover { color: var(--orange-600); }

/* ----------------------------------------------------------------- grids */
.grid { display:grid; gap: clamp(20px,2.4vw,30px); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 920px){ .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

.split { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items:center; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- cards */
.card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

.svc { position:relative; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 30px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; overflow:hidden; height:100%; }
.svc::before { content:""; position:absolute; inset-inline:0; top:0; height:4px; background:var(--orange); transform: scaleX(0); transform-origin:right; transition: transform .35s var(--ease); }
.svc:hover, .svc:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.svc:hover::before, .svc:focus-within::before { transform: scaleX(1); }
.svc__num { font-family:var(--font-head); font-size: 3rem; color: var(--sand-2); font-weight:700; line-height:1; position:absolute; top:22px; inset-inline-start:26px; }
.svc__icon { width:62px;height:62px; border-radius:14px; background: var(--navy); color: var(--gold); display:grid; place-items:center; margin-bottom: 22px; position:relative; transition: background .3s; }
.svc:hover .svc__icon { background: var(--orange); color:#fff; }
.svc__icon svg { width:30px;height:30px; }
.svc h3 { margin-bottom: 6px; }
.svc__en { font-family:var(--font-head); color: var(--ink-2); font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; display:block; margin-bottom: 14px; }
.svc p { font-size:.98rem; margin-bottom: 20px; }

.feature { display:flex; gap:16px; align-items:flex-start; }
.feature__ic { flex:none; width:52px;height:52px;border-radius:13px; background: var(--orange-100); color: var(--orange-600); display:grid;place-items:center; }
.feature__ic svg { width:26px;height:26px; }
.feature h3 { font-size:1.18rem; margin-bottom:6px; }
.feature p { font-size:.97rem; }

.proj { position:relative; border-radius: var(--radius); overflow:hidden; background: var(--navy); display:block; aspect-ratio: 16/11; }
.proj img { position:absolute; inset:0; width:100%;height:100%; object-fit:cover; transition: transform .6s var(--ease), opacity .3s; }
.proj:hover img { transform: scale(1.05); }
.proj__veil { position:absolute; inset:0; background: linear-gradient(to top, rgba(20,22,38,.92) 0%, rgba(20,22,38,.35) 45%, rgba(20,22,38,.06) 100%); }
.proj__body { position:absolute; inset-inline:0; bottom:0; padding: 24px; color:#fff; }
.proj__tag { display:inline-block; background: var(--orange); color:#20223a; font-family:var(--font-head); font-weight:700; font-size:.74rem; padding:5px 12px; border-radius:999px; margin-bottom:12px; }
.proj h3 { color:#fff; font-size:1.16rem; line-height:1.4; }
.proj__go { display:inline-flex; align-items:center; gap:8px; margin-top:12px; font-family:var(--font-head); font-weight:700; font-size:.92rem; color: var(--gold); opacity:0; transform: translateY(8px); transition:.3s var(--ease); }
.proj:hover .proj__go, .proj:focus-visible .proj__go { opacity:1; transform: translateY(0); }
.proj__go svg { width:16px;height:16px; }

.post { display:flex; flex-direction:column; height:100%; }
.post__img { aspect-ratio:16/10; overflow:hidden; border-radius: var(--radius); position:relative; }
.post__img img { width:100%;height:100%;object-fit:cover; transition: transform .5s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { display:flex; gap:14px; align-items:center; margin: 16px 0 10px; font-size:.84rem; color: var(--ink-2); font-family:var(--font-head); }
.post__cat { color: var(--orange-600); font-weight:700; }
.post h3 { font-size:1.18rem; line-height:1.45; transition: color .2s; }
.post:hover h3 { color: var(--orange-600); }
.post p { font-size:.96rem; margin-top:8px; }

.trust { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width:760px){ .trust { grid-template-columns:1fr; } }
.trust__item { display:flex; gap:16px; align-items:flex-start; }
.trust__ic { flex:none; width:54px;height:54px;border-radius:14px; background:#fff; border:1px solid var(--line); color: var(--orange-600); display:grid;place-items:center; box-shadow: var(--shadow-sm); }
.trust__ic svg { width:27px;height:27px; }
.trust__item h3 { font-size:1.12rem; margin-bottom:4px; }
.trust__item p { font-size:.95rem; }

/* ----------------------------------------------------------------- navy band */
.band { background: var(--navy); color:#fff; position:relative; overflow:hidden; }
.band h2 { color:#fff; }
.band p { color: rgba(255,255,255,.82); }
.band--cta { text-align:center; }
.band--cta .section-head { margin-inline:auto; }

.steps { display:grid; gap: clamp(20px,2.5vw,28px); grid-template-columns: repeat(3,1fr); }
@media (max-width:820px){ .steps { grid-template-columns:1fr; } }
.step { position:relative; padding: 30px 26px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); }
.step__n { font-family:var(--font-head); font-weight:700; font-size:1rem; color:#fff; background: var(--orange); width:44px;height:44px;border-radius:50%; display:grid;place-items:center; margin-bottom:18px; }
.step h3 { font-size:1.2rem; margin-bottom:8px; }
.step p { font-size:.97rem; }

.filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 36px; }
.chip { font-family:var(--font-head); font-weight:700; font-size:.95rem; padding: 10px 20px; border-radius:999px; border:1.5px solid var(--line-2); background:#fff; color: var(--ink-2); transition: .25s var(--ease); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color:#fff; }

.detail-bar { display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
@media (max-width:760px){ .detail-bar { grid-template-columns: repeat(2,1fr); } }
.detail-bar__cell { background:#fff; padding: 22px 24px; }
.detail-bar__cell span { display:block; font-size:.82rem; color: var(--ink-2); font-family:var(--font-head); margin-bottom:6px; }
.detail-bar__cell strong { font-family:var(--font-head); color: var(--navy); font-size:1.05rem; }

.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; line-height: 1.95; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose ul.bullets { margin: 0 0 20px; display:grid; gap:12px; }
.prose ul.bullets li { position:relative; padding-inline-start: 30px; color: var(--ink-2); }
.prose ul.bullets li::before { content:""; position:absolute; inset-inline-start:0; top:11px; width:9px;height:9px;border-radius:50%; background: var(--orange); }
.prose blockquote { border-inline-start: 4px solid var(--orange); background: var(--sand); padding: 18px 24px; border-radius: 0 12px 12px 0; margin: 24px 0; color: var(--ink); font-size:1.05rem; }
.prose img { border-radius: var(--radius); margin: 24px 0; }

.gallery { display:grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width:760px){ .gallery { grid-template-columns: repeat(2,1fr); } }
.gallery button { padding:0; border:none; background: var(--navy); border-radius: var(--radius-sm); overflow:hidden; aspect-ratio: 4/3; position:relative; }
.gallery img { width:100%;height:100%;object-fit:cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button::after { content:""; position:absolute; inset:0; background: rgba(20,22,38,0); transition: background .3s; }
.gallery button:hover::after { background: rgba(20,22,38,.18); }

.lightbox { position: fixed; inset:0; z-index: 200; background: rgba(15,16,28,.94); display:none; align-items:center; justify-content:center; padding: 30px; }
.lightbox.open { display:flex; }
.lightbox img { max-width: min(94vw, 1300px); max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__btn { position:absolute; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); color:#fff; width:54px;height:54px;border-radius:50%; font-size:1.5rem; display:grid;place-items:center; transition:.2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top:24px; inset-inline-end:24px; }
.lightbox__prev { inset-inline-end: 24px; top:50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-start: 24px; top:50%; transform: translateY(-50%); }
.lightbox__count { position:absolute; bottom: 22px; inset-inline:0; text-align:center; color: rgba(255,255,255,.8); font-family:var(--font-head); }
@media (max-width:600px){ .lightbox__prev{inset-inline-end:10px} .lightbox__next{inset-inline-start:10px} .lightbox__btn{width:46px;height:46px} }

/* ----------------------------------------------------------------- forms */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:640px){ .form-grid { grid-template-columns:1fr; } }
.field { display:flex; flex-direction:column; gap:8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family:var(--font-head); font-weight:700; font-size:.94rem; color: var(--navy); }
.field label .req { color: var(--orange-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size:1rem; color: var(--ink);
  padding: 13px 16px; border:1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background:#fff; transition: border-color .2s, box-shadow .2s; width:100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(215,139,49,.16); }
.field .err { color:#d14343; font-size:.84rem; display:none; }
.field.invalid .err { display:block; }
.hp { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }
.consent { display:flex; flex-direction:row; align-items:center; gap:10px; flex-wrap:nowrap; }
.consent input { width:20px;height:20px; margin:0; flex:none; accent-color: var(--orange); cursor:pointer; }
.consent label { font-weight:500; font-family: var(--font-body); color: var(--ink-2); font-size:.95rem; line-height:1.6; margin:0; }
.form-note { font-size:.86rem; color: var(--ink-2); margin-top:8px; }

.form-status { padding: 16px 20px; border-radius: var(--radius-sm); font-family:var(--font-head); font-weight:700; display:none; align-items:center; gap:12px; margin-bottom: 18px; }
.form-status.show { display:flex; }
.form-status.ok { background:#eaf7ee; color:#1c7a3d; border:1px solid #bfe6cb; }
.form-status.bad { background:#fdeaea; color:#c23434; border:1px solid #f3c4c4; }

.info-card { background: var(--navy); color:#fff; border-radius: var(--radius-lg); padding: clamp(28px,4vw,40px); position:relative; overflow:hidden; height:100%; }
.info-card h3 { color:#fff; }
.info-list { display:flex; flex-direction:column; gap: 22px; margin-top: 26px; }
.info-list a, .info-list div { display:flex; gap:14px; align-items:flex-start; color: rgba(255,255,255,.92); }
.info-list .ic { flex:none; width:46px;height:46px;border-radius:12px; background: rgba(255,255,255,.1); color: var(--gold); display:grid;place-items:center; }
.info-list .ic svg { width:22px;height:22px; }
.info-list span.k { display:block; font-size:.8rem; color: rgba(255,255,255,.6); font-family:var(--font-head); margin-bottom:3px; }
.info-list b { font-family:var(--font-head); font-weight:700; font-size:1.02rem; }
.info-list a:hover b { color: var(--gold); }

/* ----------------------------------------------------------------- footer */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: clamp(56px,7vw,80px) 0 28px; position:relative; overflow:hidden; }
.footer__top { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; align-items: start; }
@media (max-width:900px){ .footer__top { grid-template-columns: 1fr 1fr; gap:32px 40px; } }
@media (max-width:560px){ .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 64px; margin-bottom: 18px; }
.footer__brand p { color: rgba(255,255,255,.6); font-size:.95rem; max-width: 320px; }
.footer h4 { color:#fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer ul { display:flex; flex-direction:column; gap: 11px; }
.footer ul a { font-size:.96rem; transition: color .2s, padding .2s; }
.footer ul a:hover { color: var(--gold); padding-inline-start: 5px; }
.footer__contact a { display:flex; gap:10px; align-items:flex-start; font-size:.95rem; margin-bottom:14px; }
.footer__contact svg { width:19px;height:19px; flex:none; color: var(--orange); margin-top:3px; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display:flex; flex-wrap:wrap; gap:12px 22px; justify-content:space-between; align-items:center; font-size:.88rem; }
.footer__bottom a:hover { color: var(--gold); }
.footer__links { display:flex; align-items:center; gap:12px; color: rgba(255,255,255,.6); }
.footer__links span[aria-hidden] { opacity:.4; }
.footer__credit { color: rgba(255,255,255,.55); }
.footer__credit a { color: var(--gold); font-weight:700; }
.footer__credit bdi { unicode-bidi: isolate; }

/* ----------------------------------------------------------------- floating actions */
.fab { position: fixed; inset-inline-end: 20px; bottom: 22px; z-index: 90; display:flex; flex-direction:column; gap: 12px; }
.fab a { width: 56px; height:56px; border-radius:50%; display:grid; place-items:center; box-shadow: var(--shadow-lg); color:#fff; transition: transform .25s var(--ease); position:relative; }
.fab a:hover { transform: translateY(-3px) scale(1.05); }
.fab__wa { background: #25d366; }
.fab__wa svg { width:30px;height:30px; }
.fab__top { background: var(--navy); opacity:0; pointer-events:none; transform: translateY(10px); }
.fab__top.show { opacity:1; pointer-events:auto; transform: translateY(0); }
.fab__top svg { width:22px;height:22px; }
.fab a .pulse { position:absolute; inset:0; border-radius:50%; background:#25d366; z-index:-1; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{ transform: scale(1); opacity:.6;} 70%{transform: scale(1.7); opacity:0;} 100%{opacity:0;} }
@media (prefers-reduced-motion: reduce){ .fab a .pulse{ display:none; } }
@media (max-width:600px){ .fab { inset-inline-end: 14px; bottom: 16px; } .fab a{ width:52px;height:52px; } }

/* ----------------------------------------------------------------- reveal anim */
[data-reveal] { opacity:0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); animation: revealFallback .01s linear 2.6s forwards; }
[data-reveal].in { opacity:1; transform: none; animation: none; }
@keyframes revealFallback { to { opacity:1; transform:none; } }
[data-reveal][data-delay="1"]{ transition-delay:.08s; }
[data-reveal][data-delay="2"]{ transition-delay:.16s; }
[data-reveal][data-delay="3"]{ transition-delay:.24s; }
[data-reveal][data-delay="4"]{ transition-delay:.32s; }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

.dash { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float-slow { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

.ph { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); display:grid; place-items:center; color: rgba(255,255,255,.5); }
.ph svg { width:46px;height:46px; }

/* ----------------------------------------------------------------- utility */
.mt-0{margin-top:0}.center{text-align:center}.muted{color:var(--ink-2)}
.tag-list{display:flex;flex-wrap:wrap;gap:8px}
.tag-list span{background:var(--sand-2);color:var(--ink-2);font-family:var(--font-head);font-weight:700;font-size:.82rem;padding:6px 14px;border-radius:999px}
.divider{height:1px;background:var(--line);border:0;margin:0}

.skip-link{position:fixed;top:-120px;inset-inline-start:12px;background:var(--navy);color:#fff;padding:10px 18px;border-radius:8px;z-index:400;transition:top .2s ease}
.skip-link:focus{top:12px}

/* featured blog card */
.feat-card{display:grid;grid-template-columns:1.05fr 1fr;overflow:hidden}
.feat-card>div:first-child{position:relative;min-height:300px}

/* ----------------------------------------------------------------- responsive */
@media (max-width: 980px){
  .nav, .header__cta { display:none; }
  .burger { display:block; }
  .header__inner { gap:0; }
}
@media (max-width: 820px){
  .feat-card{ grid-template-columns:1fr; }
  .feat-card>div:first-child{ min-height:230px; }
}
@media (max-width: 760px){
  body { font-size:16px; }
  .hero p { font-size:1.08rem; }
  .info-list a, .info-list div { gap:12px; }
}
@media (min-width: 981px){
  .burger { display:none !important; }
}

/* =========================================================================
   Overflow root-cause fixes (apply to both languages)
   Grid/flex children default to min-width:auto and refuse to shrink, which
   lets long content (emails, addresses, map links) push the page wider than
   the viewport. Allowing them to shrink removes the horizontal scroll at its
   source — not by masking it.
   ========================================================================= */
.split > * { min-width: 0; }
.form-grid { min-width: 0; }
.field { min-width: 0; }
.footer__top > * { min-width: 0; }
.info-card, .info-list, .info-list a, .info-list div, .info-list span { min-width: 0; }
.info-list b, .info-list span.k { overflow-wrap: anywhere; word-break: break-word; }
.footer__contact a span { overflow-wrap: anywhere; min-width: 0; }
.detail-bar__cell span, .detail-bar__cell strong { overflow-wrap: anywhere; }
.crumb { max-width: 100%; }
.crumb span, .crumb a { overflow-wrap: anywhere; }
.prose { max-width: 100%; }
.prose pre, .prose table { max-width: 100%; overflow-x: auto; }

/* =========================================================================
   Header: language switcher + mobile cluster
   ========================================================================= */
.header__mobile { display: none; align-items: center; gap: 10px; flex: none; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; line-height: 1;
  transition: background .2s, border-color .2s, color .2s;
}
.lang-switch img { width: 24px; height: auto; aspect-ratio: 297 / 198; object-fit: contain; border-radius: 3px; display: block; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.lang-switch:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.header.scrolled .lang-switch, .header.solid .lang-switch { color: var(--navy); border-color: var(--line-2); }
.header.scrolled .lang-switch:hover, .header.solid .lang-switch:hover { border-color: var(--navy); background: rgba(0,0,0,.04); }
.lang-switch--mobile { padding: 6px 10px; }
.drawer__lang { display: flex; align-items: center; justify-content: center; gap: 8px; }
.drawer__lang img { width: 24px; height: auto; aspect-ratio: 297 / 198; object-fit: contain; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }

@media (max-width: 980px){
  .header__mobile { display: flex; }
}

/* =========================================================================
   English (LTR) adjustments — kept minimal because the layout already uses
   logical properties (inset-inline, margin-inline, border-inline) that flip
   automatically. Here we set a Latin type system and flip the inline arrow.
   ========================================================================= */
html[dir="ltr"] { --font-head: "Inter", system-ui, "Segoe UI", sans-serif; --font-body: "Inter", system-ui, "Segoe UI", sans-serif; }
html[dir="ltr"] body { line-height: 1.7; }
html[dir="ltr"] .i-arrow { transform: scaleX(-1); }
html[dir="ltr"] .btn--primary:hover .i-arrow { transform: scaleX(-1) translateX(-4px); }
html[dir="ltr"] .textlink:hover .i-arrow { transform: scaleX(-1) translateX(-5px); }
html[dir="ltr"] .eyebrow { letter-spacing: .12em; }
