/* ============================================================
   Saudi Renewable Energy Company — Corporate Website (v3.0)
   Design system rebuilt on the brand identity:
   deep pine teal #21564b · dark blue-teal #0d323b/#123a42
   mid teal #4a756c/#6b938e · mist teal #97b2ac · off-white #f2f5f4
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette (from official identity) */
  --teal-950: #0a262b;
  --teal-900: #0d323b;
  --teal-800: #123f45;
  --teal-700: #17494b;
  --teal-600: #21564b;   /* primary brand */
  --teal-500: #2f6b5e;
  --teal-400: #4a756c;
  --teal-300: #6b938e;
  --teal-200: #97b2ac;
  --teal-100: #c9dcd6;
  --teal-50:  #eef4f2;
  --mist:     #f2f5f4;

  --ink-900: #142426;
  --ink-700: #2b3f41;
  --ink-500: #55706c;
  --ink-300: #8ba6a0;
  --line: #dfe9e5;

  --bg: var(--mist);
  --surface: #ffffff;

  /* Type */
  --font-ar: "Tajawal", "Segoe UI", Tahoma, "Noto Kufi Arabic", system-ui, sans-serif;
  --font-en: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow-sm: 0 4px 14px -6px rgba(13, 50, 59, .14);
  --shadow: 0 12px 32px -12px rgba(13, 50, 59, .22);
  --shadow-lg: 0 28px 64px -22px rgba(10, 38, 43, .35);

  --grad-brand: linear-gradient(135deg, #17494b 0%, #21564b 45%, #2f6b5e 100%);
  --grad-deep: linear-gradient(160deg, #0a262b 0%, #0d323b 55%, #123f45 100%);
  --grad-mist: linear-gradient(135deg, #c9dcd6 0%, #97b2ac 100%);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="en"] body { font-family: var(--font-en); }

body {
  background: var(--bg);
  color: var(--ink-700);
  line-height: 1.78;
  font-size: 1.02rem;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-400); }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.35; font-weight: 800; }
h2 { letter-spacing: -.01em; }

/* Subtle scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--teal-50); }
::-webkit-scrollbar-thumb { background: var(--teal-300); border-radius: 8px; border: 2px solid var(--teal-50); }
::-webkit-scrollbar-thumb:hover { background: var(--teal-500); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.section { padding-block: 92px; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--teal-50) 0%, var(--mist) 100%); }
.section--dark { background: var(--grad-deep); position: relative; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark .eyebrow { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  color: var(--teal-500); text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 30px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-200));
}
.section--dark .eyebrow { color: var(--teal-200); }
.section--dark .eyebrow::before { background: linear-gradient(90deg, var(--teal-200), var(--teal-100)); }

.section-head { max-width: 740px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 30px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal-200), var(--teal-500)); }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.45rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-500); font-size: 1.06rem; }
.section--dark .section-head p { color: rgba(255,255,255,.75); }

/* ---------- 3. Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .22s, box-shadow .22s, background .22s, color .22s;
  line-height: 1.4; white-space: nowrap;
}
.btn--primary { background: var(--grad-brand); color: #fff !important; box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px -14px rgba(33,86,75,.55); }
.btn--primary::after {
  content: ""; position: absolute; top: 0; inset-inline-start: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: inset-inline-start .55s ease;
}
.btn--primary:hover::after { inset-inline-start: 130%; }

.btn--gold {
  background: var(--grad-mist); color: #0d323b !important; box-shadow: var(--shadow-sm);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 38px -14px rgba(151,178,172,.6); }

.btn--outline { border-color: rgba(255,255,255,.5); color: #fff !important; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--outline:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-3px); }

.btn--ghost { border-color: var(--teal-300); color: var(--teal-600) !important; background: transparent; }
.btn--ghost:hover { background: var(--teal-50); border-color: var(--teal-600); transform: translateY(-2px); }

.btn--sm { padding: 10px 22px; font-size: .88rem; }

/* ---------- 4. Header ---------- */
.skip-link {
  position: fixed; top: -60px; right: 16px; z-index: 200;
  background: var(--teal-800); color: #fff !important; padding: 10px 18px;
  border-radius: 0 0 10px 10px; transition: top .25s; font-weight: 700;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242, 245, 244, .85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(33,86,75,.12);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand__logo {
  width: 46px; height: 46px; flex: none; filter: drop-shadow(0 4px 10px rgba(13,50,59,.25));
  transition: transform .3s ease;
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.04); }
.brand__name { font-size: 1.07rem; line-height: 1.3; }
.brand__name small { display: block; font-size: .7rem; font-weight: 600; color: var(--teal-500); letter-spacing: .05em; }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; color: var(--ink-700); font-size: .95rem;
  transition: color .2s, background .2s;
}
.main-nav a::after {
  content: ""; position: absolute; bottom: 3px; inset-inline: 16px; height: 2px;
  border-radius: 2px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: center; transition: transform .28s ease;
}
.main-nav a:hover { background: var(--teal-50); color: var(--teal-600); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--teal-700); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .85rem; color: var(--ink-900); background: var(--surface);
  transition: all .2s;
}
.lang-switch:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: all .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; min-height: 660px; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: -4%; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 82% 12%, rgba(151,178,172,.22), transparent 65%),
    linear-gradient(100deg, rgba(10,38,43,.95) 0%, rgba(13,50,59,.88) 42%, rgba(33,86,75,.55) 100%);
}
html[dir="rtl"] .hero__overlay {
  background:
    radial-gradient(900px 480px at 18% 12%, rgba(151,178,172,.22), transparent 65%),
    linear-gradient(-100deg, rgba(10,38,43,.95) 0%, rgba(13,50,59,.88) 42%, rgba(33,86,75,.55) 100%);
}
.hero__overlay::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.3px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, #000 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent 80%);
}

.hero__content { max-width: 680px; padding-block: 96px; }
.hero__content .eyebrow { color: var(--teal-200); }
.hero__content .eyebrow::before { background: linear-gradient(90deg, var(--teal-200), var(--teal-100)); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.5rem); margin-bottom: 20px; line-height: 1.25; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(120deg, #c9dcd6 0%, #97b2ac 55%, #eaf3f0 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 570px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  margin-top: 62px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 20px 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease, background .25s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(201,220,214,.5); background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); }
.stat b { display: block; font-size: 1.8rem; color: #fff; font-weight: 800; line-height: 1.15; }
.stat b i { font-style: normal; color: var(--teal-200); font-size: 1.1rem; }
.stat span { color: rgba(255,255,255,.72); font-size: .84rem; font-weight: 500; }

/* ---------- 6. Generic components ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 1.15fr .85fr; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: rgba(111,147,142,.45);
}
.card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--teal-50), var(--teal-100));
  color: var(--teal-600); margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(33,86,75,.08);
  transition: transform .28s ease;
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.13rem; margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: .95rem; }
.card .card__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }

.card--img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--img .card__media { aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--teal-100); }
.card--img .card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,38,43,.28));
  opacity: 0; transition: opacity .4s;
}
.card--img:hover .card__media::after { opacity: 1; }
.card--img .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.8,.35,1); }
.card--img:hover .card__media img { transform: scale(1.06); }
.card--img .card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-600); font-size: .78rem; font-weight: 700;
  align-self: flex-start; margin-bottom: 14px;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }
.tag--gold { background: linear-gradient(120deg, #dcebe6, #c9dcd6); color: #17494b; }
.tag--gold::before { background: #21564b; }

.media-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); }
.media-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.8,.35,1); }
.media-card:hover img { transform: scale(1.07); }
.media-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,38,43,0) 25%, rgba(10,38,43,.92) 100%);
  transition: background .4s;
}
.media-card:hover::after { background: linear-gradient(180deg, rgba(10,38,43,.05) 15%, rgba(10,38,43,.95) 100%); }
.media-card__body { position: relative; z-index: 1; padding: 30px; color: #fff; width: 100%; transform: translateY(0); transition: transform .35s ease; }
.media-card:hover .media-card__body { transform: translateY(-6px); }
.media-card__body h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.media-card__body p { color: rgba(255,255,255,.85); font-size: .93rem; margin-bottom: 6px; }
.media-card__body .card__link { font-weight: 700; }

/* Timeline / numbered steps */
.step { display: flex; gap: 22px; padding: 22px; border-radius: var(--radius); border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s; }
.step:hover { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); transform: translateX(-4px); }
html[dir="ltr"] .step:hover { transform: translateX(4px); }
.step__num {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  background: var(--grad-brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 10px 22px -8px rgba(33,86,75,.5);
}
.step h3 { font-size: 1.06rem; margin-bottom: 4px; }
.step p { color: var(--ink-500); font-size: .95rem; }
.steps { display: grid; gap: 12px; }

/* Checklist */
.checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--ink-700); }
.checks li::before {
  content: "✓"; flex: none; width: 25px; height: 25px; border-radius: 50%;
  background: linear-gradient(140deg, var(--teal-500), var(--teal-300)); color: #fff;
  font-size: .82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 3px;
  box-shadow: 0 4px 10px -3px rgba(33,86,75,.4);
}

/* ---------- 7. News ---------- */
.news-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-500); font-size: .84rem; margin-bottom: 14px; }
.news-meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-card .card__body h3 { font-size: 1.16rem; line-height: 1.5; }

.article-body { max-width: 780px; margin-inline: auto; }
.article-body p { margin-bottom: 18px; color: var(--ink-700); font-size: 1.05rem; }
.article-body h2 { font-size: 1.4rem; margin-block: 30px 12px; color: var(--teal-700); }
.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow-lg); }

/* ---------- 8. Services grid (activities) ---------- */
.service {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: all .25s ease;
  position: relative; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 20%; bottom: 20%; width: 3px;
  border-radius: 3px; background: var(--grad-brand);
  transform: scaleY(0); transition: transform .3s ease;
}
.service:hover { border-color: rgba(111,147,142,.5); box-shadow: var(--shadow); transform: translateY(-4px); }
.service:hover::before { transform: scaleY(1); }
.service__icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--teal-50), var(--teal-100)); color: var(--teal-600);
  transition: transform .25s ease;
}
.service:hover .service__icon { transform: scale(1.1) rotate(-5deg); }
.service h3 { font-size: 1.02rem; margin-bottom: 3px; }
.service p { font-size: .89rem; color: var(--ink-500); }

/* ---------- 9. Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stats-band .card { text-align: center; padding: 36px 20px; position: relative; overflow: hidden; }
.stats-band .card::after {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: var(--grad-mist); opacity: 0; transition: opacity .3s;
}
.stats-band .card:hover::after { opacity: 1; }
.stats-band b { font-size: 2.4rem; color: var(--teal-700); font-weight: 800; line-height: 1.1; display: block; }
.stats-band b i { font-style: normal; }
.stats-band span { color: var(--ink-500); font-size: .9rem; font-weight: 600; }
.stats-band--dark b {
  color: #fff;
  text-shadow: 0 2px 18px rgba(151,178,172,.35);
}
.stats-band--dark span { color: rgba(255,255,255,.78); }
.stats-band--dark .card {
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.16); box-shadow: none; backdrop-filter: blur(6px);
}
.stats-band--dark .card:hover { border-color: rgba(201,220,214,.45); background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); }
.stats-band--dark .card::after { background: linear-gradient(90deg, transparent, rgba(201,220,214,.8), transparent); }

/* ---------- 10. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 46px; align-items: start; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(111,147,142,.4); }
.contact-item__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(150deg, var(--teal-50), var(--teal-100));
  color: var(--teal-600); display: flex; align-items: center; justify-content: center;
}
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-item p { color: var(--ink-500); font-size: .92rem; }
.contact-item a { font-weight: 700; }

.form { display: grid; gap: 18px; }
.form label { font-weight: 700; font-size: .92rem; color: var(--ink-900); display: block; margin-bottom: 7px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 17px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; background: var(--bg); color: var(--ink-900);
  transition: border .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(47,107,94,.15); background: #fff;
}
.form textarea { resize: vertical; min-height: 130px; }
.form .hint { font-size: .8rem; color: var(--ink-500); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; }
.form-status.ok { display: block; background: #e3f1ea; color: #0f4d38; border: 1px solid #b5dcc8; }
.form-status.err { display: block; background: #fdeeee; color: #8c1f1f; border: 1px solid #f3c4c4; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(111,147,142,.4); }
.faq summary { padding: 19px 24px; font-weight: 700; cursor: pointer; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--teal-600); background: var(--teal-50);
  transition: transform .25s, background .25s, color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--teal-600); color: #fff; }
.faq details p { padding: 0 24px 22px; color: var(--ink-500); font-size: .95rem; }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(255,255,255,.72); position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, #17494b, #4a756c, #97b2ac);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-block: 66px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 26px; height: 2px; background: var(--teal-300); border-radius: 2px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: .93rem; display: inline-block; margin-bottom: 10px; transition: color .2s, transform .2s; }
.site-footer a:hover { color: var(--teal-100); transform: translateX(-3px); }
html[dir="ltr"] .site-footer a:hover { transform: translateX(3px); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name small { color: var(--teal-200); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 13px; border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; color: #fff !important; margin: 0;
  transition: all .22s;
}
.footer-social a:hover { background: var(--grad-mist); border-color: transparent; color: #0d323b !important; transform: translateY(-3px); }
.site-footer .footer-desc { font-size: .93rem; margin-top: 14px; max-width: 300px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--teal-300); }

/* ---------- 12. Page hero (inner pages) ---------- */
.page-hero {
  background: var(--grad-deep); color: #fff; padding-block: 68px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.3px);
  background-size: 26px 26px;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 88% 0%, rgba(151,178,172,.25), transparent 70%);
}
html[dir="rtl"] .page-hero::after { background: radial-gradient(700px 320px at 12% 0%, rgba(151,178,172,.25), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--teal-200); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 660px; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--teal-200); font-weight: 600; }
.crumbs a:hover { color: #fff; }

/* ---------- 13. Table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th, .tbl td { padding: 16px 22px; text-align: start; font-size: .93rem; border-bottom: 1px solid var(--line); }
.tbl th { background: linear-gradient(150deg, var(--teal-50), var(--teal-100)); color: var(--teal-800); font-size: .85rem; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: var(--teal-50); }
.tbl td b { color: var(--ink-900); }

/* ---------- 14. Legal pages ---------- */
.legal { max-width: 840px; margin-inline: auto; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.legal a:hover { color: var(--teal-500); }
.legal h2 { font-size: 1.32rem; margin: 36px 0 12px; color: var(--teal-700); }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-700); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-inline-start: 24px; margin-bottom: 14px; }
.legal .updated { display: inline-block; margin-top: 6px; padding: 7px 18px; background: var(--teal-50); color: var(--teal-600); border-radius: 999px; font-size: .82rem; font-weight: 700; }

/* ---------- 15. Notice bar (placeholders) ---------- */
.notice {
  padding: 14px 22px; background: #e6efe9; color: #17494b;
  border: 1px dashed var(--teal-300); border-radius: var(--radius-sm);
  font-size: .9rem; margin-bottom: 26px; font-weight: 600;
}

/* ---------- 16. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 17. Focus & misc ---------- */
:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px; border-radius: 8px;
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible {
  outline: 3px solid var(--teal-300); border-color: var(--teal-500);
}

/* ---------- 18. Print ---------- */
@media print {
  .site-header, .site-footer, .hero__cta, .btn, .footer-bottom, .crumbs, .reveal { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 20px; }
  .hero { min-height: 0; padding-block: 30px; }
  .hero__content { max-width: none; padding: 0; }
  .hero h1, .hero h1 .accent { color: #000; background: none; -webkit-background-clip: unset; }
  .hero p { color: #333; }
  .hero__overlay, .hero__bg { display: none; }
  .stat { border-color: #ccc; }
  .stat b { color: #000; }
  .card { box-shadow: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 78px; inset-inline: 0;
    background: rgba(242,245,244,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 22px 24px; gap: 4px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; font-size: 1rem; }
  .main-nav a::after { display: none; }
  .header-actions .btn { display: none; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .hero__content { padding-block: 68px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 15px 12px; }
  .stat b { font-size: 1.4rem; }
}

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

/* ---------- 20. Video media ---------- */
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--teal-950);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--teal-950);
}
.video-frame video:focus-visible { outline: 3px solid var(--teal-300); outline-offset: -3px; }
.video-frame--caption { position: relative; }
.video-frame__cap {
  position: absolute; bottom: 0; inset-inline: 0;
  padding: 34px 22px 14px;
  background: linear-gradient(180deg, transparent, rgba(10,38,43,.75));
  color: #fff; font-size: .88rem; font-weight: 600;
  pointer-events: none;
}

/* Hero background video */
.hero__bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg video { display: none; }
}

/* ============================================================
   v4 — Deep visual effects: preloader, progress, marquee,
   parallax, tilt, counters, orbs, waves, WhatsApp, back-to-top
   ============================================================ */

/* ---------- 21. Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--grad-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__logo { width: 74px; height: 74px; animation: prePulse 1.4s ease-in-out infinite; }
@keyframes prePulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.1); opacity: 1; } }
.preloader__bar { width: 190px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 42%; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--teal-100), transparent); animation: preSlide 1.1s ease-in-out infinite; }
@keyframes preSlide { from { transform: translateX(-130%); } to { transform: translateX(340%); } }

/* ---------- 22. Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 300; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-500), var(--teal-200)); }

/* ---------- 23. Header shrink on scroll ---------- */
.header-inner { transition: height .3s ease; }
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 26px -14px rgba(10,38,43,.28); background: rgba(242,245,244,.96); }
.site-header.scrolled .header-inner { height: 64px; }
@media (max-width: 860px) { .site-header.scrolled .header-inner { height: 78px; } }

/* ---------- 24. Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- 25. WhatsApp floating button ---------- */
.whatsapp-btn {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.55);
  transition: transform .25s ease;
}
.whatsapp-btn:hover { transform: scale(1.1) translateY(-3px); color: #fff; }
.whatsapp-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
.whatsapp-btn svg { width: 28px; height: 28px; }

/* ---------- 26. Sector marquee ticker ---------- */
.marquee {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--teal-800), var(--teal-600) 50%, var(--teal-800));
  padding: 15px 0;
  border-block: 1px solid rgba(255,255,255,.14);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none;
}
.marquee::before { inset-inline-start: 0; background: linear-gradient(90deg, var(--teal-800), transparent); }
.marquee::after  { inset-inline-end: 0;  background: linear-gradient(-90deg, var(--teal-800), transparent); }
.marquee__track { display: flex; width: max-content; animation: marqueeLTR 34s linear infinite; }
html[dir="rtl"] .marquee__track { animation-name: marqueeRTL; }
.marquee__group { display: flex; align-items: center; }
.marquee__group span {
  display: inline-flex; align-items: center; gap: 34px; padding-inline: 17px;
  color: rgba(255,255,255,.92); font-weight: 700; font-size: 1.02rem; white-space: nowrap;
}
.marquee__group span::after { content: "✦"; color: var(--teal-200); font-size: .8rem; }
@keyframes marqueeLTR { to { transform: translateX(-50%); } }
@keyframes marqueeRTL { to { transform: translateX(50%); } }

/* ---------- 27. Floating orb in dark sections ---------- */
.section--dark::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  top: -150px; inset-inline-end: -130px;
  background: radial-gradient(circle, rgba(151,178,172,.17), transparent 70%);
  filter: blur(8px); pointer-events: none;
  animation: orbFloat 16s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-70px, 55px) scale(1.2); }
}

/* ---------- 28. Animated gradient accent (hero) ---------- */
.hero h1 .accent {
  background: linear-gradient(120deg, #c9dcd6, #97b2ac, #eaf3f0, #97b2ac, #c9dcd6);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: accentFlow 9s ease infinite;
}
@keyframes accentFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------- 29. Wave divider on tinted sections ---------- */
.section--tint { position: relative; }
.section--tint::before {
  content: ""; position: absolute; inset-inline: 0; top: -1px; height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 42' preserveAspectRatio='none'%3E%3Cpath d='M0 42V18c240-24 480 24 720 6s480-24 720 4v14z' fill='%23f2f5f4'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: 0; pointer-events: none;
}
.section--tint > .container { position: relative; z-index: 1; }

/* ---------- 30. Reveal variants (settle) ---------- */
.reveal { opacity: 0; transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none !important; }

/* ---------- 31. Smooth FAQ ---------- */
.faq details p {
  max-height: 0; padding: 0 24px; overflow: hidden; opacity: 0;
  transition: max-height .38s ease, padding .3s ease, opacity .3s ease;
}
.faq details[open] p { max-height: 340px; padding: 0 24px 22px; opacity: 1; }

/* ---------- 32. Tilt readiness ---------- */
.card, .media-card, .service { will-change: transform; }

/* ---------- 33. Reduced motion: kill decorative animations ---------- */
@media (prefers-reduced-motion: reduce) {
  .preloader, .preloader__logo, .preloader__bar span,
  .marquee__track, .whatsapp-btn::before, .section--dark::after,
  .hero h1 .accent { animation: none !important; }
}

/* ============================================================
   v5 — Deep effects: canvas energy network, word reveal,
   card shine, lightbox, cookie banner, steps timeline
   ============================================================ */

/* Smooth anchor offset under sticky header */
html { scroll-padding-top: 92px; }

/* ---------- 34. Hero canvas (energy network) ---------- */
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__content { position: relative; z-index: 1; }

/* ---------- 35. Split-word reveal ---------- */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(118%); transition: transform .7s cubic-bezier(.22,.8,.35,1); }
.in .split-word > span, .split-word.in > span { transform: none; }

/* Hero / page-hero title entrance on load */
.hero h1 .split-word > span,
.page-hero h1 .split-word > span { animation: wordUp .8s cubic-bezier(.22,.8,.35,1) forwards; }
@keyframes wordUp { from { transform: translateY(118%); } to { transform: none; } }

/* ---------- 36. Card shine sweep ---------- */
.card:not(.card--img), .service { overflow: hidden; }
.card:not(.card--img)::before, .service::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  inset-inline-start: -70%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: inset-inline-start .65s ease;
}
.card:not(.card--img):hover::before, .service:hover::after { inset-inline-start: 135%; }
.card { position: relative; }

/* ---------- 37. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 4500;
  background: rgba(10,38,43,.9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1240px); max-height: 86vh;
  border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,.55);
  transform: scale(.94); transition: transform .35s cubic-bezier(.22,.8,.35,1);
}
.lightbox.open img { transform: none; }
.lightbox__close {
  position: absolute; top: 20px; inset-inline-end: 24px;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
.lightbox__cap { position: absolute; bottom: 26px; inset-inline: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .92rem; }
.cursor-zoom { cursor: zoom-in; }

/* ---------- 38. Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: min(620px, 94vw); z-index: 130;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 22px; box-shadow: var(--shadow-lg);
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; animation: cookieUp .45s cubic-bezier(.22,.8,.35,1); }
@keyframes cookieUp {
  from { opacity: 0; transform: translate(-50%, 26px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-banner p { flex: 1 1 280px; font-size: .87rem; color: var(--ink-700); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; align-items: center; }
.cookie-banner .btn { padding: 10px 22px; font-size: .86rem; }

/* ---------- 39. Steps timeline connector ---------- */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; inset-inline-start: 25px; top: 14px; bottom: 14px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--teal-200), var(--teal-500));
  opacity: .55;
}
.steps .step { position: relative; background: transparent; }
.steps .step:hover { background: var(--surface); }

/* ---------- 40. Image hover zoom icon hint ---------- */
.card--img .card__media::before {
  content: "⤢"; position: absolute; z-index: 2;
  top: 14px; inset-inline-end: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10,38,43,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s;
  pointer-events: none; backdrop-filter: blur(4px);
}
.card--img:hover .card__media::before { opacity: 1; transform: none; }

/* ---------- 41. Subtle grid pattern for light sections ---------- */
.section--tint::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(33,86,75,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(33,86,75,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.section--tint > * { position: relative; z-index: 1; }

/* ---------- 42. Reduced motion for v5 ---------- */
@media (prefers-reduced-motion: reduce) {
  .split-word > span { transform: none !important; animation: none !important; }
  .card:not(.card--img)::before, .service::after { transition: none; display: none; }
}

/* ---------- 43. Hero rotating tagline ---------- */
.hero-rotator {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.06rem; font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 16px; min-height: 1.7em;
}
.hero-rotator .rotator { position: relative; display: inline-block; min-width: 1px; height: 1.6em; }
.hero-rotator .rotator span {
  position: absolute; inset-inline-start: 0; top: 0;
  white-space: nowrap; opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  color: var(--teal-100);
}
.hero-rotator .rotator span.on { opacity: 1; transform: none; position: relative; }

/* ============================================================
   v6 — Dark mode, animated SVG donut charts, testimonials
   carousel, image blur-up loading
   ============================================================ */

/* ---------- 44. Dark mode tokens ---------- */
html[data-theme="dark"] {
  --bg: #0c181b;
  --surface: #12262a;
  --line: #1e3a3f;
  --ink-900: #e6efec;
  --ink-700: #b9ccc7;
  --ink-500: #8ba69f;
  --teal-50: #10252a;
  --teal-100: #1c3a40;
  --teal-200: #6b938e;
  --teal-300: #97b2ac;
  --teal-400: #4a756c;
  --teal-600: #2f6b5e;
  --teal-700: #4a756c;
  --grad-brand: linear-gradient(135deg, #17494b 0%, #21564b 45%, #2f6b5e 100%);
  --grad-deep: linear-gradient(160deg, #081417 0%, #0c1d21 55%, #0f262b 100%);
  --shadow-sm: 0 4px 14px -6px rgba(0,0,0,.4);
  --shadow: 0 12px 32px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 28px 64px -22px rgba(0,0,0,.6);
}
html[data-theme="dark"] .section--tint { background: linear-gradient(180deg, #0e2024 0%, #0c181b 100%); }
html[data-theme="dark"] .site-header { background: rgba(12,24,27,.85); border-bottom-color: rgba(111,147,142,.16); }
html[data-theme="dark"] .site-header.scrolled { background: rgba(12,24,27,.96); }
html[data-theme="dark"] .main-nav a:hover { background: var(--teal-50); }
html[data-theme="dark"] .card, html[data-theme="dark"] .service,
html[data-theme="dark"] .contact-item, html[data-theme="dark"] .faq details,
html[data-theme="dark"] .tbl-wrap, html[data-theme="dark"] .cookie-banner {
  background: var(--surface); border-color: var(--line);
}
html[data-theme="dark"] .card__icon, html[data-theme="dark"] .service__icon,
html[data-theme="dark"] .contact-item__icon { background: linear-gradient(150deg, #163239, #1c3a40); }
html[data-theme="dark"] .form input, html[data-theme="dark"] .form textarea, html[data-theme="dark"] .form select {
  background: #0e2024; border-color: var(--line); color: var(--ink-900);
}
html[data-theme="dark"] .form input:focus, html[data-theme="dark"] .form textarea:focus {
  background: #10252a; border-color: var(--teal-400);
}
html[data-theme="dark"] .tag { background: #163239; color: var(--teal-200); }
html[data-theme="dark"] .tbl th { background: linear-gradient(150deg, #163239, #1c3a40); color: var(--teal-200); }
html[data-theme="dark"] .tbl tbody tr:hover { background: var(--teal-50); }
html[data-theme="dark"] .step:hover { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .notice { background: #163239; border-color: var(--teal-300); color: var(--teal-100); }
html[data-theme="dark"] .legal .updated { background: #163239; color: var(--teal-200); }
html[data-theme="dark"] ::selection { background: var(--teal-300); color: #081417; }

/* theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-900); transition: all .25s;
}
.theme-toggle:hover { border-color: var(--teal-500); transform: rotate(18deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- 45. Donut charts ---------- */
.charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; margin-top: 38px; }
.chart-card {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 24px 18px; text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.chart-card:hover { transform: translateY(-5px); border-color: rgba(201,220,214,.5); }
.chart-card .donut-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; }
.chart-card .donut-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.chart-card .donut-bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 11; }
.chart-card .donut-fg {
  fill: none; stroke-width: 11; stroke-linecap: round;
  stroke: var(--teal-200);
  stroke-dasharray: 320; stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.4s cubic-bezier(.22,.8,.35,1);
}
.chart-card .donut-val {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.35rem; line-height: 1.1;
}
.chart-card .donut-val small { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.72); }
.chart-card h3 { color: #fff; font-size: .96rem; font-weight: 700; }
.chart-card .chart-pct { display: block; margin-top: 2px; color: var(--teal-200); font-size: .84rem; font-weight: 700; }
html[data-theme="dark"] .chart-card { background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }

/* ---------- 46. Testimonials carousel ---------- */
.testi-section { position: relative; overflow: hidden; }
.testi-viewport { overflow: hidden; margin-top: 8px; }
.testi-track { display: flex; transition: transform .55s cubic-bezier(.22,.8,.35,1); }
.testi-slide { flex: 0 0 100%; padding: 4px 6px; }
.testi-card {
  max-width: 780px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 42px 44px; box-shadow: var(--shadow-sm);
}
.testi-card .quote-mark {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 16px;
  background: linear-gradient(150deg, var(--teal-50), var(--teal-100));
  color: var(--teal-600); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; line-height: 1;
}
.testi-card blockquote { font-size: 1.12rem; color: var(--ink-700); line-height: 1.9; margin-bottom: 22px; }
.testi-card .testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-card .testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; flex: none;
}
.testi-card .testi-person b { display: block; color: var(--ink-900); font-size: .98rem; }
.testi-card .testi-person span { color: var(--ink-500); font-size: .83rem; }
.testi-nav { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.testi-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--teal-200); opacity: .4; transition: all .25s;
}
.testi-dot.active { opacity: 1; width: 26px; border-radius: 6px; background: var(--teal-500); }
.testi-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; color: var(--ink-900); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: all .22s;
}
.testi-arrow:hover { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
html[data-theme="dark"] .testi-card { background: var(--surface); }
html[data-theme="dark"] .testi-dot { background: var(--teal-300); }

/* ---------- 47. Image blur-up ---------- */
.blur-up { filter: blur(14px); transform: scale(1.04); transition: filter .6s ease, transform .6s ease; }
.blur-up.loaded { filter: none; transform: none; }

/* ---------- 48. Reduced motion for v6 ---------- */
@media (prefers-reduced-motion: reduce) {
  .donut-fg { transition: none !important; stroke-dashoffset: 0 !important; }
  .testi-track { transition: none !important; }
  .blur-up { filter: none; transform: none; }
}

/* ============================================================
   v7 — Interactive filters, location panel, line chart,
   milestones timeline
   ============================================================ */

/* ---------- 49. Service filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-700); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-2px); }
.filter-btn.active {
  background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(33,86,75,.55);
}
.service { transition: opacity .35s ease, transform .35s ease, box-shadow .25s ease, border-color .25s ease; }
.service.filter-hide { opacity: 0; transform: scale(.94); pointer-events: none; position: absolute; visibility: hidden; }
.service.filter-hide { position: static !important; display: none; }
.grid-filter { position: relative; }

/* ---------- 50. Location panel (contact) ---------- */
.loc-panel {
  position: relative; overflow: hidden;
  background: var(--grad-deep); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  padding: 34px; color: #fff; box-shadow: var(--shadow-lg);
  min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end;
}
.loc-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(151,178,172,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151,178,172,.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 30%, transparent 78%);
}
.loc-radar {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: 190px; height: 190px;
}
.loc-radar::before, .loc-radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(151,178,172,.5);
  animation: radarPing 3s ease-out infinite;
}
.loc-radar::after { animation-delay: 1.5s; }
@keyframes radarPing {
  0% { transform: scale(.35); opacity: .9; }
  100% { transform: scale(1.15); opacity: 0; }
}
.loc-ring {
  position: absolute; inset: 18%; border-radius: 50%;
  border: 1px dashed rgba(151,178,172,.4);
  animation: locSpin 26s linear infinite;
}
@keyframes locSpin { to { transform: rotate(360deg); } }
.loc-ring::after {
  content: ""; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal-100);
  box-shadow: 0 0 12px 2px rgba(151,178,172,.8);
}
.loc-pin {
  position: absolute; top: 12%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; text-align: center;
}
.loc-pin svg { width: 46px; height: 46px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); animation: pinBob 2.6s ease-in-out infinite; }
@keyframes pinBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.loc-coords {
  position: absolute; top: 46%; left: 50%; transform: translateX(-50%);
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  color: var(--teal-100); background: rgba(10,38,43,.55);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px);
  white-space: nowrap; direction: ltr;
}
.loc-panel h3 { color: #fff; font-size: 1.15rem; margin-top: 14px; position: relative; z-index: 2; }
.loc-panel p { color: rgba(255,255,255,.75); font-size: .9rem; position: relative; z-index: 2; }
.loc-panel .loc-tag {
  position: relative; z-index: 2; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(151,178,172,.16); border: 1px solid rgba(151,178,172,.35);
  color: var(--teal-100); font-size: .78rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 10px;
}
.loc-panel .loc-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: pinBlink 2s ease infinite; }
@keyframes pinBlink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- 51. Line chart (invest) ---------- */
.chart-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); margin-top: 40px;
}
.chart-box .chart-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chart-box .chart-head h3 { font-size: 1.12rem; }
.chart-box .chart-head .chart-note { font-size: .78rem; color: var(--ink-500); }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--ink-500); font-size: 11px; font-weight: 600; }
.chart-area { fill: url(#chartGrad); }
.chart-line { fill: none; stroke: var(--teal-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--surface); stroke: var(--teal-500); stroke-width: 2.5; }
.chart-dot:hover { fill: var(--teal-500); }
.chart-tooltip { position: absolute; pointer-events: none; background: var(--ink-900); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; opacity: 0; transition: opacity .2s; white-space: nowrap; z-index: 5; }
.chart-box { position: relative; }

/* ---------- 52. Milestones timeline (about) ---------- */
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }
.milestone { position: relative; text-align: center; padding: 26px 16px 18px; }
.milestone::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-brand); box-shadow: 0 0 0 4px var(--teal-50), 0 4px 10px rgba(33,86,75,.4);
  z-index: 2;
}
.milestone::after {
  content: ""; position: absolute; top: 6px; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--teal-200) 12%, var(--teal-200) 88%, transparent);
  z-index: 1;
}
.milestone:first-child::after { background: linear-gradient(90deg, transparent, var(--teal-200) 88%, transparent); }
.milestone b { display: block; color: var(--teal-600); font-size: 1.05rem; margin-bottom: 6px; }
.milestone p { color: var(--ink-500); font-size: .85rem; }
.milestone h3 { font-size: .98rem; margin-bottom: 4px; }
@media (max-width: 760px) {
  .milestones { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
}

/* ---------- 53. Reduced motion v7 ---------- */
@media (prefers-reduced-motion: reduce) {
  .loc-radar::before, .loc-radar::after, .loc-ring, .loc-pin svg, .loc-panel .loc-tag::before { animation: none !important; }
  .chart-line { transition: none !important; }
}

/* ============================================================
   v8 — Before/after slider, page-hero orbs,
   article share bar, page entrance
   ============================================================ */

/* ---------- 54. Before/After comparison slider ---------- */
.ba-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y;
  margin-top: 8px; border: 1px solid rgba(255,255,255,.14);
}
.ba-wrap img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba-after { display: block; }
.ba-before {
  position: absolute; inset: 0; overflow: hidden; width: 50%;
}
.ba-before img { filter: grayscale(.92) brightness(.62) contrast(1.05); width: auto; height: 100%; max-width: none; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 3px;
  background: linear-gradient(180deg, var(--teal-100), #fff, var(--teal-100));
  transform: translateX(-50%); z-index: 5; pointer-events: none;
}
html[dir="ltr"] .ba-divider { transform: translateX(-50%); }
.ba-handle {
  position: absolute; top: 50%; inset-inline-start: 50%; z-index: 6;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transform: translate(-50%, -50%); cursor: ew-resize;
  border: 2px solid rgba(33,86,75,.25); font-size: 1.15rem;
}
html[dir="rtl"] .ba-handle { transform: translate(50%, -50%); }
.ba-handle::before, .ba-handle::after {
  content: "‹"; font-size: 1.3rem; font-weight: 800; line-height: 1;
}
.ba-handle::after { content: "›"; }
html[dir="rtl"] .ba-handle::before { content: "›"; }
html[dir="rtl"] .ba-handle::after { content: "‹"; }
.ba-labels span {
  position: absolute; top: 14px; z-index: 4; padding: 6px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; background: rgba(10,38,43,.6); color: #fff;
  backdrop-filter: blur(4px); pointer-events: none;
}
.ba-labels .ba-lbl-before { inset-inline-start: 14px; }
.ba-labels .ba-lbl-after { inset-inline-end: 14px; }

/* ---------- 56. Page-hero orbs + entrance ---------- */
.page-hero .ph-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(6px);
}
.page-hero .ph-orb--1 {
  width: 260px; height: 260px; top: -80px; inset-inline-start: 12%;
  background: radial-gradient(circle, rgba(151,178,172,.22), transparent 70%);
  animation: orbFloatA 13s ease-in-out infinite alternate;
}
.page-hero .ph-orb--2 {
  width: 180px; height: 180px; bottom: -60px; inset-inline-end: 14%;
  background: radial-gradient(circle, rgba(47,107,94,.3), transparent 70%);
  animation: orbFloatB 17s ease-in-out infinite alternate;
}
@keyframes orbFloatA { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.15); } }
@keyframes orbFloatB { from { transform: translate(0,0) scale(1); } to { transform: translate(-35px, -25px) scale(1.2); } }

/* inner page entrance */
.page-load { animation: pageIn .7s cubic-bezier(.22,.8,.35,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- 57. Article share bar ---------- */
.share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
}
.share-bar > span { font-weight: 800; font-size: .92rem; color: var(--ink-900); }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-700);
  cursor: pointer; transition: all .22s ease; text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--teal-500); color: var(--teal-600); }
.share-btn svg { width: 15px; height: 15px; }
.share-btn--x:hover { border-color: #000; color: #000; }
.share-btn--in:hover { border-color: #0a66c2; color: #0a66c2; }
.share-btn--wa:hover { border-color: #25d366; color: #128c4a; }
.share-btn--copy { font-family: inherit; }
.share-btn--copy.copied { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-700); }

/* ---------- 58. Reduced motion v8 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-hero .ph-orb { animation: none !important; }
  .page-load { animation: none !important; }
}

/* ============================================================
   v9 — Visual identity refinement: premium typography, refined
   tokens, polished components, consistent system across modes
   ============================================================ */

/* ---------- 59. Refined tokens & typography ---------- */
:root {
  --font-ar: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, "Noto Kufi Arabic", system-ui, sans-serif;
  --font-head: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --shadow-sm: 0 3px 12px -4px rgba(10,38,43,.12);
  --shadow: 0 14px 34px -14px rgba(10,38,43,.22);
  --shadow-lg: 0 30px 70px -24px rgba(10,38,43,.34);
  --ring: rgba(47,107,94,.35);
}
html[lang="en"] { --font-head: "Manrope", "Segoe UI", system-ui, sans-serif; }

h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.012em; }
.section-head h2 { font-weight: 800; }
.brand__name { font-weight: 800; letter-spacing: -.01em; }
.brand__name small { font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

/* ---------- 60. Eyebrow as refined pill ---------- */
.eyebrow {
  padding: 7px 18px; border-radius: 999px;
  background: rgba(33,86,75,.07);
  border: 1px solid rgba(33,86,75,.14);
  text-transform: none; letter-spacing: .02em;
  font-size: .8rem;
}
.eyebrow::before, .section-head.center .eyebrow::after { display: none; }
.section--dark .eyebrow, .hero__content .eyebrow, .page-hero .eyebrow {
  background: rgba(151,178,172,.13);
  border-color: rgba(151,178,172,.30);
  color: var(--teal-100);
}

/* ---------- 61. Polished buttons ---------- */
.btn--primary {
  background: linear-gradient(135deg, #17494b 0%, #21564b 48%, #2f6b5e 100%);
  box-shadow: 0 12px 28px -10px rgba(33,86,75,.5), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn--primary:hover {
  box-shadow: 0 20px 44px -12px rgba(33,86,75,.62), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--gold {
  background: linear-gradient(135deg, #c9dcd6, #97b2ac);
  color: #0d323b !important;
  box-shadow: 0 10px 24px -12px rgba(111,147,142,.6), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ---------- 62. Polished cards & icons ---------- */
.card {
  border-color: rgba(223,233,229,.95);
  box-shadow: 0 2px 10px -4px rgba(10,38,43,.07), 0 12px 30px -20px rgba(10,38,43,.18);
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(111,147,142,.5);
  box-shadow: 0 6px 18px -8px rgba(10,38,43,.12), 0 30px 64px -24px rgba(10,38,43,.32);
}
.card__icon, .service__icon, .contact-item__icon {
  background: linear-gradient(150deg, #e9f3ef, #cfe4dc);
  box-shadow: inset 0 0 0 1px rgba(33,86,75,.08), 0 7px 16px -10px rgba(33,86,75,.45);
}
.service:hover .service__icon { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(33,86,75,.6); }

/* ---------- 63. Header refinement ---------- */
.site-header {
  background: rgba(242,245,244,.80);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: rgba(33,86,75,.10);
}
.main-nav a { font-weight: 600; }

/* ---------- 64. Hero polish ---------- */
.hero h1 { letter-spacing: -.014em; }
.stat {
  border-color: rgba(255,255,255,.15);
  background: linear-gradient(165deg, rgba(255,255,255,.13), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.media-card__body h3 { text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.media-card__body p { text-shadow: 0 1px 10px rgba(0,0,0,.35); }

/* ---------- 65. Sections rhythm & focus ---------- */
.section { padding-block: 96px; }
html { scroll-padding-top: 96px; }
:focus-visible {
  outline: 3px solid var(--teal-500);
  box-shadow: 0 0 0 5px var(--ring);
}
.faq summary { font-family: var(--font-head); }

/* ---------- 66. Footer polish ---------- */
.site-footer { background: linear-gradient(180deg, #0a262b 0%, #0d2f36 100%); }
.site-footer h3::after { width: 34px; }
.footer-contact a { font-weight: 600; }

/* ---------- 67. Misc refinements ---------- */
.tbl th { letter-spacing: .03em; font-family: var(--font-head); }
.marquee__group span { letter-spacing: .02em; }
.filter-btn.active { box-shadow: 0 12px 26px -12px rgba(33,86,75,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.preloader__logo { animation-duration: 1.2s; }

/* ---------- 68. Dark-mode alignment for v9 ---------- */
html[data-theme="dark"] .eyebrow {
  background: rgba(151,178,172,.13);
  border-color: rgba(151,178,172,.28);
}
html[data-theme="dark"] .card__icon, html[data-theme="dark"] .service__icon,
html[data-theme="dark"] .contact-item__icon {
  background: linear-gradient(150deg, #163239, #1d3b41);
  box-shadow: inset 0 0 0 1px rgba(151,178,172,.15);
}
html[data-theme="dark"] .card {
  box-shadow: 0 2px 10px -4px rgba(0,0,0,.4), 0 12px 30px -20px rgba(0,0,0,.5);
}

/* ============================================================
   v10 — Business-grade typography & spacing system
   Calm, readable, generous rhythm on an 8px grid.
   ============================================================ */

/* ---------- 69. Type scale & rhythm ---------- */
:root {
  --text-xs: .8rem;
  --text-sm: .9rem;
  --text-base: 1.05rem;
  --text-md: 1.12rem;
  --text-lg: 1.3rem;
  --text-xl: 1.65rem;
  --leading-tight: 1.45;
  --leading-body: 1.9;
  --leading-loose: 2.05;
  --space-1: 6px;  --space-2: 10px; --space-3: 16px;
  --space-4: 24px; --space-5: 32px; --space-6: 48px;
  --space-7: 64px; --space-8: 96px;
}

body {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { letter-spacing: -.006em; }
h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3, h4 { font-weight: 700; }

/* heading rhythm */
.section-head h2 { font-size: clamp(1.75rem, 3.1vw, 2.35rem); margin-bottom: 16px; line-height: 1.32; }
.section-head p { font-size: 1.08rem; line-height: 1.9; color: var(--ink-500); }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.28; }
.hero p { font-size: 1.15rem; line-height: 1.9; }
.page-hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.55rem); line-height: 1.3; }
.page-hero p { font-size: 1.06rem; line-height: 1.85; }
.article-body p { font-size: 1.1rem; line-height: var(--leading-loose); margin-bottom: 22px; }
.legal p, .legal li { font-size: 1.02rem; line-height: 2; }

/* ---------- 70. Section & container rhythm ---------- */
.section { padding-block: var(--space-8); }
.section-head { margin-bottom: 56px; }
.container { padding-inline: 26px; }
html { scroll-padding-top: 102px; }

/* ---------- 71. Header & nav ---------- */
.header-inner { height: 82px; }
.main-nav a { padding: 11px 18px; font-size: .96rem; letter-spacing: 0; }
.brand__name { font-size: 1.1rem; }
.brand__name small { font-size: .72rem; letter-spacing: .06em; }
.site-header.scrolled .header-inner { height: 68px; }

/* ---------- 72. Buttons ---------- */
.btn { padding: 15px 32px; font-size: 1rem; border-radius: 999px; }
.btn--sm { padding: 11px 24px; font-size: .9rem; }

/* ---------- 73. Cards & components spacing ---------- */
.grid { gap: 30px; }
.card { padding: 34px; }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; line-height: 1.5; }
.card p { font-size: .97rem; line-height: 1.85; }
.card__icon { width: 60px; height: 60px; margin-bottom: 22px; }
.card--img .card__body { padding: 30px; }
.service { padding: 26px 24px; gap: 20px; }
.service h3 { font-size: 1.05rem; margin-bottom: 5px; }
.service p { font-size: .92rem; line-height: 1.8; }
.step { padding: 24px 26px; }
.step p { font-size: .97rem; line-height: 1.85; }
.media-card { min-height: 330px; }
.media-card__body { padding: 34px 32px; }
.stat { padding: 22px 20px; }
.stat b { font-size: 1.85rem; }
.stats-band .card { padding: 40px 24px; }
.stats-band b { font-size: 2.5rem; }

/* ---------- 74. Forms & contact ---------- */
.form { gap: 22px; }
.form input, .form textarea, .form select { padding: 15px 18px; font-size: 1rem; }
.form .row { gap: 20px; }
.contact-grid { gap: 52px; }
.contact-item { padding: 24px; }
.contact-item p { font-size: .95rem; line-height: 1.85; }

/* ---------- 75. FAQ, tables, footer ---------- */
.faq summary { padding: 22px 28px; font-size: 1.02rem; }
.faq details p { font-size: .97rem; line-height: 1.85; }
.tbl th, .tbl td { padding: 18px 26px; }
.footer-grid { padding-block: 76px; gap: 52px; }
.footer-bottom { padding-block: 26px; }
.site-footer a { margin-bottom: 12px; line-height: 1.8; }

/* ---------- 76. News cards rhythm ---------- */
.news-meta { font-size: .86rem; margin-bottom: 16px; gap: 18px; }
.card--img .card__body h3 { font-size: 1.2rem; line-height: 1.55; }
.tag { padding: 6px 16px; font-size: .8rem; margin-bottom: 16px; }
.news-card .card__body h3 { font-size: 1.2rem; }

/* ---------- 77. Charts & milestones ---------- */
.chart-card { padding: 28px 20px; }
.milestone { padding: 30px 18px 20px; }
.milestone p { font-size: .88rem; line-height: 1.75; }
.charts-row { gap: 26px; }

/* ---------- 78. Mobile rhythm ---------- */
@media (max-width: 860px) {
  .section { padding-block: var(--space-7); }
  .section-head { margin-bottom: 44px; }
  .main-nav a { padding: 15px 18px; }
  .card { padding: 28px; }
  .footer-grid { padding-block: 60px; }
}
@media (max-width: 620px) {
  .section { padding-block: 60px; }
  .container { padding-inline: 20px; }
  .grid { gap: 22px; }
  body { font-size: 1.02rem; }
  .hero__content { padding-block: 72px; }
  .card--img .card__body { padding: 24px; }
}

/* ---------- 79. Reading comfort ---------- */
.article-body { max-width: 760px; }
.legal { max-width: 800px; }
.article-body h2 { font-size: 1.45rem; margin-block: 34px 14px; }
.article-body li, .legal li { margin-bottom: 12px; }
p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(33,86,75,.35); }
p a:hover { text-decoration-color: currentColor; }

/* ---------- 80. Weight refinement (calm business tone) ---------- */
.section-head h2, .page-hero h1, .hero h1, .article-body h2 { font-weight: 700; }
.card h3, .service h3, .media-card__body h3, .contact-item h3 { font-weight: 700; }
.brand__name { font-weight: 700; }
.stat b, .stats-band b { font-weight: 700; }

/* ============================================================
   v12 — Related articles, insight hub polish
   ============================================================ */

/* ---------- 81. Related articles block ---------- */
.related-section {
  margin-top: 52px; padding-top: 38px; border-top: 1px solid var(--line);
}
.related-title {
  font-size: 1.35rem; color: var(--teal-700); margin-bottom: 22px; font-weight: 700;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.related-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.related-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow);
  border-color: rgba(111,147,142,.5);
}
.related-card a { display: block; text-decoration: none; }
.related-card img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform .4s ease;
}
.related-card:hover img { transform: scale(1.05); }
.related-card span {
  display: block; padding: 14px 16px;
  font-weight: 700; font-size: .92rem; line-height: 1.55;
  color: var(--ink-900);
}
.related-card:hover span { color: var(--teal-600); }
html[data-theme="dark"] .related-card { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .related-card span { color: var(--ink-900); }
@media (max-width: 760px) {
  .related-grid { grid-template-columns: 1fr; }
}
