/* ==========================================================================
   REGENT WEALTH FINANCIAL PLANNING - PRODUCTION DESIGN SYSTEM & STYLES
   Modern, Accessible (WCAG AA), Responsive (Mobile-First) CSS Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-primary: #0f3830;          /* Deep British Racing Green */
  --color-primary-light: #1b564b;    /* Rich Emerald */
  --color-primary-dark: #09241f;     /* Midnight Pine */
  --color-primary-surface: #eaf3f0;  /* Subtle Green Tint */

  --color-accent: #257c7e;           /* Regent Petrol / Marine Teal */
  --color-accent-light: #389ba0;     /* Vibrant Teal Accent */
  --color-accent-dark: #1b585a;      /* Deep Teal */
  --color-accent-subtle: #f0f7f7;    /* Soft Teal Wash */

  --color-gold: #c29b38;             /* Warm Prestige Gold */
  --color-gold-light: #dfb858;       /* Champagne Gold */
  --color-gold-subtle: #fdf9ee;      /* Warm Gold Wash */

  /* Neutral Spectrum */
  --color-bg: #f8fafc;               /* Off-white background */
  --color-surface: #ffffff;          /* Pure white card surface */
  --color-surface-alt: #f1f5f9;      /* Light gray secondary surface */
  --color-border: #e2e8f0;           /* Subtle structural border */
  --color-border-focus: #257c7e;     /* Accessible focus indicator */

  /* Typography Colors */
  --color-text-main: #0f172a;        /* Deep charcoal (high contrast > 12:1) */
  --color-text-muted: #334155;       /* Medium slate (contrast > 7:1) */
  --color-text-subtle: #64748b;      /* Slate grey (contrast > 4.5:1) */
  --color-text-inverse: #ffffff;     /* White on dark */

  /* Semantic Feedback */
  --color-success: #15803d;
  --color-warning: #b45309;
  --color-error: #b91c1c;

  /* Typography System */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Fluid Typographic Scale using clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.1vw, 2.375rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  --text-hero: clamp(2.5rem, 2.1rem + 2vw, 3.75rem);

  /* Spacing Scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout Containers */
  --container-max: 1240px;
  --container-narrow: 860px;
  --header-height: 84px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* CRITICAL: Do NOT set overflow: hidden or auto on html/body as it breaks sticky header */
html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: clip; /* Clean clipping without breaking position: sticky */
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  overflow-x: clip; /* Clean clipping without breaking position: sticky */
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Accessible focus styling */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip Link for Keyboard Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 99999;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Media elements fluid behavior */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

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

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

ul, ol {
  list-style: none;
}

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

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

/* Typography Polish */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-align: start; /* Strictly left-aligned; NEVER justified */
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-md); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-xs); font-family: var(--font-sans); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  text-align: start; /* Strictly left-aligned; NEVER justified */
  max-width: 72ch;
}

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

.lead-text {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Section Badge / Tagline */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.875rem;
  background-color: var(--color-primary-surface);
  color: var(--color-primary);
  border: 1px solid rgba(15, 56, 48, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-badge--gold {
  background-color: var(--color-gold-subtle);
  color: #7b5b08;
  border-color: rgba(194, 155, 56, 0.25);
}

.section-badge--dark {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   3. Header & Pinned Sticky Navigation
   CRITICAL: Pinned at EVERY scroll position on EVERY page and viewport.
   Must be a direct child of <body> with position: sticky; top: 0;
   -------------------------------------------------------------------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
  width: 100%;
}

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

/* Brand Identity */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  min-height: 48px; /* Touch target */
  flex-shrink: 0;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: 0 2px 8px rgba(15, 56, 48, 0.2);
  border: 1px solid rgba(194, 155, 56, 0.4);
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

/* Desktop Navigation */
nav.primary-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.client-portal-link {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.client-portal-link:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
}

.ifa-badge {
  display: none;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-gold-subtle);
  color: #785807;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(194, 155, 56, 0.3);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  z-index: 1100;
  transition: background var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--color-border);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.hamburger-line + .hamburger-line {
  margin-top: 5px;
}

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

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-xl) var(--space-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 999;
  border-top: 1px solid var(--color-border);
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-link {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-main);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.mobile-drawer-footer {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   4. Buttons & CTA Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75rem 1.5rem;
  min-height: 48px; /* Ergonomic touch target */
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 56, 48, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 56, 48, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-surface-alt);
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #ffffff;
}

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

.btn-gold {
  background-color: var(--color-gold);
  color: #ffffff;
}

.btn-gold:hover {
  background-color: var(--color-gold-light);
  color: #ffffff;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  min-height: 40px;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Hero Sections
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #09241f 0%, #0f3830 55%, #185246 100%);
  color: #ffffff;
  padding: clamp(3rem, 7vw, 6rem) 0;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(37, 124, 126, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #ffffff;
  font-size: var(--text-hero);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero p.lead-text {
  color: #d1deda;
  margin-bottom: var(--space-xl);
  font-size: var(--text-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.trust-icon {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-text {
  font-size: var(--text-xs);
  color: #e2edea;
  line-height: 1.4;
}

.trust-text strong {
  display: block;
  color: #ffffff;
  font-size: var(--text-sm);
}

/* Hero Visual / Card Component */
.hero-visual {
  display: none;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.hero-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero-card-title {
  color: #ffffff;
  font-size: var(--text-lg);
  font-family: var(--font-sans);
  font-weight: 700;
}

.hero-card-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
}

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

.hero-card-stat .label {
  color: #cbd5e1;
}

.hero-card-stat .value {
  color: #ffffff;
  font-weight: 700;
}

.hero-card-stat .value-accent {
  color: var(--color-gold-light);
  font-weight: 700;
}

/* Page Intro Header (Subpages) */
.page-intro {
  background: linear-gradient(135deg, #09241f 0%, #0f3830 65%, #185246 100%);
  color: #ffffff;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  text-align: start;
}

.page-intro h1 {
  color: #ffffff;
}

.page-intro p {
  color: #d1deda;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: #94a3b8;
  margin-bottom: var(--space-md);
}

.breadcrumb-nav a {
  color: #cbd5e1;
}

.breadcrumb-nav a:hover {
  color: #ffffff;
}

.breadcrumb-sep {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   6. Content Sections & Grid Layouts
   -------------------------------------------------------------------------- */
.section-pad {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-pad-sm {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

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

.section-header--center p {
  margin-inline: auto;
}

/* Grid Systems */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

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

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

/* --------------------------------------------------------------------------
   7. Cards & Modules
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 124, 126, 0.4);
  transform: translateY(-2px);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.card-icon-wrap--gold {
  background-color: var(--color-gold-subtle);
  color: #8c6407;
}

.card-icon-wrap--teal {
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
}

.card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-primary);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.card-meta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: var(--color-surface-alt);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* Service Card Highlighting */
.service-card {
  position: relative;
  overflow: clip;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. Interactive Fee Transparency & Calculator Widget
   -------------------------------------------------------------------------- */
.fee-calculator-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.calc-slider-group {
  margin-bottom: var(--space-xl);
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}

.calc-label {
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--text-base);
}

.calc-value-display {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-accent-dark);
}

input[type="range"].portfolio-range {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.calc-tiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.tier-result-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

.tier-result-card.featured {
  background: var(--color-primary-surface);
  border-color: rgba(15, 56, 48, 0.3);
}

.tier-name {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-2xs);
}

.tier-fee-figure {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.tier-fee-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9. Fee Comparison Table (Services & Fees Page)
   -------------------------------------------------------------------------- */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  margin-bottom: var(--space-2xl);
}

table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: var(--text-sm);
}

table.comparison-table th,
table.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

table.comparison-table th {
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-sm);
}

table.comparison-table th.col-highlight {
  background-color: var(--color-primary-surface);
  color: var(--color-primary-dark);
}

table.comparison-table tr:last-child td {
  border-bottom: none;
}

table.comparison-table tr:hover td {
  background-color: rgba(248, 250, 252, 0.8);
}

.check-yes {
  color: var(--color-success);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.check-no {
  color: var(--color-text-subtle);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   10. Team Profiles (About Page)
   -------------------------------------------------------------------------- */
.team-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: clip;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.team-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-surface-alt);
  position: relative;
  overflow: hidden;
}

.team-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-image-wrap img {
  transform: scale(1.03);
}

.team-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.team-name {
  font-size: var(--text-xl);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-primary);
}

.team-role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.team-bio p {
  margin-bottom: 0.75rem;
}

.team-bio p:last-child {
  margin-bottom: 0;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #0077b5;
  padding: 0.4rem 0.75rem;
  background-color: #f0f7fb;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  align-self: flex-start;
}

.linkedin-btn:hover {
  background-color: #e1eff8;
  color: #005582;
}

.credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--color-gold-subtle);
  color: #735306;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   11. Process Steps (How We Work / Framework)
   -------------------------------------------------------------------------- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}

.process-step-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. FAQ Accordion Module
   -------------------------------------------------------------------------- */
.faq-category-wrap {
  margin-bottom: var(--space-2xl);
}

.faq-category-title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary-surface);
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item:focus-within {
  border-color: var(--color-accent);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.25rem;
  text-align: start;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-primary);
  background: #ffffff;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--color-surface-alt);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  color: var(--color-accent);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  display: none;
}

.accordion-body.is-open {
  display: block;
}

/* --------------------------------------------------------------------------
   13. Contact Form & Office Directory
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-card-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-main);
  margin-bottom: var(--space-2xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  font-size: var(--text-sm);
  color: var(--color-text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 124, 126, 0.15);
  outline: none;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.form-feedback {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-feedback.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Office Locations Cards */
.office-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.office-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2xs);
}

.office-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
}

.office-detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.office-detail svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   14. Regulatory Risk Notice Box
   -------------------------------------------------------------------------- */
.risk-warning-box {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-xs);
  color: #78350f;
  line-height: 1.6;
  margin: var(--space-xl) 0;
}

.risk-warning-box strong {
  color: #92400e;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   15. Multi-Column Footer & Statutory Disclaimers
   -------------------------------------------------------------------------- */
footer.site-footer {
  background-color: #071915;
  color: #cbd5e1;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: var(--space-xl);
  border-top: 3px solid var(--color-accent);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-title {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.footer-desc {
  font-size: var(--text-sm);
  color: #94a3b8;
  margin-bottom: var(--space-md);
}

.footer-heading {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav-link {
  color: #94a3b8;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--text-sm);
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.footer-contact-item a {
  color: #e2e8f0;
}

.footer-contact-item a:hover {
  color: var(--color-gold-light);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Statutory Footer Disclaimers */
.footer-disclaimers {
  padding: var(--space-xl) 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-disclaimers p {
  color: #64748b;
  margin-bottom: 0.75rem;
  max-width: 100%;
}

.footer-disclaimers a {
  color: #94a3b8;
  text-decoration: underline;
}

.footer-disclaimers a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: var(--text-xs);
  color: #64748b;
  align-items: center;
  text-align: center;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   16. Back-to-Top Button
   CRITICAL: class="back-to-top", fixed to bottom-right corner, >= 48px, aria-label
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal), background-color var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   17. Responsive Breakpoints (Mobile First)
   -------------------------------------------------------------------------- */

/* Tablet: >= 768px */
@media (min-width: 768px) {
  .hero-trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

  .calc-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step-card {
    grid-template-columns: auto 1fr;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
}

/* Desktop: >= 1024px */
@media (min-width: 1024px) {
  nav.primary-nav {
    display: block;
  }

  .client-portal-link {
    display: inline-flex;
  }

  .ifa-badge {
    display: inline-flex;
  }

  .mobile-toggle {
    display: none;
  }

  .mobile-drawer {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-visual {
    display: block;
  }

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

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

  .footer-top {
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  }
}

/* Print Styles */
@media print {
  header.site-header,
  .back-to-top,
  .mobile-toggle,
  .btn,
  .fee-calculator-box input {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}
