/*
 * Orient Digital Marketing — built on PureLeaf
 * Copyright (c) 2026 MehrAfzar TD LTD · MIT License
 *
 * One stylesheet for fa / en / ar: direction comes from <html dir>, and every
 * rule uses logical properties (inline/block) so nothing is duplicated for RTL.
 */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&family=Tajawal:wght@400;500;700;800&family=Outfit:wght@500;600;700&family=Figtree:wght@400;500;600&display=swap');

/* ── Tokens: dark (default) ── */
:root {
  --bg:          #0a1222;
  --surface:     #111b30;
  --surface2:    #17243f;
  --border:      #243553;
  --text:        #e9eefb;
  --muted:       #9aa8c4;
  --article-p:   #c6d0e5;
  --danger:      #ff7a7a;

  --accent:      #8dc53e;           /* links, markers */
  --accent-soft: rgba(141, 197, 62, 0.13);
  --accent-glow: rgba(141, 197, 62, 0.16);
  --btn-bg:      #8dc53e;
  --btn-bg-hover:#a2d85a;
  --btn-fg:      #0a1222;

  --blue:        #4f7de0;           /* compass, dark triangle */
  --blue-2:      #7da0ee;           /* compass, light triangle */

  --nav-bg:      rgba(10, 18, 34, 0.86);
  --tick:        rgba(154, 168, 196, 0.34);
  --tick-strong: rgba(141, 197, 62, 0.75);
  --hero-wash:   radial-gradient(60% 70% at 78% 40%, rgba(79, 125, 224, 0.20), transparent 70%),
                 radial-gradient(40% 50% at 12% 0%, rgba(141, 197, 62, 0.08), transparent 70%);
  --work-a:      linear-gradient(135deg, #1a2f5e, #22437f);
  --work-b:      linear-gradient(135deg, #1c3a4a, #2a5a56);

  --icon-sun: 0;
  --icon-moon: 1;

  --radius: 12px;
  --max-w: 760px;
  --max-w-wide: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --nav-h: 64px;

  --font-display: 'Vazirmatn', system-ui, sans-serif;
  --font-body:    'Vazirmatn', system-ui, sans-serif;
  --lh-body: 1.9;
  --lh-head: 1.4;
  --ls-head: 0;
  --fw-head: 700;
}

html:lang(en) {
  --font-display: 'Outfit', 'Figtree', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, sans-serif;
  --lh-body: 1.7;
  --lh-head: 1.12;
  --ls-head: -0.02em;
  --fw-head: 600;
}
html:lang(ar) {
  --font-display: 'Tajawal', system-ui, sans-serif;
  --font-body:    'Tajawal', system-ui, sans-serif;
  --lh-body: 1.85;
  --lh-head: 1.4;
  --fw-head: 800;
}

/* ── Tokens: light ── */
html.light {
  --bg:          #f5f7fb;
  --surface:     #ffffff;
  --surface2:    #eaeff8;
  --border:      #d6deec;
  --text:        #0e1a33;
  --muted:       #52617f;
  --article-p:   #2b3957;
  --danger:      #c62828;

  --accent:      #194697;
  --accent-soft: rgba(25, 70, 151, 0.08);
  --accent-glow: rgba(25, 70, 151, 0.12);
  --btn-bg:      #194697;
  --btn-bg-hover:#123a82;
  --btn-fg:      #ffffff;

  --blue:        #194697;
  --blue-2:      #426ab2;

  --nav-bg:      rgba(245, 247, 251, 0.88);
  --tick:        rgba(25, 70, 151, 0.22);
  --tick-strong: rgba(25, 70, 151, 0.7);
  --hero-wash:   radial-gradient(60% 70% at 78% 40%, rgba(66, 106, 178, 0.14), transparent 70%),
                 radial-gradient(40% 50% at 12% 0%, rgba(141, 197, 62, 0.14), transparent 70%);
  --work-a:      linear-gradient(135deg, #194697, #3466c4);
  --work-b:      linear-gradient(135deg, #3d7a1f, #7cb534);

  --icon-sun: 1;
  --icon-moon: 0;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--lh-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, color 0.25s ease;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-head); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; inset-block-start: -4rem; inset-inline-start: 1rem; z-index: 200;
  background: var(--btn-bg); color: var(--btn-fg); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { inset-block-start: 0.75rem; }

/* ── Logo mark: ring (PNG) + compass (inline SVG) share one coordinate box ── */
.mark { position: relative; display: block; aspect-ratio: 1547 / 1562; flex-shrink: 0; }
.mark > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark-compass .c-dark  { fill: var(--blue); }
.mark-compass .c-light { fill: var(--blue-2); }
.mark--spin .mark-ring { animation: ring-turn 70s linear infinite; transform-origin: 50% 50%; }
@keyframes ring-turn { to { transform: rotate(360deg); } }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-inline: var(--gutter);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-inner {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 36px; }
.brand .wordmark { height: 17px; width: auto; }
.wm-dark { display: block; }
.wm-light { display: none; }
html.light .wm-dark { display: none; }
html.light .wm-light { display: block; }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.93rem; font-weight: 500;
  padding-block: 0.4rem; border-block-end: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--text); border-block-end-color: var(--accent); }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 100px; padding: 2px; }
.lang-switch a {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); padding: 0.28rem 0.6rem; border-radius: 100px; line-height: 1.2;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 100px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); padding: 0; flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.theme-toggle .icon-wrap { position: relative; width: 18px; height: 18px; }
.theme-toggle .icon-wrap svg { position: absolute; inset: 0; width: 18px; height: 18px; transition: opacity 0.2s; }
.theme-toggle .icon-sun  { opacity: var(--icon-sun); }
.theme-toggle .icon-moon { opacity: var(--icon-moon); }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 36px; height: 36px; background: transparent; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Layout ── */
main { flex: 1; }
.container { max-width: var(--max-w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tint { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-block-end: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-block-end: 0.6rem; }
.section-head p { color: var(--muted); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }

/* The signature line: a thin route that ends in an arrowhead pointing the way you read */
.power-line {
  position: relative; height: 1px; border: 0;
  background: linear-gradient(to right, transparent, var(--border) 12%, var(--border) 88%, transparent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.4; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #194697; }
.btn-light:hover { background: #eef3ff; color: #123a82; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.86rem; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: var(--hero-wash); }
.hero-inner {
  max-width: var(--max-w-wide); margin-inline: auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(600px, calc(100vh - var(--nav-h)));
}
.hero-slogan {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-block-end: 1.4rem;
  font-family: 'Figtree', system-ui, sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--accent);
  direction: ltr;
}
.hero-slogan::before { content: ''; width: 2.2rem; height: 2px; background: currentColor; }
html:lang(en) .hero-slogan, html:lang(ar) .hero-slogan, html:lang(fa) .hero-slogan { direction: ltr; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); margin-block-end: 1.25rem; max-width: 15em; }
.hero-lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin-block-end: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual { position: relative; display: grid; place-items: center; justify-self: center; width: min(460px, 82vw); aspect-ratio: 1; }
.dial {
  position: absolute; inset: -4%; border-radius: 50%;
  background:
    repeating-conic-gradient(from -0.5deg, var(--tick-strong) 0 1deg, transparent 1deg 30deg),
    repeating-conic-gradient(from -0.3deg, var(--tick) 0 0.6deg, transparent 0.6deg 5deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 88%, #000 88.4% 96%, transparent 96.4%);
          mask: radial-gradient(circle closest-side, transparent 0 88%, #000 88.4% 96%, transparent 96.4%);
}
.hero-visual .mark { width: 78%; }

/* ── Destination (4 goals) ── */
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.75rem; list-style: none; }
.dest { position: relative; padding-block-start: 1.5rem; border-block-start: 1px solid var(--border); }
.dest::before { content: ''; position: absolute; inset-block-start: -1px; inset-inline-start: 0; width: 2.5rem; height: 3px; background: var(--accent); }
.dest-ico { width: 30px; height: 30px; color: var(--accent); margin-block-end: 1rem; transform: rotate(var(--r, 0deg)); }
.dest h3 { font-size: 1.15rem; margin-block-end: 0.4rem; }
.dest p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

/* ── Route (4 steps) — a real sequence, so numbered ── */
.route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; counter-reset: step; }
.route li { position: relative; padding-block-start: 3.4rem; padding-inline-end: 1.5rem; }
.route li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid var(--accent); color: var(--accent);
  font-family: 'Figtree', system-ui, sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1;
}
.section--tint .route li::before { background: var(--surface); }
html:lang(fa) .route li::before { content: counter(step, persian); font-family: var(--font-body); }
html:lang(ar) .route li::before { content: counter(step, arabic-indic); font-family: var(--font-body); }
.route li:not(:last-child)::after {
  content: ''; position: absolute; inset-block-start: 18px; inset-inline: 48px 8px; border-block-start: 2px dashed var(--border);
}
.route h3 { font-size: 1.1rem; margin-block-end: 0.35rem; }
.route p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

/* ── Services: ruled grid ── */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.svc { background: var(--surface); padding: 2rem 1.75rem 2.1rem; transition: background 0.2s; }
.svc:hover { background: var(--surface2); }
.svc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-block-end: 1.1rem; }
.svc-ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.15rem; margin-block-end: 0.45rem; }
.svc p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

/* ── Portfolio + testimonials ── */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.work { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.work:hover { border-color: var(--accent); transform: translateY(-3px); }
.work-top { position: relative; min-height: 112px; padding: 1.1rem 1.25rem; background: var(--work-a); color: #fff; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; overflow: hidden; }
.work:nth-child(even) .work-top { background: var(--work-b); }
.work-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-sector { position: relative; font-size: 0.82rem; font-weight: 600; background: rgba(255,255,255,0.16); padding: 0.15rem 0.7rem; border-radius: 100px; }
.work-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.1rem; margin-block-end: 0.5rem; }
.work-body p { color: var(--muted); font-size: 0.93rem; line-height: 1.8; flex: 1; }
.work-result { margin-block-start: 1rem; padding-block-start: 0.9rem; border-block-start: 1px solid var(--border); font-size: 0.9rem; color: var(--text); }
.badge-sample { position: relative; font-size: 0.74rem; font-weight: 600; background: #ffd466; color: #3b2d00; padding: 0.15rem 0.6rem; border-radius: 100px; white-space: nowrap; }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.quote { background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); border-radius: 12px; padding: 1.5rem 1.5rem 1.4rem; }
.quote blockquote { font-size: 1.02rem; line-height: 1.85; margin-block-end: 1rem; }
.quote figcaption { font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.quote figcaption strong { color: var(--text); font-weight: 600; }

/* ── Post cards (blog) ── */
.posts-section { padding: 3rem var(--gutter) 5rem; }
.posts-grid { max-width: var(--max-w-wide); margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s, background 0.25s ease; }
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-card-image { width: calc(100% + 3.2rem); margin: -1.6rem -1.6rem 1.25rem; border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface2); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-category { font-size: 0.82rem; font-weight: 600; color: var(--accent); margin-block-end: 0.5rem; }
.post-card h3 { font-size: 1.12rem; margin-block-end: 0.6rem; color: var(--text); }
.post-card p { font-size: 0.93rem; color: var(--muted); line-height: 1.8; flex: 1; margin-block-end: 1.2rem; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--muted); border-block-start: 1px solid var(--border); padding-block-start: 0.9rem; margin-block-start: auto; }
.post-card-link { color: var(--accent); font-weight: 600; }
.post-card-link::after { content: '\2192'; display: inline-block; margin-inline-start: 0.35em; }
html[dir="rtl"] .post-card-link::after { content: '\2190'; }

/* ── CTA band ── */
.cta-band { background: linear-gradient(135deg, #123a82 0%, #194697 45%, #2f62bd 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset-block: -40% -40%; inset-inline-end: -8%; width: min(520px, 60vw); background: url('/assets/ring.png') center / contain no-repeat; opacity: 0.16; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: var(--max-w-wide); margin-inline: auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter); }
.cta-inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); max-width: 18em; margin-block-end: 0.7rem; }
.cta-inner p { color: rgba(255,255,255,0.82); max-width: 32em; margin-block-end: 1.75rem; }
.cta-inner .hero-actions { gap: 0.75rem; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { list-style: none; display: grid; gap: 1.25rem; }
.info-list li { display: grid; grid-template-columns: 24px 1fr; gap: 0.9rem; align-items: start; }
.info-list svg { width: 22px; height: 22px; color: var(--accent); margin-block-start: 0.2rem; }
.info-list .k { display: block; font-size: 0.82rem; color: var(--muted); }
.info-list a { color: var(--text); }
.info-list a:hover { color: var(--accent); }
.social-row { display: flex; gap: 0.6rem; margin-block-start: 1.5rem; flex-wrap: wrap; }
.social-row a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.social-row a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.social-row svg { width: 18px; height: 18px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); }
.form-card h3 { font-size: 1.2rem; margin-block-end: 1.25rem; }
.field { display: grid; gap: 0.35rem; margin-block-end: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field .ltr-input { direction: ltr; text-align: start; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; margin-block-end: 1.1rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-block-start: 0.35rem; accent-color: var(--accent); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-note { font-size: 0.84rem; color: var(--muted); margin-block-start: 1rem; line-height: 1.7; }

/* ── Internship ── */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-block-start: 2rem; }
.fact { background: var(--surface); padding: 1.4rem 1.5rem; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.fact span { color: var(--muted); font-size: 0.92rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.check-list { list-style: none; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-inline-start: 2rem; }
.check-list li::before {
  /* The tick is a drawing, not text flow: physical borders keep it identical in RTL and LTR */
  content: ''; position: absolute; inset-inline-start: 0.1rem; inset-block-start: 0.55em; width: 0.95rem; height: 0.5rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); transform-origin: center;
}
.topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.5rem; }
.sub-h { font-size: 1.3rem; margin-block-end: 1.1rem; }

/* ── Page headers ── */
.page-header, .blog-header { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 2rem; max-width: var(--max-w-wide); margin-inline: auto; }
.page-header h1, .blog-header h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-block-end: 0.7rem; max-width: 18em; }
.page-header p, .blog-header p { color: var(--muted); max-width: 40em; font-size: 1.05rem; }

/* ── Article ── */
.article-header { padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2.5rem; max-width: var(--max-w); margin-inline: auto; border-block-end: 1px solid var(--border); }
.article-category { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-block-end: 0.9rem; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-block-end: 0.9rem; }
.article-meta { font-size: 0.9rem; color: var(--muted); }
.article-hero-wrap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding: 2rem var(--gutter) 0; box-sizing: border-box; display: block; }
.article-hero-image { width: 100%; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius); background: var(--surface); display: block; box-sizing: border-box; }
.article-hero-image:empty { display: none; }
.article-hero-image img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }
.article-body { max-width: var(--max-w); margin-inline: auto; padding: 2.5rem var(--gutter) 5rem; position: relative; }
.article-body::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 3rem; width: 3px; height: 60%; background: linear-gradient(to bottom, var(--accent), transparent); border-radius: 2px; opacity: 0.35; }
.article-content h2 { font-size: 1.45rem; margin: 2.5rem 0 0.9rem; }
.article-content p { margin-block-end: 1.35rem; color: var(--article-p); }
.article-content ul, .article-content ol { margin: 1rem 0 1.35rem; margin-inline-start: 1.5rem; color: var(--article-p); }
.article-content li { margin-block-end: 0.4rem; }
.article-figure { margin-block: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption { padding: 0.6rem 1rem; font-size: 0.82rem; color: var(--muted); background: var(--surface); border-block-start: 1px solid var(--border); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); margin-block-end: 2rem; }
.back-link:hover { color: var(--accent); text-decoration: none; }
.back-link::before { content: '\2192'; }
html:not([dir="rtl"]) .back-link::before { content: '\2190'; }

/* ── Loading ── */
.loading { color: var(--muted); font-size: 0.92rem; padding-block: 2rem; display: flex; align-items: center; gap: 0.6rem; grid-column: 1 / -1; }
.loading::before { content: ''; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Footer ── */
footer { border-block-start: 1px solid var(--border); background: var(--surface); transition: background 0.25s ease, border-color 0.25s ease; }
.footer-grid { max-width: var(--max-w-wide); margin-inline: auto; padding: 3rem var(--gutter) 2rem; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2rem 3rem; }
.footer-brand .brand { margin-block-end: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; max-width: 24em; }
.footer-col h4 { font-size: 0.95rem; margin-block-end: 0.8rem; font-family: var(--font-display); }
.footer-col ul { list-style: none; display: grid; gap: 0.45rem; font-size: 0.93rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max-w-wide); margin-inline: auto; padding: 1.25rem var(--gutter) 2rem; border-block-start: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-bottom a:hover { color: var(--accent); }

/* ── 404 ── */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem var(--gutter); }
.notfound .mark { width: 120px; margin: 0 auto 1.5rem; }
.notfound h1 { font-size: 2rem; margin-block-end: 0.6rem; }
.notfound p { color: var(--muted); margin-block-end: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  .nav-hamburger { display: flex; }
  .nav-right { gap: 0.75rem; }
  .nav-links {
    position: fixed; inset-block-start: var(--nav-h); inset-inline: 0; z-index: 99;
    flex-direction: column; gap: 0; background: var(--surface); border-block-end: 1px solid var(--border);
    max-height: 0; overflow: hidden; opacity: 0; padding-inline: var(--gutter); visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.3s;
  }
  .nav-links.open { max-height: 420px; opacity: 1; padding-block: 0.4rem 0.9rem; visibility: visible; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding-block: 0.85rem; border-block-end: 1px solid var(--border); }
  .nav-links li:last-child a { border-block-end: none; }
  .nav-links a.active, .nav-links a[aria-current="page"] { border-block-end-color: var(--border); color: var(--accent); }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { order: -1; width: min(300px, 70vw); margin-block-end: 0.5rem; }
  .contact-grid, .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .route { grid-template-columns: 1fr; }
  .route li { padding-block: 0 2rem; padding-inline: 3.4rem 0; }
  .route li:last-child { padding-block-end: 0; }
  .route li:not(:last-child)::after { inset-block: 44px -2px; inset-inline: 18px auto; border-block-start: 0; border-inline-start: 2px dashed var(--border); }
}

@media (max-width: 640px) {
  .dest-grid, .svc-grid, .facts, .topic-list, .field-row { grid-template-columns: 1fr; }
  .posts-grid, .work-grid, .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-body::before { display: none; }
  .brand .wordmark { height: 15px; }
  .section-head--row { align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .brand .wordmark { display: none; }
}

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