/* ============================================
   BARNETT ADVISORY — DESIGN SYSTEM
   ============================================ */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Color System - Core Palette */
  --color-steel-dark: #131E2A;
  --color-steel: #1E2D3D;
  --color-steel-mid: #2E4057;
  --color-steel-light: #3D556E;
  --color-steel-muted: #6B8299;

  --color-copper: #B5622B;
  --color-copper-light: #C97A45;
  --color-copper-dark: #8F4C1F;
  --color-copper-subtle: #F0E0D0;

  --color-linen: #F4F1EC;
  --color-linen-dark: #E8E4DC;
  --color-linen-darker: #D4CFC6;
  --color-white: #FDFCFB;

  /* Text Colors */
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-muted: rgba(255,255,255,0.68);
  --color-text-on-dark-subtle: rgba(255,255,255,0.40);
  --color-text-on-light: #1A1614;
  --color-text-on-light-muted: #4A4540;
  --color-text-on-light-subtle: #8A8480;
  --color-text-copper: #B5622B;

  /* Semantic / Functional Colors */
  --color-success: #1A7A4A;
  --color-success-bg: #E6F4ED;
  --color-error: #C0392B;
  --color-error-bg: #FDECEA;
  --color-warning: #B7700D;
  --color-warning-bg: #FDF3E3;
  --color-info: #1E5FA3;
  --color-info-bg: #E8F0FA;

  /* Overlay Colors */
  --color-overlay-dark: rgba(19,30,42,0.72);
  --color-overlay-medium: rgba(19,30,42,0.52);
  --color-overlay-light: rgba(19,30,42,0.32);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Type Scale */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: 36px;
  --text-3xl: 48px;
  --text-4xl: 64px;
  --text-5xl: 88px;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --leading-loose: 1.9;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.10em;
  --tracking-widest: 0.16em;

  /* Spacing System */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(19,30,42,0.08), 0 1px 2px rgba(19,30,42,0.06);
  --shadow-md: 0 4px 12px rgba(19,30,42,0.10), 0 2px 4px rgba(19,30,42,0.06);
  --shadow-lg: 0 8px 24px rgba(19,30,42,0.12), 0 4px 8px rgba(19,30,42,0.08);
  --shadow-xl: 0 16px 48px rgba(19,30,42,0.14), 0 8px 16px rgba(19,30,42,0.08);
  --shadow-copper: 0 4px 16px rgba(181,98,43,0.28);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34,1.56,0.64,1);

  /* Icon Sizes */
  --icon-sm: 16px;
  --icon-md: 24px;
  --icon-lg: 40px;
  --icon-xl: 56px;

  /* Responsive Breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;
  --bp-2xl: 1440px;
}

/* ============================================
   CSS RESET
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  color: var(--color-text-on-light);
  line-height: var(--leading-relaxed);
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-copper);
  margin-bottom: var(--space-4);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

h1 {
  font-size: var(--text-2xl);
  font-size: 36px;
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-24) 0;
  }

  h1 {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-5xl);
  }
}

.section-dark {
  background-color: var(--color-steel);
  color: var(--color-text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-on-dark);
}

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

.section-light {
  background-color: var(--color-linen);
  color: var(--color-text-on-light);
}

.section-white {
  background-color: var(--color-white);
  color: var(--color-text-on-light);
}

.section-steel-dark {
  background-color: var(--color-steel-dark);
  color: var(--color-text-on-dark);
}

.section-steel-dark h1,
.section-steel-dark h2,
.section-steel-dark h3,
.section-steel-dark h4 {
  color: var(--color-text-on-dark);
}

.section-steel-dark p {
  color: var(--color-text-on-dark-muted);
}

.section-copper {
  background-color: var(--color-copper);
  color: var(--color-text-on-dark);
}

.section-copper h1,
.section-copper h2,
.section-copper h3 {
  color: #FFFFFF;
}

.section-copper p {
  color: rgba(255,255,255,0.82);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  transition: background var(--transition-base), box-shadow var(--transition-base), height var(--transition-base);
}

@media (min-width: 768px) {
  .nav {
    height: 72px;
    padding: var(--space-5) var(--space-8);
  }
}

.nav-transparent {
  background-color: rgba(0,0,0,0);
}

.nav-scrolled {
  background-color: var(--color-steel-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.20);
  height: 52px;
}

@media (min-width: 768px) {
  .nav-scrolled {
    height: 60px;
  }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  z-index: 1002;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-client-portal {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-client-portal:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-1px);
  color: var(--color-text-on-dark);
  text-decoration: none;
}

.nav-scrolled .nav-client-portal {
  padding: 6px 14px;
  font-size: 10px;
}

@media (min-width: 768px) {
  .nav-client-portal {
    padding: 8px 18px;
  }

  .nav-scrolled .nav-client-portal {
    padding: 6px 14px;
  }
}

.nav-links {
  display: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: rgba(255,255,255,0.75);
  position: relative;
  padding: var(--space-2) 0;
  letter-spacing: var(--tracking-widest);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-on-dark);
}

.nav-link.active {
  color: var(--color-copper);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-copper);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-copper);
  transition: transform var(--transition-fast);
  transform: scaleX(0);
  transform-origin: left;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Nav CTA Button */
.nav-cta {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--color-copper);
  border: 2px solid var(--color-copper);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-cta:hover {
  background: var(--color-copper-light);
  border-color: var(--color-copper-light);
  box-shadow: var(--shadow-copper);
  transform: translateY(-1px);
}

.nav-scrolled .nav-cta {
  padding: 8px 18px;
}

@media (min-width: 768px) {
  .nav-cta {
    padding: 10px 20px;
  }

  .nav-scrolled .nav-cta {
    padding: 8px 18px;
  }
}

/* Hamburger Menu */
.nav-hamburger {
  display: flex;
  background: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 1002;
}

@media (min-width: 768px) {
  .nav-hamburger {
    display: none;
  }
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--color-copper);
  transition: all var(--transition-base);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--color-steel-dark);
  z-index: 1001;
  padding: var(--space-6);
  transition: right var(--transition-base);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-close {
  background: none;
  color: var(--color-copper);
  font-size: 1.5rem;
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  cursor: pointer;
  font-family: var(--font-display);
}

.mobile-nav-links {
  margin-top: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-on-dark);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-cta {
  margin-top: var(--space-6);
  display: block;
  background-color: var(--color-copper);
  color: #FFFFFF;
  padding: var(--space-4);
  border-radius: var(--radius-pill);
  text-align: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-size: var(--text-sm);
}

.services-accordion {
  margin-top: var(--space-4);
}

.services-accordion-header {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-copper);
  padding: var(--space-3) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.services-accordion-content {
  display: none;
  padding-left: var(--space-4);
  margin-top: var(--space-3);
}

.services-accordion-content.open {
  display: block;
}

.services-accordion-link {
  display: block;
  color: var(--color-text-on-dark-muted);
  padding: var(--space-2) 0;
  font-size: var(--text-base);
}

.services-accordion-link:hover {
  color: var(--color-copper);
}

.accordion-chevron {
  transition: transform var(--transition-base);
}

/* ============================================
   MEGA MENU — REDESIGNED
   ============================================ */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-steel-dark);
  border-top: 2px solid var(--color-copper);
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
  display: none;
  z-index: 999;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.mega-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .mega-menu-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    padding: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .mega-menu-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    padding: var(--space-8) var(--space-10);
  }
}

.mega-menu-column {
  min-width: 0;
}

/* CTA row below service columns */
.mega-menu-cta-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-2);
}

.mega-menu-cta-row .btn {
  font-size: var(--text-xs);
  padding: 8px 16px;
}

.mega-menu-cta-card {
  background-color: rgba(255,255,255,0.08);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base), transform var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: block;
}

.mega-menu-cta-card:hover {
  background-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  border-color: rgba(181,98,43,0.3);
  text-decoration: none;
}

.mega-menu-cta-title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.mega-menu-cta-desc {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

.mega-menu-industries {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.industry-pill {
  background-color: rgba(255,255,255,0.08);
  color: var(--color-text-on-dark);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  border: 1px solid rgba(181,98,43,0.3);
  letter-spacing: 0.02em;
}

.mega-menu-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--color-copper);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.mega-menu-link {
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
  display: block;
  transition: color var(--transition-fast);
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--text-sm);
}

.mega-menu-link::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--color-copper);
  opacity: 0;
  transition: opacity var(--transition-fast);
  font-size: var(--text-xs);
}

.mega-menu-link:hover {
  color: var(--color-copper);
}

.mega-menu-link:hover::before {
  opacity: 1;
}

.mega-menu-explore {
  color: var(--color-copper);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-4);
  display: block;
  font-size: var(--text-sm);
}

.mega-menu-cta-column {
  background-color: rgba(255,255,255,0.05);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(181,98,43,0.2);
}

.mega-menu-cta-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--color-copper);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.mega-menu-cta-card {
  background-color: rgba(255,255,255,0.08);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  transition: background-color var(--transition-base), transform var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
}

.mega-menu-cta-card:hover {
  background-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  border-color: rgba(181,98,43,0.3);
}

.mega-menu-cta-title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.mega-menu-cta-desc {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

.mega-menu-industries {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.industry-pill {
  background-color: rgba(255,255,255,0.08);
  color: var(--color-text-on-dark);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  border: 1px solid rgba(181,98,43,0.3);
  letter-spacing: 0.02em;
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.btn-primary {
  color: #FFFFFF;
  background: var(--color-copper);
  border-color: var(--color-copper);
  padding: 14px 28px;
}

.btn-primary:hover {
  background: var(--color-copper-light);
  border-color: var(--color-copper-light);
  box-shadow: var(--shadow-copper);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--color-copper-dark);
  border-color: var(--color-copper-dark);
  box-shadow: none;
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-copper-light);
  outline-offset: 3px;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  color: var(--color-text-on-dark);
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  padding: 14px 28px;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-1px);
}

.btn-secondary:active {
  background: rgba(255,255,255,0.06);
  transform: translateY(0);
}

.btn-secondary:focus-visible {
  outline: 3px solid rgba(255,255,255,0.50);
  outline-offset: 3px;
}

.btn-outline {
  color: var(--color-copper);
  background: transparent;
  border: 2px solid var(--color-copper);
  padding: 14px 28px;
}

.btn-outline:hover {
  background: var(--color-copper);
  color: #FFFFFF;
  box-shadow: var(--shadow-copper);
  transform: translateY(-1px);
}

.btn-outline:active {
  background: var(--color-copper-dark);
  border-color: var(--color-copper-dark);
  transform: translateY(0);
}

.btn-outline:focus-visible {
  outline: 3px solid var(--color-copper-light);
  outline-offset: 3px;
}

.btn-ghost {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-copper);
  background: transparent;
  border: none;
  padding: 14px 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.btn-ghost:hover {
  border-bottom-color: var(--color-copper);
}

.btn-sm {
  padding: 8px 18px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-base);
}

/* ============================================
   CARD SYSTEM
   ============================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-linen-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-linen-darker);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-dark {
  background: var(--color-steel-mid);
  border: 1px solid var(--color-steel-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  color: var(--color-text-on-dark);
}

.card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card-dark:hover {
  background: var(--color-steel-light);
  box-shadow: 0 8px 32px rgba(0,0,0,0.24);
  transform: translateY(-4px);
}

.card-dark:hover::before {
  transform: scaleX(1);
}

.card-feature {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card-stat {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border-right: 1px solid var(--color-linen-dark);
}

.card-stat:last-child {
  border-right: none;
}

/* ============================================
   FORM SYSTEM
   ============================================ */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-light-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text-on-light);
  background: var(--color-white);
  border: 1.5px solid var(--color-linen-dark);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form-input::placeholder {
  color: var(--color-text-on-light-subtle);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--color-linen-darker);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-copper);
  box-shadow: 0 0 0 3px rgba(181,98,43,0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

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

.form-error {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-24);
}

.form-success.show {
  display: block;
}

/* ============================================
   BADGE & TAG SYSTEM
   ============================================ */
.badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}

.badge-copper {
  background: var(--color-copper-subtle);
  color: var(--color-copper-dark);
}

.badge-steel {
  background: var(--color-steel-mid);
  color: rgba(255,255,255,0.85);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--color-linen-darker);
  color: var(--color-text-on-light-muted);
}

.tag {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-light-muted);
  background: var(--color-linen);
  border: 1px solid var(--color-linen-dark);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: inline-block;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--color-copper-subtle);
  border-color: var(--color-copper);
  color: var(--color-copper-dark);
}

/* ============================================
   ICON SYSTEM
   ============================================ */
.icon-sm {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.icon-md {
  width: var(--icon-md);
  height: var(--icon-md);
}

.icon-lg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

.icon-xl {
  width: var(--icon-xl);
  height: var(--icon-xl);
}

/* All icons are SVG with these properties */
svg.icon {
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-on-dark {
  stroke: var(--color-copper);
}

.icon-on-light {
  stroke: var(--color-steel);
}

.icon-on-copper {
  stroke: #FFFFFF;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-steel-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-24) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand-wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--color-copper);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  margin-bottom: var(--space-6);
  opacity: 0.8;
  color: var(--color-text-on-dark-muted);
}

.footer-nav-link {
  display: block;
  padding: var(--space-2) 0;
  opacity: 0.8;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  color: var(--color-text-on-dark);
}

.footer-nav-link:hover {
  color: var(--color-copper);
  opacity: 1;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--color-copper);
  margin-bottom: var(--space-4);
}

.footer-contact-item {
  margin-bottom: var(--space-3);
  opacity: 0.8;
  color: var(--color-text-on-dark-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  opacity: 0.8;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* ============================================
   HERO — SIMPLIFIED
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background-color: var(--color-steel);
}

.hero-with-bg {
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay-dark);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-8) var(--space-6);
  width: 100%;
}

.hero-ghost-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(120px, 18vw, 220px);
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.hero-content .eyebrow {
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-4);
}

.hero-headline {
  position: relative;
  z-index: 2;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.hero-divider {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 3px;
  background-color: var(--color-copper);
  margin: var(--space-4) auto;
}

.hero-subheadline {
  position: relative;
  z-index: 2;
  color: var(--color-text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto var(--space-6);
  font-size: var(--text-md);
}

.hero-cta-group {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-on-dark);
  animation: chevronBounce 2s infinite;
}

/* Mobile */
@media (max-width: 1024px) {
  .hero {
    padding-top: 100px;
  }

  .hero-content {
    padding: var(--space-6) var(--space-4);
    padding-top: calc(100px + var(--space-6));
  }

  .hero-ghost-number {
    font-size: clamp(80px, 16vw, 160px);
    left: 50%;
    top: 20%;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: calc(80px + var(--space-4));
  }

  .hero-headline {
    font-size: var(--text-2xl);
  }

  .hero-ghost-number {
    font-size: 72px;
    top: 15%;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   HERO METRICS BAR (below hero)
   ============================================ */
.hero-metrics-bar {
  background: var(--color-steel-dark);
  border-top: 3px solid var(--color-copper);
  padding: var(--space-6) 0;
  position: relative;
  z-index: 3;
}

.hero-metrics-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hero-metrics-bar .metric {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.hero-metrics-bar .metric-number {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--text-xl);
  color: var(--color-copper);
  line-height: 1;
}

.hero-metrics-bar .metric-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.hero-metrics-bar .metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .hero-metrics-bar {
    padding: var(--space-4) 0;
  }

  .hero-metrics-bar .container {
    gap: var(--space-4);
  }

  .hero-metrics-bar .metric-number {
    font-size: var(--text-lg);
  }

  .hero-metrics-bar .metric-divider {
    height: 24px;
  }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background-color: var(--color-linen);
  padding: var(--space-8) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 0 var(--space-4);
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: 3rem;
  color: var(--color-steel);
}

.stat-label {
  font-family: var(--font-body);
  color: var(--color-text-on-light-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.stat-divider {
  display: none;
}

@media (min-width: 768px) {
  .stat-divider {
    display: block;
    width: 1px;
    height: 60px;
    background-color: var(--color-copper);
    margin: 0 auto;
  }
}

/* ============================================
   CLIENT LOGOS
   ============================================ */
.client-logos {
  padding: var(--space-8) 0;
  text-align: center;
  background-color: #FFFFFF;
}

.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  align-items: center;
  justify-items: center;
}

.client-logo {
  height: 44px;
  max-width: 140px;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--transition-base), opacity var(--transition-base);
  object-fit: contain;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   PILLARS
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-item {
  padding: var(--space-6);
  border-left: 3px solid transparent;
  transition: border-color var(--transition-base);
}

.pillar-item:hover {
  border-left-color: var(--color-copper);
}

.pillar-icon {
  color: var(--color-copper);
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

/* ============================================
   PRACTICE AREAS
   ============================================ */
.practice-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .practice-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   WHO WE SERVE
   ============================================ */
.serve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .serve-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .serve-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.serve-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.serve-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-copper);
}

.serve-icon {
  margin-bottom: var(--space-4);
}

.serve-icon svg {
  width: 48px;
  height: 48px;
}

.serve-card h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--color-text-on-light);
  margin-bottom: var(--space-3);
}

.serve-card p {
  font-size: var(--text-sm);
  color: var(--color-text-on-light-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.serve-trust {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-copper);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--color-white);
  padding: var(--space-6);
  border-left: 4px solid var(--color-copper);
  border-radius: var(--radius-sm);
}

.testimonial-card-dark {
  background-color: var(--color-steel-mid);
  color: var(--color-text-on-dark);
  border-left-color: var(--color-copper);
}

/* ============================================
   QUIZ
   ============================================ */
.quiz-section {
  background-color: var(--color-linen);
  min-height: 100vh;
  padding-top: 100px;
}

.quiz-progress {
  width: 100%;
  height: 8px;
  background-color: var(--color-steel);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--color-copper);
  width: 0%;
  transition: width var(--transition-base);
}

.quiz-question {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quiz-question-text {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  line-height: var(--leading-snug);
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .quiz-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quiz-option {
  background-color: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  text-align: left;
  font-family: var(--font-body);
}

.quiz-option:hover {
  border-color: var(--color-copper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quiz-option.selected {
  border-color: var(--color-copper);
  background-color: var(--color-copper-subtle);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-6);
}

.quiz-results {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.score-bar {
  width: 100%;
  height: 24px;
  background-color: var(--color-steel);
  border-radius: var(--radius-pill);
  margin: var(--space-4) 0 var(--space-8);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background-color: var(--color-copper);
  width: 0%;
  transition: width 1s ease;
}

.score-bar-fill-s { background-color: var(--color-copper); }
.score-bar-fill-p { background-color: var(--color-steel); }
.score-bar-fill-t { background-color: var(--color-steel-light); }

.results-headline {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: var(--color-text-on-light);
}

.results-desc {
  color: var(--color-text-on-light-muted);
  margin-bottom: var(--space-8);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-hero {
  padding-top: 150px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chevronBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes counterPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.fade-slide-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="0"] { transition-delay: 0ms; }
[data-delay="1"] { transition-delay: 100ms; }
[data-delay="2"] { transition-delay: 200ms; }
[data-delay="3"] { transition-delay: 300ms; }
[data-delay="4"] { transition-delay: 400ms; }
[data-delay="5"] { transition-delay: 500ms; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-linen);
}

::-webkit-scrollbar-thumb {
  background: var(--color-steel-muted);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-steel-light);
}

/* ============================================
   SELECT STYLING
   ============================================ */
select.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4540' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ============================================
   RESPONSIVE HELPERS
   ============================================ */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: var(--text-2xl);
  }

  .stat-divider {
    display: none;
  }
}

/* Small text utility */
.small-text {
  font-size: var(--text-sm);
}

.italic {
  font-style: italic;
}

.text-copper {
  color: var(--color-copper);
}

.text-steel {
  color: var(--color-steel);
}

.text-white {
  color: var(--color-text-on-dark);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   TESTIMONIALS ENHANCEMENT - WOW FACTOR
   ============================================ */

/* Featured Testimonial Glow */
.section-dark .card-dark[style*="border-left:4px solid var(--color-copper)"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-dark .card-dark[style*="border-left:4px solid var(--color-copper)"]::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  color: var(--color-copper);
  opacity: 0.08;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.section-dark .card-dark[style*="border-left:4px solid var(--color-copper)"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(203, 109, 50, 0.1);
}

/* Grid Testimonials */
.section-dark .grid-2 .card-dark[style*="border-left:3px solid var(--color-copper)"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-dark .grid-2 .card-dark[style*="border-left:3px solid var(--color-copper)"]::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: 15px;
  font-size: 80px;
  color: var(--color-copper);
  opacity: 0.06;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.section-dark .grid-2 .card-dark[style*="border-left:3px solid var(--color-copper)"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2), 0 0 20px rgba(203, 109, 50, 0.08);
}

/* Metrics Animation */
.section-dark .card-dark [style*="font-size:1.5rem"] div:first-child {
  position: relative;
  display: inline-block;
}

.section-dark .card-dark [style*="font-size:1.5rem"] div:first-child::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--color-copper);
  border-radius: 1px;
}

/* Client Logo Styling */
.section-dark .card-dark img[alt*="Jiffy"] {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.section-dark .card-dark:hover img[alt*="Jiffy"] {
  opacity: 1;
}

/* Testimonial Text Enhancement */
.section-dark .card-dark[style*="border-left:4px"] p[style*="font-size:1.25rem"] {
  position: relative;
  z-index: 1;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .section-dark .card-dark[style*="border-left:4px solid var(--color-copper)"] {
    padding: var(--space-10);
  }
}
