/* =========================================================
   مكتب المحامية مهاء السلماني للمحاماة والتوثيق والاستشارات القانونية
   Design system + components
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — deep ink-green + bronze-gold, drawn from the office logo */
  --ink:          #0e150f;
  --ink-soft:     #131c14;
  --forest:       #17231a;
  --forest-2:     #1e2f23;

  /* Gold is an accent, never a surface. Two tones so it stays legible
     on both the dark and the paper halves of the palette. */
  --gold:         #c0a05d;   /* on dark */
  --gold-soft:    #dcc08b;
  --gold-ink:     #7d6337;   /* on paper — AA on both paper tones */
  --gold-dim:     rgba(192, 160, 93, .26);
  --gold-line:    rgba(192, 160, 93, .42);

  --platinum:     #dfe2da;
  --platinum-dim: rgba(223, 226, 218, .64);

  --paper:        #faf8f3;
  --paper-2:      #f1ede4;

  --text:         #141913;
  --text-2:       #3b423a;
  --muted:        #626960;
  --muted-dark:   rgba(223, 226, 218, .56);

  --line:         #e4dfd2;
  --line-strong:  #cec7b5;
  --line-dark:    rgba(223, 226, 218, .12);
  --line-dark-2:  rgba(223, 226, 218, .2);

  --wa:           #25d366;
  --wa-dark:      #1da851;

  /* Typography */
  --font-display: "Amiri", "Times New Roman", serif;
  --font-sans:    "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.05rem, 1.1rem + 3.1vw, 3.85rem);
  --fs-h1:      clamp(1.98rem, 1.25rem + 2.9vw, 3.35rem);
  --fs-h2:      clamp(1.68rem, 1.18rem + 2vw, 2.65rem);
  --fs-h3:      clamp(1.12rem, .98rem + .6vw, 1.4rem);
  --fs-lead:    clamp(1.04rem, .96rem + .48vw, 1.28rem);
  --fs-body:    clamp(.97rem, .93rem + .2vw, 1.05rem);
  --fs-sm:      .875rem;
  --fs-xs:      .76rem;

  /* Measure — Arabic reads best on a short line */
  --measure:       64ch;
  --measure-lead:  52ch;
  --measure-title: 24ch;

  /* Space */
  --space-section: clamp(5rem, 2.9rem + 7vw, 10rem);
  --space-block:   clamp(2.75rem, 1.9rem + 3.4vw, 5rem);
  --gutter:        clamp(1.15rem, .7rem + 1.8vw, 2.25rem);

  /* Layout */
  --container: 1180px;
  --container-wide: 1360px;
  --header-h: 84px;

  /* Misc */
  --radius:    2px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, .84, .44, 1);
  --t-fast:    .2s var(--ease);
  --t:         .34s var(--ease);
  --t-slow:    .8s var(--ease-out);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

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

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

/* ---------- 3. Layout primitives ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container--wide { max-width: var(--container-wide); width: min(100% - (var(--gutter) * 2), var(--container-wide)); }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: var(--space-block); }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--platinum); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* Fine geometric brand pattern for dark surfaces */
.pattern-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/pattern.svg");
  background-size: 92px 92px;
  opacity: var(--pattern-opacity, .24);
  pointer-events: none;
}
.pattern-overlay > * { position: relative; z-index: 1; }

/* ---------- 4. Typography helpers ---------- */
.title-lg {
  font-family: var(--font-display);
  line-height: 1.34;
  max-width: var(--measure-title);
  text-wrap: balance;
}

/* Section label. Gold shifts tone with the surface so it stays legible. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: .55;
}
.section--dark .eyebrow,
.hero .eyebrow,
.banner .eyebrow,
.cta-band .eyebrow,
.masthead .eyebrow { color: var(--gold); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.92;
  max-width: var(--measure-lead);
  color: var(--text-2);
}
.section--dark .lead { color: var(--platinum-dim); }

.muted { color: var(--muted); }
.section--dark .muted { color: var(--muted-dark); }

.section-head { max-width: var(--measure); margin-bottom: var(--space-block); }
.section-head p { margin-top: 1.25rem; max-width: var(--measure-lead); }

.numeral {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-ink);
}
.section--dark .numeral,
.banner .numeral,
.hero .numeral,
.mobile-nav .numeral { color: var(--gold); }

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 56px;
  padding: .9rem 2.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn svg { width: 21px; height: 21px; flex: none; }

.btn--gold { background: var(--gold); color: #0a0d07; }
.btn--gold:hover { background: var(--gold-soft); }

.btn--ink { background: var(--ink); color: var(--platinum); }
.btn--ink:hover { background: var(--forest); }

.btn--ghost { border-color: var(--text-2); border-width: 1.5px; color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--platinum); }

.btn--ghost-light { border-color: rgba(223, 226, 218, .55); border-width: 1.5px; color: #fff; background: rgba(223, 226, 218, .06); }
.btn--ghost-light:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }

/* Solid green stays on the header chip and the floating button, where the
   platform cue matters most. */
.btn--wa { background: var(--wa); color: #06300e; }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }

/* Quieter WhatsApp treatment for the hero, where a solid green block would
   undercut the composition. The icon keeps the platform recognisable. */
.btn--wa-line {
  border-color: rgba(37, 211, 102, .85);
  border-width: 1.5px;
  color: #fff;
  background: rgba(37, 211, 102, .1);
}
.btn--wa-line svg { color: var(--wa); }
.btn--wa-line:hover { background: var(--wa); border-color: var(--wa); color: #06300e; }
.btn--wa-line:hover svg { color: currentColor; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Text link with an underline that draws in from the reading edge */
.link-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .5rem;
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .01em;
  color: var(--text);
}
.link-more::after { content: "←"; color: var(--gold-ink); transition: transform var(--t); }
.link-more::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
}
.link-more:hover::after { transform: translateX(-4px); }
.link-more:hover { color: var(--gold-ink); }
.link-more:hover::before { background: var(--gold-ink); }

.section--dark .link-more,
.banner .link-more { color: #fff; }
.section--dark .link-more::after,
.banner .link-more::after { color: var(--gold); }
.section--dark .link-more::before,
.banner .link-more::before { background: var(--line-dark-2); }
.section--dark .link-more:hover,
.banner .link-more:hover { color: var(--gold); }
.section--dark .link-more:hover::before,
.banner .link-more:hover::before { background: var(--gold); }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 8, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.site-header.is-transparent { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled {
  background: rgba(10, 15, 8, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 12px 40px -30px rgba(0, 0, 0, .9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  transition: min-height var(--t);
}
.site-header.is-scrolled .header-inner { min-height: 70px; }

.brand { display: flex; align-items: center; gap: .8rem; flex: none; min-height: 44px; }
.brand img { width: 40px; height: auto; transition: width var(--t); }
.site-header.is-scrolled .brand img { width: 35px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.brand-tag {
  font-size: .625rem;
  letter-spacing: .13em;
  color: var(--gold);
  white-space: nowrap;
}

.main-nav ul { display: flex; align-items: center; gap: clamp(.6rem, .1rem + 1.4vw, 1.9rem); }
.main-nav a {
  position: relative;
  display: block;
  padding: .55rem .2rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--platinum-dim);
  transition: color var(--t-fast);
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: .2rem;
  bottom: .1rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t);
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: #fff; font-weight: 700; }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.header-actions .btn { min-height: 44px; padding: .5rem 1.1rem; font-size: .87rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  margin: 4.5px auto;
  background: var(--platinum);
  transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--t), visibility var(--t);
}
[dir="rtl"] .mobile-nav { transform: translateX(100%); }
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }

.mobile-nav ul { border-top: 1px solid var(--line-dark); }
.mobile-nav li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem .2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--platinum);
}
.mobile-nav li a[aria-current="page"] { color: var(--gold); }
.mobile-nav li a .numeral { font-size: .95rem; opacity: .55; }

.mobile-nav .drawer-foot { margin-top: auto; padding-top: 2rem; }
.mobile-nav .drawer-foot .btn { width: 100%; }
.mobile-nav .drawer-foot .btn + .btn { margin-top: .7rem; }
.drawer-meta { margin-top: 1.6rem; font-size: var(--fs-sm); line-height: 2.1; color: var(--muted-dark); }
.drawer-meta a, .drawer-meta span { display: block; }
.drawer-meta a[dir="ltr"] { text-align: end; }
.drawer-meta a:hover { color: var(--gold); }

body.nav-open { overflow: hidden; }

/* ---------- 7. Hero (Banner 1) ---------- */
.hero { --pattern-opacity: .15; }
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 940px);
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--platinum);
  overflow: hidden;
  isolation: isolate;
}

/* Two soft pools of light rather than a gradient wash: one warm behind the
   emblem, one cool behind the type. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 62% at 24% 46%, rgba(35, 54, 41, .85), transparent 70%),
    radial-gradient(60% 60% at 88% 8%, rgba(30, 47, 35, .5), transparent 68%),
    linear-gradient(to top, rgba(8, 12, 7, .96) 4%, rgba(8, 12, 7, .25) 58%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 1.5rem + 5vw, 6.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(2rem, .5rem + 4vw, 5.5rem);
}

/* The emblem is treated as a piece of art directed imagery: oversized,
   cropped by the viewport edge, never boxed. */
.hero-emblem {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.hero-emblem img {
  width: min(104%, 500px);
  max-width: none;
  opacity: .94;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
  animation: emblem-in 1.4s var(--ease-out) both;
}
/* A single hairline spine separating image from type */
.hero-emblem::before {
  content: "";
  position: absolute;
  inset-block: -8%;
  inset-inline-start: calc(-1 * clamp(1rem, .25rem + 2vw, 2.75rem));
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-line) 22%, var(--gold-line) 78%, transparent);
}

@keyframes emblem-in {
  from { opacity: 0; transform: scale(.965); }
  to   { opacity: .94; transform: none; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.28;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 .accent {
  display: block;
  margin-top: .85rem;
  font-family: var(--font-sans);
  font-size: .4em;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .02em;
  color: var(--gold-soft);
}
.hero p {
  max-width: 46ch;
  color: var(--platinum-dim);
  font-size: var(--fs-lead);
  line-height: 1.95;
}
.hero .btn-row { margin-top: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); }

/* Credentials rail — editorial metadata, not a dashboard */
.credential-strip {
  position: relative;
  border-top: 1px solid var(--line-dark);
  background: rgba(6, 9, 5, .55);
}
.credential-strip::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: clamp(90px, 16vw, 210px);
  height: 1px;
  background: var(--gold);
}
.credential-strip ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.credential-strip li {
  padding: clamp(1.3rem, 1rem + .9vw, 1.9rem) clamp(1.1rem, .5rem + 1.6vw, 2.4rem);
  border-inline-start: 1px solid var(--line-dark);
}
.credential-strip li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.credential-strip dt {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .09em;
  color: var(--muted-dark);
  margin-bottom: .5rem;
}
.credential-strip dd {
  margin: 0;
  font-size: clamp(1.18rem, 1.05rem + .5vw, 1.45rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 8. Page masthead (interior pages) ---------- */
.masthead {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem));
  padding-bottom: clamp(2.8rem, 2rem + 4vw, 5rem);
  background: var(--ink);
  color: var(--platinum);
  overflow: hidden;
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(75% 90% at 85% 0%, rgba(34, 52, 40, .7), transparent 60%);
  pointer-events: none;
}
.masthead > * { position: relative; z-index: 2; }
.masthead h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: #fff;
  max-width: 22ch;
  text-wrap: balance;
}
.masthead p { margin-top: 1.4rem; max-width: 62ch; color: var(--platinum-dim); font-size: var(--fs-lead); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--muted-dark);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: .55rem; opacity: .45; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb [aria-current="page"] { color: var(--gold); }

/* Masthead variant with the office mark alongside */
.masthead--split .masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.masthead-mark {
  padding: 2rem;
  border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(34, 52, 40, .55), rgba(10, 15, 8, .2));
}
.masthead-mark img { width: 100%; opacity: .95; }

/* Masthead variant with a factual summary rail beside the heading */
.masthead--rail .masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: end;
}
.masthead-rail {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--gold);
  background: rgba(10, 15, 8, .45);
}
.masthead-rail dl { display: grid; gap: 1.15rem; margin: 0; }
.masthead-rail dt { font-size: var(--fs-xs); letter-spacing: .07em; color: var(--muted-dark); }
.masthead-rail dd { margin: .2rem 0 0; font-size: 1.1rem; font-weight: 700; color: var(--gold); }

/* ---------- 9. Editorial intro (about teaser) ---------- */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, .8rem + 4.5vw, 6rem);
  align-items: start;
}
.editorial-aside h2 { font-family: var(--font-display); }
.editorial-body p {
  font-size: var(--fs-lead);
  line-height: 2.05;
  max-width: var(--measure);
  color: var(--text-2);
}
.editorial-body .btn-row { margin-top: 2.4rem; }

/* Location map — a framed, brand-toned plate rather than a bare embedded
   iframe. Google's own colours are pulled toward the ink/gold palette with
   a duotone filter; a branded label replaces reliance on Google's popup. */
.map-plate {
  position: relative;
  margin-top: var(--space-block);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  aspect-ratio: 21 / 8;
}
.map-plate::before,
.map-plate::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 22px; height: 22px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.map-plate::before { top: -1px; inset-inline-start: -1px; border-inline-end: 0; border-bottom: 0; }
.map-plate::after { bottom: -1px; inset-inline-end: -1px; border-inline-start: 0; border-top: 0; }

.map-plate iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  border: 0;
}

/* Branded label — stands in for Google's info popup, in the office's own
   type and colour rather than a generic white card. */
.map-label {
  position: absolute;
  z-index: 4;
  inset-inline-start: clamp(1rem, .6rem + 1.4vw, 1.75rem);
  bottom: clamp(1rem, .6rem + 1.4vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.3rem;
  background: rgba(8, 12, 7, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark-2);
  border-inline-start: 2px solid var(--gold);
}
.map-label .map-label-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  flex: none;
  color: var(--gold);
}
.map-label .map-label-icon svg { width: 18px; height: 18px; }
.map-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.map-label span {
  display: block;
  margin-top: .2rem;
  font-size: .82rem;
  color: var(--muted-dark);
}

/* A two-column split where the left rail holds only a label and a heading */
.split {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, .8rem + 4.5vw, 6rem);
  align-items: start;
}
.split-aside { position: sticky; top: calc(var(--header-h) + 3rem); }
.split-aside h2 { font-family: var(--font-display); }
.split-aside p { margin-top: 1.25rem; max-width: 34ch; }

/* ---------- 10. Pillar / feature rows (no cards) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pillar {
  position: relative;
  padding: clamp(2rem, 1.2rem + 2vw, 3.1rem) clamp(1.25rem, .4rem + 2vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.pillar:nth-child(3n + 1) { border-inline-start: 0; padding-inline-start: 0; }
.pillar:nth-child(3n) { padding-inline-end: 0; }
/* the gold rule draws in from the reading edge on hover */
.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--gold-ink);
  transition: width var(--t-slow);
}
.pillar:hover::before { width: 100%; }
.pillar .numeral {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.6rem;
  font-size: 1.05rem;
  letter-spacing: .1em;
}
.pillar .numeral::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 46px;
  background: currentColor;
  opacity: .45;
}
.pillar h3 { margin-bottom: .85rem; font-family: var(--font-display); font-weight: 700; }
.pillar p { color: var(--muted); font-size: .98rem; max-width: 34ch; }
.pillar .link-more { margin-top: 1.75rem; }

/* Editorial feature list — replaces the old boxed 2x2 grid */
.feature-list { border-top: 1px solid var(--line); }
.feature-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: clamp(1.1rem, .7rem + 1.4vw, 2rem);
  align-items: start;
  padding-block: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.feature-row .feature-icon { color: var(--gold-ink); padding-top: .1rem; }
.feature-row .feature-icon svg { width: 44px; height: 44px; }
.feature-row h3 { margin-bottom: .6rem; font-size: 1.14rem; }
.feature-row p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 56ch; }

/* ---------- 11. Banners ---------- */
.banner {
  position: relative;
  background: var(--ink);
  color: var(--platinum);
  overflow: hidden;
  isolation: isolate;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(56% 100% at 18% 52%, rgba(30, 47, 35, .9), transparent 70%);
  pointer-events: none;
}
.banner h2 { font-family: var(--font-display); color: #fff; max-width: var(--measure-title); }
.banner p { margin-top: 1.35rem; max-width: 50ch; color: var(--platinum-dim); font-size: var(--fs-lead); line-height: 1.95; }

.banner--split .banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 1rem + 4vw, 5.5rem);
  align-items: center;
}

/* One licence, stated once, at scale — instead of repeating the hero rail */
.banner-seal {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(2rem, 1.2rem + 2.5vw, 3.25rem) clamp(1.25rem, .6rem + 2vw, 2.5rem);
  border: 1px solid var(--line-dark);
}
.banner-seal::before,
.banner-seal::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold-line);
}
.banner-seal::before { top: -1px; inset-inline-start: -1px; border-inline-end: 0; border-bottom: 0; }
.banner-seal::after { bottom: -1px; inset-inline-end: -1px; border-inline-start: 0; border-top: 0; }
.banner-seal img { width: 84px; opacity: .85; margin-bottom: 1.5rem; }
.banner-seal dt {
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  font-weight: 500;
  color: var(--muted-dark);
  margin-bottom: .6rem;
}
.banner-seal dd {
  margin: 0;
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.banner-seal .seal-note {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--muted-dark);
  max-width: 28ch;
}

/* Banner 5 — pre-footer consultation band */
.cta-band {
  position: relative;
  padding-block: clamp(4rem, 2.6rem + 5vw, 8rem);
  background: var(--forest);
  color: var(--platinum);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(255deg, rgba(8, 12, 7, .82), transparent 62%);
  pointer-events: none;
}
.cta-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  align-items: end;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: #fff;
  max-width: var(--measure-title);
}
.cta-band p { margin-top: 1.2rem; max-width: 48ch; color: var(--platinum-dim); font-size: var(--fs-lead); }

/* ---------- 12. Services list (editorial rows) ---------- */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.services-index { position: sticky; top: calc(var(--header-h) + 2rem); }
.services-index h2 { font-size: 1.05rem; margin-bottom: 1.25rem; }
.services-index ol { border-top: 1px solid var(--line); }
.services-index li { border-bottom: 1px solid var(--line); }
.services-index a {
  display: flex;
  gap: .8rem;
  padding: .7rem 0;
  font-size: .9rem;
  color: var(--muted);
  transition: color var(--t-fast), padding-inline-start var(--t-fast);
}
.services-index a:hover { color: var(--text); padding-inline-start: .35rem; }
.services-index a .numeral { font-size: .85rem; opacity: .7; }

.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: clamp(1rem, .5rem + 1.5vw, 2rem);
  align-items: start;
  padding-block: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  border-bottom: 1px solid var(--line);
  transition: background var(--t), padding-inline var(--t);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.service-row:hover { background: #fff; padding-inline: clamp(.5rem, .2rem + 1vw, 1.25rem); }
.service-row .numeral { padding-top: .1rem; }
.service-row h3 { margin-bottom: .55rem; }
.service-row p { margin: 0; color: var(--muted); font-size: .98rem; }
.service-row .service-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: center;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.service-row .service-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--platinum); }

/* ---------- 13. Specialties grid ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  background: var(--paper);
  transition: background var(--t);
}
.section--paper .spec { background: var(--paper-2); }
.spec:hover { background: #fff; }
.spec-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.spec-icon { color: var(--gold); }
.spec-icon svg { width: 32px; height: 32px; }
.spec .numeral { font-size: 1.05rem; opacity: .55; }
.spec h3 { font-size: 1.08rem; }
.spec p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Audience list */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.audience li {
  padding: clamp(1.5rem, 1.1rem + 1vw, 2.2rem) clamp(1rem, .6rem + 1vw, 1.8rem);
  border-bottom: 1px solid var(--line-dark);
  border-inline-start: 1px solid var(--line-dark);
}
.audience li:first-child { border-inline-start: 0; }
.audience h3 { font-size: 1.02rem; margin-bottom: .5rem; color: #fff; }
.audience p { margin: 0; font-size: .93rem; color: var(--muted-dark); }

/* ---------- 14. Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.team-member {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(1.1rem, .8rem + 1vw, 1.8rem);
  padding-top: 1.9rem;
  border-top: 2px solid var(--ink);
}
.member-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  border-radius: var(--radius);
}
.team-member h3 { font-size: 1.16rem; }
.member-role { display: block; margin: .35rem 0 1rem; font-size: .88rem; letter-spacing: .05em; color: var(--gold-ink); font-weight: 500; }
.team-member p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Credentials block */
.credentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.credential { padding: clamp(1.5rem, 1.1rem + 1vw, 2.2rem); background: var(--ink); }
.credential dt { font-size: var(--fs-sm); color: var(--muted-dark); margin-bottom: .55rem; }
.credential dd { margin: 0; font-size: 1.32rem; font-weight: 700; color: var(--gold); letter-spacing: .03em; }

/* ---------- 15. Trust: accreditation ---------- */

/* Accreditation — institutions that actually issued the office's licences */
.accreditation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.accredited {
  display: grid;
  gap: .55rem;
  padding: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem) clamp(1.25rem, .5rem + 2vw, 2.5rem);
  border-inline-start: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.accredited:first-child { border-inline-start: 0; padding-inline-start: 0; }
.accredited .ac-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  margin-bottom: 1.3rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold-ink);
}
.accredited .ac-seal svg { width: 40px; height: 40px; }
.accredited h3 { font-size: 1.1rem; font-family: var(--font-display); }
.accredited p { margin: 0; font-size: .95rem; color: var(--muted); max-width: 40ch; }
.accredited .ac-ref {
  margin-top: .85rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-ink);
}


/* ---------- 17. Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .9rem; font-weight: 500; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2367706a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 11px;
  padding-inline-start: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.field .error-msg { font-size: var(--fs-sm); color: #a3282b; min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a3282b; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.form-note { font-size: var(--fs-sm); color: var(--muted); }

.form-status {
  display: none;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--gold-dim);
  border-inline-start: 3px solid var(--gold);
  background: rgba(198, 166, 98, .08);
  font-size: .95rem;
}
.form-status.is-visible { display: block; }

.contact-panel {
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  background: var(--ink);
  color: var(--platinum);
}
.contact-panel h2 { color: #fff; font-size: 1.25rem; margin-bottom: 1.6rem; }
.contact-list { display: grid; gap: 1.35rem; }
.contact-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; align-items: start; }
.contact-item .ci-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line-dark-2); color: var(--gold); }
.contact-item svg { width: 22px; height: 22px; }
.contact-item dt { font-size: var(--fs-xs); letter-spacing: .07em; color: var(--muted-dark); margin-bottom: .2rem; }
.contact-item dd { margin: 0; font-size: 1rem; font-weight: 500; color: #fff; }
.contact-item dd a { display: inline-block; padding-block: .35rem; }
.contact-item dd a:hover { color: var(--gold); }
.contact-item dd[dir="ltr"] { direction: ltr; text-align: end; }

.hours { border-top: 1px solid var(--line-dark); margin-top: 2rem; padding-top: 1.6rem; }
.hours h3 { font-size: 1.05rem; color: #fff; margin-bottom: 1rem; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-dark); font-size: .93rem; }
.hours-row:last-child { border-bottom: 0; }
.hours-row span:first-child { color: var(--muted-dark); }
.hours-row span:last-child { color: #fff; font-variant-numeric: tabular-nums; }
.hours-closed { margin-top: 1rem; font-size: var(--fs-sm); color: var(--muted-dark); }

.map-frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 21 / 9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.32) contrast(1.02); }

.social-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.15rem;
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--platinum);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.social-link svg { width: 21px; height: 21px; }
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.social-link--wa:hover { border-color: var(--wa); color: var(--wa); }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--ink); color: var(--platinum); padding-top: var(--space-block); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 1rem + 3vw, 3.5rem);
  padding-bottom: var(--space-block);
}
.footer-brand img { width: 190px; margin-bottom: 1.4rem; }
.footer-brand p { font-size: .92rem; line-height: 1.95; color: var(--muted-dark); }
.footer-col h2 { font-size: .95rem; color: #fff; margin-bottom: 1.2rem; letter-spacing: .03em; }
.footer-col li + li { margin-top: .6rem; }
.footer-col a, .footer-col p { font-size: .92rem; color: var(--muted-dark); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--gold); }
.footer-col dd { margin: 0; }

.footer-licences {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--muted-dark);
}
.footer-licences strong { color: var(--gold); font-weight: 700; letter-spacing: .03em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--muted-dark);
}
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius);
  color: var(--platinum);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social a.is-wa:hover { border-color: var(--wa); color: var(--wa); }
.footer-social svg { width: 21px; height: 21px; }

/* ---------- 19. Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  z-index: 90;
  inset-inline-end: 1.1rem;
  bottom: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .55);
  transition: transform var(--t-fast);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:active { transform: scale(.94); }

/* ---------- 20. Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------- 21. Print ---------- */
@media print {
  .site-header, .mobile-nav, .wa-float, .cta-band { display: none !important; }
  body { color: #000; background: #fff; }
}
