/* ==========================================================================
   Resurgent Legal LLP — site styles
   --------------------------------------------------------------------------
   BRAND: change --brand (and optionally --accent) in :root below.
   Every tint, hover state and dark shade on the site is derived from them.
   ========================================================================== */

:root {
  /* ---- Brand (edit these two) ---- */
  --brand: #2D5794;   /* logo blue: buttons, headings, nav, footer */
  --accent: #F19B15;  /* logo orange: highlight buttons, rules, dots */

  /* ---- Derived from brand (no need to edit) ---- */
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-deep: color-mix(in srgb, var(--brand) 62%, #000);
  --brand-tint: color-mix(in srgb, var(--brand) 6%, #fff);
  --brand-tint-2: color-mix(in srgb, var(--brand) 14%, #fff);
  --brand-ring: color-mix(in srgb, var(--brand) 16%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 22%, #fff);
  --accent-tint: color-mix(in srgb, var(--accent) 12%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 55%, #000);

  /* ---- Neutrals ---- */
  --ink: #1A2230;
  --body: #3A4556;
  --muted: #5A6577;
  --line: #E2E7EE;
  --field: #CDD5DF;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;

  /* ---- Shape & rhythm ---- */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  /* ---- Type ---- */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Fallback shades for browsers without color-mix() (pre-2023) */
@supports not (color: color-mix(in srgb, red, blue)) {
  :root {
    --brand-dark: #234473; --brand-deep: #1C365C;
    --brand-tint: #F3F5F9; --brand-tint-2: #E2E8F0; --brand-ring: rgba(45, 87, 148, .16);
    --accent-soft: #FCE9CC; --accent-tint: #FDF3E3; --accent-ink: #85550C;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--brand);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--brand-tint); }
.section-head { max-width: 740px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section-foot { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section-head:not(.section-head--left) .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--muted); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid--5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.split--center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font: 600 .975rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 8px 20px var(--brand-ring); }
.btn--outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

/* Bar Council of India disclaimer (first visit, main.js) */
html.has-disclaimer { overflow: hidden; }
.disclaimer { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--bg); color: var(--body); box-shadow: 0 24px 64px rgba(16, 24, 40, .28); display: flex; flex-direction: column; }
.disclaimer:not([open]) { display: none; }
.disclaimer::backdrop { background: rgba(14, 26, 46, .72); backdrop-filter: blur(3px); }
.disclaimer-body { overflow-y: auto; padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 40px) 8px; font-size: .97rem; line-height: 1.6; }
.disclaimer h2 { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--accent); font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--brand); }
.disclaimer p { margin: 0 0 12px; }
.disclaimer ul { margin: 0 0 12px; padding-left: 22px; }
.disclaimer li { margin-bottom: 8px; }
.disclaimer li::marker { color: var(--accent); }
.disclaimer-cookies { padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.disclaimer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 16px clamp(20px, 4vw, 40px) clamp(22px, 4vw, 32px); border-top: 1px solid var(--line); }
.disclaimer-actions .btn { min-width: 150px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 480px) { .disclaimer-actions .btn { flex: 1 1 100%; } }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-tint-2); color: var(--brand-deep); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--brand); }
/* Orange highlight button — dark text, since white on orange is too low-contrast to read */
.btn--accent { background: var(--accent); color: var(--brand-deep); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); color: var(--brand-deep); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow .ico { width: 16px; height: 16px; transition: transform .2s; }
a:hover .link-arrow .ico, .link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 24, 40, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  position: relative; display: block; padding: 10px 14px;
  font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav-list a:hover { color: var(--brand); }
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
.nav-list a[aria-current] { color: var(--brand); font-weight: 600; }

/* Practice Areas dropdown: opens on hover (desktop) or via the chevron button (all sizes) */
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: 4px; }
.has-sub > a::after { right: 4px; }
.sub-toggle {
  display: grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer;
}
.sub-toggle:hover { color: var(--brand); background: var(--brand-tint); }
.sub-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.has-sub.is-open > .sub-toggle .ico { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 320px;
  margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.has-sub.is-open > .sub-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) and (min-width: 1025px) {
  .has-sub:hover > .sub-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
  .has-sub:hover > .sub-toggle .ico { transform: rotate(180deg); }
}
.sub-menu a { padding: 10px 12px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; line-height: 1.35; }
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--brand-tint); }
.sub-menu a[aria-current="page"] { background: var(--brand-tint); }
.nav-cta { min-height: 44px; padding: 10px 18px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--brand); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; transition: transform .25s, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .logo img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 32px;
    background: #fff; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .has-sub { flex-wrap: wrap; align-items: stretch; }
  .has-sub > a { flex: 1; padding-right: 4px; }
  .sub-toggle { width: 52px; height: auto; margin: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .sub-toggle .ico { width: 20px; height: 20px; }
  .sub-menu {
    position: static; display: none; flex-basis: 100%; min-width: 0;
    padding: 4px 0 8px 14px; border: 0; border-radius: 0; box-shadow: none;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 12px 4px; font-size: 1rem; border-radius: 0; }
  .sub-menu a[aria-current="page"] { background: none; }
  .nav-cta { margin-top: 24px; }
}

/* ---------- Hero & page hero ---------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-deep); color: #fff; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 80% at 88% 15%, rgba(255, 255, 255, .10), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 120px),
    linear-gradient(105deg,
      color-mix(in srgb, var(--brand-deep) 96%, transparent) 0%,
      color-mix(in srgb, var(--brand) 88%, transparent) 55%,
      color-mix(in srgb, var(--brand) 62%, transparent) 100%);
}
.hero-inner { max-width: 780px; padding-block: clamp(40px, 5vw, 64px) clamp(48px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 56px); }
/* Top-aligned with the text, and never taller than the visible area under the header,
   so the whole image (gavel included) is on screen without scrolling. */
.hero-art { position: relative; display: flex; justify-content: center; padding-block: clamp(32px, 4vw, 52px) 32px; }
.hero-art::before { /* soft light pool behind the scales */
  content: ""; position: absolute; left: 50%; top: 50%; width: 110%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 55%, transparent 75%);
}
.hero-art img {
  position: relative; width: auto; height: auto; max-width: min(100%, 440px);
  max-height: calc(100vh - var(--header-h) - 104px);
  max-height: calc(100svh - var(--header-h) - 104px);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35));
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}
.hero h1, .page-hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { max-width: 640px; margin-bottom: 36px; color: rgba(255, 255, 255, .86); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--accent-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero-inner { max-width: 820px; padding-block: clamp(48px, 7vw, 96px); }

/* Photo banners (About Us, Practice Areas): photo on the right, text over its dark navy left side.
   The banner hugs its content; the photo is sized to the banner height (a little taller, so its top and
   bottom are cropped) and its plain navy left edge blends into a background of the same navy.
   Per page: set --photo-rgb to the photo's navy, --photo-y to choose where it crops, and the image. */
.page-hero--photo { --photo-rgb: 0 28 60; --photo-y: 20%; background: rgb(var(--photo-rgb)); }
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-repeat: no-repeat; background-position: right var(--photo-y); background-size: auto 115%;
}
.page-hero--photo::after {
  background: linear-gradient(90deg, rgb(var(--photo-rgb) / .9) 0%, rgb(var(--photo-rgb) / .7) 38%, rgb(var(--photo-rgb) / .1) 62%, transparent 100%);
}
.page-hero--photo .page-hero-inner { max-width: 760px; padding-block: clamp(36px, 4vw, 52px); }
.page-hero--about::before { background-image: url("../img/about-hero.webp"); }        /* courthouse columns + scales */
.page-hero--practice { --photo-rgb: 8 26 49; --photo-y: 65%; }                          /* keeps the desk, papers and pen */
.page-hero--practice::before { background-image: url("../img/practice-hero.webp"); }   /* law books + desk */
.page-hero--career { --photo-rgb: 9 30 61; --photo-y: 30%; }                             /* keeps the team's faces */
.page-hero--career::before { background-image: url("../img/career-hero.webp"); }       /* lawyers reviewing documents */
.page-hero--career .page-hero-inner { max-width: 640px; }                                 /* wrap before the people */
.page-hero--contact { --photo-rgb: 4 31 64; --photo-y: 55%; }                            /* keeps the lounge + reception desk */
.page-hero--contact::before { background-image: url("../img/contact-hero.webp"); }     /* office reception */
.page-hero--contact .page-hero-inner { max-width: 660px; }                                /* wrap before the lounge */
.page-hero--corporate { --photo-rgb: 1 18 45; --photo-y: 55%; }                          /* keeps the skyline + boardroom table */
.page-hero--corporate::before { background-image: url("../img/corporate-hero.webp"); } /* boardroom at dusk */
.page-hero--corporate .page-hero-inner { max-width: 640px; }                              /* wrap before the skyline */
.page-hero--mergers { --photo-rgb: 1 27 57; --photo-y: 45%; }                            /* keeps the handshake + signed papers */
.page-hero--mergers::before { background-image: url("../img/mergers-hero.webp"); }   /* handshake over a deal table */
.page-hero--mergers .page-hero-inner { max-width: 640px; }                                /* wrap before the handshake */
.page-hero--npa { --photo-rgb: 10 30 54; --photo-y: 70%; }                               /* keeps the files, pen + building model */
.page-hero--npa::before { background-image: url("../img/npa-hero.webp"); }           /* case files beside a building model */
.page-hero--npa .page-hero-inner { max-width: 640px; }                                    /* wrap before the files */
.page-hero--foreign { --photo-rgb: 0 25 57; --photo-y: 55%; }                            /* keeps the globe, notebook + skyline */
.page-hero--foreign::before { background-image: url("../img/foreign-investment-hero.webp"); } /* globe on a desk at dusk */
.page-hero--foreign .page-hero-inner { max-width: 640px; }                                /* wrap before the skyline */
.page-hero--employment { --photo-rgb: 1 21 53; --photo-y: 30%; }                         /* keeps the team's faces + papers */
.page-hero--employment::before { background-image: url("../img/employment-hero.webp"); } /* team reviewing documents */
.page-hero--employment .page-hero-inner { max-width: 640px; }                             /* wrap before the people */
.page-hero--insolvency { --photo-rgb: 0 16 42; --photo-y: 60%; }                         /* keeps the ledger, files, pen + weights */
.page-hero--insolvency::before { background-image: url("../img/insolvency-hero.webp"); } /* ledger and case files on a desk */
.page-hero--insolvency .page-hero-inner { max-width: 640px; }                             /* wrap before the ledger */
.page-hero--startup { --photo-rgb: 2 19 40; --photo-y: 35%; }                            /* keeps the founders' and adviser's faces */
.page-hero--startup::before { background-image: url("../img/startup-hero.webp"); }   /* founders meeting an adviser */
.page-hero--startup .page-hero-inner { max-width: 640px; }                                /* wrap before the people */
.page-hero--litigation { --photo-rgb: 2 21 47; --photo-y: 50%; }                         /* keeps the scales, folders + courthouse dome */
.page-hero--litigation::before { background-image: url("../img/litigation-hero.webp"); } /* conference table facing a courthouse */
.page-hero--litigation .page-hero-inner { max-width: 640px; }                             /* wrap before the table */
.page-hero--blog { --photo-rgb: 5 24 54; --photo-y: 70%; }                              /* keeps the open book, glasses + pen */
.page-hero--blog::before { background-image: url("../img/blog-hero.webp"); }         /* law books and lamp on a desk */
.page-hero--blog .page-hero-inner { max-width: 640px; }                                   /* wrap before the desk */
@media (max-width: 760px) {
  /* text spans the full width on phones, so darken the whole photo enough to read over */
  .page-hero--photo::before { background-position: 75% var(--photo-y); }
  .page-hero--photo::after { background: linear-gradient(90deg, rgb(var(--photo-rgb) / .92), rgb(var(--photo-rgb) / .72)); }
}
.page-hero .lead { margin: 0; color: rgba(255, 255, 255, .85); text-wrap: pretty; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none;
  font-size: .875rem; color: rgba(255, 255, 255, .7);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Stats strip (below the home hero) ---------- */
.stats-strip { background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.stats li { display: flex; align-items: center; justify-content: center; gap: 16px; padding: clamp(24px, 3.5vw, 40px) 16px; }
.stats li + li { border-left: 1px solid var(--brand-tint-2); }
.stats strong { font-family: var(--font-head); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--brand); }
.stats span { max-width: 11ch; font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--muted); }
@media (max-width: 600px) {
  .stats li { flex-direction: column; gap: 6px; padding: 20px 6px; text-align: center; }
  .stats span { font-size: .8rem; }
}

/* ---------- Cards ---------- */
.card {
  position: relative; padding: clamp(24px, 3vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-tint-2); }
.card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .975rem; color: var(--muted); }
.card-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px;
  border-radius: 12px; background: var(--accent-tint); color: var(--accent); /* logo orange */
  transition: background-color .25s, color .25s;
}
.card-icon .ico { width: 26px; height: 26px; stroke-width: 2; }
.card:hover .card-icon { background: var(--accent); color: #fff; }

/* Practice-area link cards (home) */
.pa-card { display: flex; flex-direction: column; gap: 18px; height: 100%; color: inherit; text-decoration: none; }
.pa-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.pa-card:hover::before { transform: scaleX(1); }
.pa-card:hover { color: inherit; }
.pa-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.pa-card .card-icon { margin: 0; }
.pa-card h3 { flex-grow: 1; margin: 0; font-size: 1.125rem; }
.pa-card .link-arrow { font-size: .9rem; }

/* ---------- Industries marquee & tags ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.tag-list { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .95rem; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-cloud .tag { padding: 6px 14px; font-size: .875rem; white-space: normal; background: var(--brand-tint); border-color: transparent; }

/* ---------- Presence (home) ---------- */
.presence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .presence { grid-template-columns: 1fr; } }
.presence p { color: var(--muted); margin-bottom: 28px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.city {
  display: flex; align-items: center; gap: 12px; padding: 18px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 600; line-height: 1.3; color: var(--brand);
}
.city .ico { width: 20px; height: 20px; color: var(--accent); }
.city small { display: block; margin-top: 2px; font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.city--hq { grid-column: 1 / -1; background: var(--brand); border-color: var(--brand); color: #fff; }
.city--hq small { color: rgba(255, 255, 255, .75); }
.city--hq .ico { color: var(--accent-soft); }

/* ---------- Offices ---------- */
.office { display: flex; flex-direction: column; gap: 12px; }
.office h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.office address { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); }
.office address .ico { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.office .link-arrow { margin-top: auto; font-size: .9rem; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font: 600 .7rem/1.7 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.office-list { margin-top: clamp(16px, 2vw, 24px); }

.office-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.office-map { aspect-ratio: 16 / 9; background: var(--brand-tint); }
.office-map iframe { width: 100%; height: 100%; border: 0; }
.office-card .office { flex-grow: 1; padding: clamp(20px, 3vw, 28px); }
.office-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 760px) {
  .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-grid .office-card--hq { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .office-card--hq .office-map { aspect-ratio: auto; min-height: 300px; }
  .office-card--hq .office { justify-content: center; }
}

/* ---------- People ---------- */
.person { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.person-photo {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--brand-tint-2), var(--brand-tint));
  font-family: var(--font-head); font-size: 3rem; font-weight: 600; color: var(--brand);
}
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person-body { padding: 22px 24px 26px; }
.person-body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.person-role { margin-bottom: 12px !important; font-size: .8rem !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink) !important; }
.person-bio { font-size: .93rem !important; }
.advisor { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.advisor h3 { margin: 0; font-size: 1.1rem; }
.avatar {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
}
img.avatar {
  width: 96px; height: 96px; object-fit: cover; object-position: center top;
  background: linear-gradient(160deg, var(--brand-tint-2), var(--brand-tint)); box-shadow: 0 0 0 3px var(--brand-tint-2);
}
/* Placeholder copy still to be supplied by the firm — remove the span when filled in. */
.tbd { padding: 0 4px; border-radius: 4px; background: #FFF6DB; color: #8A5A00; font-style: italic; }

/* ---------- About intro ---------- */
.pull-quote {
  margin: 0; padding-left: 24px; border-left: 3px solid var(--accent);
  font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; color: var(--brand);
}
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.values li { padding: 8px 16px; border-radius: 999px; background: var(--brand-tint); font-size: .9rem; font-weight: 600; color: var(--brand); }
.prose p { font-size: 1.05rem; color: var(--body); }
.prose p + .kicker { margin-top: 28px; }
.kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }

/* ---------- Practice areas: overview ---------- */
.pa-hub { display: flex; flex-direction: column; gap: 14px; }
.pa-hub .card-icon { margin: 0; }
.pa-hub h2 { margin: 6px 0 0; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.pa-hub h2 a { color: inherit; text-decoration: none; }
.pa-hub h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.pa-hub:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.pa-hub h2 a:focus-visible { outline: none; }
.pa-hub .link-arrow { margin-top: auto; padding-top: 6px; font-size: .92rem; }
.pa-hub:hover .link-arrow .ico { transform: translateX(3px); }
.mini-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .92rem; line-height: 1.45; color: var(--body); }
.mini-list li { display: flex; align-items: flex-start; gap: 10px; }
.mini-list li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: var(--accent); }
.mini-list li.more { color: var(--muted); }
.mini-list li.more::before { visibility: hidden; }

/* ---------- Practice areas: individual page ---------- */
.pa-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .pa-detail { grid-template-columns: minmax(0, 1fr); } }
.pa-detail-main h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.pa-detail-main > p { margin-bottom: clamp(36px, 5vw, 52px); font-size: 1.1rem; color: var(--body); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.service-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 500; line-height: 1.5;
}
.service-item .ico { width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--brand); color: #fff; }


.pa-aside { display: grid; gap: 20px; }
.pa-aside .contact-card { position: static; }
.pa-aside .contact-card h2 { font-size: 1.35rem; }
.pa-aside .contact-card .btn { width: 100%; margin-top: 24px; }
.toc-title { margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pa-sidenav { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pa-sidenav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pa-sidenav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border-radius: 8px; font-size: .93rem; line-height: 1.4; color: var(--body); text-decoration: none;
}
.pa-sidenav a:hover { background: var(--brand-tint); color: var(--brand); }
.pa-sidenav a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 600; }
.pa-sidenav .ico { width: 16px; height: 16px; opacity: .55; }
.pa-card p { flex-grow: 1; margin: -6px 0 0; }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-intro p:not(.eyebrow) { margin-bottom: 24px; color: var(--muted); }
@media (max-width: 860px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-intro { position: static; }
}
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--brand-tint-2); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; list-style: none; cursor: pointer; border-radius: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; line-height: 1.45; letter-spacing: 0; color: var(--ink); }
.faq-item summary:hover h3, .faq-item[open] summary h3 { color: var(--brand); }
.faq-toggle { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); transition: background-color .25s; }
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 1px; background: var(--brand); transition: transform .25s;
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--brand); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: #fff; }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-answer { padding: 0 22px 20px; color: var(--body); }
/* Smooth open/close where supported (Chrome 131+); elsewhere it simply snaps open. */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: clamp(32px, 5vw, 56px); border-radius: 20px;
  background: var(--brand); color: #fff;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(255, 255, 255, .12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 96px);
}
.cta-band h2 { max-width: 30ch; margin: 0 0 8px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: #fff; }
.cta-band p { max-width: 60ch; margin: 0; color: rgba(255, 255, 255, .84); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Career ---------- */
.jobs { display: grid; gap: 16px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }
.job h3 { margin: 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; padding: 0; list-style: none; }
.job-meta li { padding: 3px 10px; border-radius: 999px; background: var(--brand-tint); font-size: .8rem; font-weight: 500; color: var(--brand); }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } }
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  padding: clamp(24px, 4vw, 36px); border: 1px dashed var(--brand-tint-2); border-radius: var(--radius); background: #fff;
}
.notice .card-icon { margin: 0; }
.notice p { flex: 1 1 320px; margin: 0; font-size: 1.05rem; color: var(--body); }

/* Photo grid — replace each .gallery-item's contents with an <img> */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-item {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 0; overflow: hidden;
  border-radius: 12px; color: rgba(255, 255, 255, .5);
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%);
}
.gallery-item:nth-child(2), .gallery-item:nth-child(3) { background: linear-gradient(140deg, var(--brand-tint-2), var(--brand-tint)); color: var(--brand); }
.gallery-item .ico { width: 40px; height: 40px; opacity: .7; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(24px, 4vw, 44px); }
.form-card > p { color: var(--muted); }
/* Two columns only while each is at least 260px wide (keeps the phone number field usable); otherwise one */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 28px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: #B42318; }
.optional { font-weight: 400; font-size: .85em; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--field); border-radius: var(--radius-sm); background: #fff;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235A6577' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-group { display: flex; }
/* Country code: just wide enough for "+971" with the arrow close beside it, leaving room for the number */
.input-group .select {
  flex: 0 0 82px; width: 82px; padding-left: 12px; padding-right: 26px; background-position: right 10px center;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right-width: 0; background-color: var(--bg-alt);
}
.input-group .input { min-width: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .select:focus { border-right-width: 1.5px; }
.field-hint { margin-top: 6px; font-size: .8rem; text-align: right; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .85rem; color: #B42318; }
/* Contact form security question */
/* Security check: a tinted panel above the submit button */
.human-check { padding: 16px 18px; border: 1px solid var(--brand-tint-2); border-radius: var(--radius-sm); background: var(--brand-tint); }
.human-check-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.human-check-title .ico { width: 16px; height: 16px; color: var(--accent); }
.human-check .human-check-question { display: block; margin-bottom: 10px; font-size: 1rem; font-weight: 600; color: var(--brand); }
.human-check-row { display: flex; gap: 10px; align-items: stretch; }
.human-check-row .input { flex: 0 1 140px; min-width: 0; background: var(--bg); }
.human-check-new { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 0 14px; white-space: nowrap; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--bg); color: var(--brand); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; }
.human-check-new .ico { width: 15px; height: 15px; }
.human-check-new:hover { border-color: var(--brand); background: var(--brand-tint-2); }
.human-check-hint { margin-top: 8px; font-size: .78rem; text-align: left; }

.form-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.form-note { margin: 0; font-size: .74rem; line-height: 1.5; color: var(--muted); }
.form-note .req { font-weight: 600; }
@media (max-width: 560px) { .form-footer .btn { width: 100%; } }
.form-status { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status--success { background: #ECFDF3; border: 1px solid #ABEFC6; color: #05603A; }
.form-status--error { background: #FEF3F2; border: 1px solid #FECDCA; color: #912018; }
.form-status--info { background: var(--brand-tint); border: 1px solid var(--brand-tint-2); color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-card { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--brand); color: #fff; }
@media (max-width: 900px) { .contact-card { position: static; } }
.contact-card h2 { font-size: 1.5rem; color: #fff; }
.contact-card > p { color: rgba(255, 255, 255, .8); }
.contact-list { display: grid; gap: 18px; margin: 24px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.5; }
.ico-wrap { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.ico-wrap .ico { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.contact-list a { font-weight: 600; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: #fff; text-decoration: underline; }

/* ---------- 404 ---------- */
.not-found { max-width: 640px; margin-inline: auto; text-align: center; }
.not-found .code { margin: 0; font-family: var(--font-head); font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 600; line-height: 1; color: var(--brand-tint-2); }
.not-found .hero-actions { justify-content: center; margin-top: 28px; }

/* ---------- Thank-you page (after the contact form) ---------- */
.thank-you { max-width: 900px; margin-inline: auto; text-align: center; }
.thank-you .lead { max-width: 640px; margin-inline: auto; }
.thank-you-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--brand-tint-2); color: var(--brand);
}
.thank-you-icon .ico { width: 36px; height: 36px; }
.thank-you .eyebrow { display: flex; justify-content: center; }
.thank-you .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.thank-you .lead { color: var(--body); }
.next-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: clamp(28px, 4vw, 40px) 0 0; padding: 0; list-style: none; counter-reset: step; text-align: left;
}
@media (max-width: 720px) { .next-steps { grid-template-columns: 1fr; } }
.next-steps li {
  position: relative; display: grid; align-content: start; gap: 4px; padding: 20px 20px 20px 64px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.next-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem;
}
.next-steps strong { color: var(--ink); }
.next-steps span { font-size: .93rem; color: var(--muted); }
.thank-you .hero-actions { justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
.thank-you-note { margin-top: 24px; font-size: .95rem; color: var(--muted); }
.btn--whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1EBE5A; border-color: #1EBE5A; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--whatsapp .ico { width: 20px; height: 20px; }
.btn--whatsapp:hover .ico { transform: none; }

/* ---------- WhatsApp button (every page) ---------- */
.whatsapp-fab {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 60px; height: 60px; padding: 0;
  border-radius: 50%; background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 6px 20px rgba(16, 24, 40, .25); transition: transform .2s, box-shadow .2s, background-color .2s;
}
.whatsapp-fab:hover, .whatsapp-fab:focus-visible { background: #1EBE5A; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 24, 40, .3); }
.whatsapp-fab:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.whatsapp-fab .ico { width: 32px; height: 32px; }
/* The label is read by screen readers; on desktop it appears as a small tooltip on hover. */
.whatsapp-fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: .85rem; font-weight: 600; white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s;
}
@media (hover: hover) and (min-width: 721px) {
  .whatsapp-fab:hover .whatsapp-fab-label, .whatsapp-fab:focus-visible .whatsapp-fab-label { opacity: 1; visibility: visible; transition: opacity .15s; }
}
@media (max-width: 720px), (max-height: 500px) {
  .whatsapp-fab { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .whatsapp-fab .ico { width: 30px; height: 30px; }
}
body.nav-open .whatsapp-fab { display: none; }
/* Room under the footer so the button never covers "Back to top" or the copyright line */
.footer-bottom { padding-bottom: 80px; }
@media (min-width: 721px) { .footer-bottom { padding-bottom: 88px; } }
@media print { .whatsapp-fab { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, .78); font-size: .95rem; }
/* The Contact column is never narrower than the email address, so it doesn't break mid-word */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1.25fr) minmax(max-content, 1.25fr); gap: clamp(28px, 3vw, 40px); padding-block: clamp(56px, 7vw, 80px); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo { display: inline-block; margin-bottom: 20px; padding: 10px 14px; border-radius: 10px; background: #fff; }
.footer-logo img { height: 44px; width: auto; }
.footer-about strong { color: #fff; }
.footer-small { font-size: .85rem; color: rgba(255, 255, 255, .6); text-wrap: balance; }
.footer-social { list-style: none; display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 0; }
/* LinkedIn icon and "Follow" joined in one LinkedIn-blue button; opens the company page, where visitors click Follow */
.footer-linkedin { display: inline-flex; align-items: stretch; height: 38px; border-radius: 999px; overflow: hidden; background: #0A66C2; color: #fff; font-size: .9rem; font-weight: 600; transition: background .2s, transform .2s; }
.site-footer .footer-linkedin, .site-footer .footer-linkedin:hover { color: #fff; text-decoration: none; }
.footer-linkedin .fl-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; padding-left: 4px; background: #004182; }
.footer-linkedin .fl-label { display: inline-flex; align-items: center; gap: 6px; padding: 0 18px 0 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.footer-linkedin:hover, .footer-linkedin:focus-visible { background: #004182; transform: translateY(-2px); }
.footer-linkedin:hover .fl-icon, .footer-linkedin:focus-visible .fl-icon { background: #00305f; }
.footer-title { margin-bottom: 18px; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links, .footer-contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-contact li, .site-footer address { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .ico, .site-footer address .ico { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-contact + address { margin-top: 10px; } /* head office address under the contact list */
.site-footer address { max-width: 300px; }

/* Sitemap page (/sitemap): a tree — the home box at the top, a branch line to each boxed column,
   and tree lines beside every link. Columns stack on small screens. */
.sitemap-tree { --tree-line: color-mix(in srgb, var(--brand) 35%, #fff); --drop: 28px; display: flex; flex-direction: column; align-items: center; }
.sitemap-root { position: relative; display: inline-block; padding: 12px 28px; border-radius: var(--radius-sm); background: var(--brand-deep); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: var(--shadow); }
.sitemap-root:hover { background: var(--brand-dark); color: #fff; }
.sitemap-root::after { content: ""; position: absolute; left: 50%; top: 100%; height: var(--drop); border-left: 2px solid var(--tree-line); }
.sitemap-branches { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); width: 100%; margin-top: var(--drop); padding-top: var(--drop); }
/* horizontal line joining the three columns, from the first column's centre to the last's */
.sitemap-branches::before { content: ""; position: absolute; top: 0; left: calc((100% - 2 * clamp(20px, 3vw, 36px)) / 6); right: calc((100% - 2 * clamp(20px, 3vw, 36px)) / 6); border-top: 2px solid var(--tree-line); }
.sitemap-card { position: relative; border: 1px solid var(--brand-tint-2); border-radius: var(--radius-sm); background: var(--bg); }
.sitemap-card::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: calc(var(--drop) + 1px); border-left: 2px solid var(--tree-line); }
.sitemap-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--brand-tint-2); background: var(--brand-tint); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.sitemap-card-head h2 { margin: 0; font-size: 1.15rem; }
.sitemap-count { color: var(--accent-ink); font-family: var(--font-body); font-size: .95rem; font-weight: 600; }
.sitemap-list { margin: 0; padding: 16px 18px 18px 22px; list-style: none; }
.sitemap-list li { position: relative; padding: 4px 0 4px 18px; line-height: 1.45; }
.sitemap-list li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid color-mix(in srgb, var(--brand) 30%, #fff); }
.sitemap-list li:last-child::before { bottom: auto; height: calc(4px + .725em); }
.sitemap-list li::after { content: ""; position: absolute; left: 0; top: calc(4px + .725em); width: 11px; border-top: 1px solid color-mix(in srgb, var(--brand) 30%, #fff); }
.sitemap-list a { font-weight: 500; text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .sitemap-branches { grid-template-columns: 1fr; padding-top: 0; }
  .sitemap-branches::before { display: none; }
  .sitemap-card::before { height: var(--drop); }
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-bottom a[href="#main"] { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }

/* ---------- Blog (home section, /blog and /blog/<slug>; pages are rendered by server/) ---------- */
.blog-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.blog-card:hover { color: inherit; }
.blog-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(160deg, var(--brand), var(--brand-deep)); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-media img { transform: scale(1.03); }
.blog-card-mark { display: block; width: 100%; height: 100%; background: url("../img/favicon.png") center / 64px no-repeat; opacity: .3; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.blog-card-meta time { color: var(--muted); }
.blog-card h3 { margin: 0; font-size: 1.15rem; }
.blog-card p { margin: 0; }
.blog-card .link-arrow { margin-top: auto; padding-top: 6px; }
.blog-pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(32px, 4vw, 48px); color: var(--muted); }
.blog-empty { text-align: center; color: var(--muted); }

.post-meta { display: flex; flex-wrap: wrap; margin: 20px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.post-meta > * + *::before { content: "·"; margin: 0 10px; opacity: .7; }
.post-cover { margin: 0 0 clamp(28px, 4vw, 40px); overflow: hidden; border-radius: var(--radius); }
.post-cover img { display: block; width: 100%; height: auto; }
/* "Featured Articles" list beside a blog article */
.featured-posts { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.featured-posts .toc-title { font-family: var(--font-body); }
.featured-posts ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.featured-posts a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.featured-posts a:hover { background: var(--brand-tint); }
.featured-posts img, .featured-thumb { display: block; width: 84px; height: 60px; object-fit: cover; border-radius: 6px; background: linear-gradient(160deg, var(--brand), var(--brand-deep)); }
.featured-posts strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .93rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.featured-posts a:hover strong { color: var(--brand); }
.featured-posts a[aria-current="page"] { background: var(--brand-tint); }
.featured-posts a[aria-current="page"] strong { color: var(--brand); }
.featured-now { display: block; margin-top: 4px; font-size: .75rem; font-style: normal; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.featured-posts time { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }

.preview-bar { padding: 10px var(--gutter); background: var(--accent); color: var(--brand-deep); font-weight: 600; text-align: center; }

.prose { font-size: 1.075rem; line-height: 1.75; color: var(--body); overflow-wrap: break-word; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.7rem); }
.prose h3 { margin-top: 1.5em; font-size: 1.25rem; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; }
.prose .ql-indent-2 { padding-left: 4em; }
.prose .ql-indent-3 { padding-left: 6em; }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; animation: none; }
  .marquee-track .tag-list { flex-wrap: wrap; justify-content: center; padding: 0; }
  .marquee-track .tag-list[aria-hidden="true"] { display: none; }
}
