/* ==========================================================================
   المحامية أفنان الأحمد — للمحاماة والاستشارات القانونية
   Brand identity: green #0E3E35 · paper #F5F4F0 · gold #C5A568
   Typefaces:      Noto Kufi Arabic (ar) · Open Sans (en)
   One stylesheet for both languages and both themes. Layout uses logical
   properties so the same rules serve RTL (Arabic) and LTR (English).
   ========================================================================== */

:root {
  /* Brand colours — identical in both themes */
  --green: #0E3E35;        /* main colour */
  --green-deep: #0A2E27;
  --gold: #C5A568;         /* secondary colour */
  --gold-soft: #D2B680;
  --on-dark: #F5F4F0;
  --on-dark-muted: #B0BDB8;              /* 6.1:1 on green */
  --line-dark: rgba(245, 244, 240, 0.16);

  /* Theme tokens — light is the brand's primary look */
  --bg: #F5F4F0;
  --surface: #ECE7DC;
  --heading: #0E3E35;
  --text: #22322E;
  --muted: #55635F;                      /* 5.7:1 on paper */
  --label: #7E6229;                      /* gold deep enough for small text (5.2:1) */
  --line: rgba(14, 62, 53, 0.14);
  --line-strong: rgba(14, 62, 53, 0.26);
  --logo-ink: #1A4D42;
  --focus: #7E6229;
  --fill: #0E3E35;                       /* outline-button hover fill */
  --on-fill: #F5F4F0;
  --footer-bg: #0A2E27;
  color-scheme: light;

  /* Type */
  --font-ar: "Noto Kufi Arabic", "Open Sans", Tahoma, sans-serif;
  --font-en: "Open Sans", "Noto Kufi Arabic", "Segoe UI", Arial, sans-serif;

  --fs-display: clamp(2.05rem, 1rem + 3.2vw, 3.85rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.45vw, 1.45rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.55vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.9375rem;

  /* Layout & motion */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 9vw, 136px);
  --radius: 2px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  --bg: #0A1D19;
  --surface: #102A25;
  --heading: #F2F0EA;
  --text: #D3DBD7;
  --muted: #A3B1AC;
  --label: #C5A568;
  --line: rgba(245, 244, 240, 0.1);
  --line-strong: rgba(245, 244, 240, 0.22);
  --logo-ink: #F5F4F0;
  --focus: #C5A568;
  --fill: #C5A568;
  --on-fill: #0E3E35;
  --footer-bg: #061412;
  color-scheme: dark;
}

html[lang="ar"] {
  --font: var(--font-ar);
  --lh-body: 1.95;
  --lh-lead: 1.9;
  --lh-display: 1.5;
  --w-display: 500;
  --w-h2: 600;
  --track-display: 0;
  --track-label: 0;
  --label-case: none;
}

html[lang="en"] {
  --font: var(--font-en);
  --lh-body: 1.7;
  --lh-lead: 1.6;
  --lh-display: 1.14;
  --w-display: 300;
  --w-h2: 300;
  --track-display: -0.015em;
  --track-label: 0.16em;
  --label-case: uppercase;
  --fs-label: 0.75rem;
}

/* Direction-aware origin for lines that draw from the start of the reading direction */
html[dir="rtl"] { --from: right; --dir: -1; }
html[dir="ltr"] { --from: left; --dir: 1; }

@media (min-width: 1024px) {
  :root { --header-h: 78px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 600;
  line-height: var(--lh-display);
}

.ltr, bdi[dir="ltr"] { font-family: var(--font-en); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--green);
  color: #fff;
  font-size: var(--fs-small);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

/* ---------- Shared devices ---------- */

/* Section label: text followed by the letterhead rule (short gold bar + hairline) */
.label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  color: var(--label);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--track-label);
  text-transform: var(--label-case);
}
.rule {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.rule::before,
.rule::after {
  content: "";
  transform-origin: var(--from);
}
.rule::before {
  width: 26px;
  height: 2px;
  background: var(--gold);
}
.rule::after {
  width: clamp(40px, 9vw, 112px);
  height: 1px;
  background: var(--line-strong);
}
.on-dark .label { color: var(--gold); }
.on-dark .rule::after { background: var(--line-dark); }

.section { padding-block: var(--section); }

.section-head { max-width: 40rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2,
.about-head h2,
.contact-intro h2 {
  font-size: var(--fs-h2);
  font-weight: var(--w-h2);
  letter-spacing: var(--track-display);
}

/* The gold chevron band from the envelope & folder */
.band {
  height: 22px;
  background-image: url("../img/band.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  opacity: 0.42;
}

/* ---------- Buttons & small controls ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform 0.35s var(--ease); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: var(--green); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn--gold:hover svg { transform: scale(1.08); }

/* Outline button: the fill sweeps in from the start of the reading direction */
.btn--line { border-color: var(--line-strong); color: var(--heading); }
.btn--line::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill);
  transform: scaleX(0);
  transform-origin: var(--from);
  transition: transform 0.45s var(--ease);
}
.btn--line:hover { border-color: var(--fill); color: var(--on-fill); }
.btn--line:hover::before { transform: scaleX(1); }

.arrow { transition: transform 0.3s var(--ease); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
a:hover .arrow { transform: translateX(4px); }
[dir="rtl"] a:hover .arrow { transform: scaleX(-1) translateX(4px); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.icon-btn:hover { color: var(--label); background: var(--line); }
.icon-btn svg { width: 20px; height: 20px; transition: transform 0.6s var(--ease); }

/* Theme toggle: moon in light mode, sun in dark mode */
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.icon-btn.theme-toggle:hover svg { transform: rotate(-24deg); }
[data-theme="dark"] .icon-btn.theme-toggle:hover svg { transform: rotate(45deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled,
.site-header.menu-open { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.logo--dark { display: none; }
[data-theme="dark"] .site-header .logo--light { display: none; }
[data-theme="dark"] .site-header .logo--dark { display: block; }

/* English lockup, built on the official AL mark */
.brand--en { gap: 14px; color: var(--logo-ink); }
.brand__mark { width: 50px; height: auto; fill: var(--gold); }
.brand__divider { width: 1px; height: 34px; background: currentColor; opacity: 0.7; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 3px;
  color: var(--label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.on-dark .brand--en { color: var(--on-dark); }
.on-dark .brand__sub { color: var(--gold); }

/* Compact English lockup on phones: mark + name, descriptor moves to the hero */
@media (max-width: 599px) {
  .site-header .brand--en { gap: 10px; }
  .site-header .brand__mark { width: 38px; }
  .site-header .brand__divider { height: 26px; }
  .site-header .brand__name { font-size: 0.82rem; letter-spacing: 0.12em; }
  .site-header .brand__sub { display: none; }
}

.nav { display: none; margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  position: relative;
  display: inline-block;
  padding-block: 10px;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: var(--from);
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--heading); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--heading); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.header-cta { display: none; min-height: 44px; padding: 8px 20px; white-space: nowrap; }
.header-sep { display: none; width: 1px; height: 26px; margin-inline: 10px 4px; background: var(--line-strong); }
.header-actions > .theme-toggle { display: none; }

/* Language switch — always the last control in the header */
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}
.lang:hover { color: var(--label); }
.lang__icon { width: 18px; height: 18px; flex: 0 0 auto; transition: transform 0.7s var(--ease); }
.lang:hover .lang__icon { transform: rotate(calc(var(--dir) * 40deg)); }
.lang[lang="en"] { font-family: var(--font-en); letter-spacing: 0.06em; }
.lang[lang="ar"] { font-family: var(--font-ar); }
.header-actions .lang { margin-inline-end: -8px; }
/* Short code on small screens; the full name stays readable to screen readers */
.lang__long {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--heading);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 12px; }
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 10.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 5.25px; transform: rotate(-45deg); }
.no-js .menu-toggle { display: none; }

@media (max-width: 479px) {
  .header-inner { gap: 12px; }
  .menu-toggle__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 600px) {
  .header-actions > .theme-toggle { display: inline-flex; }
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  bottom: 0;
  z-index: 49;
  overflow-y: auto;
  padding: 8px var(--gutter) 40px;
  background: var(--bg);
  animation: menu-in 0.35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.mobile-menu__links li {
  animation: menu-item 0.5s var(--ease) both;
}
.mobile-menu__links li:nth-child(2) { animation-delay: 0.05s; }
.mobile-menu__links li:nth-child(3) { animation-delay: 0.1s; }
.mobile-menu__links li:nth-child(4) { animation-delay: 0.15s; }
@keyframes menu-item {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu__contact {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.mobile-menu__contact .btn { width: 100%; }

/* Theme switch row inside the mobile menu */
.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  border-block: 1px solid var(--line);
  background: none;
  color: var(--heading);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: var(--line-strong);
  transition: background-color 0.3s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.35s var(--ease);
}
.theme-row[aria-pressed="true"] .switch { background: var(--gold); }
.theme-row[aria-pressed="true"] .switch::after { transform: translateX(calc(var(--dir) * 20px)); background: var(--green); }

@media (min-width: 1024px) {
  .brand img { height: 42px; }
  .nav { display: block; }
  .header-actions { margin-inline-start: 8px; }
  .header-cta { display: inline-flex; }
  .header-sep { display: block; }
  .menu-toggle { display: none; }
  .lang__short { display: none; }
  .lang__long { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .mobile-menu { display: none !important; }
}

/* Laptop widths: keep every header item on one line */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-inner { gap: 18px; }
  .nav ul { gap: 18px; }
  .site-header .brand__sub { display: none; }
  .header-cta { padding-inline: 16px; }
  .header-sep { margin-inline: 6px 2px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--on-dark);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 760px);
  padding-block: clamp(64px, 9vw, 120px) clamp(120px, 14vw, 170px);
}

.hero-copy { max-width: 40rem; }

.eyebrow {
  margin-bottom: 26px;
  color: var(--gold);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: var(--label-case);
}

.hero h1 {
  max-width: 15em;
  color: var(--on-dark);
  font-size: var(--fs-display);
  font-weight: var(--w-display);
  letter-spacing: var(--track-display);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 28px;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
  line-height: var(--lh-lead);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 40px;
}

.hero-phone {
  display: inline-flex;
  flex-direction: column;
  min-height: 44px;
  justify-content: center;
  color: var(--on-dark);
  text-decoration: none;
  line-height: 1.5;
}
.hero-phone__hint { color: var(--on-dark-muted); font-size: 0.8125rem; }
.hero-phone bdi {
  position: relative;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.hero-phone:hover bdi { color: var(--gold); border-color: var(--gold); }

/* The AL monogram, cropped by the band like the letterhead watermark */
.hero-art {
  position: absolute;
  inset-inline-end: -26vw;
  bottom: 22px;
  width: 92vw;
  max-width: 860px;
  pointer-events: none;
}
.monogram { width: 100%; height: auto; fill: var(--gold); opacity: 0.1; }

.hero .band {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
}

/* Headline breaks where the sentence breaks, not where the box ends */
@media (min-width: 768px) {
  .hero h1 { max-width: none; }
  .h1-line { display: block; }
  .hero-art { inset-inline-end: -10vw; width: 70vw; }
  .monogram { opacity: 0.13; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hero-copy { grid-column: 1 / span 8; max-width: none; }
  .hero-art { inset-inline-end: -5vw; width: 46vw; }
  .monogram { opacity: 0.15; }
}

/* Entrance on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } }

.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.16s; }
.hero-copy > :nth-child(3) { animation-delay: 0.28s; }
.hero-copy > :nth-child(4) { animation-delay: 0.4s; }
.monogram path { animation: settle 1.3s var(--ease) both; }
.monogram path:nth-child(1) { animation-delay: 0.2s; }
.monogram path:nth-child(2) { animation-delay: 0.36s; }
.monogram path:nth-child(3) { animation-delay: 0.52s; }
.hero .band { animation: fade 1.6s ease both 0.5s; }

/* ---------- Reveal on scroll ---------- */
/* Hidden only when JS is running; content stays visible without it */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* The letterhead rule draws in after its block appears */
.js [data-reveal] .rule::before,
.js [data-reveal] .rule::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 0.3s);
}
.js [data-reveal] .rule::after { transition-delay: calc(var(--i, 0) * 90ms + 0.45s); }
.js [data-reveal].is-in .rule::before,
.js [data-reveal].is-in .rule::after { transform: none; }

/* ---------- About & vision ---------- */
.about-grid { display: grid; gap: 28px; }

.about-head h2 { max-width: 17em; }

.about-body .lead {
  color: var(--heading);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}
.about-body p + p { margin-top: 22px; color: var(--muted); }

.vision {
  display: grid;
  gap: 4px;
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px);
  background: var(--surface);
  border-inline-start: 2px solid var(--gold);
}
.vision .label { margin-bottom: 14px; }
.vision__text {
  color: var(--heading);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .about-head { grid-column: 1 / span 5; }
  .about-body { grid-column: 7 / span 6; padding-top: 50px; }
  .vision { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .vision .label { grid-column: 1 / span 3; margin: 8px 0 0; }
  .vision__text { grid-column: 4 / span 9; max-width: 46em; }
}

/* ---------- Departments ---------- */
.depts-section { padding-top: 0; }

.depts {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.dept {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.dept__name {
  color: var(--heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.5;
}
html[lang="en"] .dept__name { font-weight: 400; }
.dept__alt { color: var(--label); font-size: 0.8125rem; font-weight: 500; }
.dept__alt[lang="en"] { font-family: var(--font-en); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; }
.dept__alt[lang="ar"] { font-family: var(--font-ar); }

@media (min-width: 640px) {
  .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dept { padding: 34px 28px 34px 0; }
  [dir="rtl"] .dept { padding: 34px 0 34px 28px; }
  .dept:nth-child(even) { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
}

@media (min-width: 1024px) {
  .depts { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-strong); }
  .dept { min-height: 168px; justify-content: space-between; padding: 30px 26px 26px; border-bottom: 0; }
  [dir="rtl"] .dept { padding: 30px 26px 26px; }
  .dept:first-child { padding-inline-start: 0; }
  .dept + .dept { border-inline-start: 1px solid var(--line); }
  .dept:nth-child(even) { padding-inline-start: 26px; }
}

/* ---------- Services ---------- */
.services { padding-top: 0; }

.feature {
  display: grid;
  gap: 44px;
  padding: clamp(32px, 5.5vw, 72px) clamp(24px, 5vw, 64px);
  background: var(--green);
  color: var(--on-dark);
}
.feature h3 {
  color: var(--on-dark);
  font-size: var(--fs-h2);
  font-weight: var(--w-h2);
  letter-spacing: var(--track-display);
}
.feature__intro p { margin-top: 18px; color: var(--on-dark-muted); }

.mini-label {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: var(--label-case);
}
html[lang="en"] .mini-label { font-size: 0.6875rem; }

/* Litigation runs as a real sequence, so it is numbered */
.steps { display: grid; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
}
.steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.steps__num {
  color: var(--gold);
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}
.steps__title { color: var(--on-dark); font-size: 1.0625rem; font-weight: 500; line-height: 1.6; }

@media (min-width: 1024px) {
  .feature { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .feature__intro { grid-column: 1 / span 5; }
  .feature__steps { grid-column: 7 / span 6; padding-top: 6px; }
}

.service-grid {
  display: grid;
  gap: 48px;
  margin-top: clamp(56px, 7vw, 88px);
}
.service .rule { margin-bottom: 26px; }
.service h3 { font-size: var(--fs-h3); }
html[lang="en"] .service h3 { font-weight: 600; }
.service p { margin-top: 14px; color: var(--muted); }

@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: var(--green);
  color: var(--on-dark);
}
.contact-grid {
  display: grid;
  gap: 48px;
  padding-block: var(--section);
}
.contact-intro h2 { color: var(--on-dark); }
.contact-intro p { max-width: 30rem; margin-top: 18px; color: var(--on-dark-muted); }
.contact-intro .btn { margin-top: 32px; }

.contact-list { border-top: 1px solid var(--line-dark); }
.contact-list > li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-list > li > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(197, 165, 104, 0.55);
  border-radius: var(--radius);
  color: var(--gold);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.icon-tile svg { width: 20px; height: 20px; }
.contact-list > li:has(a:hover) .icon-tile { background: var(--gold); border-color: var(--gold); color: var(--green); }

.contact-list__label { display: block; margin-bottom: 2px; color: var(--on-dark-muted); font-size: 0.8125rem; }
html[lang="en"] .contact-list__label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-list__value {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--on-dark);
  font-size: 1.0625rem;
  font-weight: 500;
  font-style: normal;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}
a.contact-list__value:hover { color: var(--gold); }
.contact-list__value bdi { letter-spacing: 0.02em; }
.contact-list__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 2px;
  color: var(--gold);
  font-size: var(--fs-small);
  text-decoration: none;
}
.contact-list__link:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-list__link svg { width: 16px; height: 16px; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .contact-intro { grid-column: 1 / span 5; }
  .contact-list { grid-column: 7 / span 6; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 48px 36px;
}
.footer-top .brand img { height: 40px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px 96px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
}
.footer-bottom .lang { color: var(--on-dark); min-height: 44px; padding-inline: 0; }
.footer-bottom .lang:hover { color: var(--gold); }

@media (min-width: 1024px) {
  .footer-bottom { padding-bottom: 28px; }
}

/* ---------- Floating WhatsApp (phones and tablets) ---------- */
.float-wa {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(197, 165, 104, 0.6);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s, background-color 0.25s ease;
}
.float-wa svg { width: 24px; height: 24px; }
.float-wa.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-wa.is-visible:hover { background: var(--green-deep); transform: translateY(-3px); }
.no-js .float-wa { display: none; }
/* On desktop the sticky header already carries the call to action */
@media (min-width: 1024px) {
  .float-wa { display: none; }
}

/* ---------- Page and theme transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.4s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal] .rule::before,
  .js [data-reveal] .rule::after { transform: none; }
}
