/* ==========================================================================
   Wahdan & Partners — Figma design, production typography & proportions
   Layout, sections, colors and content follow the approved Figma file.
   Only type sizes, spacing and screen behaviour are set to web standards.
   ========================================================================== */

:root {
  /* Colors — exactly as in the Figma file */
  --blue: #0f4c75;
  --blue-dark: #0b3d5f;
  --gold: #b38d55;
  --gold-dark: #9c7843;
  --beige: #edeae2;
  --white: #fff;
  --text: #333;
  --text-soft: #555;
  --muted: #6b6b6b;
  --border: #e4e4e4;

  /* fonts confirmed from the Figma file's own font downloads */
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;          /* body copy */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;    /* hero, nav, buttons, stats */
  --font-serif: "Cormorant Garamond", Georgia, serif;                   /* section titles, page headings */
  --font-serif-sm: "Merriweather", Georgia, serif;                      /* names and small serif labels */

  /* Type scale — 8 steps instead of the 14 ad-hoc sizes in the file */
  --fs-h1: clamp(2.125rem, 1.3rem + 2.9vw, 3.5rem);    /* 34 → 56 */
  --fs-h2: clamp(1.75rem, 1.25rem + 1.7vw, 2.625rem);  /* 28 → 42 */
  --fs-h3: 1.1875rem;                                   /* 19 */
  --fs-lead: clamp(1rem, .95rem + .3vw, 1.125rem);      /* 16 → 18 */
  --fs-body: 1rem;                                      /* 16 */
  --fs-sm: .875rem;                                     /* 14 */
  --fs-xs: .8125rem;                                    /* 13 */
  --fs-tag: .75rem;                                     /* 12 */

  /* Spacing — 8px scale */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;

  --section-y: clamp(4.5rem, 2.5rem + 5.5vw, 7rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, .6rem + 1.8vw, 2.25rem);
  --header-h: 78px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  font: 600 var(--fs-sm)/1.2 var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn-lg { min-height: 52px; min-width: 232px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-light { background: var(--beige); color: var(--blue); min-height: 44px; }
.btn-light:hover { background: var(--white); }
.btn-outline-white { border-color: rgba(255, 255, 255, .8); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--blue); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); background: transparent; min-height: 44px; min-width: 150px; font-size: var(--fs-xs); }
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.btn-plus::before { content: "+"; font-size: 1.05em; }

/* ---------- Section headings ---------- */
.tag {
  display: inline-block;
  padding: var(--s-2) var(--s-5);
  background: var(--gold);
  color: var(--white);
  font: 600 var(--fs-tag)/1.4 var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.tag-light { background: var(--white); color: var(--gold); }
.section-title {
  margin-top: var(--s-4);
  color: var(--blue);
  font: 400 var(--fs-h2)/1.2 var(--font-serif);
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
.section-head { max-width: 760px; margin: 0 auto var(--s-7); text-align: center; }
.section-head p { margin-top: var(--s-4); font-size: var(--fs-lead); line-height: 1.6; }
.section-head.light .section-title { color: var(--white); }
.section-head.light p { color: rgba(255, 255, 255, .88); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--blue);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .18); }
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: 100%; }
/* eight menu links since the v2 design: the header gets a wider row than the page content */
.site-header .container { max-width: calc(1360px + var(--gutter) * 2); }
.logo img { width: 128px; margin-block: -18px; }

.main-nav { display: flex; align-items: center; gap: var(--s-5); margin-inline: auto; }
.main-nav > a {
  position: relative;
  font-family: var(--font-display);
  padding-block: var(--s-2);
  color: rgba(255, 255, 255, .88);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.main-nav > a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: #d5c29c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav > a:hover { color: var(--white); }
.main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); }
.main-nav > a.active { color: var(--white); }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
.header-actions .btn { white-space: nowrap; }
.lang-switch {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: var(--s-2);
  color: rgba(255, 255, 255, .88);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.lang-switch:hover { color: var(--white); }
.lang-badge {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #d5c29c;
  color: var(--white);
  font-size: var(--fs-tag);
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-inline-start: auto;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--white); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 820px);
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 16s ease-out forwards;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(12, 22, 32, .48); }
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content { position: relative; max-width: 820px; padding-block: var(--s-8); }
.hero h1 {
  font: 600 var(--fs-h1)/1.12 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero h1 em { font: italic 400 1.06em/1.05 var(--font-serif); letter-spacing: -.015em; }
.hero-content > p {
  max-width: 62ch;
  margin: var(--s-5) auto 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-top: var(--s-7); }
.hero-scroll {
  position: absolute;
  bottom: var(--s-6);
  left: 50%;
  translate: -50% 0;
  color: rgba(255, 255, 255, .8);
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll svg { width: 28px; height: auto; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--blue); color: var(--white); padding-block: var(--s-6); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); text-align: center; }
.stat strong { display: block; font: 700 clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem)/1.1 var(--font-display); letter-spacing: -.02em; }
.stat span { display: block; margin-top: var(--s-1); font: 400 var(--fs-xs)/1.4 var(--font-serif-sm); color: rgba(255, 255, 255, .84); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-text p { margin-top: var(--s-4); max-width: 60ch; font-size: var(--fs-lead); line-height: 1.65; }
.about-brand { text-align: center; }
.about-brand img { width: min(300px, 78%); margin-inline: auto; }
.about-brand p {
  margin-top: var(--s-4);
  color: var(--gold);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { position: relative; background: #2a6283; overflow: hidden; }
.services-pattern { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .2; mix-blend-mode: luminosity; }
.services .container { position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: var(--s-6) var(--s-6) var(--s-5);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.service-icon { width: 52px; height: 52px; object-fit: contain; }
svg.service-icon { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s var(--ease); }
.service-card:hover svg.service-icon { stroke: var(--gold-dark); }
.service-card h3 { margin-top: var(--s-5); font: 400 var(--fs-h3)/1.3 var(--font-serif); color: var(--blue); }
.service-card > p { margin-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.65; color: var(--text-soft); }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-5);
  color: var(--gold-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.read-more i { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.read-more i::before, .read-more i::after { content: ""; position: absolute; inset: 5px 3px; background: var(--white); }
.read-more i::after { inset: 3px 5px; }

.service-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--s-6);
  background: rgba(70, 70, 70, .94);
  color: var(--white);
  text-align: center;
  font-size: var(--fs-body);
  line-height: 1.55;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.service-hover p { max-width: 34ch; transform: translateY(10px); transition: transform .3s var(--ease); }
.service-hover .btn { min-width: 176px; }
.service-card:hover, .service-card:focus-within { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.service-card:hover .service-hover, .service-card:focus-within .service-hover { opacity: 1; }
.service-card:hover .service-hover p { transform: none; }

.services .center { margin-top: var(--s-6); }
.services .btn-outline-white { min-width: 240px; }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why { background: var(--beige); }
.why .section-head { margin-bottom: var(--s-6); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); max-width: 980px; margin-inline: auto; }
.why-card {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: var(--s-5) var(--s-4);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--blue);
  font: 700 var(--fs-sm)/1.5 var(--font-serif-sm);
  text-align: center;
  text-wrap: balance;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
/* Consecutive white sections share one rhythm instead of stacking two full paddings */
.testimonials { padding-bottom: calc(var(--section-y) * .5); }
.clients { padding-block: calc(var(--section-y) * .6); }
.team { padding-top: calc(var(--section-y) * .6); }
.testimonials .section-head { margin-bottom: var(--s-6); }
.slider { position: relative; display: flex; align-items: stretch; gap: var(--s-4); }
.slider-viewport { flex: 1; overflow: hidden; padding-block: var(--s-2) var(--s-7); margin-bottom: calc(var(--s-7) * -1); }
.slider-track { display: flex; gap: var(--s-4); transition: transform .5s var(--ease); }
.testimonial {
  flex: 0 0 calc((100% - var(--s-4) * 2) / 3);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}
.testimonial-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.stars { color: var(--gold); font-size: var(--fs-body); letter-spacing: .12em; }
.testimonial-top img { height: 40px; max-width: 110px; object-fit: contain; }
.testimonial blockquote { flex: 1; margin: var(--s-4) 0 var(--s-5); font-size: var(--fs-body); line-height: 1.6; color: var(--text); }
.testimonial figcaption { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.testimonial figcaption img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption b { display: block; font: 400 var(--fs-sm)/1.3 var(--font-serif-sm); color: #111; }
.testimonial figcaption small { display: block; font: 400 var(--fs-tag)/1.4 var(--font-serif-sm); color: var(--muted); }

.slider-arrow {
  flex: 0 0 48px;
  align-self: center;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--beige);
  color: var(--gold-dark);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.slider-arrow.next { background: var(--gold); color: var(--white); }
.slider-arrow:hover { background: var(--blue); color: var(--white); }

/* ==========================================================================
   Clients
   ========================================================================== */
.clients .section-head { margin-bottom: var(--s-6); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1080px;
  margin-inline: auto;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.client {
  display: grid;
  place-items: center;
  height: 168px;
  padding: var(--s-5);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.client img { max-height: 104px; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.client:hover img { transform: scale(1.04); }
.clients .center { margin-top: var(--s-6); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.team-text p { margin-top: var(--s-4); font-size: var(--fs-lead); line-height: 1.65; }
.team-text .btn { margin-top: var(--s-5); }
.team-members { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.member { position: relative; background: transparent; border-radius: var(--radius); overflow: hidden; }
.member__photo {
  position: relative;
  aspect-ratio: 2 / 3;          /* the photos are 2:3, so nothing is cropped */
  overflow: hidden;
  background: #101418;
  display: grid;
  place-items: center;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.03); }
.member-info {
  padding: var(--s-3) var(--s-2);
  background: var(--gold);
  color: var(--white);
  text-align: center;
}
.member-info b { display: block; font: 400 var(--fs-sm)/1.3 var(--font-serif-sm); }
.member-info span { display: block; margin-top: 2px; font: 400 var(--fs-tag)/1.35 var(--font-serif-sm); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { position: relative; padding-block: var(--section-y); color: var(--white); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: rgba(15, 20, 30, .55); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.contact-text { max-width: 56ch; }
.contact-text .section-title { color: var(--white); }
.contact-text > p { margin-top: var(--s-4); font-size: var(--fs-lead); line-height: 1.65; color: rgba(255, 255, 255, .92); }
.contact-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.contact-list li { display: flex; align-items: flex-start; gap: var(--s-3); }
.contact-list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.contact-list b { display: block; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; }
.contact-list a { display: block; font-size: var(--fs-sm); color: rgba(255, 255, 255, .88); }
.contact-list a:hover { color: #e6d2ab; }

.contact-form {
  display: grid;
  gap: var(--s-4);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--beige);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.contact-form label {
  display: grid;
  gap: var(--s-2);
  color: #2f3b44;
  font-size: var(--fs-tag);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  color: var(--text);
  font: 400 var(--fs-body)/1.5 var(--font-sans);
  letter-spacing: normal;
  text-transform: none;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.contact-form ::placeholder { color: #a98f6a; opacity: 1; }
.contact-form select {
  appearance: none;
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23b38d55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  padding-right: var(--s-7);
}
.contact-form select:invalid { color: #a98f6a; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form :is(input, select, textarea):focus {
  outline: none;
  background-color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 3px rgba(179, 141, 85, .22);
}
.contact-form .btn { margin-top: var(--s-2); }
.form-note { font-size: var(--fs-xs); color: var(--blue); text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--blue); color: rgba(255, 255, 255, .84); padding-block: var(--s-8) var(--s-5); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1.1fr 1fr; gap: var(--s-7) var(--s-6); }
.footer-brand > img { width: 150px; }
.footer-brand > p { margin-top: var(--s-5); max-width: 36ch; line-height: 1.6; }
.copyright { margin-top: var(--s-5); font-size: var(--fs-xs); color: rgba(255, 255, 255, .7); }

.social { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--fs-sm); }
.social span { margin-inline-end: var(--s-2); }
.social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.social a:hover { background: var(--gold); color: var(--white); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-col h4 {
  position: relative;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  color: var(--white);
  font: 400 var(--fs-xs)/1.3 var(--font-serif-sm);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-col h4::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer-links li + li { margin-top: var(--s-3); }
.footer-links a { display: inline-flex; gap: var(--s-2); font-size: var(--fs-sm); transition: color .2s var(--ease); }
.footer-links a::before { content: "›"; color: var(--gold); }
.footer-links a:hover { color: #e6d2ab; }

.office { padding: var(--s-4); background: var(--white); border-radius: var(--radius); color: var(--text-soft); }
.office + .office { margin-top: var(--s-4); }
.office h5 { color: var(--gold-dark); font-size: var(--fs-tag); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.office p { margin-top: var(--s-3); font-size: var(--fs-xs); line-height: 1.6; }
.office-line { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--fs-xs); }
.office-line::before { content: ""; width: 13px; height: 13px; flex: none; background: var(--gold); -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
.office-line.mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3z M3 5l9 7 9-7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.office-line.phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.office a:hover { color: var(--gold-dark); }

.map-card { overflow: hidden; border-radius: var(--radius); background: #1f2d3a; border: 1px solid #1f2d3a; }
.map-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-2) var(--s-3); font-size: var(--fs-tag); }
.map-head span { display: inline-flex; align-items: center; gap: var(--s-2); color: #e6d2ab; }
.map-head i { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; }
.map-head small { color: #b9c2cc; font-size: var(--fs-tag); }
.map-card iframe { display: block; width: 100%; height: 190px; border: 0; }
.schedule {
  display: block;
  margin-top: var(--s-4);
  padding: var(--s-3);
  background: var(--gold);
  border-radius: 2px;
  color: var(--blue);
  text-align: center;
  transition: background-color .25s var(--ease);
}
.schedule:hover { background: #c49d63; }
.schedule b { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.schedule span { display: block; margin-top: 2px; font-size: var(--fs-tag); }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { 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; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1440px) {
  .main-nav { gap: var(--s-4); }
  .main-nav > a { font-size: .8125rem; letter-spacing: .03em; }
}

@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}

/* the burger menu takes over once the eight links no longer fit on one row */
@media (max-width: 1240px) {
  .header-actions { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--s-5) var(--gutter) var(--s-8);
    background: var(--blue);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
  }
  .main-nav.open { transform: none; }
  .main-nav > a { padding-block: var(--s-4); font-size: var(--fs-body); border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .main-nav > a::after { bottom: 8px; width: 36px; right: auto; }
  .nav-mobile-extra { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .logo img { width: 112px; margin-block: -14px; }

  .about-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid, .team-text { text-align: center; }
  .about-text p, .contact-text { margin-inline: auto; }
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial { flex-basis: calc((100% - var(--s-4)) / 2); }
  .team-text .btn { margin-inline: auto; }
  .contact-text { max-width: none; text-align: center; }
  .contact-list { justify-items: center; max-width: 320px; margin-inline: auto; }
}

@media (max-width: 680px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-hover { display: none; }
  .testimonial { flex-basis: 100%; }
  .slider { gap: 0; }
  .slider-arrow { position: absolute; z-index: 2; bottom: calc(var(--s-7) * -1); align-self: auto; }
  .slider-arrow.prev { inset-inline-start: calc(50% - 52px); }
  .slider-arrow.next { inset-inline-end: calc(50% - 52px); }
  .testimonials { padding-bottom: calc(var(--section-y) + var(--s-7)); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client { height: 132px; padding: var(--s-4); }
  .client img { max-height: 84px; }
  .team-members { grid-template-columns: 1fr 1fr; }
  .team-members .member:last-child { grid-column: 1 / -1; width: calc(50% - var(--s-2)); justify-self: center; }
  .btn-lg { width: 100%; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Inner pages (About / Services / Clients / Contact) — per Figma
   ========================================================================== */

/* ---------- Inner hero ---------- */
.inner-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 52vw, 560px);
  overflow: hidden;
  color: var(--white);
}
.inner-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.inner-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 26, 38, .82) 0%, rgba(10, 26, 38, .62) 45%, rgba(10, 26, 38, .25) 75%, rgba(10, 26, 38, .12) 100%);
}
.inner-hero .container { position: relative; padding-block: var(--s-7); }
.inner-hero p.inner-hero__eyebrow { color: #c9a267; margin-top: 0; font: 400 var(--fs-lead)/1.3 var(--font-serif); }
.inner-hero h1 {
  max-width: 17ch;
  margin-top: var(--s-3);
  font: 400 var(--fs-h1)/1.18 var(--font-serif);
  text-wrap: balance;
}
.inner-hero p { max-width: 62ch; margin-top: var(--s-4); font-size: var(--fs-body); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.inner-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-5); }
.inner-hero__actions .btn { min-width: 260px; }

/* ---------- Logo marquee ---------- */
.marquee { padding-block: var(--s-6); overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); width: max-content; animation: marquee 38s linear infinite; }
.marquee img { height: 56px; width: auto; max-width: none; object-fit: contain; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Who we are ---------- */
.whoweare__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.whoweare__title { margin-top: var(--s-4); color: var(--blue); font: 400 var(--fs-h2)/1.25 var(--font-serif); text-transform: uppercase; }
.whoweare p { margin-top: var(--s-4); font-size: var(--fs-body); line-height: 1.7; text-align: justify; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-6); }
.fact {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--blue);
  font: 700 var(--fs-body)/1.3 var(--font-serif);
}
.fact::before { content: "\2713"; color: var(--gold); font-size: var(--fs-body); }
.whoweare__photo { aspect-ratio: 4 / 3.1; border-radius: var(--radius); overflow: hidden; }
.whoweare__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ---------- Reason cards (why choose us) ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.reason { padding: var(--s-6); background: var(--white); border-radius: 2px; }
.reason__num { display: block; color: #8b7043; font: 700 2.25rem/1 var(--font-sans); letter-spacing: -.02em; }
.reason h3 { margin: var(--s-3) 0; color: #8b7043; font: 700 var(--fs-body)/1.3 var(--font-serif); }
.reason p { color: var(--text); font: 400 var(--fs-sm)/1.65 var(--font-serif); }

/* ---------- Founder ---------- */
.founder__grid { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.founder__card { background: var(--white); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.founder__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-4) 0; }
.founder__head span { color: var(--blue); font: 700 var(--fs-tag)/1 var(--font-serif); letter-spacing: .08em; text-transform: uppercase; }
.founder__head img { width: 54px; }
.founder__media { position: relative; aspect-ratio: 3 / 3.25; overflow: hidden; }
.founder__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.5); transform-origin: 50% 8%; }
.founder__media--portrait { background: #0b0d10; }
.founder__media--portrait img { transform: none; object-position: center 12%; }
.founder__name { padding: var(--s-4) var(--s-3); background: var(--blue); border-top: 3px solid var(--gold); text-align: center; color: var(--white); }
.founder__name b { display: block; font: 400 1.375rem/1.25 var(--font-serif); }
.founder__name span { display: block; margin-top: var(--s-2); color: #d5b483; font: 700 var(--fs-sm)/1.3 var(--font-serif); }
.founder__bio h2 { margin-top: var(--s-4); color: var(--blue); font: 400 var(--fs-h2)/1.2 var(--font-serif); text-transform: uppercase; }
.founder__role { margin-top: var(--s-2); color: var(--gold); font: 400 var(--fs-lead)/1.4 var(--font-serif); }
.founder__bio p { margin-top: var(--s-4); font-size: var(--fs-body); line-height: 1.7; text-align: justify; }
.founder__sign { margin-top: var(--s-6); font-size: var(--fs-sm); }
.founder__sign span { display: block; color: var(--gold); font-family: var(--font-serif); }

/* ---------- People grid ---------- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5) var(--s-4); }

/* ---------- Practice area selector (services) ---------- */
.practice { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.practice__list { display: grid; gap: var(--s-3); }
.practice__btn {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--blue);
  font: 600 var(--fs-body)/1.35 var(--font-sans);
  text-align: start;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.practice__btn svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.practice__btn .arrow { margin-inline-start: auto; stroke: currentColor; opacity: .55; }
.practice__btn:hover { border-color: var(--gold); }
.practice__btn[aria-selected="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.practice__btn[aria-selected="true"] svg { stroke: #d5b483; }
.practice__btn[aria-selected="true"] .arrow { stroke: var(--white); opacity: 1; }

.panel { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.panel__eyebrow {
  display: inline-block;
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--gold);
  color: #8b7043;
  font: 700 var(--fs-tag)/1.3 var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.panel__title { margin-top: var(--s-4); color: #14222c; font: 600 clamp(1.125rem, .9rem + .7vw, 1.5rem)/1.4 var(--font-sans); letter-spacing: -.01em; }
.panel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: var(--s-6); }
.panel__cols h3 { color: #8b7043; font: 700 var(--fs-tag)/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.panel__list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.panel__list li { position: relative; padding-inline-start: var(--s-4); font-size: var(--fs-sm); line-height: 1.6; }
.panel__list li::before { content: "\2022"; position: absolute; inset-inline-start: 0; color: var(--text); }
.panel__chips { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.panel__chips li {
  padding: var(--s-3);
  background: #fdfbf7;
  border: 1px solid #efe6d8;
  border-radius: 2px;
  color: #8b7043;
  font-size: var(--fs-sm);
  text-align: center;
}
.panel__cta { margin-top: var(--s-6); }
.panel__cta h3 { color: var(--blue); font: 700 var(--fs-tag)/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.panel__cta .btn { margin-top: var(--s-3); }

/* ---------- Jurisdiction cards ---------- */
.jurisdiction { background: #f7f8fa; }
.jurisdiction__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.jur-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.jur-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.jur-card__top > span { color: #8b7043; font: 700 var(--fs-tag)/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.jur-card__tag { padding: var(--s-1) var(--s-3); background: #f2f4f7; border-radius: 3px; color: #4a5560; font-size: var(--fs-tag); letter-spacing: 0; text-transform: none; font-weight: 400; }
.jur-card h3 { margin-top: var(--s-4); color: #14222c; font: 400 1.375rem/1.3 var(--font-serif); }
.jur-card p { margin-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.7; }
.jur-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.jur-chips li { padding: var(--s-2) var(--s-3); background: #f2f4f7; border-radius: 3px; font-size: var(--fs-tag); color: #4a5560; }
.jur-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: auto;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.jur-card__foot a { color: var(--blue); font-weight: 600; }

/* ---------- Beige CTA strip ---------- */
.cta-strip { background: var(--beige); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-strip .container { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.cta-strip__icon { flex: none; display: grid; place-items: center; width: 130px; height: 130px; border-radius: 50%; background: var(--gold); }
.cta-strip__icon svg { width: 62px; height: 62px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta-strip__text { flex: 1; }
.cta-strip h2 { color: #8b7043; font: 400 var(--fs-h2)/1.25 var(--font-serif); text-transform: uppercase; }
.cta-strip p { margin-top: var(--s-3); font-size: var(--fs-body); color: var(--text); }
.cta-strip__actions { display: grid; gap: var(--s-2); min-width: 320px; }
.cta-strip__actions .btn { justify-content: center; }

/* ---------- Client groups ---------- */
.group-title { margin-bottom: var(--s-5); color: #8b7043; font: 400 clamp(1.25rem, 1rem + .8vw, 1.75rem)/1.3 var(--font-serif); text-align: center; text-transform: uppercase; }
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); margin-bottom: var(--s-8); }
.group-grid li { display: grid; place-items: center; height: 200px; padding: var(--s-5); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.group-grid img { max-height: 120px; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.group-grid li:hover img { transform: scale(1.05); }

/* ---------- Contact page info cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.info-card { padding: var(--s-5) var(--s-4); background: var(--white); border: 1px solid var(--border); border-radius: 2px; box-shadow: var(--shadow-md); }
.info-card__head { display: flex; align-items: center; gap: var(--s-3); }
.info-card__head svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.info-card__head h3 { color: #14222c; font: 400 1.25rem/1.3 var(--font-serif); }
.info-card > p { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--text); }
.info-card--center { text-align: center; }
.info-card--center .info-card__head { justify-content: center; }
.info-card dl { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }
.info-card dt { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.info-card dd { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--gold-dark); white-space: nowrap; }
.info-card address { margin-top: var(--s-4); font: 400 var(--fs-sm)/1.7 var(--font-serif); color: var(--text); text-align: center; }

/* ---------- Contact page form block ---------- */
.request__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.request__text h2 { margin-top: var(--s-4); color: #14222c; font: 400 var(--fs-h2)/1.25 var(--font-serif); text-transform: uppercase; }
.request__text > p { margin-top: var(--s-4); font-size: var(--fs-body); line-height: 1.7; text-align: justify; }
.request__map { margin-top: var(--s-5); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.request__map iframe { display: block; width: 100%; height: 340px; border: 0; }
.request .contact-form { background: var(--white); border: 1px solid var(--border); }
.request .contact-form label { color: var(--text); }

@media (max-width: 1100px) {
  .practice { grid-template-columns: 1fr; }
  .founder__grid { grid-template-columns: 340px minmax(0, 1fr); }
  .people-grid, .group-grid { grid-template-columns: repeat(3, 1fr); }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .whoweare__grid, .founder__grid, .jurisdiction__grid, .request__grid { grid-template-columns: 1fr; }
  .founder__card { max-width: 430px; margin-inline: auto; }
  .inner-hero__bg::after { background: linear-gradient(180deg, rgba(10, 26, 38, .6), rgba(10, 26, 38, .88)); }
  .inner-hero h1 { max-width: none; }
  .cta-strip .container { flex-direction: column; text-align: center; }
  .cta-strip__actions { width: 100%; min-width: 0; }
}

@media (max-width: 680px) {
  .reasons, .panel__cols, .facts { grid-template-columns: 1fr; }
  .people-grid, .group-grid { grid-template-columns: repeat(2, 1fr); }
  .group-grid li { height: 140px; padding: var(--s-4); }
  .group-grid img { max-height: 80px; }
  .info-cards { grid-template-columns: 1fr; }
  .inner-hero__actions .btn { width: 100%; min-width: 0; }
  .practice__btn { font-size: var(--fs-sm); }
  .marquee img { height: 42px; }
}

/* ---------- Jurisdiction toggle (Egypt / Dubai) ---------- */
.jur { max-width: 900px; margin-inline: auto; }
.jur__tabs {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2);
  margin-bottom: var(--s-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.jur__tab {
  flex: 1;
  min-height: 46px;
  padding: var(--s-2) var(--s-5);
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  font: 600 var(--fs-sm)/1.2 var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.jur__tab:hover { background: var(--beige); }
.jur__tab[aria-selected="true"] { background: var(--blue-dark); color: var(--white); }
.jur .jur-card { animation: jurIn .3s var(--ease); }
@keyframes jurIn { from { opacity: 0; transform: translateY(8px); } }
.jur-card__list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.jur-card__list li { position: relative; padding-inline-start: var(--s-4); font-size: var(--fs-sm); line-height: 1.75; }
.jur-card__list li::before { content: "\2022"; position: absolute; inset-inline-start: 0; color: var(--gold); }
.jur-card__list b { color: var(--blue); font-weight: 600; }

/* ---------- Trust badges (Cairo / Dubai) ---------- */
.badges { padding-block: 0 var(--section-y); }
.badges__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); max-width: 900px; margin-inline: auto; }
.badge {
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.badge h3 { color: var(--blue); font: 400 var(--fs-h3)/1.3 var(--font-serif); }
.badge p { margin-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.7; color: var(--text-soft); }
.badge__line { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text); }
.badge__line::before {
  content: "";
  width: 15px; height: 15px;
  flex: none;
  background: var(--gold);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.badge__line--phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.badge__line--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3z M3 5l9 7 9-7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.badge__line:hover { color: var(--gold-dark); }

@media (max-width: 680px) {
  .jur__tabs { flex-direction: column; border-radius: var(--radius); }
  .jur__tab { border-radius: var(--radius); }
  .badges__grid { grid-template-columns: 1fr; }
}

/* ---------- Team cards: initials fallback + clickable cards ---------- */
.member--initials .member__photo { background: linear-gradient(160deg, var(--blue), var(--blue-dark)); }
.member__initials {
  font: 400 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-serif);
  color: #d5b483;
  letter-spacing: .04em;
}
.member--linked {
  padding: 0;
  border: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  appearance: none;
}
.member--linked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 76, 117, 0);
  transition: background-color .25s var(--ease);
}
.member--linked:hover::after { background: rgba(15, 76, 117, .12); }
.member--linked:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.people-grid .member { margin: 0; }
.team .group-title { margin-top: var(--s-7); }
.team .group-title:first-of-type { margin-top: 0; }

/* ---------- Bio popup ---------- */
.bio {
  width: min(880px, calc(100vw - 2rem));
  max-height: min(88vh, 780px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  overflow: auto;
  box-shadow: 0 30px 80px rgba(10, 30, 45, .35);
}
.bio::backdrop { background: rgba(10, 26, 38, .62); backdrop-filter: blur(2px); }
.bio__close {
  position: absolute;
  inset-block-start: var(--s-3);
  inset-inline-end: var(--s-3);
  z-index: 2;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.bio__close:hover { background: var(--blue); color: var(--white); }
.bio__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.bio__media { position: relative; background: var(--beige); overflow: hidden; }
.bio__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: center top; }
.bio__media .member__initials {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  min-height: 340px;
  background: linear-gradient(160deg, var(--blue), var(--blue-dark));
}
.bio__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.bio__body h3 { color: var(--blue); font: 400 clamp(1.375rem, 1.1rem + .8vw, 1.75rem)/1.25 var(--font-serif); }
.bio__title { margin-top: var(--s-2); color: var(--gold-dark); font-size: var(--fs-body); font-weight: 600; }
.bio dl { display: grid; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.bio dt {
  color: var(--blue);
  font-size: var(--fs-tag);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bio dd { margin-top: var(--s-2); font-size: var(--fs-sm); line-height: 1.75; color: var(--text-soft); }
[dir="rtl"] .bio dt { letter-spacing: 0; text-transform: none; }
body.bio-open { overflow: hidden; }

@media (max-width: 760px) {
  .bio__grid { grid-template-columns: 1fr; }
  .bio__media img, .bio__media .member__initials { min-height: 260px; max-height: 320px; }
}

/* ---------- Bullet lists inside cards (further practices) ---------- */
.card-list { margin-top: var(--s-4); }
.card-list li { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-soft); }
.card-list li::before { color: var(--gold); }
.further .service-card { min-height: 0; }
.further .service-card h3 { margin-top: var(--s-4); }

/* ---------- Special focus panel (TIC) ---------- */
.focus { background: var(--beige); }
.focus__panel { max-width: 940px; margin-inline: auto; }
.focus__lead { margin-top: var(--s-3); font-size: var(--fs-lead); line-height: 1.7; color: var(--text-soft); }
.focus__panel .panel__cols { align-items: start; }
.focus__panel .jur-chips { margin-top: var(--s-4); }

/* ---------- Core values ---------- */
.values .reasons { gap: var(--s-4); }
.values .reason {
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
}

/* ---------- Regional presence ---------- */
.presence { background: var(--beige); }
.presence .badge { border-top-color: var(--blue); }
.presence__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  max-width: 900px;
  margin: var(--s-6) auto 0;
}
.presence__label {
  margin-bottom: var(--s-3);
  color: var(--blue);
  font: 700 var(--fs-tag)/1.3 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.presence .jur-chips li { background: var(--white); color: var(--text); }
.presence__note {
  max-width: 900px;
  margin: var(--s-5) auto 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-soft);
  text-align: center;
}
[dir="rtl"] .presence__label { letter-spacing: 0; text-transform: none; }

@media (max-width: 760px) {
  .presence__lists { grid-template-columns: 1fr; }
}

/* ---------- Practice selector: switching animation ---------- */
:root { --panel-slide: 18px; }
[dir="rtl"] { --panel-slide: -18px; }

.panel.is-entering { animation: panelIn .38s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateX(var(--panel-slide)); }
  to   { opacity: 1; transform: none; }
}

/* the contents arrive just behind the panel, one after another */
.panel.is-entering .panel__eyebrow,
.panel.is-entering .panel__title,
.panel.is-entering .panel__cols > div > h3,
.panel.is-entering .panel__cta,
.panel.is-entering .panel__list li,
.panel.is-entering .panel__chips li {
  animation: panelItemIn .34s var(--ease) both;
}
.panel.is-entering .panel__eyebrow { animation-delay: .04s; }
.panel.is-entering .panel__title   { animation-delay: .08s; }
.panel.is-entering .panel__cols > div > h3 { animation-delay: .12s; }
.panel.is-entering .panel__list li:nth-child(1) { animation-delay: .15s; }
.panel.is-entering .panel__list li:nth-child(2) { animation-delay: .18s; }
.panel.is-entering .panel__list li:nth-child(3) { animation-delay: .21s; }
.panel.is-entering .panel__list li:nth-child(4) { animation-delay: .24s; }
.panel.is-entering .panel__list li:nth-child(5) { animation-delay: .27s; }
.panel.is-entering .panel__list li:nth-child(n+6) { animation-delay: .3s; }
.panel.is-entering .panel__chips li:nth-child(1) { animation-delay: .16s; }
.panel.is-entering .panel__chips li:nth-child(2) { animation-delay: .19s; }
.panel.is-entering .panel__chips li:nth-child(3) { animation-delay: .22s; }
.panel.is-entering .panel__chips li:nth-child(4) { animation-delay: .25s; }
.panel.is-entering .panel__chips li:nth-child(5) { animation-delay: .28s; }
.panel.is-entering .panel__chips li:nth-child(n+6) { animation-delay: .31s; }
.panel.is-entering .panel__cta { animation-delay: .34s; }

@keyframes panelItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* the tab that was chosen gives a small nudge */
.practice__btn { transform: translateX(0); }
.practice__btn[aria-selected="true"] { transform: translateX(calc(var(--panel-slide) * -.22)); }
.practice__btn .arrow { transition: transform .25s var(--ease), stroke .25s var(--ease), opacity .25s var(--ease); }
.practice__btn[aria-selected="true"] .arrow { transform: translateX(calc(var(--panel-slide) * -.3)); }
[dir="rtl"] .practice__btn[aria-selected="true"] .arrow { transform: scaleX(-1) translateX(calc(var(--panel-slide) * .3)); }

/* keep the panel area from jumping while the new panel fades in */
.practice__panels { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .panel.is-entering,
  .panel.is-entering * { animation: none !important; }
  .practice__btn[aria-selected="true"],
  .practice__btn[aria-selected="true"] .arrow { transform: none; }
}
