/* ==========================================================================
   مكتب الأستاذ إسماعيل بوهمو — Stylesheet
   Shared by / (Arabic, RTL) and /fr/ (French, LTR). Uses logical properties
   so the layout mirrors automatically with the document direction.
   ========================================================================== */

:root {
  --ink: #1e2022;
  --ink-soft: #35383b;
  --ink-2: #2a2d30;
  --gold: #a49061;
  --gold-text: #806a3c;
  --gold-light: #c5b17f;
  --gold-pale: #efe9d9;
  --paper: #fafaf8;
  --white: #ffffff;
  --line: #ded9ce;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #5b5e63;
  --muted-on-dark: #d6d3cb;
  --whatsapp: #25d366;

  --font-ar: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-fr: 'Noto Sans', 'Segoe UI', Helvetica, Arial, sans-serif;

  --text-body: clamp(1.0625rem, 1rem + 0.25vw, 1.15rem);
  --text-small: 0.95rem;
  --lh-body: 1.95;

  --shell: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 92px;
}

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

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

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html[lang='fr'] body { font-family: var(--font-fr); line-height: 1.7; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
strong { font-weight: 700; }

::selection { background: #d5c59e; color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 4px; }

.latin {
  font-family: var(--font-latin);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }

.skip-link {
  position: fixed; inset-block-start: -8rem; inset-inline-start: 1rem; z-index: 200;
  padding: 0.9rem 1.2rem; background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { inset-block-start: 1rem; }

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

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.section-label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; color: var(--gold-text);
}
.section-label::before { content: ''; inline-size: 2rem; block-size: 2px; background: var(--gold); flex-shrink: 0; }
.on-dark .section-label { color: var(--gold-light); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); line-height: 1.45; margin-block-start: 1rem; }
h2 span { color: var(--gold-text); }
.on-dark h2 span { color: var(--gold-light); }
html[lang='fr'] h2 { line-height: 1.2; }

.lede { color: var(--muted); font-size: var(--text-body); max-width: 40rem; }
.on-dark .lede { color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 54px; padding: 0.8rem 1.5rem;
  font-size: 1rem; font-weight: 700; line-height: 1.5;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
}
.button svg { inline-size: 18px; block-size: 18px; flex-shrink: 0; }
.button:hover { background: var(--ink-soft); border-color: var(--ink-soft); transform: translateY(-1px); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: #fff; }
.button-gold { background: var(--gold-text); border-color: var(--gold-text); }
.button-gold:hover { background: #6b5730; border-color: #6b5730; }
.button-whatsapp { background: #128c4a; border-color: #128c4a; }
.button-whatsapp:hover { background: #0e7a3f; border-color: #0e7a3f; }
.on-dark .button-outline { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.on-dark .button-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; padding-block: 0.5rem;
  border-block-end: 1px solid var(--ink); transition: color 0.2s, border-color 0.2s;
}
.text-link svg { inline-size: 18px; block-size: 18px; }
.text-link:hover { color: var(--gold-text); border-color: var(--gold-text); }

.icon-flip { transform: scaleX(-1); }
html[dir='rtl'] .dir-icon { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-block-end: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(30, 32, 34, 0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; min-width: 0; }
.brand-mark { inline-size: 52px; block-size: 56px; object-fit: contain; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-pre { font-size: 0.8rem; font-weight: 600; color: var(--gold-text); white-space: nowrap; }
.brand-name strong { font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
html[lang='fr'] .brand-pre { font-family: var(--font-latin); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang='fr'] .brand-name strong { font-family: var(--font-latin); font-size: 1.4rem; letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav-link {
  position: relative; padding-block: 0.5rem; font-size: 0.98rem; font-weight: 600;
  color: var(--ink-soft); transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; inset-inline-start: 0; inset-block-end: 0;
  inline-size: 0; block-size: 2px; background: var(--gold); transition: inline-size 0.25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { inline-size: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-inline-size: 44px; min-block-size: 40px; padding-inline: 0.7rem;
  border: 1px solid var(--line); font-family: var(--font-latin); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.08em; transition: background 0.2s, border-color 0.2s;
}
.lang-switch:hover { background: var(--gold-pale); border-color: var(--gold); }
html[lang='fr'] .lang-switch { font-family: var(--font-ar); letter-spacing: 0; }
.header-cta { min-height: 46px; padding: 0.5rem 1.15rem; font-size: 0.95rem; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  inline-size: 46px; block-size: 46px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.menu-toggle svg { inline-size: 22px; block-size: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

.mobile-nav {
  display: none; border-block-start: 1px solid var(--line); background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-nav .shell { display: flex; flex-direction: column; padding-block: 0.75rem 1.25rem; }
.mobile-nav a { padding: 0.9rem 0.25rem; font-weight: 600; border-block-end: 1px solid var(--line); }
.mobile-nav a:last-of-type { border: 0; }
.mobile-nav .button { margin-block-start: 0.75rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(164, 144, 97, 0.12), transparent 60%),
    linear-gradient(to bottom, #fff, var(--paper));
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center;
  gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1.4; margin-block-start: 1.25rem; }
.hero h1 span { display: block; color: var(--gold-text); }
html[lang='fr'] .hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); line-height: 1.12; }
.hero-lede { margin-block-start: 1.5rem; max-width: 36rem; color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-block-start: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin-block-start: 2.25rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.hero-trust svg { inline-size: 18px; block-size: 18px; color: var(--gold-text); flex-shrink: 0; }

.identity-card {
  position: relative; background: #fff; border: 1px solid #d9d5cb; border-block-end: 3px solid var(--gold);
  padding: clamp(1.5rem, 3vw, 2.5rem); text-align: center;
  box-shadow: 0 30px 60px -30px rgba(30, 32, 34, 0.25);
}
.identity-card::before, .identity-card::after {
  content: ''; position: absolute; inline-size: 26px; block-size: 26px; border: 1px solid var(--gold);
}
.identity-card::before { inset-block-start: 10px; inset-inline-start: 10px; border-inline-end: 0; border-block-end: 0; }
.identity-card::after { inset-block-end: 10px; inset-inline-end: 10px; border-inline-start: 0; border-block-start: 0; }
.identity-card .latin { font-size: 0.9rem; color: var(--ink-soft); }
.identity-card img { inline-size: min(100%, 360px); margin: 0.5rem auto 0; }
.identity-rule { display: flex; align-items: center; gap: 0.75rem; inline-size: 60%; margin: 0.75rem auto 0; color: var(--gold); font-size: 0.7rem; }
.identity-rule::before, .identity-rule::after { content: ''; flex: 1; block-size: 1px; background: #bbaa87; }
.identity-card p { margin-block-start: 0.9rem; font-weight: 600; font-size: 1.05rem; }

/* Principles strip */
.principles { position: relative; background: var(--ink); color: #fff; }
.principles .shell { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.principles div { padding: 1.25rem 1rem; font-size: 0.95rem; color: var(--muted-on-dark); }
.principles div + div { border-inline-start: 1px solid rgba(164, 144, 97, 0.45); }
.principles strong { display: block; font-size: 1.15rem; color: var(--gold-light); margin-block-end: 0.1rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.on-dark { background: var(--ink); color: #fff; }
.on-white { background: var(--white); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { max-width: 30rem; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lede { margin-block-start: 1rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.about-copy .lede { margin-block-start: 1.5rem; }
.values { margin-block-start: 2rem; }
.values li { display: flex; gap: 1.25rem; align-items: flex-start; padding-block: 1.1rem; border-block-start: 1px solid var(--line); }
.values li:last-child { border-block-end: 1px solid var(--line); }
.values .num { font-family: var(--font-latin); font-size: 1.4rem; font-weight: 600; color: var(--gold-text); line-height: 1.6; flex-shrink: 0; min-inline-size: 2rem; }
.values h3 { font-size: 1.15rem; }
.values p { margin-block-start: 0.25rem; color: var(--muted); font-size: 1rem; }

.portrait { position: relative; border: 1px solid #d3cfc5; background: #fff; padding: 0.75rem; }
.portrait img { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 20%; }
.portrait figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0.5rem 0.4rem; }
.portrait figcaption .latin { font-size: 1.05rem; color: var(--ink); }
.portrait figcaption span:last-child { font-size: 0.95rem; color: var(--muted); }
.portrait::after {
  content: ''; position: absolute; inset-block-end: -14px; inset-inline-end: -14px; inset-inline-start: 24px; block-size: 60%;
  border: 1px solid var(--gold); z-index: -1;
}

/* Practice areas */
.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.practice {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding-block: 2rem;
  border-block-start: 1px solid var(--line-dark); transition: background 0.2s;
}
.practice:nth-last-child(-n + 2) { border-block-end: 1px solid var(--line-dark); }
.practice .num { font-family: var(--font-latin); font-size: 1.3rem; color: var(--gold-light); padding-block-start: 0.25rem; }
.practice-head { display: flex; align-items: center; gap: 0.9rem; }
.practice-head svg { inline-size: 26px; block-size: 26px; color: var(--gold-light); flex-shrink: 0; }
.practice h3 { font-size: 1.25rem; }
.practice p { margin-block-start: 0.75rem; color: var(--muted-on-dark); font-size: 1rem; max-width: 32rem; }
.practice .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1rem; }
.practice .tags li { font-size: 0.82rem; padding: 0.25rem 0.7rem; border: 1px solid var(--line-dark); color: #e6e3db; }

/* Quote band with office image */
.quote-band {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: var(--ink-2) url('../images/office-1600.jpg') center / cover no-repeat;
}
.quote-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(20, 22, 25, 0.9), rgba(20, 22, 25, 0.55)); }
html[dir='ltr'] .quote-band::before { background: linear-gradient(to right, rgba(20, 22, 25, 0.9), rgba(20, 22, 25, 0.55)); }
.quote-band blockquote { max-width: 44rem; }
.quote-band p { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); font-weight: 700; line-height: 1.6; }
html[lang='fr'] .quote-band p { line-height: 1.3; }
.quote-band footer { margin-block-start: 1.5rem; display: flex; align-items: center; gap: 0.9rem; color: var(--gold-light); }
.quote-band footer::before { content: ''; inline-size: 2.5rem; block-size: 1px; background: var(--gold-light); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.step { padding: 0 clamp(1.5rem, 3vw, 2.5rem); border-inline-start: 1px solid var(--line); }
.step:first-child { padding-inline-start: 0; border: 0; }
.step:last-child { padding-inline-end: 0; }
.step .num { display: block; font-family: var(--font-latin); font-size: 4rem; line-height: 1; font-weight: 500; color: var(--gold); }
.step h3 { margin-block-start: 1.25rem; font-size: 1.25rem; }
.step p { margin-block-start: 0.75rem; color: var(--muted); font-size: 1rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-intro { position: sticky; inset-block-start: calc(var(--header-h) + 2rem); }
.faq-intro .button { margin-block-start: 1.75rem; }
.faq { border-block-start: 1px solid var(--line); }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0.25rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-text); }
.faq summary .plus { position: relative; flex-shrink: 0; inline-size: 26px; block-size: 26px; border: 1px solid var(--line); }
.faq summary .plus::before, .faq summary .plus::after { content: ''; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; background: var(--ink); transition: transform 0.25s var(--ease); }
.faq summary .plus::before { inline-size: 12px; block-size: 1.5px; transform: translate(-50%, -50%); }
.faq summary .plus::after { inline-size: 1.5px; block-size: 12px; transform: translate(-50%, -50%); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary { color: var(--gold-text); }
.faq .answer { padding: 0 0.25rem 1.5rem; color: var(--muted); font-size: 1rem; max-width: 40rem; }
.faq .answer p + p { margin-block-start: 0.6rem; }

/* Contact */
.contact { padding-block: 0 var(--section); background: var(--white); }
.contact-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3.5rem); background: var(--paper);
  border: 1px solid #d9d5cb; border-block-start: 3px solid var(--ink);
}
.contact-intro .lede { margin-block: 1.25rem 1.5rem; }
.contact-rows { margin-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.contact-row { display: flex; align-items: center; gap: 1.1rem; padding-block: 1.1rem; border-block-end: 1px solid var(--line); transition: color 0.2s; }
.contact-row svg { inline-size: 22px; block-size: 22px; color: var(--gold-text); flex-shrink: 0; }
.contact-row small { display: block; font-size: 0.85rem; color: var(--muted); }
.contact-row strong { display: block; font-size: 1.02rem; overflow-wrap: anywhere; }
a.contact-row:hover { color: var(--gold-text); }
.contact-hours { margin-block-start: 1rem; font-size: 0.92rem; color: var(--muted); }

.consult-form { background: #fff; border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); }
.consult-form h3 { font-size: 1.2rem; }
.consult-form > p { margin-block-start: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.field { display: grid; gap: 0.4rem; margin-block-start: 1.1rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  inline-size: 100%; min-block-size: 50px; padding: 0.7rem 0.9rem; border: 1px solid var(--line); background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-block-size: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(164, 144, 97, 0.2); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.25rem; }
.form-actions .button { flex: 1 1 200px; }
.form-note { margin-block-start: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; border-block-start: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand .mark { inline-size: 56px; block-size: 60px; padding: 6px; background: var(--paper); flex-shrink: 0; }
.footer-brand .mark img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.footer-brand .latin { display: block; font-size: 1.2rem; color: #fff; }
.footer-brand p { margin-block-start: 0.4rem; font-size: 0.95rem; color: var(--muted-on-dark); max-width: 26rem; }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--gold-light); margin-block-end: 0.9rem; }
.footer-col ul { display: grid; gap: 0.45rem; }
.footer-col a { color: var(--muted-on-dark); font-size: 0.98rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  padding-block: 1.4rem; border-block-start: 1px solid var(--line-dark); font-size: 0.88rem; color: var(--muted-on-dark);
}
.footer-bottom a:hover { color: #fff; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-block-end: 1.25rem; inset-inline-start: 1.25rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.1rem 0.7rem 0.9rem; background: var(--whatsapp); color: #fff; font-weight: 700; font-size: 0.95rem;
  border-radius: 999px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.wa-float svg { inline-size: 24px; block-size: 24px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.1s; }
.reveal[data-delay='2'] { transition-delay: 0.2s; }
.reveal[data-delay='3'] { transition-delay: 0.3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Legal page (privacy)
   -------------------------------------------------------------------------- */
.legal { padding-block: 3.5rem var(--section); max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1.4; margin-block: 1rem 1.5rem; }
html[lang='fr'] .legal h1 { line-height: 1.15; }
.legal h2 { font-size: 1.35rem; margin-block: 2rem 0.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-inline-start: 1.4rem; }
.legal li { margin-block: 0.3rem; }
.legal .back { margin-block-start: 2.5rem; }

/* --------------------------------------------------------------------------
   Practice-area pages
   -------------------------------------------------------------------------- */
.page-hero { position: relative; background: var(--white); border-block-end: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50rem 24rem at 90% -20%, rgba(164, 144, 97, 0.14), transparent 60%);
}
.page-hero .shell { position: relative; padding-block: 1.5rem clamp(3rem, 6vw, 5rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); margin-block-end: 2rem; }
.breadcrumb a:hover { color: var(--gold-text); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.4; margin-block: 1rem 1.25rem; }
html[lang='fr'] .page-hero h1 { line-height: 1.15; }
.page-hero .lede + .lede { margin-block-start: 0.9rem; }
.page-hero .hero-actions { margin-block-start: 1.75rem; }
.page-aside {
  position: relative; background: var(--paper); border: 1px solid #d9d5cb; border-block-start: 3px solid var(--gold);
  padding: 1.75rem; margin-block-start: 3.5rem;
}
.aside-icon { display: grid; place-items: center; inline-size: 64px; block-size: 64px; background: var(--ink); color: var(--gold-light); margin-block-end: 1.25rem; }
.aside-icon svg { inline-size: 32px; block-size: 32px; }
.aside-bar { font-weight: 700; }
.aside-address { display: flex; align-items: center; gap: 0.5rem; margin-block-start: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.aside-address svg { inline-size: 18px; block-size: 18px; color: var(--gold-text); flex-shrink: 0; }
.aside-note { margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }

.h2-plain { margin-block: 0 clamp(1.75rem, 4vw, 2.75rem); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.handles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.handle { display: flex; gap: 1rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s var(--ease); }
.handle:hover { border-color: var(--gold); transform: translateY(-2px); }
.handle > svg { inline-size: 22px; block-size: 22px; color: var(--gold-text); flex-shrink: 0; margin-block-start: 0.35rem; }
.handle h3 { font-size: 1.08rem; }
.handle p { margin-block-start: 0.4rem; font-size: 0.97rem; color: var(--muted); }

.on-dark .step { border-color: var(--line-dark); }
.on-dark .step p { color: var(--muted-on-dark); }
.on-dark .step .num { color: var(--gold-light); }

.docs-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.docs-grid .h2-plain { margin-block-end: 1rem; }
.check-list { display: grid; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem 1rem; background: var(--white); border: 1px solid var(--line); font-size: 0.98rem; }
.check-list svg { inline-size: 20px; block-size: 20px; color: var(--gold-text); flex-shrink: 0; margin-block-start: 0.3rem; }

.faq-single { max-width: 52rem; }
.disclaimer-note { margin-block-start: 1.5rem; font-size: 0.88rem; color: var(--muted); }

.cta-section { padding-block: 0; }
.cta-band {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem); background: var(--ink); color: #fff; border-block-end: 3px solid var(--gold);
}
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.cta-band p { margin-block-start: 0.75rem; color: var(--muted-on-dark); }
.cta-actions { display: grid; gap: 0.75rem; }
.cta-band .button-outline { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .button-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .button-outline svg { inline-size: 18px; block-size: 18px; }

.related-section { padding-block-end: var(--section); }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.related-card {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line);
  font-weight: 600; font-size: 0.95rem; transition: border-color 0.2s, color 0.2s;
}
.related-card svg { inline-size: 22px; block-size: 22px; color: var(--gold-text); flex-shrink: 0; }
.related-card:hover { border-color: var(--gold); color: var(--gold-text); }

.footer-brand p a:hover { color: #fff; }
.practice h3 a:hover { color: var(--gold-light); }
.practice .more { display: inline-flex; align-items: center; gap: 0.4rem; margin-block-start: 0.9rem; font-size: 0.9rem; font-weight: 700; color: var(--gold-light); }
.practice .more svg { inline-size: 16px; block-size: 16px; }
.practice .more:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  :root { --header-h: 76px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .identity-card { max-width: 440px; margin-inline: auto; inline-size: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 520px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice:nth-last-child(-n + 2) { border-block-end: 0; }
  .practice:last-child { border-block-end: 1px solid var(--line-dark); }
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:last-child { padding: 2rem 0; border: 0; border-block-start: 1px solid var(--line); }
  .step:first-child { padding-block-start: 0; border: 0; }
  .step .num { font-size: 3rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .contact-panel { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-aside { margin-block-start: 0; }
  .handles-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .quote-band { background-image: url('../images/office-900.jpg'); }
}

@media (max-width: 600px) {
  .header-inner { gap: 0.75rem; }
  .brand { flex-shrink: 1; gap: 0.6rem; }
  .brand-pre { font-size: 0.72rem; }
  .brand-name strong { font-size: 1.05rem; }
  html[lang='fr'] .brand-pre { font-size: 0.78rem; }
  html[lang='fr'] .brand-name strong { font-size: 1.15rem; }
  .brand-mark { inline-size: 40px; block-size: 44px; }
  .header-actions { gap: 0.5rem; }
  .lang-switch { min-inline-size: 40px; padding-inline: 0.5rem; }
  .principles .shell { grid-template-columns: 1fr; }
  .principles div + div { border-inline-start: 0; border-block-start: 1px solid rgba(164, 144, 97, 0.45); }
  .principles div { padding-block: 1rem; }
  .hero-actions .button { inline-size: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .wa-float, .mobile-nav, .consult-form, .hero-actions { display: none !important; }
  body { background: #fff; }
  .on-dark, .quote-band, .site-footer { background: #fff !important; color: #000 !important; }
}

/* Contemporary presentation layer. Shared by Arabic and French pages. */
:root {
  --ink: #202522;
  --ink-soft: #3a403c;
  --ink-2: #282e29;
  --paper: #f6f4ee;
  --gold: #9f8758;
  --gold-text: #786038;
  --gold-light: #dbc79b;
  --gold-pale: #eee7d9;
  --line: #dcd8ce;
  --muted: #5d625c;
  --muted-on-dark: #d4d8d0;
  --shell: 1240px;
  --section: clamp(4rem, 7.5vw, 7rem);
  --header-h: 88px;
}

[hidden] { display: none !important; }
body { font-synthesis: none; }
button, a, input, select, textarea { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: rgba(159, 135, 88, 0.18); }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 5px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }
.button, .lang-switch, .menu-toggle { border-radius: 3px; }
.button { min-block-size: 54px; padding-inline: 1.5rem; }
.button:hover { transform: translateY(-2px); }
.button-whatsapp { background: #0e7a3f; border-color: #0e7a3f; }
.button-whatsapp:hover { background: #0a6232; border-color: #0a6232; }
.button svg, .text-link svg, .more svg { transition: transform 180ms var(--ease); }
.button:hover svg, .text-link:hover svg, .more:hover svg { transform: translateX(-3px); }
html[dir='ltr'] .button:hover svg,
html[dir='ltr'] .text-link:hover svg,
html[dir='ltr'] .more:hover svg { transform: translateX(3px); }

/* Quiet navigation: a clear brand and one primary route to contact. */
.site-header { background: rgba(255, 255, 252, 0.97); }
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(32, 37, 34, 0.06); }
.header-inner { gap: 1.25rem; }
.main-nav { gap: clamp(1rem, 1.65vw, 1.5rem); }
.nav-link { font-size: 0.9rem; min-block-size: 44px; display: inline-flex; align-items: center; }
.brand-mark { inline-size: 46px; block-size: 52px; }
.brand-name strong { font-size: 1.14rem; }
.header-actions { gap: 0.65rem; }
.header-cta { font-size: 0.87rem; min-block-size: 46px; padding-inline: 1.1rem; }
.lang-switch { min-block-size: 44px; }
.mobile-nav { max-block-size: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a { min-block-size: 48px; }

/* The portrait gives the first screen a human focal point. */
.hero { background: var(--paper); }
.hero::before { background: none; }
.hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(2rem, 5.5vw, 5rem);
  padding-block: clamp(3rem, 5.5vw, 5.25rem);
  align-items: center;
}
.hero-copy { min-inline-size: 0; }
.hero .section-label { font-size: 0.85rem; line-height: 1.9; }
.hero .section-label::before { inline-size: 2.25rem; }
.hero h1 { font-size: clamp(1.55rem, 1.1rem + 1.35vw, 2.2rem); line-height: 1.55; margin-block-start: 1.5rem; }
.hero h1 span { font-size: clamp(2.7rem, 1.8rem + 3.1vw, 4.6rem); color: var(--ink); margin-block-start: 0.35rem; line-height: 1.4; }
html[lang='fr'] .hero h1 { font-family: var(--font-latin); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.35rem); line-height: 1.1; font-weight: 500; }
html[lang='fr'] .hero h1 span { font-family: var(--font-latin); font-size: clamp(2.8rem, 2rem + 3.3vw, 5rem); font-weight: 600; line-height: 1.02; margin-block-start: 0.65rem; }
.hero-lede { max-inline-size: 35rem; font-size: clamp(1rem, 0.9rem + 0.3vw, 1.16rem); line-height: 2; margin-block-start: 1.5rem; }
html[lang='fr'] .hero-lede { line-height: 1.8; }
.hero-actions { gap: 1rem 1.5rem; margin-block-start: 1.9rem; }
.hero-actions .text-link { font-size: 0.94rem; }
.hero-trust { gap: 0.7rem 1.25rem; margin-block-start: 2rem; padding-block-start: 1.4rem; }
.hero-trust li { font-size: 0.82rem; }
.hero-trust svg { inline-size: 17px; block-size: 17px; }
.identity-card {
  padding: 0;
  border: 1px solid #d5cfc0;
  border-block-end: 3px solid var(--gold);
  background: #fff;
  box-shadow: 0 18px 46px -30px rgba(32, 37, 34, 0.32);
  max-inline-size: 460px;
  inline-size: 100%;
  margin-inline: auto;
}
.identity-card::before, .identity-card::after, .identity-rule { display: none; }
.identity-card > .latin {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 1;
  padding: 0.4rem 0.8rem;
  background: var(--ink);
  color: #f4ebd9;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.identity-card picture { display: block; }
.identity-card img {
  inline-size: 100%;
  max-inline-size: none;
  margin: 0;
  aspect-ratio: 4 / 4.65;
  object-fit: cover;
  object-position: 52% 22%;
}
.identity-card p { margin: 0; padding: 1.05rem 1.1rem 1.15rem; font-size: 0.9rem; line-height: 1.8; color: var(--ink-soft); }
html[lang='fr'] .identity-card p { font-family: var(--font-latin); font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.principles { background: var(--ink); }
.principles .shell { text-align: start; }
.principles div { padding: 1.45rem 2rem; font-size: 0.84rem; }
.principles div:first-child { padding-inline-start: 0; }
.principles div:last-child { padding-inline-end: 0; }
.principles strong { font-size: 1.08rem; margin-block-end: 0.25rem; }

/* Clear section rhythm, with useful details grouped into readable surfaces. */
.section-head { margin-block-end: 2.6rem; }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.7vw, 2.8rem); }
.section-label { font-size: 0.84rem; }
.lede { line-height: 2; }
html[lang='fr'] .lede { line-height: 1.8; }
.values li { padding-block: 1.3rem; }
.values h3 { font-size: 1.05rem; }
.values p { font-size: 0.95rem; }
.portrait { padding: 0.65rem; background: #fff; }
.portrait::after { display: none; }
.portrait figcaption { align-items: flex-start; flex-wrap: wrap; padding: 1rem 0.5rem 0.5rem; }
.portrait figcaption .latin { font-size: 1.05rem; letter-spacing: 0.08em; }
.portrait figcaption span:last-child { font-size: 0.85rem; }

/* Services retain their existing information and links. */
#services { background: var(--ink); }
.practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
#services .practice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid #4a5148;
  background: #292f2a;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
#services .practice:hover, #services .practice:focus-within { background: #30372f; border-color: var(--gold-light); transform: translateY(-3px); }
.practice .num { font-size: 1.25rem; line-height: 1.4; color: var(--gold-light); padding-block-start: 0.25rem; }
.practice-head { gap: 0.65rem; align-items: flex-start; }
.practice-head svg { inline-size: 23px; block-size: 23px; margin-block-start: 0.3rem; }
.practice h3 { font-size: 1.09rem; line-height: 1.7; }
html[lang='fr'] .practice h3 { line-height: 1.4; }
.practice p { font-size: 0.94rem; line-height: 1.95; margin-block-start: 0.85rem; }
html[lang='fr'] .practice p { line-height: 1.7; }
.practice .tags { gap: 0.4rem; }
.practice .tags li { font-size: 0.75rem; color: #e3e5de; border-color: #545c50; padding: 0.15rem 0.6rem; }
.practice .more { min-block-size: 44px; margin-block-start: 0.9rem; font-size: 0.86rem; }
.service-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
  padding: 1rem;
  background: #292f2a;
  border: 1px solid #4a5148;
}
.service-search label { font-size: 0.9rem; font-weight: 600; color: #f7f6ee; }
input[data-service-search] {
  flex: 1 1 260px;
  min-inline-size: 0;
  inline-size: 100%;
  min-block-size: 50px;
  padding: 0.7rem 1rem;
  border: 1px solid #6b7466;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}
input[data-service-search]::placeholder { color: #666c62; opacity: 1; }
.search-clear, [data-search-clear] { min-block-size: 46px; padding: 0.5rem 0.85rem; border: 1px solid #9eaa95; border-radius: 3px; background: transparent; color: #f4f3eb; font-size: 0.85rem; cursor: pointer; }
.search-clear:hover, [data-search-clear]:hover { background: #414b3b; }
[data-search-status] { flex-basis: 100%; color: #e1e4da; font-size: 0.88rem; }
.quote-band { padding-block: clamp(4rem, 7vw, 7rem); }
.quote-band blockquote { max-inline-size: 48rem; }
.quote-band p { font-size: clamp(1.45rem, 1rem + 1.5vw, 2.3rem); line-height: 1.8; }
.quote-band footer { font-size: 0.92rem; }
.step .num { font-size: 3.3rem; color: var(--gold-text); }
.step h3 { font-size: 1.13rem; }
.step p { font-size: 0.96rem; }
.faq details { background: transparent; }
.faq summary { min-block-size: 76px; font-size: 1rem; padding-block: 1.35rem; }
.faq summary .plus { inline-size: 32px; block-size: 32px; }
.faq .answer { line-height: 2; }
html[lang='fr'] .faq .answer { line-height: 1.8; }

/* Contact controls remain readable at phone widths and high zoom levels. */
.contact { background: var(--paper); }
.contact-panel { background: #eeece4; border: 1px solid #d4cdbd; padding: clamp(1.25rem, 4vw, 3.3rem); gap: clamp(1.5rem, 4vw, 3.5rem); }
.consult-form { border: 1px solid #d4cdbd; padding: clamp(1.2rem, 3vw, 2rem); }
.consult-form fieldset[data-form-fields] { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.consult-form h3 { font-size: 1.2rem; }
.field { margin-block-start: 1.25rem; }
.field input, .field select, .field textarea { min-block-size: 54px; border-color: #bdb9ad; background: #fff; border-radius: 3px; font-size: 1rem; }
.field textarea { min-block-size: 148px; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #a32c23; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-text); box-shadow: 0 0 0 3px #e7dfcd; }
.form-actions .button { font-size: 0.9rem; }
.form-note { font-size: 0.8rem; line-height: 1.9; }
.form-status, .form-fallback { margin-block-start: 1rem; padding: 0.8rem 1rem; background: #f1ede1; border-inline-start: 3px solid var(--gold-text); font-size: 0.9rem; line-height: 1.9; color: var(--ink-soft); }
.form-status:empty { display: none; }
.form-fallback a { text-decoration: underline; text-underline-offset: 4px; }
.contact-row strong { font-size: 0.96rem; }
.contact-hours { font-size: 0.85rem; }

/* Related pages share the same visual system. */
.page-hero { background: var(--paper); }
.page-hero::before { background: none; }
.page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3.25rem); }
.page-aside { background: #fff; border-color: #d2caba; }
.handle, .check-list li, .related-card { border-radius: 3px; border-color: #d7d2c5; }
.handle:hover, .related-card:hover { box-shadow: 0 10px 22px -20px rgba(32, 37, 34, 0.4); }
.handle h3 { line-height: 1.8; }
html[lang='fr'] .handle h3 { line-height: 1.5; }
.cta-band { padding: clamp(1.5rem, 4vw, 3rem); }
.legal { max-inline-size: 50rem; }
.legal p, .legal li { line-height: 2.1; }
html[lang='fr'] .legal p, html[lang='fr'] .legal li { line-height: 1.85; }
.footer-grid { padding-block-start: 3rem; }
.footer-col a { display: inline-flex; align-items: center; min-block-size: 36px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-bottom { font-size: 0.8rem; }
.wa-float { background: #126c3b; min-block-size: 50px; border: 1px solid #0c5930; box-shadow: 0 8px 24px rgba(32, 37, 34, 0.14); font-size: 0.87rem; }
.back-to-top { position: fixed; z-index: 89; inset-inline-end: 1.25rem; inset-block-end: 1.4rem; display: grid; place-items: center; inline-size: 46px; block-size: 46px; padding: 0.65rem; border: 1px solid #bdb5a4; border-radius: 3px; background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(32, 37, 34, 0.08); }
.back-to-top svg { inline-size: 20px; block-size: 20px; }
.back-to-top:hover { border-color: var(--gold-text); }
.mobile-contact-bar { display: none; }

/* Content stays visible if JavaScript or an observer fails. */
.reveal { opacity: 1; transform: none; transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.reveal.is-reveal-pending:not(.is-visible) { opacity: 0; transform: translateY(14px); }
.no-js .reveal { opacity: 1; transform: none; }

@media (min-width: 921px) {
  .mobile-nav, .mobile-nav.is-open { display: none; }
}
@media (max-width: 1100px) {
  .hero-grid { gap: 2rem; }
  .hero h1 span { font-size: clamp(2.4rem, 3.8vw, 3.4rem); }
  html[lang='fr'] .hero h1 span { font-size: clamp(2.7rem, 4.4vw, 4rem); }
}
@media (max-width: 920px) {
  :root { --header-h: 76px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 2.75rem 3rem; }
  .hero-copy { max-inline-size: 43rem; }
  .hero h1 span { font-size: clamp(2.5rem, 6.4vw, 4rem); }
  html[lang='fr'] .hero h1 span { font-size: clamp(3rem, 7.5vw, 4.6rem); }
  .identity-card { max-inline-size: 440px; }
  .identity-card img { aspect-ratio: 4 / 4.35; }
  .section-head { gap: 1.2rem; }
  .portrait { margin-inline: auto; inline-size: 100%; }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #services .practice { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .practice .num { font-size: 1.1rem; }
  .principles div { padding-inline: 1.2rem; }
  .steps { gap: 1.5rem; }
  .step, .step:first-child, .step:last-child { padding-block: 1.5rem 0; }
  .step:first-child { padding-block-start: 0; }
  .no-js .menu-toggle { display: none; }
  .no-js .mobile-nav { display: block; max-block-size: none; }
  .no-js .mobile-nav .shell { flex-direction: row; flex-wrap: wrap; gap: 0 1.2rem; padding-block: 0.5rem; }
  .no-js .mobile-nav a { border: 0; font-size: 0.85rem; padding: 0.6rem 0; }
  .no-js .mobile-nav .button { display: none; }
}
@media (max-width: 700px) {
  :root { --gutter: 1.25rem; --section: 4rem; }
  html { scroll-padding-block-end: calc(6rem + env(safe-area-inset-bottom, 0px)); }
  body { padding-block-end: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  .hero-grid { padding-block: 2.25rem 2.5rem; gap: 2rem; }
  .hero .section-label { font-size: 0.77rem; gap: 0.6rem; }
  .hero .section-label::before { inline-size: 1.5rem; }
  .hero h1 { font-size: 1.45rem; margin-block-start: 1.15rem; }
  .hero h1 span { font-size: clamp(2.3rem, 8.2vw, 3.3rem); margin-block-start: 0.25rem; }
  html[lang='fr'] .hero h1 { font-size: 1.75rem; }
  html[lang='fr'] .hero h1 span { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero-lede { font-size: 1rem; line-height: 1.95; margin-block-start: 1.1rem; }
  .hero-actions { gap: 1.1rem; margin-block-start: 1.5rem; }
  .hero-actions .button { inline-size: 100%; }
  .hero-actions .text-link { margin-inline: auto; font-size: 0.9rem; }
  .hero-trust { display: grid; gap: 0.55rem; margin-block-start: 1.5rem; padding-block-start: 1.1rem; }
  .hero-trust li { font-size: 0.8rem; }
  .identity-card { max-inline-size: 380px; }
  .identity-card img { aspect-ratio: 4 / 4.2; }
  .identity-card p { font-size: 0.82rem; padding: 0.9rem; }
  .identity-card > .latin { inset-block-start: 0.75rem; inset-inline-start: 0.75rem; font-size: 0.65rem; }
  .principles .shell { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles div { font-size: 0.71rem; padding: 1.15rem 0.7rem; line-height: 1.8; }
  .principles div + div { border-block-start: 0; border-inline-start: 1px solid #63634e; }
  .principles strong { font-size: 0.88rem; }
  .practice-grid { grid-template-columns: minmax(0, 1fr); }
  #services .practice { grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; padding: 1.25rem; }
  .practice h3 { font-size: 1rem; }
  .practice p { font-size: 0.91rem; }
  .practice .num { padding-block-start: 0.25rem; }
  .service-search { padding: 0.85rem; }
  .service-search label { inline-size: 100%; }
  input[data-service-search] { flex-basis: calc(100% - 6rem); }
  [data-search-status] { font-size: 0.8rem; }
  .section-head { margin-block-end: 1.8rem; }
  .section-head .lede { font-size: 1rem; }
  .section-label { font-size: 0.8rem; }
  .about-copy .lede { font-size: 1rem; }
  .values { margin-block-start: 1.5rem; }
  .values li { gap: 0.8rem; }
  .values p { font-size: 0.91rem; }
  .quote-band p { font-size: 1.45rem; }
  .quote-band footer { font-size: 0.85rem; }
  .faq summary { font-size: 0.94rem; gap: 1rem; }
  .faq .answer { font-size: 0.93rem; }
  .contact-panel { gap: 1.5rem; padding: 1.1rem; }
  .consult-form { padding: 1rem; }
  .contact-row { gap: 0.8rem; }
  .contact-row strong { font-size: 0.9rem; }
  .footer-grid { gap: 2rem; }
  .footer-brand { gap: 0.8rem; }
  .footer-brand .latin { font-size: 1.05rem; letter-spacing: 0.08em; }
  .footer-brand p, .footer-col a { font-size: 0.9rem; }
  .wa-float { display: none; }
  .mobile-contact-bar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid #cfc7b5;
    background: #fffefa;
    box-shadow: 0 -4px 16px rgba(32, 37, 34, 0.05);
  }
  .mobile-contact-bar a { display: flex; justify-content: center; align-items: center; gap: 0.5rem; min-block-size: 46px; padding: 0.55rem 0.7rem; border: 1px solid var(--ink); border-radius: 3px; font-size: 0.85rem; font-weight: 700; line-height: 1.5; }
  .mobile-contact-bar a:last-child { background: var(--ink); color: #fff; }
  .mobile-contact-bar a svg { inline-size: 18px; block-size: 18px; flex-shrink: 0; }
  .back-to-top { inset-inline-end: 1rem; inset-block-end: calc(5.65rem + env(safe-area-inset-bottom, 0px)); inline-size: 44px; block-size: 44px; }
}
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .brand-name strong { font-size: 0.94rem; }
  html[lang='fr'] .brand-name strong { font-size: 1rem; }
  .brand-mark { inline-size: 34px; block-size: 39px; }
  .header-actions { gap: 0.35rem; }
  .lang-switch { min-inline-size: 44px; padding-inline: 0.35rem; }
  .menu-toggle { inline-size: 44px; block-size: 44px; }
  .principles div { padding-inline: 0.5rem; font-size: 0.65rem; }
  .principles strong { font-size: 0.8rem; }
  #services .practice { padding: 1.1rem; gap: 0.7rem; }
  .mobile-contact-bar a { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-reveal-pending:not(.is-visible) { opacity: 1; transform: none; }
  .button:hover, #services .practice:hover, #services .practice:focus-within, .handle:hover { transform: none; }
  .button svg, .text-link svg, .more svg { transition: none; }
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .button, .practice, .contact-panel, .identity-card, .mobile-contact-bar a { border: 1px solid CanvasText; }
  .identity-card > .latin { forced-color-adjust: auto; }
}
@media print {
  body { padding-block-end: 0; }
  .mobile-contact-bar, .back-to-top, .service-search { display: none !important; }
  .reveal, .reveal.is-reveal-pending:not(.is-visible) { opacity: 1; transform: none; }
  .hero, .contact, .contact-panel, #services .practice { background: #fff !important; color: #000 !important; }
  #services .practice { border-color: #aaa; break-inside: avoid; }
  .practice p, .practice .tags li, .practice .num, .practice .more { color: #222 !important; }
}


.portrait.brand-portrait img { aspect-ratio: 1; object-fit: contain; }
.back-to-top { min-inline-size: 44px; min-block-size: 44px; }
.quote-band { background-image: image-set(url('../images/office-1600.webp') type('image/webp'), url('../images/office-1600.jpg') type('image/jpeg')); }
@media (max-width: 640px) { .quote-band { background-image: image-set(url('../images/office-900.webp') type('image/webp'), url('../images/office-900.jpg') type('image/jpeg')); } }
.no-js .service-search, .no-js [data-form-fields] { display: none; }
.form-fallback a { text-decoration: underline; text-underline-offset: .2em; min-height: 44px; display: inline-flex; align-items: center; }
.error-page { max-width: 800px; margin-inline: auto; padding-block: clamp(4rem, 12vw, 8rem); }
.error-code { font-family: var(--font-latin); font-size: clamp(5rem, 15vw, 10rem); color: var(--gold-text); line-height: 1; }
.error-page h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-block: 1.5rem; }
.error-page p { margin-block: 1rem; }
.error-page .hero-actions { margin-block-start: 2rem; }
@media (max-width: 380px) { .back-to-top { inline-size: 44px; block-size: 44px; } }
