/* =========================================================
   مسار البينة للمحاماة والاستشارات القانونية
   Core Stylesheet
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --brown: #4b2e1f;
  --brown-light: #6e4a34;
  --brown-dark: #2f1e16;
  --gold: #d4a63a;
  --gold-hover: #f8da7b;
  --gold-light: #ffefb5;
  --gold-dark: #b78622;
  --gold-warm-white: #fff6d8;
  --gold-metallic: linear-gradient(
    135deg,
    #ffffff 0%,
    #fff6d8 8%,
    #ffefb5 18%,
    #f8da7b 35%,
    #d4a63a 55%,
    #b78622 75%,
    #ffefb5 90%,
    #ffffff 100%
  );
  --white: #ffffff;
  --card-bg: #f8f4ec;
  --beige: #f5efe6;
  --warm-beige: #e8ddcf;
  --ink: #2a211b;
  --ink-soft: #6e6155;

  --font-ar: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  --font-en: "Inter", sans-serif;

  --shadow-sm: 0 8px 28px -10px rgba(47, 30, 22, 0.14);
  --shadow-lg: 0 30px 72px -22px rgba(47, 30, 22, 0.28);
  --shadow-gold: 0 10px 30px -6px rgba(212, 166, 58, 0.5);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1200px;
  --header-h: 94px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--brown);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--brown);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--beige);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
  border: 2px solid var(--beige);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-alt {
  background: var(--beige);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
}

/* on the dark page-header banner, the light-background brown default above
   would be nearly invisible against the dark gradient — needs white instead */
.page-header .eyebrow {
  color: var(--white);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-metallic);
  background-size: 200% 200%;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 1.4vw + 1.5rem, 2.6rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.9;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(-4px);
}

.btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gold-metallic);
  background-size: 240% 240%;
  background-position: 30% 30%;
  color: var(--brown-dark);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(212, 166, 58, 0.3);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  background-size: 260% 260%;
  background-position: -160% -160%;
  animation: goldShine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes goldShine {
  0%, 35% { background-position: -160% -160%; }
  65%, 100% { background-position: 160% 160%; }
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--brown-dark);
  color: var(--white);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(-3px);
}

.btn-gold:hover::after {
  animation-duration: 1.3s;
}

.btn-beige {
  background: var(--beige);
  color: var(--brown-dark);
  box-shadow: var(--shadow-sm);
}

.btn-beige:hover,
.btn-beige:focus-visible {
  background: var(--white);
  color: var(--brown-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.btn-outline-light {
  border: 1px solid rgba(245, 239, 230, 0.4);
  color: var(--beige);
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold-hover);
  transform: translateY(-3px);
}

.btn-outline-dark {
  border: 1px solid rgba(75, 46, 31, 0.3);
  color: var(--brown);
  background: transparent;
}

.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-wide {
  padding-inline: 46px;
}

/* ---------- Page Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader__mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(212, 166, 58, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderPulse 1.6s ease-in-out infinite;
}

.page-loader__mark img {
  height: 36px;
  width: auto;
  display: block;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading,
body.nav-open {
  overflow: hidden;
}

/* ---------- Header (floating glass bar) ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 20px 24px 0;
  transition: padding 0.35s ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 10px 24px 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled .container {
  background: rgba(75, 46, 31, 0.62);
  border-color: rgba(212, 166, 58, 0.28);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark img {
  transition: filter 0.35s ease;
}

.brand:hover .brand__mark img {
  filter: drop-shadow(0 0 10px rgba(212, 166, 58, 0.65));
}

.brand__mark {
  display: flex;
  align-items: center;
  flex: none;
  height: 44px;
}

.brand__mark img {
  height: 100%;
  width: auto;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.brand__sub {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--gold-hover);
}

.main-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle svg.is-hidden {
  display: none;
}

.mobile-nav {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  bottom: 0;
  z-index: 99;
  background: rgba(47, 30, 22, 0.97);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2.5rem;
  gap: 0.3rem;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav a {
  padding: 14px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.mobile-nav a.is-active {
  color: var(--gold);
}

.mobile-nav .btn {
  margin-top: 1.2rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  color: var(--white);
  overflow: hidden;
  background-image: url("../images/hero.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(47, 26, 18, 0.42) 0%, rgba(43, 24, 16, 0.72) 55%, rgba(34, 19, 13, 0.88) 100%),
    linear-gradient(to top, rgba(24, 14, 9, 0.55) 0%, rgba(24, 14, 9, 0) 34%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 640px;
  margin-inline-end: auto;
  margin-inline-start: 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- Hero headline (single animated span, rebuilt from scratch) ---------- */
.hero-headline {
  margin-top: 1.2rem;
  font-size: clamp(2.4rem, 3vw + 1.2rem, 3.8rem);
  line-height: 1.28;
  max-width: 16ch;
  /* unlike every other (static) heading, this one has a child whose text
     content is mutated by JS every few seconds for as long as the page is
     open — text-wrap:balance re-evaluates on reflow, which is unnecessary
     risk here since the two lines are already hard-split by markup */
  text-wrap: initial;
}

/* each line is its own block box — the animated word physically cannot
   appear anywhere but the end of line 2, regardless of wrapping/balance */
.hero-headline__line {
  display: block;
}

.hero-headline__rotator {
  display: inline-block;
  color: var(--white);
  transition: opacity 0.35s ease;
  /* force its own stable, permanently-promoted GPU layer so its recurring
     opacity fade can never bleed a stray "ghost" of the new word into a
     sibling line during compositing. */
  isolation: isolate;
  will-change: opacity;
}

/* the hero heading's reveal-mask wraps JS-mutated, nested background-clip:text
   content (the rotator). Animating that mask's clip-path/transform (the wipe
   every other .reveal-text element uses) while it contains that nested
   content is what produced Chromium's stray duplicate of the first word
   onto line 1 during the initial page load (confirmed via screen recording,
   reproducing on both the live deploy and a local file open). Skip the
   clip-path/transform wipe for this one heading — keep only the opacity
   fade, which needs none of that and cannot trigger the same bug. */
.hero-headline.reveal-text .reveal-mask,
.hero-headline.reveal-text.in-view .reveal-mask {
  clip-path: none;
  transform: none;
}

.hero-headline__rotator.is-leaving {
  opacity: 0;
}

.hero-headline__rotator.is-entering {
  opacity: 0;
  transition: none;
}

.hero__lede {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.15rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.72);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* ---------- Decorative badge (about page story, etc.) ---------- */
.hero__badge {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brown-light), var(--brown) 70%);
  border: 1px solid rgba(212, 166, 58, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero__badge::before,
.hero__badge::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 166, 58, 0.2);
}

.hero__badge::before {
  inset: -24px;
}

.hero__badge::after {
  inset: -48px;
  border-color: rgba(212, 166, 58, 0.1);
}

.hero__badge svg {
  width: 130px;
  height: 130px;
  color: var(--gold);
}

/* ---------- Trust strip ---------- */
.trust {
  padding-block: 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--warm-beige);
}

.trust .container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.trust__label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex: none;
}

.trust__items {
  display: flex;
  align-items: center;
  gap: 1.4rem 2.6rem;
  flex-wrap: wrap;
  color: var(--brown);
  opacity: 0.55;
  flex: 1 1 auto;
  min-width: 0;
}

.trust__items span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.trust__items svg {
  width: 16px;
  height: 16px;
  color: var(--gold-dark);
  flex: none;
  padding: 7px;
  box-sizing: content-box;
  background: var(--card-bg);
  border-radius: 50%;
}

/* ---------- Stats section ---------- */
.stats {
  background: var(--brown);
  color: var(--white);
}

.stats .grid-4 {
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:first-child {
  border-inline-start: none;
}

.stat-card b {
  display: block;
  font-size: clamp(2.2rem, 2vw + 1.4rem, 3rem);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--warm-beige);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 166, 58, 0.5);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brown);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.card:hover .card__icon {
  background: var(--gold);
  color: var(--brown);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.85;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card:hover .card__link svg {
  transform: translateX(-4px);
}

/* ---------- Practice areas page: premium card treatment ---------- */
.practice-areas .grid {
  gap: 2.2rem;
}

.practice-areas .card {
  padding: 2.5rem 2.1rem;
  border: 1px solid rgba(212, 166, 58, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.practice-areas .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px -20px rgba(47, 30, 22, 0.22), 0 0 0 1px rgba(212, 166, 58, 0.55);
  border-color: var(--gold);
}

.practice-areas .card__icon {
  width: 60px;
  height: 60px;
  background: var(--gold-metallic);
  color: var(--brown-dark);
  box-shadow: 0 0 0 6px rgba(212, 166, 58, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.practice-areas .card:hover .card__icon {
  transform: scale(1.06);
  box-shadow: 0 0 0 8px rgba(212, 166, 58, 0.18);
  background: var(--gold-metallic);
  color: var(--brown-dark);
}

.practice-areas .card h3 {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.practice-areas .card > p {
  font-size: 0.97rem;
}

.practice-areas .profile-block {
  margin-top: 0.5rem;
}

.practice-areas .profile-block li {
  font-size: 0.88rem;
}

/* ---------- Practice areas: depth carousel ---------- */
.practice-carousel {
  position: relative;
  overflow: hidden;
  min-height: 880px;
  display: flex;
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.practice-carousel .section-head {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* real office photo, loaded directly — blurred for atmosphere, never replaced */
.practice-carousel::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-image: url("../images/مجالات الممارسة.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  filter: blur(9px);
  transform: scale(1.06);
}

/* soft warm light wash — the photo's natural sunlit tones stay visible, cards read clearly on top */
.practice-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(245, 239, 230, 0.85) 0%, rgba(232, 221, 207, 0.62) 45%, rgba(245, 239, 230, 0.88) 100%),
    radial-gradient(60% 50% at 50% 35%, rgba(231, 210, 154, 0.22), transparent 70%);
}

.practice-carousel .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.carousel {
  position: relative;
  padding-block: 0.5rem;
}

.carousel__track {
  position: relative;
  height: 500px;
  perspective: 1800px;
}

.carousel__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(460px, 82vw);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.6rem 2.2rem;
  background: linear-gradient(160deg, var(--card-bg) 0%, var(--warm-beige) 130%);
  border: 1px solid rgba(212, 166, 58, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  align-items: center;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, filter 0.4s ease-in-out, box-shadow 0.4s ease, border-color 0.4s ease;
}

.carousel__card.is-center {
  cursor: default;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, var(--card-bg) 0%, var(--warm-beige) 130%) padding-box,
    var(--gold-metallic) border-box;
  box-shadow: 0 30px 70px -20px rgba(47, 30, 22, 0.4), 0 0 0 1px rgba(212, 166, 58, 0.2);
}

.carousel__card:hover {
  box-shadow: 0 30px 70px -20px rgba(47, 30, 22, 0.4), 0 0 0 1px rgba(212, 166, 58, 0.35);
  border-color: var(--gold);
}

/* book-page fold: hinge at the inner (center-facing) edge, shadow deepens toward the fold */
.carousel__card--left {
  transform-origin: 100% 50%;
}

.carousel__card--right {
  transform-origin: 0% 50%;
}

.carousel__card--left::after,
.carousel__card--right::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.carousel__card--left::after {
  background: linear-gradient(to left, rgba(47, 30, 22, 0.22), transparent 45%);
}

.carousel__card--right::after {
  background: linear-gradient(to right, rgba(47, 30, 22, 0.22), transparent 45%);
}

.carousel__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--warm-beige), var(--beige));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.carousel__divider {
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-block: -0.4rem 0;
}

.carousel__icon svg {
  width: 30px;
  height: 30px;
}

.carousel__card h3 {
  font-size: 1.2rem;
}

.carousel__card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.85;
}

.carousel__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
  transition: color 0.2s ease;
}

.carousel__link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.carousel__card:hover .carousel__link {
  color: var(--gold-dark);
}

.carousel__card:hover .carousel__link svg {
  transform: translateX(-4px);
}

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm-beige);
  transition: all 0.3s ease;
}

.carousel__dot.is-active {
  background: var(--gold-metallic);
  background-size: 200% 200%;
  width: 26px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__card {
    transition: opacity 0.3s ease !important;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* fade-left: enters from the outer edge, settles into place */
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[dir="rtl"] .reveal-left {
  transform: translateX(36px);
}

.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* fade-right: mirror of fade-left */
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[dir="rtl"] .reveal-right {
  transform: translateX(-36px);
}

.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* zoom-in: settles from a slightly smaller scale */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-zoom.in-view {
  opacity: 1;
  transform: scale(1);
}

/*
 * text-reveal / image-reveal: a masked wipe.
 * IMPORTANT: the observed element (.reveal-text / .reveal-image) must NEVER
 * clip its own geometry to zero — IntersectionObserver measures the element's
 * post-clip visible area, so a self-clipping element can never be seen as
 * "intersecting" and would stay hidden forever. Instead the outer element is
 * left geometrically untouched (a plain observer target) and the clip-path
 * animation runs on an inner .reveal-mask child instead.
 */
.reveal-mask {
  display: block;
  opacity: 0;
}

/* h1-h4 paint their color directly; when the heading's actual text lives
   inside a nested .reveal-mask (reveal-on-scroll wrapper) the ancestor has
   no text of its own to inherit to, so the color must repaint here. */
h1 .reveal-mask,
h2 .reveal-mask,
h3 .reveal-mask,
h4 .reveal-mask {
  color: var(--brown);
}

/* headings that sit on a dark brown background need white, not the
   light-background brown default above — covers both plain headings and
   ones whose text lives inside a nested .reveal-mask wrapper. */
.hero-headline,
.hero-headline .reveal-mask,
.page-header h1,
.page-header h1 .reveal-mask,
.final-cta h2 {
  color: var(--white);
}

.reveal-text .reveal-mask {
  clip-path: inset(0 0 100% 0);
  transform: translateY(14px);
  transition: opacity 0.6s ease, clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  /* keeps this on a stable GPU layer for the duration of the wipe-in —
     without it, the nested background-clip:text content inside can flash a
     stray duplicate of itself for a frame while clip-path is mid-transition */
  will-change: clip-path, transform, opacity;
}

.reveal-text.in-view .reveal-mask {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

/* image-reveal: a wipe from the inline-start edge, for photos/illustrations */
.reveal-image .reveal-mask {
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.5s ease, clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[dir="rtl"] .reveal-image .reveal-mask {
  clip-path: inset(0 0 0 100%);
}

.reveal-image.in-view .reveal-mask {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.reveal-delay-1 { transition-delay: 0.08s; --reveal-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; --reveal-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; --reveal-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; --reveal-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; --reveal-delay: 0.4s; }

/* ---------- Hero (simplified variant): a touch more breathing room ---------- */
.hero--simple .hero__lede {
  margin-top: 1.7rem;
}

.hero--simple .hero__actions {
  margin-top: 2.6rem;
}

/* ---------- Stats (horizontal premium bar) ---------- */
.stats-bar {
  padding-block: clamp(3rem, 5vw, 4.2rem);
  border-top: 1px solid rgba(212, 166, 58, 0.35);
  border-bottom: 1px solid rgba(212, 166, 58, 0.35);
}

.stats-bar__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding-inline: clamp(0.9rem, 2.4vw, 2rem);
  text-align: center;
  border-inline-start: 1px solid rgba(212, 166, 58, 0.3);
  transition: transform 0.25s ease;
}

.stats-bar__item:first-child {
  border-inline-start: none;
}

.stats-bar__item:hover {
  transform: translateY(-4px);
}

.stats-bar__item:hover .stats-bar__icon {
  color: var(--brown-light);
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(75, 46, 31, 0.5), 0 0 18px rgba(75, 46, 31, 0.35);
}

.stats-bar__item:hover .stats-bar__number {
  transform: scale(1.06);
}

.stats-bar__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.stats-bar__icon svg {
  width: 24px;
  height: 24px;
}

.stats-bar__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown);
}

.stats-bar__number {
  display: inline-block;
  font-size: clamp(1.65rem, 1.6vw + 1.1rem, 2.15rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  color: var(--brown);
  transition: transform 0.25s ease;
}

.stats-bar__number small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft);
  background: none;
}

/* ---------- Free consultation promo ---------- */
.consult-promo__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.consult-promo__content h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 1.4vw + 1.4rem, 2.4rem);
}

.consult-promo__content > p {
  margin-top: 1.2rem;
  max-width: 56ch;
  color: var(--ink-soft);
  line-height: 1.9;
}

.consult-promo__benefits {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.consult-promo__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--brown);
}

.consult-promo__benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 166, 58, 0.12);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.consult-promo__benefit-icon svg {
  width: 16px;
  height: 16px;
}

.consult-promo__actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.consult-promo__actions--single {
  justify-content: center;
}

.consult-promo__actions .btn svg {
  width: 18px;
  height: 18px;
}

.consult-promo__visual {
  display: flex;
  justify-content: center;
}

.consult-promo__photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 166, 58, 0.35);
  box-shadow: var(--shadow-lg);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--warm-beige);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  font-weight: 600;
  color: var(--brown);
  text-align: start;
}

.faq-item__question svg {
  width: 18px;
  height: 18px;
  color: var(--gold-dark);
  flex: none;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item__answer-inner {
  padding: 0 1.6rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  background: radial-gradient(120% 160% at 20% 0%, var(--brown-light) 0%, var(--brown) 60%, var(--brown-dark) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.final-cta__ring {
  position: absolute;
  inset-inline-end: -10rem;
  top: -6rem;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 166, 58, 0.14);
}

.final-cta h2 {
  font-size: clamp(1.9rem, 2vw + 1.3rem, 2.7rem);
  max-width: 20ch;
  margin-inline: auto;
}

.final-cta p {
  margin-top: 1rem;
  max-width: 50ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.7);
}

.final-cta .btn {
  margin-top: 2.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255, 255, 255, 0.65);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand__mark {
  height: 56px;
  margin-bottom: 1.2rem;
}

.footer-about p {
  max-width: 340px;
  font-size: 0.9rem;
  line-height: 1.9;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold-hover);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.footer-col a {
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-hover);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
  margin-top: 3px;
  flex: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.8rem;
  font-size: 0.78rem;
}

.footer-bottom span:last-child {
  font-family: var(--font-en);
  letter-spacing: 0.08em;
}

/* ---------- Floating actions ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 64px;
  inset-inline-start: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: floatIn 0.5s ease 1.1s both;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: -1;
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes floatIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--gold);
  border: 1px solid rgba(212, 166, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Quick contact popup ---------- */
body.popup-open {
  overflow: hidden;
}

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}

.contact-popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

.contact-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 14, 9, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.contact-popup.is-open .contact-popup__backdrop {
  opacity: 1;
}

.contact-popup__sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--beige);
  border: 1px solid rgba(212, 166, 58, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-popup.is-open .contact-popup__sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-popup__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  border: 1px solid var(--warm-beige);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-popup__close:hover {
  color: var(--gold-dark);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.contact-popup__close svg {
  width: 16px;
  height: 16px;
}

.contact-popup__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.contact-popup__mark svg {
  width: 24px;
  height: 24px;
}

.contact-popup__sheet h3 {
  margin-top: 1.2rem;
  font-size: 1.3rem;
}

.contact-popup__sheet > p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.contact-popup__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-popup__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--warm-beige);
  text-align: start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-popup__option:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.contact-popup__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212, 166, 58, 0.14);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-popup__icon svg {
  width: 20px;
  height: 20px;
}

.contact-popup__icon--whatsapp {
  background: rgba(37, 211, 102, 0.14);
  color: #25d366;
}

.contact-popup__option b {
  display: block;
  color: var(--brown);
  font-size: 0.95rem;
}

.contact-popup__option span span {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  direction: ltr;
  text-align: right;
}

@media (max-width: 560px) {
  .contact-popup {
    align-items: flex-end;
    padding: 0;
  }

  .contact-popup__sheet {
    max-width: none;
    border-radius: 28px 28px 0 0;
    padding: 1.8rem 1.5rem 2.4rem;
    transform: translateY(100%);
  }

  .contact-popup.is-open .contact-popup__sheet {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-popup__sheet {
    transform: none !important;
  }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  padding-top: calc(var(--header-h) + 4.5rem);
  padding-bottom: 4rem;
  background: radial-gradient(120% 160% at 85% -20%, var(--brown-light) 0%, var(--brown) 60%, var(--brown-dark) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-header__ring {
  position: absolute;
  inset-inline-start: -6rem;
  bottom: -8rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 166, 58, 0.14);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
}

.breadcrumb a:hover {
  color: var(--gold-hover);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

/* ---------- Utility text tones ---------- */
.text-gold { color: var(--gold-dark); }
.text-soft { color: var(--ink-soft); }
.bg-alt { background: var(--beige); }

/* ---------- Story (About) ---------- */
.about-story__grid {
  align-items: center;
  gap: 3.5rem;
}

.about-story h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 1.4vw + 1.4rem, 2.4rem);
}

.about-story p {
  margin-top: 1.3rem;
  color: var(--ink-soft);
  line-height: 1.95;
}

.about-story__visual {
  display: flex;
  justify-content: center;
}

.about-story__badge {
  width: 280px;
  height: 280px;
}

.about-story__badge img {
  width: 175px;
  height: auto;
}

/* ---------- Vision & Mission (About) ---------- */
.vm-grid {
  gap: 2rem;
}

.vm-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(2.6rem, 4vw, 3.4rem) clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75) 0%, var(--card-bg) 60%, var(--beige) 100%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(212, 166, 58, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.vm-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: rgba(212, 166, 58, 0.6);
}

/* subtle Islamic-geometric motif: an eight-point star (two overlapping
   squares) inside a circle, tucked into the card's corner at low opacity */
.vm-card__pattern {
  position: absolute;
  inset-inline-end: -50px;
  top: -50px;
  width: 230px;
  height: 230px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23D4A63A' stroke-width='1.5'%3E%3Crect x='40' y='40' width='120' height='120'/%3E%3Crect x='40' y='40' width='120' height='120' transform='rotate(45 100 100)'/%3E%3Ccircle cx='100' cy='100' r='85'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  opacity: 0.14;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.vm-card:hover .vm-card__pattern {
  transform: rotate(20deg) scale(1.06);
  opacity: 0.22;
}

.vm-card__icon {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold-metallic);
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(212, 166, 58, 0.14);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vm-card:hover .vm-card__icon {
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 0 0 9px rgba(212, 166, 58, 0.2);
}

.vm-card__icon svg {
  width: 34px;
  height: 34px;
}

.vm-card__title {
  position: relative;
  z-index: 1;
  font-size: 1.55rem;
}

.vm-card__divider {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-metallic);
}

.vm-card__text {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.95;
}

/* ---------- Values ---------- */
.value-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.6rem 1.8rem;
  gap: 0.85rem;
}

.value-card .card__icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  background: var(--gold-metallic);
  color: var(--brown-dark);
  box-shadow: 0 0 0 6px rgba(212, 166, 58, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card .card__icon svg {
  width: 28px;
  height: 28px;
}

.value-card:hover .card__icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 0 9px rgba(212, 166, 58, 0.2);
  background: var(--gold-metallic);
  color: var(--brown-dark);
}

.value-card h3 {
  font-size: 1.2rem;
}

.value-card__divider {
  width: 34px;
  height: 3px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--gold-metallic);
}

/* ---------- Portrait initials (lawyer avatars) ---------- */
.portrait {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, var(--brown-light) 0%, var(--brown) 60%, var(--brown-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portrait span {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--gold);
}

.portrait--sm { width: 64px; height: 64px; }
.portrait--sm span { font-size: 1.1rem; }

.portrait--md { width: 96px; height: 96px; }
.portrait--md span { font-size: 1.5rem; }

/* ---------- Lawyer grid card ---------- */
.lawyer-card {
  text-align: center;
  align-items: center;
}

.lawyer-card .portrait {
  margin-inline: auto;
  transition: box-shadow 0.35s ease;
}

.lawyer-card:hover .portrait {
  box-shadow: 0 0 0 6px rgba(212, 166, 58, 0.16);
}

.lawyer-card__role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.profile-block {
  margin-top: 2.6rem;
}

.profile-block li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.profile-block li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Case studies ---------- */
.case-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.case-card__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brown);
  border-radius: var(--radius-sm);
  padding: 1.6rem 2.2rem;
  text-align: center;
  flex: none;
}

.case-card__metric svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.case-card__metric b {
  font-family: var(--font-en);
  font-size: 1.8rem;
  color: var(--white);
}

.case-card__metric span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 11ch;
  line-height: 1.4;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.case-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--warm-beige);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.case-detail-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-en);
  font-weight: 600;
}

.case-detail-card h4 svg {
  width: 16px;
  height: 16px;
}

.case-detail-card p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.85;
}

/* ---------- Articles ---------- */
.articles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 360px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  inset-inline-start: 18px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
}

.search-box input {
  width: 100%;
  padding: 13px 46px;
  border-radius: 999px;
  border: 1px solid var(--warm-beige);
  background: var(--white);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 166, 58, 0.15);
}

.category-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--warm-beige);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(212, 166, 58, 0.12);
  border: 1px solid rgba(212, 166, 58, 0.3);
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.article-card__meta svg {
  width: 14px;
  height: 14px;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--warm-beige);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.article-card__footer .card__link {
  font-size: 0.86rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
  display: none;
}

.no-results.is-visible {
  display: block;
}

/* ---------- Article detail ---------- */
.article-detail {
  max-width: 760px;
  margin-inline: auto;
}

.article-detail__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 1.2rem;
}

.article-detail__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-detail__meta svg {
  width: 15px;
  height: 15px;
}

.article-body p {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 2;
}

.article-body p:first-child {
  margin-top: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-size: 1.3rem;
}

.contact-info-list {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-list .icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212, 166, 58, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-info-list .icon-chip svg {
  width: 19px;
  height: 19px;
}

.contact-info-list b {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 3px;
}

.contact-info-list a,
.contact-info-list span.value {
  font-weight: 600;
  color: var(--white);
}

.contact-info-card .btn {
  margin-top: 2rem;
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--warm-beige);
  box-shadow: var(--shadow-sm);
  /* themed fallback so a slow/blocked map load never shows as a stark
     white void against the warm palette */
  background: var(--warm-beige);
}

.contact-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--warm-beige);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.confidential-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--beige);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.confidential-note svg {
  width: 20px;
  height: 20px;
  color: var(--gold-dark);
  flex: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}

.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warm-beige);
  background: var(--beige);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212, 166, 58, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field-error {
  font-size: 0.78rem;
  color: #b3432c;
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3432c;
}

.field.has-error .field-error {
  display: block;
}

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  background: rgba(16, 69, 63, 0.08);
  border: 1px solid rgba(16, 69, 63, 0.25);
  color: #10453f;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 22px;
  height: 22px;
  flex: none;
}

