/*
Theme Name: KC Jurist Chambers
Theme URI: https://kcjuristchambers.com
Description: Official theme for Khanna Counsel Jurist Chambers — Legal Excellence, Family Office & Sovereign Advisory
Version: 1.0.0
Author: KC Jurist Chambers
Author URI: https://kcjuristchambers.com
Text Domain: kcjc
License: Proprietary
Tags: law-firm, legal, family-office, professional, dark
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:         #0A1628;
  --navy-dark:    #060D1A;
  --navy-mid:     #132035;
  --navy-light:   #1E3050;
  --gold:         #C9A84C;
  --gold-light:   #E8D5A3;
  --gold-dark:    #A0842A;
  --gold-pale:    #F9F3E6;
  --cream:        #F8F6F1;
  --white:        #FFFFFF;
  --text:         #1C1C1A;
  --text-mid:     #4A4A46;
  --text-light:   #7A7A75;
  --border:       #E0DDD6;
  --border-dark:  #C8C4BB;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;
  --fs-7xl:  4.5rem;

  --fw-light:  300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 16px rgba(10,22,40,0.12);
  --shadow-lg: 0 8px 32px rgba(10,22,40,0.18);
  --shadow-xl: 0 16px 48px rgba(10,22,40,0.24);

  --max-w: 1280px;
  --gutter: 2rem;

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: var(--fw-light);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: var(--fs-xl); font-weight: var(--fw-medium); }
h5 { font-size: var(--fs-lg); font-weight: var(--fw-medium); }
h6 { font-size: var(--fs-base); font-weight: var(--fw-semi); letter-spacing: 0.08em; text-transform: uppercase; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: var(--fw-semi); }
em { font-style: italic; }

blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--navy);
  margin: 2rem 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1440px; }

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

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

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

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

/* ============================================================
   COLOUR MODIFIERS
   ============================================================ */
.bg-navy   { background: var(--navy); color: var(--white); }
.bg-navy-dark { background: var(--navy-dark); color: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-gold   { background: var(--gold); }
.bg-white  { background: var(--white); }

.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-light  { color: var(--text-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border: 1.5px solid var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--sm { padding: 0.625rem 1.25rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.125rem 2.5rem; font-size: var(--fs-base); }

/* ============================================================
   SECTION LABELS / EYEBROWS
   ============================================================ */
.eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  margin-bottom: 1rem;
}
.section-heading + p {
  font-size: var(--fs-lg);
  color: var(--text-mid);
  max-width: 640px;
}

/* ============================================================
   DECORATIVE DIVIDER
   ============================================================ */
.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.gold-rule--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--dark {
  background: var(--navy-mid);
  border-color: rgba(255,255,255,0.08);
  color: var(--white);
}
.card--dark:hover {
  border-color: var(--gold);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  font-size: var(--fs-base);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}
.badge--gold { background: var(--gold-pale); color: var(--gold-dark); }
.badge--navy { background: rgba(10,22,40,0.08); color: var(--navy); }
.badge--white { background: rgba(255,255,255,0.15); color: var(--white); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all var(--transition-slow);
}

.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.site-header.header--light {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__primary {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}
.site-logo__secondary {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.header--light .site-logo__primary { color: var(--navy); }
.header--light .site-logo__secondary { color: var(--gold-dark); }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 0; }

.primary-nav .menu-item { position: relative; }

.primary-nav .menu-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  white-space: nowrap;
}
.primary-nav .menu-item > a:hover,
.primary-nav .menu-item.current-menu-item > a {
  color: var(--gold);
}
.header--light .primary-nav .menu-item > a { color: var(--text-mid); }
.header--light .primary-nav .menu-item > a:hover { color: var(--gold-dark); }

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--navy-dark);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.primary-nav .menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu li a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
}
.primary-nav .sub-menu li a:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.04);
  padding-left: 1.5rem;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-portal-link {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.header-portal-link:hover { color: var(--gold); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.header--light .nav-toggle span { background: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(201,168,76,0.04) 79px,
      rgba(201,168,76,0.04) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(201,168,76,0.04) 79px,
      rgba(201,168,76,0.04) 80px
    );
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(30,48,80,0.6) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 9rem 0 5rem;
  max-width: 800px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero__eyebrow-text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: var(--fw-light);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__subtitle {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.5), transparent);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============================================================
   CREDENTIALS BAR
   ============================================================ */
.credentials-bar {
  background: var(--gold);
  padding: 0.875rem 0;
  overflow: hidden;
}
.credentials-bar__track {
  display: flex;
  gap: 2.5rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.credentials-bar__track:hover { animation-play-state: paused; }
.credentials-bar__item {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.credentials-bar__item::before {
  content: '·';
  color: rgba(10,22,40,0.4);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICE PILLARS
   ============================================================ */
.pillars { background: var(--cream); }
.pillars__header { margin-bottom: 3.5rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pillar-item {
  padding: 2rem 1.25rem;
  border-right: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition-slow);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
}
.pillar-item:last-child { border-right: none; }
.pillar-item:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.pillar-item:hover .pillar-item__icon { color: var(--gold); }
.pillar-item:hover .pillar-item__label { color: var(--white); }
.pillar-item:hover .pillar-item__count { color: rgba(255,255,255,0.5); }

.pillar-item__icon {
  font-size: 1.75rem;
  color: var(--gold-dark);
  transition: color var(--transition);
}
.pillar-item__label {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--navy);
  line-height: 1.3;
  transition: color var(--transition);
}
.pillar-item__count {
  font-size: var(--fs-xs);
  color: var(--text-light);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

/* ============================================================
   ABOUT SNAPSHOT
   ============================================================ */
.about-snapshot { background: var(--white); }
.about-snapshot__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-snapshot__image {
  position: relative;
}
.about-snapshot__image-wrap {
  aspect-ratio: 4/5;
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-snapshot__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-snapshot__badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-snapshot__badge-num {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: var(--fw-light);
  line-height: 1;
  display: block;
}
.about-snapshot__badge-text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-snapshot__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.stat { padding: 1.25rem; border-left: 2px solid var(--gold); background: var(--cream); }
.stat__num {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-light);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat__label { font-size: var(--fs-sm); color: var(--text-light); }

/* ============================================================
   PRACTICE AREAS GRID
   ============================================================ */
.practices { background: var(--navy); padding: 5rem 0; }
.practices h2, .practices h6 { color: var(--white); }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 3rem;
}
.practice-card {
  background: var(--navy-mid);
  padding: 2.25rem 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
}
.practice-card:hover { background: var(--navy-light); }
.practice-card:hover .practice-card__arrow { transform: translateX(4px); color: var(--gold); }
.practice-card__num {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  color: var(--gold);
}
.practice-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-light);
  color: var(--white);
  line-height: 1.2;
}
.practice-card__desc { font-size: var(--fs-sm); color: rgba(255,255,255,0.55); line-height: 1.65; flex: 1; }
.practice-card__arrow {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.3);
  transition: all var(--transition);
  align-self: flex-end;
}

/* ============================================================
   FAMILY OFFICE HIGHLIGHT
   ============================================================ */
.family-office-section { background: var(--cream); }
.fo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.fo-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.fo-service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.fo-service-item:hover { border-color: var(--gold); }
.fo-service-item__icon { font-size: 1.25rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.fo-service-item__text { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--navy); }

.fo-image-stack { position: relative; }
.fo-image-main {
  aspect-ratio: 3/4;
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fo-image-main img { width: 100%; height: 100%; object-fit: cover; }
.fo-image-accent {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 60%;
  aspect-ratio: 4/3;
  background: var(--gold-pale);
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.fo-image-accent__num {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: var(--fw-light);
  color: var(--navy);
}
.fo-image-accent__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ============================================================
   SOVEREIGN ADVISORY BANNER
   ============================================================ */
.sovereign-banner {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
.sovereign-banner__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
}
.sovereign-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
}
.sovereign-banner h2 { color: var(--white); }
.sovereign-banner p { color: rgba(255,255,255,0.65); }

.sovereign-services { margin-top: 2rem; }
.sovereign-service {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: color var(--transition);
  cursor: default;
}
.sovereign-service:hover { color: var(--gold); }
.sovereign-service:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.sovereign-service__arrow { color: var(--gold); opacity: 0; transition: opacity var(--transition); }
.sovereign-service:hover .sovereign-service__arrow { opacity: 1; }

/* ============================================================
   GLOBAL PRESENCE
   ============================================================ */
.global-presence { background: var(--cream); }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.location-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.location-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.location-item__flag { font-size: 2rem; margin-bottom: 0.75rem; }
.location-item__city {
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.location-item__role { font-size: var(--fs-xs); color: var(--text-light); }
.location-item--hq { border-color: var(--gold); background: var(--gold-pale); }

/* ============================================================
   PUBLICATIONS / INSIGHTS
   ============================================================ */
.insights { background: var(--white); }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.insight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.insight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.insight-card__image {
  aspect-ratio: 16/9;
  background: var(--navy-mid);
  overflow: hidden;
}
.insight-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.insight-card:hover .insight-card__image img { transform: scale(1.03); }
.insight-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.insight-card__category {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.insight-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  flex: 1;
}
.insight-card__meta { font-size: var(--fs-xs); color: var(--text-light); margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--gold);
  padding: 4rem 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: var(--navy-dark); font-size: 2.25rem; }
.cta-band p { color: rgba(10,22,40,0.7); }

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.team-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.team-card__photo {
  aspect-ratio: 3/4;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.team-card:hover .team-card__photo {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 3rem;
  color: var(--gold);
}
.team-card__name { font-family: var(--ff-display); font-size: var(--fs-xl); color: var(--navy); margin-bottom: 0.25rem; }
.team-card__role { font-size: var(--fs-sm); color: var(--text-light); margin-bottom: 0.5rem; }
.team-card__bars { font-size: var(--fs-xs); color: var(--gold-dark); font-weight: var(--fw-medium); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.65); font-size: var(--fs-lg); max-width: 600px; margin-top: 1rem; }
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.4); }
.page-hero__breadcrumb a:hover { color: var(--gold); }
.page-hero__breadcrumb .sep { color: rgba(255,255,255,0.2); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-block h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.contact-block p { font-size: var(--fs-sm); color: var(--text-mid); margin: 0; line-height: 1.8; }
.contact-block a { color: var(--gold-dark); }
.contact-block a:hover { color: var(--navy); }

/* ============================================================
   CLIENT PORTAL PAGE
   ============================================================ */
.portal-page { background: var(--navy-dark); min-height: 80vh; display: flex; align-items: center; }
.portal-card {
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.portal-card h2 { color: var(--white); text-align: center; margin-bottom: 0.5rem; }
.portal-card > p { color: rgba(255,255,255,0.55); text-align: center; margin-bottom: 2rem; font-size: var(--fs-sm); }
.portal-card .form-input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}
.portal-card .form-input::placeholder { color: rgba(255,255,255,0.3); }
.portal-card .form-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.portal-card .form-label { color: rgba(255,255,255,0.7); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .site-logo__primary { color: var(--white); font-size: 1.4rem; }
.footer-brand__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h5 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul li a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.3);
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--gold); }

.footer-bar-reg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.25);
  margin-top: 0.75rem;
}
.footer-bar-reg span { color: var(--gold); font-weight: var(--fw-semi); }

/* ============================================================
   CONTENT AREA (Blog / Posts)
   ============================================================ */
.content-area { padding: 5rem 0; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  margin: 2rem 0 1rem;
}
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content a { color: var(--gold-dark); text-decoration: underline; }
.entry-content a:hover { color: var(--navy); }

/* Sidebar */
.widget { margin-bottom: 2.5rem; }
.widget-title {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: none;
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pillar-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 1.25rem; }
  .grid-2, .grid-3, .grid-4,
  .about-snapshot__inner, .fo-grid,
  .sovereign-banner__inner, .contact-grid,
  .insights-grid, .cta-band__inner { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 2.75rem; }
  .content-layout { grid-template-columns: 1fr; }
  .about-snapshot__badge { bottom: 1rem; right: 1rem; }
  .fo-image-accent { bottom: -1rem; left: -1rem; }
}

@media (max-width: 768px) {
  .primary-nav, .header-portal-link { display: none; }
  .nav-toggle { display: flex; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; }
  .hero__content { padding: 7rem 0 4rem; }
  .page-hero { padding: 7rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .section--lg { padding: 5rem 0; }
  .cta-band__inner { flex-direction: column; text-align: center; }

  /* Mobile menu open state */
  .mobile-menu-open .primary-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-dark);
    padding: 2rem var(--gutter);
    gap: 0;
    overflow-y: auto;
  }
  .mobile-menu-open .primary-nav .menu-item > a {
    font-size: var(--fs-lg);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--white);
  }
  .mobile-menu-open .primary-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    background: transparent;
  }
}

@media (max-width: 480px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  font-weight: var(--fw-semi);
  z-index: 9999;
  transition: top 0s;
}
.skip-link:focus { top: 0; }

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

/* ============================================================
   WORDPRESS DEFAULTS
   ============================================================ */
.alignleft  { float: left; margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; }
.wp-caption-text { font-size: var(--fs-sm); color: var(--text-light); text-align: center; margin-top: 0.5rem; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--white); clip: auto; clip-path: none;
  color: var(--text); display: block; font-size: var(--fs-sm);
  height: auto; left: 5px; padding: 0.75rem 1.25rem;
  top: 5px; width: auto; z-index: 100000;
}

/* ============================================================
   LOGO IMAGE OVERRIDES (branded PNG logo)
   ============================================================ */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
  /* White bg logo: invert on dark headers */
  filter: none;
}

/* On dark (transparent/scrolled) header — logo is on dark bg, needs white treatment */
.site-header:not(.header--light) .site-logo__img {
  /* The logo has a white background: add drop-shadow to lift it */
  filter: drop-shadow(0 0 0 transparent);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
}

/* On light header (interior pages) — logo sits naturally */
.header--light .site-logo__img {
  background: transparent;
  padding: 0;
}

.site-logo:hover .site-logo__img {
  opacity: 0.88;
}

/* Footer logo sizing */
.site-footer .site-logo__img {
  height: 80px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ============================================================
   BRAND COLOR OVERRIDES — match logo exactly
   #0D1C3E (deep navy from logo text)
   #C9A84C (gold from logo accents)
   ============================================================ */
:root {
  --navy:      #0D1C3E;
  --navy-dark: #07111F;
  --navy-mid:  #142240;
  --navy-light: #1E3060;
  --gold:      #C9A84C;
  --gold-light:#E8D5A3;
  --gold-dark: #A0842A;
  --gold-pale: #FDF6E3;
}

/* ============================================================
   HERO EYEBROW — firm tagline from logo
   ============================================================ */
.hero__tagline-band {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.hero__tagline-dot {
  color: var(--gold);
  font-size: 0.6rem;
}
.hero__tagline-word {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   ADDRESS BLOCK (footer)
   ============================================================ */
.footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-address__line {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.footer-address__icon {
  font-size: 0.75rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-address__line a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-address__line a:hover { color: var(--gold); }

/* ============================================================
   CONTACT CARD with map pin style
   ============================================================ */
.contact-address-card {
  background: var(--gold-pale);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.contact-address-card h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.875rem;
}
.contact-address-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.contact-address-item:last-child { margin-bottom: 0; }
.contact-address-item__icon {
  font-size: 1rem;
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-address-item a { color: var(--navy); font-weight: var(--fw-medium); }
.contact-address-item a:hover { color: var(--gold-dark); }

/* ============================================================
   HERO LOGO DISPLAY (large logo on homepage hero)
   ============================================================ */
.hero__logo-display {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.hero__logo-img {
  width: 320px;
  height: 320px;
  object-fit: contain;
  opacity: 0.12;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  filter: brightness(10);
  pointer-events: none;
  user-select: none;
}
