/* ==========================================================================
   Rehmat & Jaleel, Attorneys & Consultants
   Stylesheet
   Palette: Ink #1D2120 · Porcelain #F3F2EE · Antique Brass #92774A
   Type: Cormorant Garamond (display) · Libre Franklin (body/UI)
   ========================================================================== */

:root {
  /* Colour */
  --ink: #1D2120;
  --ink-800: #242926;
  --ink-700: #2C322E;
  --ink-600: #3A413C;
  --porcelain: #F3F2EE;
  --paper: #FBFAF8;
  --cream: #ECEAE2;
  --brass: #92774A;
  --brass-deep: #7B6238;
  --brass-soft: rgba(146, 119, 74, 0.12);
  --muted: #656963;
  --muted-2: #84887F;
  --muted-dark: rgba(236, 234, 226, 0.64);
  --line: #E3E1D9;
  --line-2: #D7D4CA;
  --line-dark: rgba(236, 234, 226, 0.14);

  /* Type */
  --serif: 'Cormorant Garamond', 'GFS Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
  --radius-lg: 5px;
  --header-h: 78px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 22, 0.04), 0 6px 22px rgba(20, 24, 22, 0.05);
  --shadow-md: 0 4px 14px rgba(20, 24, 22, 0.07), 0 18px 50px rgba(20, 24, 22, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

::selection { background: rgba(146, 119, 74, 0.22); color: var(--ink); }

/* --------------------------------------------------------------- Headings */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
h4 { font-size: 1.2rem; }
p { text-wrap: pretty; }

/* ----------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 124px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--paper { background: var(--paper); }
.divider-line { height: 1px; background: var(--line); border: 0; }

/* Eyebrow / small-caps labels (statute-citation feel) */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.section--ink .eyebrow { color: #C7A86B; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--porcelain); }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head .eyebrow + h2, .cta-band .cta-inner .eyebrow + h2 { margin-top: clamp(14px, 1.4vw, 20px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
.section--ink .section-head .lead { color: var(--muted-dark); }

.lead { font-size: 1.16rem; line-height: 1.7; color: var(--muted); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--brass); color: #FCFBF7; }
.btn--accent:hover { background: var(--brass-deep); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--ink-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(236,234,226,0.34); }
.btn--ghost-light:hover { border-color: var(--cream); background: rgba(236,234,226,0.06); }
.btn--lg { padding: 1.1em 2.1em; font-size: 0.84rem; }

.btn .ic { width: 17px; height: 17px; }

/* Text link with brass underline */
.tlink {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 3px;
  border-bottom: 1px solid var(--brass);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.tlink:hover { gap: 0.85em; color: var(--brass-deep); }
.tlink .ar { transition: transform .25s var(--ease); }
.tlink:hover .ar { transform: translateX(3px); }
.section--ink .tlink { color: var(--cream); border-color: #C7A86B; }
.section--ink .tlink:hover { color: #E3C78B; }

/* ================================================================= HEADER */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(243, 242, 238, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { height: 42px; width: auto; transition: opacity .3s var(--ease); }
.brand-mark--light { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.brand-name .amp { color: var(--brass); font-style: italic; }
.brand-sub { font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav > a:not(.btn) {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink); position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brass); transition: width .3s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--brass-deep); }
.nav > a:not(.btn):hover::after,
.nav > a[aria-current="page"]::after { width: 100%; }
.nav > a[aria-current="page"] { color: var(--brass-deep); }
.nav-cta { margin-left: 6px; }

/* Header overlay state (over dark hero) */
.site-header.is-overlay {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.is-overlay .brand-name,
.site-header.is-overlay .nav > a:not(.btn) { color: var(--cream); }
.site-header.is-overlay .brand-name .amp { color: #C7A86B; }
.site-header.is-overlay .brand-sub { color: rgba(236,234,226,0.6); }
.site-header.is-overlay .brand-mark--dark { display: none; }
.site-header.is-overlay .brand-mark--light { display: block; }
.site-header.is-overlay .nav > a:not(.btn):hover { color: #fff; }
.site-header.is-overlay .nav-toggle span { background: var(--cream); }
.site-header.is-overlay .btn--accent { background: var(--brass); color: #fff; }

/* When scrolled, overlay reverts to solid */
.site-header.is-overlay.is-scrolled {
  background: rgba(243, 242, 238, 0.92);
  border-color: var(--line);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.site-header.is-overlay.is-scrolled .brand-name,
.site-header.is-overlay.is-scrolled .nav > a:not(.btn) { color: var(--ink); }
.site-header.is-overlay.is-scrolled .brand-name .amp { color: var(--brass); }
.site-header.is-overlay.is-scrolled .brand-sub { color: var(--muted-2); }
.site-header.is-overlay.is-scrolled .brand-mark--dark { display: block; }
.site-header.is-overlay.is-scrolled .brand-mark--light { display: none; }
.site-header.is-overlay.is-scrolled .nav-toggle span { background: var(--ink); }

/* Mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
body.menu-open { position: fixed; width: 100%; overflow: hidden; }
/* When the menu is open: render the header dark to blend with the dark menu on
   every page, and drop backdrop-filter (it traps the fixed menu behind the hero). */
body.menu-open .site-header {
  background: var(--ink); border-color: var(--line-dark);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.menu-open .site-header .brand-name,
body.menu-open .site-header .nav > a:not(.btn) { color: var(--cream); }
body.menu-open .site-header .brand-name .amp { color: #C7A86B; }
body.menu-open .site-header .brand-sub { color: rgba(236, 234, 226, 0.6); }
body.menu-open .site-header .nav-toggle span { background: var(--cream); }
body.menu-open .site-header .brand-mark--dark { display: none; }
body.menu-open .site-header .brand-mark--light { display: block; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Spacer pushes content below fixed header on inner pages */
.header-spacer { height: var(--header-h); }

/* ================================================================== HERO */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 118px));
  padding-bottom: clamp(64px, 10vw, 130px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* embossed monogram seal watermark */
  content: "";
  position: absolute; z-index: -1;
  right: -4%; top: 50%; transform: translateY(-50%);
  width: min(54vw, 640px); aspect-ratio: 698 / 1241;
  background: url("../assets/logo-white.png") right center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.hero::after { /* subtle radial depth */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 18% 8%, rgba(146,119,74,0.10), transparent 55%);
}
.hero-inner { max-width: 880px; }
.hero h1 { color: #F4F2EC; margin-top: 22px; }
.hero h1 .amp { color: #C7A86B; font-style: italic; }
.hero .hero-sub {
  margin-top: 26px; max-width: 620px;
  font-size: clamp(1.06rem, 1.7vw, 1.28rem); line-height: 1.7;
  color: var(--muted-dark);
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: clamp(44px, 6vw, 70px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px);
}
.hero-meta .hm { }
.hero-meta .hm-n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: #C7A86B; }
.hero-meta .hm-l { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); margin-top: 8px; }

/* Page hero (inner pages), lighter, shorter */
.page-hero {
  position: relative; background: var(--ink); color: var(--cream);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 86px));
  padding-bottom: clamp(48px, 7vw, 86px);
  overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -3%; top: 50%; transform: translateY(-50%);
  width: min(40vw, 420px); aspect-ratio: 698 / 1241;
  background: url("../assets/logo-white.png") right center / contain no-repeat; opacity: 0.045;
}
.page-hero .breadcrumb { margin-bottom: 22px; }
.page-hero h1 { color: #F4F2EC; font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-hero .page-hero-sub { margin-top: 20px; max-width: 640px; color: var(--muted-dark); font-size: 1.12rem; }

.breadcrumb { font-size: 0.76rem; letter-spacing: 0.08em; color: var(--muted-dark); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted-dark); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb .sep { color: rgba(236,234,226,0.4); }
.breadcrumb [aria-current="page"] { color: #C7A86B; }

/* =============================================================== Grids */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Practice-area cards (home overview) */
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pa-card {
  background: var(--paper); padding: clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: 12px; min-height: 196px;
  transition: background .3s var(--ease), transform .3s var(--ease);
  position: relative;
}
.pa-card:hover { background: #fff; }
.pa-card .pa-idx { font-family: var(--serif); font-size: 0.98rem; color: var(--brass); font-style: italic; }
.pa-card h3 { font-size: 1.4rem; }
.pa-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; flex-grow: 1; }
.pa-card .pa-go {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass-deep); display: inline-flex; align-items: center; gap: 0.5em;
  opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pa-card:hover .pa-go { opacity: 1; transform: translateY(0); }
.pa-card::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pa-card:hover::after { transform: scaleX(1); }

/* Feature / value cards */
.value-card { padding: clamp(26px, 2.6vw, 34px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.value-card .vc-mark { display: block; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--brass); font-style: italic; margin-bottom: 14px; }
.value-card h3 { font-size: 1.4rem; margin: 0 0 12px; }
.value-card p { font-size: 0.98rem; color: var(--muted); }
.section--ink .value-card { background: var(--ink-700); border-color: var(--line-dark); }
.section--ink .value-card p { color: var(--muted-dark); }
.section--ink .value-card .vc-mark { color: #C7A86B; }

/* =============================================== Practice-area detail page */
.pa-toc {
  position: sticky; top: calc(var(--header-h) + 14px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; align-self: start;
}
.pa-toc h4 { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.pa-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.pa-toc li { counter-increment: toc; }
.pa-toc a {
  display: flex; gap: 12px; padding: 7px 8px; border-radius: var(--radius);
  font-size: 0.9rem; color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease);
}
.pa-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 0.9rem; min-width: 22px; }
.pa-toc a:hover, .pa-toc a.active { background: var(--brass-soft); color: var(--brass-deep); }

.pa-layout { display: grid; grid-template-columns: 264px 1fr; gap: clamp(30px, 5vw, 72px); align-items: start; }

.pa-block { padding-block: clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.pa-block:first-child { padding-top: 0; }
.pa-block:last-child { border-bottom: 0; }
.pa-block .pa-eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--brass); }
.pa-block h2 { margin: 6px 0 16px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.pa-block .pa-intro { color: var(--muted); font-size: 1.08rem; max-width: 68ch; margin-bottom: 30px; }
.subservices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.subservice { background: var(--paper); padding: 26px 24px; }
.subservice h3 { font-size: 1.18rem; line-height: 1.2; margin-bottom: 10px; }
.subservice .ss-mark { display: block; width: 24px; height: 2px; background: var(--brass); margin-bottom: 16px; }
.subservice p { font-size: 0.94rem; color: var(--muted); line-height: 1.62; }
.pa-cta { margin-top: 28px; }

/* ====================================================== About / Partners */
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.about-intro-grid .lead-xl { font-size: clamp(1.5rem, 2.6vw, 2rem); font-family: var(--serif); line-height: 1.32; color: var(--ink); }
.about-intro-grid p + p { margin-top: 18px; }

.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.partner-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 3.4vw, 46px); position: relative; overflow: hidden;
}
.partner-card::before { content: ""; position: absolute; right: -30px; top: -30px; width: 180px; aspect-ratio: 698/1241; background: url("../assets/logo-dark.png") center/contain no-repeat; opacity: 0.04; }
.partner-card .p-monogram {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  font-family: var(--serif); font-size: 1.5rem; color: var(--brass-deep);
}
.partner-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.partner-card .p-role { margin-top: 6px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); }
.partner-card .p-focus { margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 1.16rem; color: var(--muted); }
.partner-card .p-bio { margin-top: 20px; color: var(--muted); font-size: 1rem; }
.partner-card .p-bio p + p { margin-top: 14px; }
.partner-card .p-areas { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.74rem; letter-spacing: 0.04em; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--muted); background: var(--porcelain); }

/* ================================================================ Stats row */
.factbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border-block: 1px solid var(--line-dark); }
.factbar .fact { padding: clamp(26px,3vw,40px) 20px; text-align: center; background: var(--ink); }
.factbar .fact .f-n { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: #C7A86B; line-height: 1; }
.factbar .fact .f-l { margin-top: 10px; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); }

/* ================================================================ Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.cmethod {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cmethod:hover { border-color: var(--brass); box-shadow: var(--shadow-sm); }
.cmethod .cm-ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: var(--brass-soft); color: var(--brass-deep); display: flex; align-items: center; justify-content: center; }
.cmethod .cm-ic svg { width: 21px; height: 21px; }
.cmethod .cm-l { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.cmethod .cm-v { font-size: 1.08rem; color: var(--ink); font-weight: 500; }

/* Offices */
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 26px); }
.office-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.office-card .oc-map { aspect-ratio: 3 / 2; background: var(--line); position: relative; }
.office-card .oc-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.25) contrast(1.02); }
.office-card .oc-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.office-card .oc-city { font-family: var(--serif); font-size: 1.5rem; }
.office-card .oc-city .dot { color: var(--brass); }
.office-card .oc-addr { color: var(--muted); font-size: 0.96rem; flex-grow: 1; }
.office-card .oc-dir { margin-top: 6px; }

/* Form */
.form { display: grid; gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 7px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 13px 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft);
}
.form textarea { resize: vertical; min-height: 130px; }
.form .form-note { font-size: 0.84rem; color: var(--muted-2); }
.form-msg { font-size: 0.92rem; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--brass-soft); color: var(--brass-deep); }

/* =================================================================== FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 4px; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink);
}
.faq-q .faq-ic { flex: 0 0 22px; width: 22px; height: 22px; position: relative; }
.faq-q .faq-ic::before, .faq-q .faq-ic::after { content: ""; position: absolute; background: var(--brass); transition: transform .3s var(--ease); }
.faq-q .faq-ic::before { left: 0; top: 10px; width: 22px; height: 1.5px; }
.faq-q .faq-ic::after { left: 10px; top: 0; width: 1.5px; height: 22px; }
.faq-item.open .faq-q .faq-ic::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a .faq-a-in { padding: 0 4px 26px; color: var(--muted); font-size: 1.02rem; max-width: 70ch; }

/* ================================================================== Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); }
.post-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.post-card .pc-top { height: 6px; background: var(--brass); }
.post-card .pc-body { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.post-card .pc-meta { display: flex; align-items: center; gap: 12px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.post-card .pc-cat { color: var(--brass-deep); font-weight: 600; }
.post-card .pc-meta .pc-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.post-card h3 { font-size: 1.5rem; line-height: 1.18; }
.post-card .pc-ex { font-size: 0.96rem; color: var(--muted); flex-grow: 1; }
.post-card .pc-go { margin-top: 4px; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter-btn {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 100px; color: var(--muted);
  background: var(--paper); transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.blog-empty { text-align: center; padding: 80px 20px; color: var(--muted); }

/* Single post (article) */
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; margin-bottom: 44px; }
.article-head .ah-meta { display: inline-flex; gap: 12px; align-items: center; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
.article-head .ah-meta .ah-cat { color: var(--brass-deep); font-weight: 600; }
.article-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.article-head .ah-rule { width: 60px; height: 2px; background: var(--brass); margin: 30px auto 0; }

.article-body { font-size: 1.12rem; line-height: 1.78; color: #2D322F; }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.7em; }
.article-body h3 { font-size: 1.45rem; margin-top: 1.5em; }
.article-body p { color: #383E3A; }
.article-body a { color: var(--brass-deep); border-bottom: 1px solid var(--brass); }
.article-body a:hover { color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 0.5em; }
.article-body ul li { list-style: none; position: relative; }
.article-body ul li::before { content: ""; position: absolute; left: -1.2em; top: 0.72em; width: 6px; height: 6px; background: var(--brass); border-radius: 50%; }
.article-body ol { list-style: decimal; }
.article-body ol li::marker { color: var(--brass-deep); font-family: var(--serif); }
.article-body blockquote {
  border-left: 2px solid var(--brass); padding: 6px 0 6px 24px; margin-left: 0;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); line-height: 1.5;
}
.article-body code { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 0.88em; background: var(--brass-soft); padding: 2px 6px; border-radius: 3px; color: var(--brass-deep); }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.article-body img { border-radius: var(--radius-lg); margin-block: 1.6em; }
.article-body strong { font-weight: 600; color: var(--ink); }

/* Tables in blog articles */
.article-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 1.7em; border: 1px solid var(--line); border-radius: var(--radius); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.55; }
.article-body table th, .article-body table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-body table th { background: var(--ink); color: var(--porcelain); font-family: var(--sans); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.article-body table tbody tr:nth-child(even) { background: var(--brass-soft); }
.article-body table tbody tr:last-child td { border-bottom: 0; }
.article-body table td strong { color: var(--ink); }
.article-body .table-wrap > table { border: 0; }

.article-foot { margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ============================================================ CTA band */
.cta-band { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 80% 0%, rgba(146,119,74,0.16), transparent 60%); }
.cta-band .cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: #F4F2EC; }
.cta-band h2 .amp { color: #C7A86B; font-style: italic; }
.cta-band p { margin-top: 18px; color: var(--muted-dark); font-size: 1.12rem; }
.cta-band .cta-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =============================================================== Footer */
.site-footer { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -2%; bottom: -10%; width: min(40vw, 380px); aspect-ratio: 698/1241; background: url("../assets/logo-white.png") center/contain no-repeat; opacity: 0.04; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(30px, 4vw, 56px); padding-block: clamp(54px, 7vw, 84px); }
.footer-brand .f-mark { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand .f-name { font-family: var(--serif); font-size: 1.6rem; }
.footer-brand .f-name .amp { color: #C7A86B; font-style: italic; }
.footer-brand .f-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-dark); margin-top: 4px; }
.footer-brand .f-desc { margin-top: 18px; color: var(--muted-dark); font-size: 0.95rem; max-width: 34ch; }
.footer-col h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #C7A86B; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a.footer-contact a { color: var(--muted-dark); font-size: 0.94rem; transition: color .2s var(--ease); }
.footer-col ul a:hover.footer-contact a:hover { color: var(--cream); }
.footer-contact .fc-item { margin-bottom: 16px; }
.footer-contact .fc-l { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.footer-contact .fc-v { color: var(--cream); font-size: 0.96rem; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.82rem; color: var(--muted-dark); }
.footer-bottom .disclaimer { max-width: 60ch; }

/* ============================================================ Reveal anim */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .pa-card, .post-card, .tlink, * { transition: none !important; }
}

/* Focus visibility */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 16px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.intro-narrow { max-width: 760px; }

/* ============================================================ Responsive */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pa-layout { grid-template-columns: 1fr; }
  .pa-toc { position: static; display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile menu panel */
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 120;
    background: var(--ink); padding: 30px var(--gutter) 40px;
    overflow-y: auto;
    animation: menuIn .35s var(--ease);
  }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  .nav.is-open > a:not(.btn) {
    color: var(--cream); font-family: var(--serif); font-size: 1.9rem; padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open > a:not(.btn)::after { display: none; }
  .nav.is-open .nav-cta { margin: 24px 0 0; align-self: flex-start; }
  .grid-3, .grid-4, .pa-grid, .subservices, .offices-grid, .blog-grid, .factbar, .partners-grid { grid-template-columns: 1fr 1fr; }
  .about-intro-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .pa-grid, .subservices, .offices-grid, .blog-grid, .factbar, .partners-grid { grid-template-columns: 1fr; }
  .form .row-2 { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px 40px; }
  .article-foot { flex-direction: column; align-items: flex-start; }
  .brand-sub { display: none; }
  .brand-mark { height: 36px; }
  .footer-bottom { flex-direction: column; }
}

/* ===================================== Light breadcrumb (article pages) */
.breadcrumb--light { color: var(--muted); margin-bottom: 28px; }
.breadcrumb--light a { color: var(--muted); }
.breadcrumb--light a:hover { color: var(--brass-deep); }
.breadcrumb--light .sep { color: var(--line-2); }
.breadcrumb--light [aria-current="page"] { color: var(--brass-deep); }

/* ===================================== 404 page */
.notfound { text-align: center; max-width: 640px; margin-inline: auto; padding-block: clamp(40px, 8vw, 90px); }
.notfound .nf-code { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--brass); font-style: italic; }
.notfound h1 { margin-top: 10px; }
.notfound p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.notfound .nf-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================================== Home locations strip */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.loc-item { padding-top: 24px; border-top: 1px solid var(--line-dark); }
.loc-item .loc-city { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.loc-item .loc-city .dot { color: #C7A86B; }
.loc-item .loc-addr { margin-top: 10px; color: var(--muted-dark); font-size: 0.96rem; line-height: 1.6; }
.loc-item .loc-dir { margin-top: 16px; }
@media (max-width: 760px) { .loc-grid { grid-template-columns: 1fr; } }
