/* ==========================================================================
   THE XU GROUP, LLC — DESIGN SYSTEM & STYLESHEET
   Playbook: Professional & B2B Services (Variant C: Approachable Expert)
   Locality: Dover, DE, USA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Tokens from design_brief.json)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #5c544d;
  --primary: #eb8113;
  --primary-hover: #cf6e0c;
  --primary-text: #120b02;
  --primary-dark: #8c4200;
  --accent: #1b4d3e;
  --accent-hover: #13392e;
  --dark: #181512;
  --dark-surface: #221e1a;
  --dark-text: #faf7f2;
  --hero-bg: #261506;
  --hero-text: #ffffff;
  --hero-gradient: linear-gradient(135deg, #261506 0%, #3e1e06 40%, #eb8113 100%);
  
  /* Borders & Surfaces */
  --border: rgba(28, 25, 23, 0.12);
  --border-subtle: rgba(28, 25, 23, 0.06);
  --border-light: rgba(250, 247, 242, 0.16);
  --card-bg: #ffffff;
  --card-bg-tint: #f5f0e6;
  
  /* Radii (Variant C: Rounded friendly structural cards) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-xs: 0 1px 2px rgba(24, 21, 18, 0.05);
  --shadow-sm: 0 2px 8px rgba(24, 21, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(24, 21, 18, 0.08);
  --shadow-lg: 0 16px 36px rgba(24, 21, 18, 0.12);
  --shadow-glow: 0 0 20px rgba(235, 129, 19, 0.25);
  
  /* Layout Containers */
  --container-max: 1240px;
  --container-narrow: 880px;
  --header-height: 72px;
  --topbar-height: 38px;
}

/* --------------------------------------------------------------------------
   2. Modern Reset & Accessibility Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease-out;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid #120b02;
}

/* Base Headings & Media */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.625rem);
  font-weight: 700;
  line-height: 1.22;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-block-end: 1rem;
}
p:last-child {
  margin-block-end: 0;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   3. Top Bar (Operational Status & Quick Contact)
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--dark);
  color: var(--dark-text);
  font-size: 0.8125rem;
  border-block-end: 1px solid rgba(250, 247, 242, 0.1);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--topbar-height);
  flex-wrap: nowrap;
}

.top-bar-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d1c8be;
  text-decoration: none;
  white-space: nowrap;
}
.top-bar-item svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--primary);
}
.top-bar-item a:hover,
a.top-bar-item:hover {
  color: #ffffff;
}

.top-bar-tag {
  background-color: rgba(235, 129, 19, 0.18);
  color: #f7a247;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.top-bar-text-mobile {
  display: none;
}
.top-bar-text-desktop {
  display: inline;
}

/* --------------------------------------------------------------------------
   4. Sticky Primary Header & Brand Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  border-block-end: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  height: var(--header-height);
}

/* Logo & Brand Wordmark */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-emblem {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #181512 0%, #3e1e06 60%, #eb8113 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(24, 21, 18, 0.2);
}
.brand-emblem svg {
  width: 24px;
  height: 24px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-title span {
  color: var(--primary-dark);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-block: 0.5rem;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.active {
  color: var(--primary-dark);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(235, 129, 19, 0.35);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(235, 129, 19, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--dark);
  color: var(--dark-text);
  border: 1px solid rgba(250, 247, 242, 0.2);
}
.btn-dark:hover {
  background-color: #2b2520;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline-dark:hover {
  background-color: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile Quick Call & Toggle */
.mobile-call-btn {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: rgba(235, 129, 19, 0.12);
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}
.mobile-call-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  margin-inline-start: auto;
}
.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
}

.hamburger-box {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background-color: var(--surface);
  border-block-end: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}
.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  background-color: transparent;
  min-height: 48px;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: rgba(235, 129, 19, 0.08);
  color: var(--primary);
}

.mobile-drawer-footer {
  border-block-start: 1px solid var(--border-subtle);
  padding-block-start: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section (Colour-field with Brand Gradient)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: var(--hero-gradient);
  color: var(--hero-text);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(235, 129, 19, 0.18) 0%, transparent 50%),
                    radial-gradient(circle at 10% 80%, rgba(27, 77, 62, 0.25) 0%, transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero-badge-wrap {
  margin-block-end: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f7ede2;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.hero-title {
  color: #ffffff;
  margin-block-end: 1.5rem;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: #edd9c8;
  max-width: 800px;
  margin-block-end: 2rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block-end: 2.5rem;
}

.hero-proof-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-block-start: 1px solid rgba(255, 255, 255, 0.16);
  padding-block-start: 1.5rem;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #edd9c8;
  font-size: 0.875rem;
}
.hero-proof-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. Full-Width Brand Band: Empirical Scale & Practice Metrics
   -------------------------------------------------------------------------- */
.metrics-band {
  background: linear-gradient(90deg, #181512 0%, #261506 50%, #181512 100%);
  color: var(--dark-text);
  padding-block: 2.75rem;
  border-block-end: 1px solid rgba(235, 129, 19, 0.2);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-inline-start: 2px solid var(--primary);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-block-end: 0.5rem;
}

.metric-label {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-block-end: 0.35rem;
}

.metric-desc {
  font-size: 0.84rem;
  color: #a89f95;
  line-height: 1.4;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Section Headers & Global Components
   -------------------------------------------------------------------------- */
.section-padding {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section-head {
  margin-block-end: clamp(2rem, 4vw, 3.5rem);
}
.section-head.text-center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-block-end: 0.75rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
  margin-block-start: 0.75rem;
}

/* --------------------------------------------------------------------------
   8. Sectors Served (4-Pillar Grid)
   -------------------------------------------------------------------------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.sector-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(235, 129, 19, 0.4);
}

.sector-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: rgba(235, 129, 19, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 1.5rem;
}
.sector-icon-box svg {
  width: 28px;
  height: 28px;
}

.sector-title {
  font-size: 1.5rem;
  margin-block-end: 0.75rem;
  color: var(--text);
}

.sector-desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-block-end: 1.5rem;
  flex-grow: 1;
}

.sector-features {
  list-style: none;
  margin-block-end: 1.5rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sector-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.sector-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.sector-card-footer {
  margin-block-start: auto;
  padding-block-start: 0.5rem;
}

.sector-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.sector-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. Signature Section: 4-Stage Engagement Pathway (Variant C)
   -------------------------------------------------------------------------- */
.signature-section {
  background-color: #f4eee4;
  position: relative;
  border-block: 1px solid var(--border);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-block-end: 2rem;
}

.pathway-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 25, 23, 0.08);
  padding: 1.75rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pathway-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.pathway-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-block-end: 1.25rem;
  box-shadow: 0 3px 8px rgba(235, 129, 19, 0.3);
}

.pathway-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-block-end: 0.25rem;
}

.pathway-title {
  font-size: 1.25rem;
  margin-block-end: 0.75rem;
  color: var(--text);
  line-height: 1.3;
}

.pathway-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-block-end: 1.25rem;
}

.pathway-deliverable {
  margin-block-start: auto;
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}
.pathway-deliverable strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-block-end: 0.2rem;
}

/* --------------------------------------------------------------------------
   10. Corporate Overview & Dover DE Leadership
   -------------------------------------------------------------------------- */
.overview-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.overview-media {
  position: relative;
}

.overview-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background-color: #e5ded4;
  aspect-ratio: 1142 / 762;
}
.overview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-badge-float {
  position: absolute;
  bottom: -1.25rem;
  inset-inline-end: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 260px;
}
.overview-badge-float svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
.overview-badge-float-text {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
}
.overview-badge-float-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.overview-content {
  display: flex;
  flex-direction: column;
}

.overview-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  margin-block-end: 1.25rem;
}

.overview-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block: 1.5rem 2rem;
}

.overview-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.overview-point-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(27, 77, 62, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-block-start: 0.15rem;
}
.overview-point-icon svg {
  width: 16px;
  height: 16px;
}
.overview-point-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.overview-point-text strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   11. Fiduciary Standards (Full-Width Dark Band)
   -------------------------------------------------------------------------- */
.fiduciary-band {
  background-color: var(--dark);
  color: var(--dark-text);
  padding-block: clamp(4rem, 8vw, 6rem);
  border-block: 1px solid rgba(250, 247, 242, 0.1);
}

.fiduciary-band h2,
.fiduciary-band h3 {
  color: #ffffff;
}

.fiduciary-band .eyebrow {
  color: #f7a247;
}

.fiduciary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.fiduciary-card {
  background-color: #211d19;
  border: 1px solid rgba(250, 247, 242, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.fiduciary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 129, 19, 0.35);
}

.fiduciary-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(235, 129, 19, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 1.25rem;
}
.fiduciary-icon svg {
  width: 24px;
  height: 24px;
}

.fiduciary-title {
  font-size: 1.3rem;
  margin-block-end: 0.75rem;
}

.fiduciary-desc {
  color: #c4bcb2;
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Real Client Endorsements & Social Proof
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.testimonial-quote-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  opacity: 0.4;
  margin-block-end: 1rem;
}
.testimonial-quote-icon svg {
  width: 100%;
  height: 100%;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin-block-end: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  border-block-start: 1px solid var(--border-subtle);
  padding-block-start: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(27, 77, 62, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.author-role {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Frequently Asked Questions (Accordion)
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(235, 129, 19, 0.4);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-icon svg {
  width: 18px;
  height: 18px;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  border-block-start: 1px solid var(--border-subtle);
  margin-block-start: 0.5rem;
  padding-block-start: 1rem;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. Closing CTA & Consultation Band (Full-Width Brand Color)
   -------------------------------------------------------------------------- */
.consultation-section {
  background: linear-gradient(135deg, #181512 0%, #261506 60%, #3a1c06 100%);
  color: var(--dark-text);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  border-block-start: 1px solid rgba(235, 129, 19, 0.25);
}

.consultation-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.consultation-info h2 {
  color: #ffffff;
  margin-block-end: 1rem;
}

.consultation-lead {
  font-size: 1.1rem;
  color: #edd9c8;
  line-height: 1.6;
  margin-block-end: 2rem;
}

.consult-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-block-end: 2rem;
}

.consult-channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.2s ease;
}
.consult-channel-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateX(4px);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(235, 129, 19, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-icon svg {
  width: 20px;
  height: 20px;
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d1c8be;
  font-weight: 600;
}

.channel-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* Consultation Form Box */
.consultation-form-box {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 1.4rem;
  color: var(--text);
  margin-block-end: 0.5rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-block-end: 1.5rem;
}

.form-group {
  margin-block-end: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.form-label .req {
  color: #c93b2b;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(235, 129, 19, 0.2);
  background-color: #ffffff;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}
.form-checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Honeypot anti-spam (hidden) */
.sr-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status-alert {
  display: none;
  margin-block-start: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.4;
}
.form-status-alert.is-success {
  display: block;
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}
.form-status-alert.is-error {
  display: block;
  background-color: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

/* --------------------------------------------------------------------------
   15. Comprehensive Multi-Column Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--dark);
  color: #a89f95;
  font-size: 0.875rem;
  border-block-start: 1px solid rgba(250, 247, 242, 0.1);
  padding-block-start: 4rem;
}

.footer-top {
  padding-block-end: 3.5rem;
  border-block-end: 1px solid rgba(250, 247, 242, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-block-end: 0.75rem;
}
.footer-brand h3 span {
  color: var(--primary);
}

.footer-desc {
  line-height: 1.6;
  margin-block-end: 1.5rem;
  max-width: 320px;
}

.footer-reg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #edd9c8;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-reg svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-block-end: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-item a {
  color: #a89f95;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-link-item a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.footer-contact-item a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}
.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-block: 1.75rem;
  font-size: 0.8125rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-credits {
  color: #8c8277;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-legal-links a {
  color: #8c8277;
  text-decoration: none;
}
.footer-legal-links a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   16. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 990;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(235, 129, 19, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, visibility 0.25s ease;
  cursor: pointer;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   17. Subpages Specific Layouts (services.html, about.html, contact.html)
   -------------------------------------------------------------------------- */
.subpage-hero {
  background: var(--hero-gradient);
  color: var(--hero-text);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-block-end: 1px solid rgba(235, 129, 19, 0.2);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #edd9c8;
  margin-block-end: 1rem;
}
.breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs-sep {
  opacity: 0.5;
}

.subpage-title {
  color: #ffffff;
  margin-block-end: 0.75rem;
}

.subpage-lead {
  font-size: 1.15rem;
  color: #edd9c8;
  max-width: 780px;
  line-height: 1.6;
}

/* Gallery & Office Showcase in about.html */
.office-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background-color: #ebe5db;
}
.gallery-card.tall {
  aspect-ratio: 1200 / 1600;
}
.gallery-card.wide {
  aspect-ratio: 1142 / 762;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(24, 21, 18, 0.85) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Map Embed Container */
.map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: #ebe5db;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Services Detailed Grid */
.service-detail-section {
  padding-block: 4rem;
  border-block-end: 1px solid var(--border);
}
.service-detail-section:last-of-type {
  border-block-end: none;
}

.service-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.service-split.reverse {
  grid-template-columns: 1fr 1.1fr;
}
.service-split.reverse .service-content {
  order: 2;
}
.service-split.reverse .service-card-box {
  order: 1;
}

.service-card-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   18. Responsive Breakpoints & Mobile First Adaptations
   -------------------------------------------------------------------------- */
/* Tablet & Small Desktop (<= 1024px) */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pathway-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fiduciary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .overview-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .consultation-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .office-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .office-gallery-grid .gallery-card.wide {
    grid-column: span 2;
  }
  .service-split,
  .service-split.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-split.reverse .service-content,
  .service-split.reverse .service-card-box {
    order: initial;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --topbar-height: 34px;
  }

  /* Top bar on mobile: exactly one row <= 36px, no wrap, 2-3 short items */
  .top-bar-inner {
    height: 34px;
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  .top-bar-item-hide-mobile {
    display: none;
  }
  .top-bar-item {
    font-size: 0.75rem;
  }

  /* Mobile header: one row, 56-64px tall, menu button visible at 320px */
  .desktop-nav,
  .header-cta-desktop {
    display: none !important;
  }

  .mobile-call-btn,
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .pathway-grid {
    grid-template-columns: 1fr;
  }
  .fiduciary-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .office-gallery-grid {
    grid-template-columns: 1fr;
  }
  .office-gallery-grid .gallery-card.wide {
    grid-column: span 1;
  }

  .hero-proof-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .overview-badge-float {
    position: static;
    margin-block-start: 1rem;
    max-width: 100%;
  }

  .consultation-form-box {
    padding: 1.5rem 1.25rem;
  }
}

/* Ultra-compact phones (<= 360px) */
@media (max-width: 360px) {
  .brand-sub {
    display: none;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-emblem {
    width: 34px;
    height: 34px;
  }
}

/* --------------------------------------------------------------------------
   19. Motion & Accessibility Optimization
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
