/* ═══════════════════════════════════════════════════════════════════════════
   LUXURY LAW FIRM DESIGN SYSTEM
   Premium • Authoritative • Trust-building • Conservative
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/opendyslexic');

:root {
  /* LUXURY LIGHT MODE (Default - Elegant Cream/White + Dark Navy) */
  --bg: #fafaf8;
  --bg-alt: #ffffff;
  --surface: #f5f4f0;
  --surface-dark: #1a1d29;
  --text: #1a1d29;
  --text-muted: #5a5d6b;
  --text-light: #fafaf8;
  
  /* Premium Brand Colors */
  --navy: #0f1419;
  --navy-deep: #090b0f;
  --charcoal: #1a1d29;
  --gold: #c9a961;
  --gold-dark: #a88942;
  --bronze: #8b6f47;
  
  /* Semantic Colors */
  --accent: var(--gold);
  --accent-hover: var(--gold-dark);
  --border: #e0ddd5;
  --border-dark: #2a2d3b;
  --danger: #8b1e1e;
  
  /* Luxury Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 29, 41, 0.04);
  --shadow: 0 8px 24px rgba(26, 29, 41, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 29, 41, 0.12);
  
  /* Design Tokens */
  --radius: 2px;
  --radius-lg: 4px;
  --max-width: 1280px;
  --content-width: 920px;
  --focus: 2px solid rgba(201, 169, 97, 0.5);
  
  /* Typography - Rubik for all text */
  --font-serif: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-sans: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  
  /* Spacing Scale (Generous, Confident) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-2xl: 128px;
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

[data-theme="dark"] {
  /* LUXURY DARK MODE (Deep Navy + Warm Gold) */
  --bg: #0f1419;
  --bg-alt: #1a1d29;
  --surface: #1a1d29;
  --surface-dark: #090b0f;
  --text: #fafaf8;
  --text-muted: #b5b8c5;
  --text-light: #fafaf8;
  
  --border: #2a2d3b;
  --border-dark: #3a3d4b;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE RESET & FOUNDATION
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY - Luxury Serif Headlines + Clean Sans Body
   ═══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.375rem, 5vw, 3.625rem);
  margin: 0 0 var(--space-sm);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  margin: 0 0 var(--space-sm);
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  margin: 0 0 var(--space-xs);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

strong {
  font-weight: 600;
  color: var(--text);
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.kicker {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT CONTAINERS
   ═══════════════════════════════════════════════════════════════════════════ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container--narrow {
  max-width: var(--content-width);
}

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

.section--dark {
  background: var(--surface-dark);
  color: var(--text-light);
}

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

.section--dark p,
.section--dark .lead {
  color: rgba(250, 250, 248, 0.75);
}

.section--accent {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.05), rgba(139, 111, 71, 0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION - Clean, Minimal, Premium
   ═══════════════════════════════════════════════════════════════════════════ */

.skip {
  position: absolute;
  top: -50px;
  left: var(--space-sm);
  background: var(--bg-alt);
  color: var(--text);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 9999;
  font-size: 0.875rem;
}

.skip:focus {
  top: var(--space-sm);
  outline: var(--focus);
  outline-offset: 2px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

[data-theme="dark"] .header {
  background: rgba(15, 20, 25, 0.92);
  border-bottom-color: var(--border-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__title strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand__title span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

/* Hide dropdown links from main nav - they should only appear in dropdown */
.nav > .dropdown {
  display: none !important;
}

/* Ensure nav-item doesn't break flex layout */
.nav-item {
  display: flex;
  align-items: center;
  position: relative;
}

/* Only style direct nav links, not dropdown links */
.nav > a,
.nav-item > a {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Style only direct nav links, exclude dropdown links */
.nav > a:hover,
.nav-item > a:hover {
  color: var(--text);
  background: rgba(201, 169, 97, 0.06);
}

.nav > a[aria-current="page"],
.nav-item > a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

/* Explicitly exclude dropdown links from nav styling */
.nav .dropdown a {
  /* These are styled separately in .dropdown a */
  padding: 12px var(--space-md) !important;
  font-size: 0.875rem !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--text) !important;
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DROPDOWN MENU - Submenu Navigation
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item > a::after {
  content: '▼';
  font-size: 0.625rem;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.nav-item:hover > a::after {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 240px;
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: var(--space-xs) 0;
  display: block;
  pointer-events: none;
}

.nav-item:hover .dropdown {
  pointer-events: auto;
}

[data-theme="dark"] .dropdown {
  background: rgba(15, 20, 25, 0.98);
  border-color: var(--border-dark);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 12px var(--space-md);
  color: var(--text);
  font-size: 0.875rem;
  border: none;
  border-radius: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Ensure dropdown links don't appear in main nav - override any nav a styles */
.nav-item .dropdown a {
  display: block !important;
  width: 100%;
  padding: 12px var(--space-md) !important;
  font-size: 0.875rem !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--text) !important;
}

.dropdown a:hover {
  background: rgba(201, 169, 97, 0.1);
  color: var(--accent);
  padding-right: calc(var(--space-md) + 4px);
}

.dropdown a[aria-current="page"] {
  background: rgba(201, 169, 97, 0.15);
  color: var(--accent);
  border-right: 3px solid var(--accent);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xs) 0;
}

[data-theme="dark"] .dropdown-divider {
  background: var(--border-dark);
}

.controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS - Premium, Confident, Not Aggressive
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:focus {
  outline: var(--focus);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--navy);
}

.btn--secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--secondary:hover {
  background: rgba(201, 169, 97, 0.1);
}

.btn--danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn--danger:hover {
  background: #6e1818;
  border-color: #6e1818;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS - Large, Clean, Premium Inputs
   ═══════════════════════════════════════════════════════════════════════════ */

.input,
.select,
.textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(250, 250, 248, 0.7);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

[data-theme="dark"] .input,
[data-theme="dark"] .select,
[data-theme="dark"] .textarea {
  background: rgba(15, 20, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: var(--focus);
  outline-offset: 0;
  border-color: var(--accent);
}

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

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION - Strong, Elegant, Premium
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: calc(var(--space-xl) + var(--space-md)) 0 var(--space-xl);
  background: var(--surface-dark);
  color: var(--text-light);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(201, 169, 97, 0.03), transparent 50%),
    radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Hero with background image */
.hero--with-image {
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero--with-image::before {
  display: none; /* Hide default gradient when image is present */
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.hero__background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 20, 25, 0.85) 0%,
    rgba(201, 169, 97, 0.3) 30%,
    rgba(15, 20, 25, 0.75) 60%,
    rgba(139, 111, 71, 0.25) 100%
  );
  z-index: 1;
  mix-blend-mode: multiply;
}

.hero__background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(
      ellipse at 30% 50%,
      rgba(201, 169, 97, 0.35) 0%,
      transparent 60%
    ),
    linear-gradient(
      to bottom,
      rgba(15, 20, 25, 0.55) 0%,
      transparent 30%,
      transparent 70%,
      rgba(15, 20, 25, 0.65) 100%
    );
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Additional overlay layer for depth */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(
      to bottom,
      rgba(15, 20, 25, 0.65) 0%,
      transparent 40%,
      transparent 60%,
      rgba(15, 20, 25, 0.75) 100%
    ),
    radial-gradient(
      circle at center,
      transparent 0%,
      rgba(15, 20, 25, 0.45) 100%
    );
  z-index: 2;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 1;
  filter: grayscale(15%) contrast(1.1) blur(2px);
  display: block;
  transform: scale(1.05); /* Slight zoom to hide blur edges */
}

.hero--with-image .hero__background::after {
  box-shadow: inset 0 0 200px rgba(15, 20, 25, 0.5);
}

[data-theme="dark"] .hero__background::after {
  background: linear-gradient(
    135deg,
    rgba(15, 20, 25, 0.9) 0%,
    rgba(201, 169, 97, 0.2) 30%,
    rgba(15, 20, 25, 0.8) 60%,
    rgba(139, 111, 71, 0.15) 100%
  );
}

[data-theme="dark"] .hero__background::before {
  background: 
    radial-gradient(
      ellipse at 30% 50%,
      rgba(201, 169, 97, 0.15) 0%,
      transparent 60%
    ),
    linear-gradient(
      to bottom,
      rgba(15, 20, 25, 0.5) 0%,
      transparent 40%,
      transparent 60%,
      rgba(15, 20, 25, 0.6) 100%
    );
}

[data-theme="dark"] .hero__overlay {
  background: 
    linear-gradient(
      to bottom,
      rgba(15, 20, 25, 0.75) 0%,
      transparent 40%,
      transparent 60%,
      rgba(15, 20, 25, 0.85) 100%
    ),
    radial-gradient(
      circle at center,
      transparent 0%,
      rgba(15, 20, 25, 0.55) 100%
    );
}

[data-theme="dark"] .hero__image {
  opacity: 1;
  filter: grayscale(20%) contrast(1.15) blur(2.5px);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.hero .lead {
  color: rgba(250, 250, 248, 0.8);
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS BAR - Floating, Premium
   ═══════════════════════════════════════════════════════════════════════════ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: calc(var(--space-lg) * -1) auto var(--space-lg);
  padding: var(--space-md);
  background: rgba(250, 250, 248, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

[data-theme="dark"] .stats {
  background: rgba(15, 20, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  text-align: center;
  padding: var(--space-sm);
}

.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS - Elegant, Subtle Shadow
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
  padding: var(--space-md);
  background: rgba(250, 250, 248, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .card {
  background: rgba(15, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 97, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(201, 169, 97, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(201, 169, 97, 0.5);
  background: rgba(250, 250, 248, 0.75);
}

[data-theme="dark"] .card:hover {
  background: rgba(15, 20, 25, 0.75);
  box-shadow: 0 20px 40px rgba(201, 169, 97, 0.15), 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  background: rgba(201, 169, 97, 0.1);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.card:hover .card__icon {
  transform: scale(1.15) rotate(5deg);
  background: rgba(201, 169, 97, 0.2);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEAM CARDS - Professional Portraits
   ═══════════════════════════════════════════════════════════════════════════ */

.team-card {
  text-align: center;
  padding: var(--space-md);
  background: rgba(250, 250, 248, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

[data-theme="dark"] .team-card {
  background: rgba(15, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.team-card__image {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface), var(--border));
  border: 3px solid var(--accent);
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--text);
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIAL - Elegant Quote Block
   ═══════════════════════════════════════════════════════════════════════════ */

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial__quote::before {
  content: '"';
  color: var(--accent);
  font-size: 4rem;
  line-height: 0;
  display: block;
  margin-bottom: var(--space-sm);
}

.testimonial__author {
  font-size: 0.9375rem;
  color: rgba(250, 250, 248, 0.7);
}

.testimonial__author strong {
  color: var(--text-light);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION - רקע עם מילים מודגשות
   ═══════════════════════════════════════════════════════════════════════════ */

.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonials-section__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}

.testimonials-section__word {
  position: absolute;
  font-size: clamp(3.75rem, 8vw, 7.5rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  white-space: nowrap;
  user-select: none;
  animation: floatWord 20s infinite ease-in-out;
  font-family: var(--font-serif);
}

.testimonials-section__word:nth-child(1) {
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.testimonials-section__word:nth-child(2) {
  top: 25%;
  left: 8%;
  animation-delay: 2s;
}

.testimonials-section__word:nth-child(3) {
  top: 45%;
  right: 12%;
  animation-delay: 4s;
}

.testimonials-section__word:nth-child(4) {
  top: 60%;
  left: 5%;
  animation-delay: 6s;
}

.testimonials-section__word:nth-child(5) {
  top: 75%;
  right: 8%;
  animation-delay: 8s;
}

.testimonials-section__word:nth-child(6) {
  top: 15%;
  left: 15%;
  animation-delay: 10s;
}

.testimonials-section__word:nth-child(7) {
  top: 35%;
  right: 20%;
  animation-delay: 12s;
}

.testimonials-section__word:nth-child(8) {
  top: 55%;
  left: 12%;
  animation-delay: 14s;
}

.testimonials-section__word:nth-child(9) {
  top: 70%;
  right: 15%;
  animation-delay: 16s;
}

.testimonials-section__word:nth-child(10) {
  top: 85%;
  left: 10%;
  animation-delay: 18s;
}

@keyframes floatWord {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
    opacity: 0.2;
  }
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS GRID - לקוחות ממליצים (כל ההמלצות במסך אחד)
   ═══════════════════════════════════════════════════════════════════════════ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

.testimonial-card {
  padding: var(--space-lg) var(--space-md);
  background: rgba(250, 250, 248, 0.08);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(201, 169, 97, 0.12);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(250, 250, 248, 0.12);
  border-color: rgba(201, 169, 97, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .testimonial-card {
  background: rgba(15, 20, 25, 0.5);
  border-color: rgba(201, 169, 97, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .testimonial-card:hover {
  background: rgba(15, 20, 25, 0.6);
  border-color: rgba(201, 169, 97, 0.15);
}

.testimonial-card__stars {
  color: var(--accent);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
  text-align: center;
  opacity: 0.9;
}

.testimonial-card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  text-align: right;
  font-weight: 300;
  letter-spacing: 0.01em;
  flex-grow: 1;
}

.testimonial-card__author {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.testimonial-card__author-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.testimonial-card__author-title {
  font-size: 0.75rem;
  color: rgba(250, 250, 248, 0.6);
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 968px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-sm);
  }
  
  .testimonial-card {
    padding: var(--space-md);
  }
  
  .testimonial-card__text {
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .testimonial-card {
    padding: var(--space-sm) var(--space-md);
  }

  .testimonial-card__text {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .testimonial-card__stars {
    font-size: 0.8125rem;
  }

  .testimonial-card__author-name {
    font-size: 0.875rem;
  }

  .testimonial-card__author-title {
    font-size: 0.6875rem;
  }
}

@media (max-width: 968px) {
  .testimonials-carousel__btn--prev {
    right: 8px;
  }
  
  .testimonials-carousel__btn--next {
    left: 8px;
  }
  
  .testimonials-carousel__btn {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-card {
    padding: var(--space-lg) var(--space-md);
  }
  
  .testimonial-card__text {
    font-size: 1.0625rem;
  }
}

@media (max-width: 640px) {
  .testimonials-carousel-wrapper {
    margin: var(--space-lg) auto;
  }

  .testimonial-card {
    padding: var(--space-lg) var(--space-md);
  }

  .testimonial-card__text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .testimonial-card__stars {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
  }

  .testimonial-card__author-name {
    font-size: 1rem;
  }

  .testimonial-card__author-title {
    font-size: 0.8125rem;
  }
  
  .testimonials-carousel__btn {
    width: 36px;
    height: 36px;
  }
  
  .testimonials-carousel__btn--prev {
    right: 4px;
  }
  
  .testimonials-carousel__btn--next {
    left: 4px;
  }
  
  .testimonials-carousel__container {
    min-height: 320px;
    padding: var(--space-md) 0;
  }
  
  .testimonials-carousel__dots {
    margin-top: var(--space-lg);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA BAND - Premium, Not Aggressive
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(139, 111, 71, 0.1));
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.1);
}

[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.12), rgba(139, 111, 71, 0.08));
  border: 1px solid rgba(201, 169, 97, 0.25);
}

.cta-band__content h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.375rem;
}

.cta-band__content p {
  margin: 0;
  font-size: 0.9375rem;
}

.cta-band__actions {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER - Multi-Column, Professional
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--surface-dark);
  color: rgba(250, 250, 248, 0.75);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--border-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col li {
  margin-bottom: var(--space-xs);
}

.footer__col a {
  color: rgba(250, 250, 248, 0.7);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

.footer__bottom {
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--border-dark);
  text-align: center;
}

.footer__bottom > p {
  font-size: 0.8125rem;
  color: rgba(250, 250, 248, 0.5);
  margin-bottom: var(--space-md);
}

.footer__credits {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__credits p {
  font-size: 0.875rem;
  color: rgba(250, 250, 248, 0.5);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer__heart-icon {
  color: rgba(255, 255, 255, 0.6);
  fill: rgba(255, 255, 255, 0.1);
  animation: heartbeat 2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.footer__credits-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer__credits-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

[data-theme="dark"] .footer__credits-link {
  color: var(--accent);
}

[data-theme="dark"] .footer__credits-link:hover {
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.wa-float {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 999;
  padding: 14px 24px;
  background: rgba(37, 211, 102, 0.9);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.4);
  color: #fff;
}

[dir="rtl"] .wa-float {
  right: auto;
  left: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS - Modern Fade-in Effects
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.fade-in {
  transform: none;
}

.scroll-animate.delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
  transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRADIENT TEXT - Modern Typography Effects
   ═══════════════════════════════════════════════════════════════════════════ */

.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark), var(--bronze));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   READING PROGRESS BAR - Modern Scroll Indicator
   ═══════════════════════════════════════════════════════════════════════════ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTON RIPPLE EFFECT - Modern Click Feedback
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.list-none {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
}

.list-check li {
  padding-left: 28px;
  margin-bottom: var(--space-xs);
  position: relative;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

[dir="rtl"] .list-check li {
  padding-left: 0;
  padding-right: 28px;
}

[dir="rtl"] .list-check li::before {
  left: auto;
  right: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - Must Look Luxurious on Mobile
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE HAMBURGER MENU - Modern Mobile Navigation
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  padding: 80px var(--space-lg) var(--space-lg);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

[data-theme="dark"] .mobile-menu {
  background: rgba(15, 20, 25, 0.98);
  border-left-color: var(--border-dark);
}

.mobile-menu .nav {
  flex-direction: column;
  gap: var(--space-xs);
  align-items: stretch;
}

.mobile-menu .nav a {
  padding: var(--space-md);
  border-radius: var(--radius);
  font-size: 1rem;
  display: block;
}

.mobile-menu .nav-item {
  position: static;
}

.mobile-menu .dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  margin: var(--space-xs) 0 0 var(--space-md);
  padding: var(--space-xs) 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

[data-theme="dark"] .mobile-menu .dropdown {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu .nav-item.active .dropdown {
  max-height: 1000px;
  padding: var(--space-xs) 0;
}

.mobile-menu .dropdown a {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

.mobile-menu .nav-item > a {
  cursor: pointer;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PARALLAX EFFECT - Subtle Hero Parallax
   ═══════════════════════════════════════════════════════════════════════════ */

.hero__background {
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM VALIDATION ANIMATIONS - Visual Feedback
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.input.error,
.select.error,
.textarea.error {
  border-color: var(--danger);
  animation: shake 0.5s ease;
  background: rgba(139, 30, 30, 0.05);
}

.input.success,
.select.success,
.textarea.success {
  border-color: #25a569;
  background: rgba(37, 165, 105, 0.05);
}

.input:focus.error,
.select:focus.error,
.textarea:focus.error {
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.1);
}

.input:focus.success,
.select:focus.success,
.textarea:focus.success {
  box-shadow: 0 0 0 3px rgba(37, 165, 105, 0.1);
}

.form-message {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  animation: fadeInUp 0.3s ease;
}

.form-message.error {
  color: var(--danger);
  background: rgba(139, 30, 30, 0.1);
}

.form-message.success {
  color: #25a569;
  background: rgba(37, 165, 105, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING SKELETONS - Smooth Loading States
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes skeleton-loading {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface) 0px,
    rgba(255, 255, 255, 0.5) 40px,
    var(--surface) 80px
  );
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(
    90deg,
    rgba(15, 20, 25, 0.8) 0px,
    rgba(255, 255, 255, 0.05) 40px,
    rgba(15, 20, 25, 0.8) 80px
  );
  background-size: 200px 100%;
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-xs);
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: var(--space-sm);
}

.skeleton-card {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LINK HOVER EFFECTS - Smooth Link Animations
   ═══════════════════════════════════════════════════════════════════════════ */

a:not(.btn):not(.brand):not(.wa-float) {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:not(.btn):not(.brand):not(.wa-float)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

a:not(.btn):not(.brand):not(.wa-float):hover::after {
  width: 100%;
}

a:not(.btn):not(.brand):not(.wa-float):hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   THEME TRANSITION - Smooth Theme Switching
   ═══════════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MICRO-INTERACTIONS - Small Delightful Animations
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.icon-spin {
  animation: spin 1s linear infinite;
}

.icon-bounce {
  animation: bounce 1s ease infinite;
}

/* Checkbox and Radio custom styling */
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  transform: scale(1.1);
}

/* Select arrow animation */
.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='%231a1d29' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  transition: background-position 0.2s ease;
}

.select:focus {
  background-position: right 10px center;
}

/* RTL Support for Dropdown */
[dir="rtl"] .dropdown {
  right: auto;
  left: 0;
}

/* Responsive Dropdown */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    display: none;
  }
  
  .mobile-menu .nav {
    display: flex;
  }
  
  /* Hide desktop dropdowns on mobile */
  .nav-item .dropdown {
    display: none;
  }
  
  .hero--with-image {
    min-height: 500px;
  }
  
  .hero__image {
    object-position: center right;
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-band {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-band__actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header__inner {
    gap: var(--space-sm);
  }
  
  .controls {
    flex-wrap: wrap;
  }
  
  .hero--with-image {
    min-height: 450px;
    padding: var(--space-lg) 0;
  }
  
  .hero__image {
    opacity: 0.3;
  }
  
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE / BLOG POST STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.article {
  padding: var(--space-lg) 0;
}

.article__header {
  max-width: var(--content-width);
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.article__header .kicker {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.article__header h1 {
  font-size: 2.625rem;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.article__header .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

.article__content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article__content section {
  margin-bottom: var(--space-lg);
}

.article__content h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-sm);
}

.article__content h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
  color: var(--text);
}

.article__content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.article__content ul,
.article__content ol {
  margin: var(--space-md) 0;
  padding-right: var(--space-lg);
}

.article__content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.article__content strong {
  color: var(--text);
  font-weight: 600;
}

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.faq h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--accent);
  font-size: 1.25rem;
}

.faq p {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTERACTIVE FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: var(--space-sm);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-md);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-md) var(--space-md);
}

.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Dark mode adjustments */
[data-theme="dark"] .faq-item {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}

[data-theme="dark"] .faq-question {
  color: var(--text-light);
}

[data-theme="dark"] .faq-answer p {
  color: var(--text-muted);
}

.article-nav {
  max-width: var(--content-width);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 640px) {
  .article__header h1 {
    font-size: 2rem;
  }

  .article__header .lead {
    font-size: 1.125rem;
  }

  .article__content h2 {
    font-size: 1.625rem;
  }

  .article__content h3 {
    font-size: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOUNDER SECTION - מייסד עורך הדין שמואל שמילה
   ═══════════════════════════════════════════════════════════════════════════ */

.founder-section {
  position: relative;
  overflow: hidden;
}

.founder-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.founder-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-dark);
  box-shadow: var(--shadow-lg);
}

.founder-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(20%) contrast(1.1);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.founder-card__image-wrapper:hover .founder-card__image {
  transform: scale(1.05);
  filter: grayscale(10%) contrast(1.15);
}

.founder-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(
      to bottom,
      rgba(15, 20, 25, 0.3) 0%,
      transparent 30%,
      transparent 70%,
      rgba(15, 20, 25, 0.6) 100%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(201, 169, 97, 0.1) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .founder-card__overlay {
  background: 
    linear-gradient(
      to bottom,
      rgba(9, 11, 15, 0.4) 0%,
      transparent 30%,
      transparent 70%,
      rgba(9, 11, 15, 0.7) 100%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(201, 169, 97, 0.15) 0%,
      transparent 70%
    );
}

.founder-card__content {
  position: relative;
  z-index: 2;
}

.founder-card__content .kicker {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.founder-card__content h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.founder-card__content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.founder-card__content p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 968px) {
  .founder-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .founder-card__image-wrapper {
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .founder-card__content {
    text-align: center;
  }
  
  .founder-card__content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .founder-card__image-wrapper {
    height: 350px;
  }

  .founder-card__content h2 {
    font-size: 1.5rem;
  }

  .founder-card__content p {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RTL ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .hero__inner {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM CONSENT CHECKBOX
   ═══════════════════════════════════════════════════════════════════════════ */

.consent-group {
  margin-top: var(--space-xs);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.consent-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.consent-note {
  margin-top: var(--space-xs);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding-inline-start: 32px;
}

.consent-note a {
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COOKIE CONSENT BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--charcoal);
  color: var(--text-light);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-bar.visible {
  transform: translateY(0);
}

.cookie-bar__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1 1 300px;
  text-align: center;
}

.cookie-bar__text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-bar__text a:hover {
  color: var(--gold-dark);
}

.cookie-bar__btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: var(--space-xs) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-bar__btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

[data-theme="dark"] .cookie-bar {
  background: var(--navy-deep);
  border-top: 1px solid var(--border-dark);
}

@media (max-width: 640px) {
  .cookie-bar {
    flex-direction: column;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .cookie-bar__text {
    font-size: 0.875rem;
  }

  .cookie-bar__btn {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY - TI 5568 / WCAG 2.0 AA Compliance
   ═══════════════════════════════════════════════════════════════════════════ */

/* Strong focus indicators for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--accent) !important;
  outline-offset: 3px !important;
  border-radius: var(--radius);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent) !important;
  outline-offset: 3px !important;
}

/* Ensure dropdown links get focus */
.nav-item:focus-within .dropdown,
.nav-item.kb-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Manual reduce-motion toggle */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.reduce-motion .scroll-animate {
  opacity: 1 !important;
  transform: none !important;
}

.reduce-motion .testimonials-section__word {
  animation: none !important;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
  }

  .testimonials-section__word {
    animation: none !important;
  }

  .hero__background {
    will-change: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HIGH CONTRAST MODE
   ═══════════════════════════════════════════════════════════════════════════ */

[data-contrast="high"] {
  --text: #000000;
  --text-muted: #1a1a1a;
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --surface: #f0f0f0;
  --border: #000000;
  --accent: #8b6f00;
  --accent-hover: #665200;
}

[data-contrast="high"] .card,
[data-contrast="high"] .stats {
  border: 2px solid #000000;
  background: #ffffff;
  backdrop-filter: none;
}

[data-contrast="high"] .section--dark {
  background: #1a1a1a;
  color: #ffffff;
}

[data-contrast="high"] .section--dark .card {
  border-color: #ffffff;
  background: #2a2a2a;
}

[data-contrast="high"] .section--dark h1,
[data-contrast="high"] .section--dark h2,
[data-contrast="high"] .section--dark h3,
[data-contrast="high"] .section--dark p,
[data-contrast="high"] .section--dark .lead {
  color: #ffffff;
}

[data-contrast="high"] a:not(.btn) {
  text-decoration: underline;
}

[data-contrast="high"] .btn {
  border: 2px solid currentColor;
}

[data-contrast="high"] .hero {
  background: #1a1a1a;
}

[data-contrast="high"] .hero h1,
[data-contrast="high"] .hero .lead {
  color: #ffffff;
}

[data-contrast="high"][data-theme="dark"] {
  --text: #ffffff;
  --text-muted: #e0e0e0;
  --bg: #000000;
  --bg-alt: #111111;
  --surface: #1a1a1a;
  --border: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FONT SIZE SCALING (via data-fontscale attribute on <html>)
   ═══════════════════════════════════════════════════════════════════════════ */

[data-fontscale="110"] { font-size: 110% !important; }
[data-fontscale="120"] { font-size: 120% !important; }
[data-fontscale="130"] { font-size: 130% !important; }
[data-fontscale="140"] { font-size: 140% !important; }
[data-fontscale="150"] { font-size: 150% !important; }
[data-fontscale="160"] { font-size: 160% !important; }
[data-fontscale="170"] { font-size: 170% !important; }
[data-fontscale="180"] { font-size: 180% !important; }
[data-fontscale="190"] { font-size: 190% !important; }
[data-fontscale="200"] { font-size: 200% !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY TOOLBAR WIDGET — Comprehensive (TI 5568 / WCAG 2.0 AA)
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Toggle Button (FAB) --- */
.a11y-toolbar-toggle {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 10001;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  border: 2px solid var(--accent-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

.a11y-toolbar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.4);
}

/* --- Panel --- */
.a11y-toolbar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10002;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.a11y-toolbar.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

[dir="rtl"] .a11y-toolbar {
  right: 0;
  left: auto;
}

/* --- Header --- */
.a11y-toolbar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--space-sm);
  background: var(--charcoal);
  color: #fff;
  flex-shrink: 0;
}

.a11y-toolbar__header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.a11y-toolbar__header-title svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.a11y-toolbar__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-toolbar__header-btn {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.a11y-toolbar__header-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Scrollable Body --- */
.a11y-toolbar__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* --- Section --- */
.a11y-toolbar__section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-sm);
}

.a11y-toolbar__section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  text-align: center;
}

/* --- Font Size Control --- */
.a11y-font-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.a11y-font-control__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.a11y-font-control__label svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.a11y-font-control__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.a11y-font-control__btn--plus {
  background: var(--accent);
  color: var(--navy);
}

.a11y-font-control__btn--plus:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.a11y-font-control__btn--minus {
  background: var(--accent);
  color: var(--navy);
}

.a11y-font-control__btn--minus:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.a11y-font-control__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  min-width: 42px;
  text-align: center;
  background: var(--surface);
  padding: 6px 8px;
  border-radius: var(--radius);
}

/* --- Feature Grid (3 columns) --- */
.a11y-toolbar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* --- Feature Button --- */
.a11y-toolbar__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 4px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  min-height: 80px;
}

.a11y-toolbar__feature svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--text);
  fill: none;
}

.a11y-toolbar__feature:hover {
  border-color: var(--accent);
  background: rgba(201, 169, 97, 0.06);
}

.a11y-toolbar__feature[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(201, 169, 97, 0.15);
  box-shadow: 0 0 0 1px var(--accent);
}

.a11y-toolbar__feature[aria-pressed="true"] svg {
  stroke: var(--accent);
}

/* --- Footer Reset --- */
.a11y-toolbar__footer {
  flex-shrink: 0;
  padding: 10px var(--space-sm);
  border-top: 1px solid var(--border);
  text-align: center;
}

.a11y-toolbar__reset {
  width: 100%;
  padding: 10px;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-toolbar__reset:hover {
  background: rgba(139, 30, 30, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

/* --- Overlay --- */
.a11y-toolbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.a11y-toolbar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Dark theme adjustments --- */
[data-theme="dark"] .a11y-toolbar {
  border-left-color: var(--border-dark);
}

[data-theme="dark"] .a11y-toolbar__section {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}

[data-theme="dark"] .a11y-toolbar__feature {
  background: var(--bg-alt);
  border-color: var(--border-dark);
}

[data-theme="dark"] .a11y-toolbar__feature:hover {
  border-color: var(--accent);
}

/* Move WhatsApp float when a11y toolbar is present */
.wa-float {
  bottom: calc(var(--space-md) + 70px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY FEATURE CLASSES (applied to <html>)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Highlight Titles */
.a11y-highlight-titles h1,
.a11y-highlight-titles h2,
.a11y-highlight-titles h3,
.a11y-highlight-titles h4,
.a11y-highlight-titles h5,
.a11y-highlight-titles h6 {
  outline: 3px solid var(--accent) !important;
  outline-offset: 4px !important;
  border-radius: 2px;
}

/* Highlight Links */
.a11y-highlight-links a:not(.a11y-toolbar__feature):not(.a11y-toolbar__header-btn):not(.a11y-toolbar-toggle) {
  outline: 2px solid #1a73e8 !important;
  outline-offset: 2px !important;
  text-decoration: underline !important;
}

/* Dyslexia-Friendly Font */
.a11y-dyslexia-font,
.a11y-dyslexia-font * {
  font-family: 'OpenDyslexic', 'Comic Sans MS', cursive, sans-serif !important;
}

/* Letter Spacing (toggle: cycles off → 1 → 2) */
.a11y-letter-spacing-1 * {
  letter-spacing: 0.1em !important;
  word-spacing: 0.15em !important;
}

.a11y-letter-spacing-2 * {
  letter-spacing: 0.2em !important;
  word-spacing: 0.3em !important;
}

/* Line Height (toggle: cycles off → 1 → 2) */
.a11y-line-height-1 * {
  line-height: 2 !important;
}

.a11y-line-height-2 * {
  line-height: 2.5 !important;
}

/* Font Weight */
.a11y-font-weight * {
  font-weight: 700 !important;
}

/* Align Left (useful for RTL sites) */
.a11y-align-left * {
  text-align: left !important;
}

/* Light Contrast */
.a11y-light-contrast {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --text: #000000;
  --text-muted: #333333;
  --surface: #f5f5f5;
  --border: #cccccc;
}

/* Dark Contrast (invert approach) */
.a11y-dark-contrast {
  filter: invert(1) hue-rotate(180deg) !important;
}

.a11y-dark-contrast img,
.a11y-dark-contrast video,
.a11y-dark-contrast svg,
.a11y-dark-contrast .hero__background,
.a11y-dark-contrast .a11y-toolbar,
.a11y-dark-contrast .a11y-toolbar-toggle {
  filter: invert(1) hue-rotate(180deg) !important;
}

/* High Contrast — already defined above in [data-contrast="high"] */

/* Monochrome */
.a11y-monochrome {
  filter: grayscale(100%) !important;
}

/* Low Saturation */
.a11y-low-saturation {
  filter: saturate(0.3) !important;
}

/* High Saturation */
.a11y-high-saturation {
  filter: saturate(2.5) !important;
}

/* Big Cursor */
.a11y-big-cursor,
.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4L8 40L18 30L28 44L34 40L24 26L38 26Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

/* Reading Guide Bar */
.a11y-reading-guide-bar {
  position: fixed;
  left: 0;
  right: 0;
  height: 10px;
  background: rgba(201, 169, 97, 0.35);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  pointer-events: none;
  z-index: 99999;
  transition: top 0.05s linear;
  display: none;
}

.a11y-reading-guide-bar.active {
  display: block;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form error live region */
.form-message[role="alert"] {
  font-weight: 500;
}

/* Ensure links in content are distinguishable (not just by color) */
.article__content a,
.consent-note a,
.cookie-bar__text a {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .a11y-toolbar {
    width: 100vw;
  }

  .a11y-toolbar-toggle {
    right: var(--space-sm);
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .a11y-toolbar__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .a11y-toolbar__feature {
    min-height: 70px;
    padding: 8px 2px;
    font-size: 0.625rem;
  }

  .a11y-toolbar__feature svg {
    width: 24px;
    height: 24px;
  }
}
