/* ==========================================================================
   البيان الواضح للمحاماة · Al-Bayan Al-Wadih Law Firm
   Design direction: "Point of clarity" — deep navy, brass, contract-paper ivory.
   ========================================================================== */

:root {
  /* colour */
  --ink: #0F2A3D;
  --ink-deep: #0A1E2C;
  --ink-soft: #1C3D55;
  --brass: #B8925A;
  --brass-dark: #8C6A38;   /* AA on ivory for small text */
  --brass-light: #D6B984;
  --ivory: #F6F2EA;
  --paper: #FBF9F5;
  --white: #FFFFFF;
  --text: #1B2733;
  --muted: #55606B;
  --line: #E4DDD0;
  --line-dark: rgba(214, 185, 132, .22);
  --ok: #2F7A55;
  --err: #B3261E;
  --wa: #1F8F4E;

  /* type */
  --f-head: "Amiri", "Noto Naskh Arabic", serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-latin-head: "Cormorant Garamond", Georgia, serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  --fs-3xl: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem);

  /* space */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --r-sm: 6px; --r: 12px; --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(10, 30, 44, .06), 0 2px 8px rgba(10, 30, 44, .05);
  --sh-2: 0 10px 30px -10px rgba(10, 30, 44, .25);
  --t: 200ms cubic-bezier(.2, .7, .2, 1);
}

:root:lang(en) {
  --f-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-3xl: clamp(2.6rem, 1.7rem + 4vw, 4.9rem);
}
:root:lang(zh-Hans) {
  --f-head: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --f-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-3xl: clamp(2.2rem, 1.5rem + 3.2vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.75;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:lang(en) body, body:lang(en) { line-height: 1.65; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: .25em; }
a:hover { color: var(--brass-dark); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.25; margin: 0 0 var(--s-4); font-weight: 700; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
:lang(en) h3 { font-size: 1.45rem; }
p { margin: 0 0 var(--s-4); }
ul { padding-inline-start: 1.2em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--s-4); top: -60px; background: var(--ink); color: var(--white); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: var(--s-4); color: var(--white); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--ink-deep); color: #D9E1E8; position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark::before, .pattern-bg::before {
  content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") repeat; background-size: 72px; opacity: .14; pointer-events: none;
}
.section--dark > * { position: relative; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600;
  color: var(--brass-dark); margin-bottom: var(--s-4);
}
:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-xs); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--brass); transform: rotate(45deg); }
.section--dark .eyebrow { color: var(--brass-light); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 46rem; }
.section--dark .lead, .landing-hero .lead { color: #B9C6D1; }
.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 var(--fs-sm)/1.2 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover { background: var(--ink-soft); color: var(--white); box-shadow: var(--sh-2); }
.btn--brass { background: var(--brass); color: var(--ink-deep); }
.btn--brass:hover { background: var(--brass-light); color: var(--ink-deep); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.section--dark .btn--ghost, .page-hero .btn--ghost, .cta-band .btn--ghost, .landing-hero .btn--ghost { color: var(--ivory); }
.section--dark .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover, .landing-hero .btn--ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #18773F; color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow .icon { transition: transform var(--t); width: 1.05em; }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

/* ---------------------------------------------------------------- header */
.topbar { background: var(--ink-deep); color: #AFC0CD; font-size: var(--fs-xs); }
.topbar .container { display: flex; gap: var(--s-5); align-items: center; justify-content: space-between; min-height: 38px; }
.topbar a { color: #D9E1E8; text-decoration: none; }
.topbar a:hover { color: var(--brass-light); }
.topbar__info { display: flex; gap: var(--s-5); align-items: center; }
.topbar__info span, .topbar__info a { display: inline-flex; gap: .45em; align-items: center; }
.topbar .container > span { display: inline-flex; gap: .45em; align-items: center; white-space: nowrap; }
.topbar .icon { color: var(--brass-light); width: 1.1em; height: 1.1em; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--sh-1); }
.site-header .container { display: flex; align-items: center; gap: var(--s-5); min-height: 80px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: .55em .7em; border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-size: var(--fs-sm); font-weight: 500; transition: color var(--t), background var(--t); }
.nav a:hover { color: var(--ink); background: var(--ivory); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-switch a { white-space: nowrap; min-width: 40px; min-height: 34px; padding: 0 .65em; display: grid; place-items: center; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; text-decoration: none; color: var(--muted); font-family: "IBM Plex Sans Arabic", "Noto Sans SC", sans-serif; }
.lang-switch a:hover { color: var(--ink); background: var(--ivory); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--ivory); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1280px) {
  .nav-toggle { display: grid; }
  .header-actions .btn--primary { display: none; }
  .nav { position: fixed; inset: 0; top: 0; background: var(--ink-deep); padding: 100px var(--gutter) var(--s-6); transform: translateY(-100%); visibility: hidden; transition: transform 280ms ease, visibility 0s 280ms; overflow-y: auto; z-index: -1; }
  .nav.is-open { transform: none; visibility: visible; transition: transform 280ms ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { color: var(--ivory); font-size: var(--fs-lg); padding: .8em 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--brass-light); box-shadow: none; }
  .nav .btn { margin-top: var(--s-5); display: flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--ink-deep); }
  body.nav-open .brand img { filter: brightness(0) invert(.95); }
}
@media (min-width: 1281px) { .nav .btn { display: none; } }
@media (max-width: 720px) {
  .topbar__info .hide-sm { display: none; }
  .brand img { height: 42px; }
  .site-header .container { min-height: 68px; gap: var(--s-3); }
}
@media (max-width: 420px) {
  .lang-switch a { min-width: 34px; padding: 0 .45em; }
  .brand img { height: 36px; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper), var(--ivory)); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") repeat; background-size: 88px; opacity: .22; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
[dir="rtl"] .hero::before { mask-image: linear-gradient(-90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(-90deg, transparent, #000 60%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-7); align-items: center; padding-block: var(--s-8) var(--s-9); }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .accent { color: var(--brass-dark); }
.hero__sub { font-size: var(--fs-lg); color: var(--muted); max-width: 36rem; margin-bottom: var(--s-6); }
.hero__art { position: relative; max-width: 480px; justify-self: center; width: 100%; }
.hero__art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(10, 30, 44, .22)); }
.hero__badge { position: absolute; inset-inline-start: -8%; bottom: 12%; background: var(--white); border-radius: var(--r); padding: var(--s-3) var(--s-4); box-shadow: var(--sh-2); display: flex; gap: var(--s-3); align-items: center; font-size: var(--fs-sm); max-width: 250px; line-height: 1.4; }
.hero__badge .icon { width: 34px; height: 34px; color: var(--brass); }
.hero__badge strong { display: block; color: var(--ink); }
.hero__langs { display: flex; gap: var(--s-2); margin-top: var(--s-5); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .85em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.chip .icon { color: var(--brass); width: 1.1em; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-block: var(--s-6) calc(var(--s-8) + var(--s-6)); gap: var(--s-6); }
  .hero__art { max-width: 340px; order: -1; }
  .hero__badge { inset-inline-start: auto; inset-inline-end: 0; bottom: 6%; max-width: 200px; font-size: var(--fs-xs); }
}

.trust { position: relative; margin-top: calc(-1 * var(--s-8)); z-index: 2; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border-radius: var(--r-lg); color: var(--ivory); box-shadow: var(--sh-2); overflow: hidden; }
.trust__item { padding: var(--s-5) var(--s-5); border-inline-end: 1px solid var(--line-dark); }
.trust__item:last-child { border: 0; }
.trust__num { font-family: var(--f-latin-head); font-size: 2.6rem; line-height: 1; color: var(--brass-light); font-weight: 600; }
.trust__label { font-size: var(--fs-sm); color: #B9C6D1; margin-top: var(--s-2); }
@media (max-width: 720px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(2) { border-inline-end: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}

/* ---------------------------------------------------------------- cards & grids */
.grid { display: grid; gap: var(--s-5); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-6) var(--s-5); transition: transform var(--t), box-shadow var(--t), border-color var(--t); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.card h3 { margin-bottom: var(--s-3); }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.card .link-arrow { font-size: var(--fs-sm); margin-top: auto; }
.card__icon { width: 58px; height: 66px; display: grid; place-items: center; margin-bottom: var(--s-5); color: var(--brass-dark); position: relative; }
.card__icon::before { content: ""; position: absolute; inset: 0; background: var(--ivory); clip-path: path("M0 66 V24 C0 12 12 4 29 0 C46 4 58 12 58 24 V66 Z"); transition: background var(--t); }
.card__icon .icon { position: relative; width: 28px; height: 28px; stroke-width: 1.5; }
.card:hover .card__icon::before { background: var(--ink); }
.card:hover .card__icon { color: var(--brass-light); }

.investor-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.investor-band ul { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; gap: var(--s-3); }
.investor-band li { display: flex; gap: var(--s-3); align-items: flex-start; }
.investor-band li .icon { color: var(--brass-light); margin-top: .3em; }
.investor-band img { border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
@media (max-width: 900px) { .investor-band .container { grid-template-columns: 1fr; gap: var(--s-6); } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: var(--s-7); }
.steps li::before { counter-increment: step; content: counter(step, var(--counter-style, decimal-leading-zero)); position: absolute; top: 0; inset-inline-start: 0; font-family: var(--f-latin-head); font-size: 2.4rem; line-height: 1; color: var(--brass); font-weight: 600; }
[dir="rtl"] .steps { --counter-style: arabic-indic; }
.steps li::after { content: ""; position: absolute; top: 1.15rem; inset-inline-start: 3.6rem; inset-inline-end: 0; height: 1px; background: linear-gradient(90deg, var(--brass), transparent); }
[dir="rtl"] .steps li::after { background: linear-gradient(-90deg, var(--brass), transparent); }
.steps h3 { margin-bottom: var(--s-2); }
.steps p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split--60 { grid-template-columns: 1.3fr .7fr; }
.split > *, .hero .container > *, .investor-band .container > *, .content-layout > *, .contact-grid > *, .landing-hero .container > * { min-width: 0; }
@media (max-width: 900px) { .split, .split--60 { grid-template-columns: 1fr; gap: var(--s-6); } }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); }
.feature { display: flex; gap: var(--s-4); }
.feature__mark { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; color: var(--brass-dark); }
.section--ivory .feature__mark { background: var(--white); }
.feature h3 { font-size: 1.15rem; margin-bottom: var(--s-1); }
:lang(en) .feature h3 { font-size: 1.35rem; }
.feature p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

/* team */
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 4 / 4.3; background: linear-gradient(160deg, var(--ink-soft), var(--ink-deep)); position: relative; display: grid; place-items: center; overflow: hidden; }
.person__photo::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 60px; opacity: .14; }
.person__photo svg { position: relative; width: 62%; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__body { padding: var(--s-5); }
.person h3 { margin-bottom: var(--s-1); font-size: 1.2rem; }
:lang(en) .person h3 { font-size: 1.45rem; }
.person__role { color: var(--brass-dark); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s-3); }
.person dl { margin: 0; font-size: var(--fs-xs); color: var(--muted); display: grid; gap: var(--s-1); }
.person dt { font-weight: 600; color: var(--text); display: inline; }
.person dd { display: inline; margin: 0; }

/* insights */
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow var(--t), transform var(--t); }
.post:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.post__img { aspect-ratio: 16 / 7; background: var(--ink); overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.post__meta { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: var(--s-3); margin-bottom: var(--s-3); }
.post h3 { font-size: 1.2rem; }
:lang(en) .post h3 { font-size: 1.45rem; }
.post h3 a { text-decoration: none; color: inherit; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p { color: var(--muted); font-size: var(--fs-sm); }

/* faq */
.faq { display: grid; gap: var(--s-3); max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--t); }
.faq details[open] { border-color: var(--brass); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5); font-weight: 600; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brass-dark); line-height: 1; transition: transform var(--t); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }

/* cta band */
.cta-band { background: var(--ink); color: #C9D4DD; border-radius: var(--r-lg); padding: var(--s-7); display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 72px; opacity: .12; }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--ivory); font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.cta-band p { margin: 0; max-width: 40rem; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: var(--s-6) var(--s-5); } }

/* ---------------------------------------------------------------- inner pages */
.page-hero { background: var(--ink-deep); color: #C9D4DD; position: relative; overflow: hidden; padding-block: var(--s-8) var(--s-7); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 72px; opacity: .14; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: 6%; bottom: 0; width: 210px; height: 260px; border: 2px solid var(--brass); border-bottom: 0; border-radius: 105px 105px 0 0 / 120px 120px 0 0; opacity: .5; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--ivory); font-size: var(--fs-2xl); max-width: 46rem; }
.page-hero .lead { color: #B9C6D1; }
.page-hero .btn-row { margin-top: var(--s-5); }
.crumbs { font-size: var(--fs-xs); margin-bottom: var(--s-4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: .5em; color: var(--brass); }
.crumbs a { color: var(--brass-light); text-decoration: none; }
@media (max-width: 720px) { .page-hero::after { width: 110px; height: 140px; opacity: .3; } }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); align-items: start; }
@media (max-width: 960px) { .content-layout { grid-template-columns: 1fr; } }
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #33404C; }
.prose ul { display: grid; gap: var(--s-2); }
.prose figure { margin: 0 0 var(--s-6); border-radius: var(--r); overflow: hidden; }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); }
.checklist .icon { color: var(--brass-dark); margin-top: .3em; }
.note { background: var(--ivory); border-inline-start: 3px solid var(--brass); padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); }

.aside-card { position: sticky; top: 104px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); display: grid; gap: var(--s-3); }
.aside-card h3 { margin-bottom: var(--s-1); }
.aside-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--s-2); }
.aside-list { list-style: none; padding: 0; margin: var(--s-2) 0 0; border-top: 1px solid var(--line); }
.aside-list a { display: flex; justify-content: space-between; align-items: center; padding: .65em 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: var(--fs-sm); }
.aside-list .icon { width: 1em; color: var(--brass); }

.values { counter-reset: v; }
.value { border-top: 2px solid var(--brass); padding-top: var(--s-4); }
.value h3 { margin-bottom: var(--s-2); }
.value p { color: var(--muted); font-size: var(--fs-sm); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.mv > div { background: var(--white); border-radius: var(--r); padding: var(--s-6); border: 1px solid var(--line); }
@media (max-width: 720px) { .mv { grid-template-columns: 1fr; } }

/* journey (investor) */
.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.journey li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding-bottom: var(--s-6); position: relative; }
.journey li::before { content: ""; position: absolute; inset-inline-start: 27px; top: 56px; bottom: 0; width: 1px; background: var(--line-dark); }
.journey li:last-child::before { display: none; }
.journey__n { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--brass); display: grid; place-items: center; font-family: var(--f-latin-head); font-size: 1.5rem; color: var(--brass-light); font-weight: 600; }
.journey h3 { margin: .35em 0 .25em; }
.journey p { margin: 0; color: #B9C6D1; font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--s-6); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: var(--s-3); }
.contact-card { display: flex; gap: var(--s-4); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4) var(--s-5); text-decoration: none; color: var(--text); transition: border-color var(--t), box-shadow var(--t); }
a.contact-card:hover { border-color: var(--brass); box-shadow: var(--sh-1); color: var(--text); }
.contact-card .feature__mark { width: 48px; height: 48px; }
.contact-card small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.contact-card strong { font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.contact-card--wa .feature__mark { background: #E5F4EA; color: var(--wa); }

.office-card { background: var(--ink); color: #C9D4DD; border-radius: var(--r); overflow: hidden; }
.office-card__map { aspect-ratio: 16 / 9; background: #0C2333; position: relative; }
.office-card__map svg { width: 100%; height: 100%; }
.office-card__body { padding: var(--s-5); }
.office-card h3 { color: var(--ivory); }
.office-card a { color: var(--brass-light); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--sh-1); }
.form h2 { font-size: var(--fs-xl); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s-2); color: var(--ink); padding: 0; }
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7em .95em; border: 1.5px solid #D6CEBF; border-radius: var(--r-sm); background: var(--paper);
  font: inherit; font-size: 1rem; color: var(--text); transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(184, 146, 90, .25); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { text-align: right; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); background: #FDF5F4; }
.field__err { display: none; color: var(--err); font-size: var(--fs-xs); margin-top: var(--s-1); }
.field.is-invalid .field__err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.segmented label { margin: 0; display: flex; align-items: center; gap: var(--s-2); min-height: 50px; padding: .5em .9em; border: 1.5px solid #D6CEBF; border-radius: var(--r-sm); cursor: pointer; font-weight: 500; background: var(--paper); transition: border-color var(--t), background var(--t); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; inset: 0; }
.segmented label:has(input:checked) { border-color: var(--ink); background: var(--ivory); box-shadow: inset 0 0 0 1px var(--ink); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
.segmented .icon { color: var(--brass-dark); }
@media (max-width: 420px) { .segmented { grid-template-columns: 1fr; } }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: .2em; accent-color: var(--ink); flex: none; }
.form__hint { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: var(--s-2); align-items: flex-start; }
.form__hint .icon { color: var(--brass); margin-top: .25em; }
.form__actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.form__alt { background: none; border: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .25em; font: inherit; font-size: var(--fs-sm); cursor: pointer; justify-self: center; min-height: 44px; }
.form-status { display: none; border-radius: var(--r); padding: var(--s-5); margin-top: var(--s-5); gap: var(--s-4); align-items: flex-start; }
.form-status.is-visible { display: flex; }
.form-status--ok { background: #EAF5EF; color: #1D4D35; border: 1px solid #BFDFCC; }
.form-status--err { background: #FDF0EF; color: #7A1A14; border: 1px solid #F1C4C0; }
.form-status h3 { color: inherit; margin-bottom: var(--s-1); font-family: var(--f-body); font-size: var(--fs-base); }
.form-status p { margin: 0; font-size: var(--fs-sm); }
.form-status .icon { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- article */
.article-hero-img { border-radius: var(--r); overflow: hidden; margin-bottom: var(--s-6); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-sm); color: #B9C6D1; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink-deep); color: #9FB0BD; font-size: var(--fs-sm); position: relative; overflow: hidden; margin-top: var(--s-8); }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 72px; opacity: .07; }
.site-footer > * { position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); padding-block: var(--s-8) var(--s-7); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--f-body); font-size: var(--fs-sm); color: var(--brass-light); font-weight: 600; margin-bottom: var(--s-4); }
:lang(en) .site-footer h2 { text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: #D4DDE4; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-brand img { height: 64px; width: auto; margin-bottom: var(--s-4); }
.footer-contact li { display: flex; gap: var(--s-2); align-items: flex-start; }
.footer-contact .icon { color: var(--brass); margin-top: .35em; }
.footer-contact .ltr { direction: ltr; unicode-bidi: isolate; }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background var(--t), border-color var(--t); }
.social a:hover { background: var(--brass); border-color: var(--brass); color: var(--ink-deep); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: var(--s-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-xs); }
.footer-bottom nav { display: flex; gap: var(--s-4); }
.footer-disclaimer { font-size: var(--fs-xs); color: #7F93A2; max-width: 60rem; padding-bottom: var(--s-5); margin: 0; }

/* floating whatsapp */
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(31, 143, 78, .6); transition: transform var(--t); }
.wa-float:hover { transform: scale(1.06); color: var(--white); }
.wa-float .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.wa-float::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; animation: ping 2.8s ease-out 2s 3; }
@keyframes ping { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- landing page */
.landing-header .header-actions .btn { display: inline-flex; }
@media (max-width: 560px) { .landing-header .header-actions .btn span { display: none; } }
.landing-header .container { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: var(--s-4); }
.landing-hero { background: var(--ink-deep); color: #C9D4DD; position: relative; overflow: hidden; }
.landing-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 72px; opacity: .14; }
.landing-hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); padding-block: var(--s-8); align-items: center; }
.landing-hero h1 { color: var(--ivory); font-size: var(--fs-2xl); }
.landing-points { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.landing-points li { display: flex; gap: var(--s-2); align-items: center; }
.landing-points .icon { color: var(--brass-light); }
.picker { background: var(--white); border-radius: var(--r-lg); padding: var(--s-5); color: var(--text); box-shadow: var(--sh-2); }
.picker h2 { font-size: var(--fs-lg); font-family: var(--f-body); }
.picker__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.picker__grid a { display: flex; gap: var(--s-2); align-items: center; padding: .7em .8em; border: 1.5px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-size: var(--fs-sm); font-weight: 500; min-height: 52px; transition: border-color var(--t), background var(--t); }
.picker__grid a:hover { border-color: var(--wa); background: #F1FAF4; }
.picker__grid .icon { color: var(--brass-dark); }
@media (max-width: 900px) { .landing-hero .container { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .picker__grid, .landing-points { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- language gateway (root) */
.gateway { min-height: 100vh; display: grid; place-items: center; background: var(--ink-deep); color: var(--ivory); position: relative; overflow: hidden; text-align: center; padding: var(--s-6) var(--gutter); }
.gateway::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 80px; opacity: .14; }
.gateway > div { position: relative; }
.gateway img { width: 120px; margin: 0 auto var(--s-6); }
.gateway__langs { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-6); }
.gateway__langs a { min-width: 150px; min-height: 56px; padding: .8em 1.4em; border: 1.5px solid var(--brass); border-radius: 999px; color: var(--ivory); text-decoration: none; font-size: 1.1rem; display: grid; place-items: center; transition: background var(--t), color var(--t); }
.gateway__langs a:hover { background: var(--brass); color: var(--ink-deep); }

/* ---------------------------------------------------------------- print profile */
.profile-actions { position: sticky; top: 0; z-index: 5; background: var(--ink-deep); padding: var(--s-3) var(--gutter); display: flex; gap: var(--s-3); justify-content: center; }
.sheet { width: 210mm; min-height: 297mm; margin: var(--s-5) auto; background: var(--white); box-shadow: var(--sh-2); position: relative; overflow: hidden; padding: 18mm 18mm 16mm; page-break-after: always; }
.sheet--cover { background: var(--ink-deep); color: var(--ivory); display: flex; flex-direction: column; justify-content: space-between; }
.sheet--cover::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg"); background-size: 70px; opacity: .14; }
.sheet--cover > * { position: relative; }
.sheet--cover h1 { color: var(--ivory); font-size: 30pt; margin: 0; }
.sheet h2 { font-size: 18pt; border-bottom: 1.5px solid var(--brass); padding-bottom: 6pt; margin-top: 0; }
.sheet h3 { font-size: 12.5pt; margin-bottom: 3pt; }
.sheet p, .sheet li { font-size: 10.5pt; line-height: 1.6; }
.sheet .grid--2 { gap: 10pt 18pt; }
.sheet__foot { position: absolute; bottom: 10mm; inset-inline: 18mm; display: flex; justify-content: space-between; font-size: 8.5pt; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6pt; }
@media screen and (max-width: 860px) { .sheet { width: auto; min-height: 0; margin: var(--s-3); padding: var(--s-5); } .sheet__foot { position: static; margin-top: var(--s-5); } }
@page { size: A4; margin: 0; }
@media print {
  body { background: var(--white); }
  .profile-actions, .wa-float { display: none !important; }
  .sheet { margin: 0; box-shadow: none; width: 210mm; height: 297mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* first-visit language prompt */
.lang-prompt { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(10, 30, 44, .55); animation: lp-in .25s ease; }
.lang-prompt__card { width: min(360px, 100%); background: var(--paper); border-top: 4px solid var(--brass); border-radius: 14px; padding: 24px 20px 20px; box-shadow: 0 20px 50px rgba(10, 30, 44, .35); display: grid; gap: 10px; text-align: center; }
.lang-prompt__q { margin: 0 0 6px; font-family: var(--f-head); font-size: 1.35rem; color: var(--ink); }
.lang-prompt .btn--block { width: 100%; justify-content: center; }
@keyframes lp-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lang-prompt { animation: none; } }
