/* ==========================================================================
   DEGEN KRAFFT BARTH — Complete Design System
   A premium, trust-forward design for Steuerberatung + Rechtsberatung
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. GOOGLE FONTS IMPORT
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&display=swap');

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* ---- Brand Colors ---- */
  --color-primary:          #1B3A5C;
  --color-primary-dark:     #122842;
  --color-primary-light:    #2A5580;
  --color-primary-rgb:      27, 58, 92;

  --color-secondary:        #C8963E;
  --color-secondary-dark:   #946D1D;
  --color-secondary-light:  #D9AD5E;
  --color-secondary-rgb:    200, 150, 62;

  /* ---- Accessible secondary for text on white (4.5:1+) ---- */
  --color-secondary-text:   #7A5518;

  /* ---- Accent (alias for secondary — gold) ---- */
  --color-accent:           var(--color-secondary);
  --color-accent-dark:      var(--color-secondary-dark);
  --color-accent-light:     var(--color-secondary-light);

  /* ---- Backgrounds ---- */
  --color-bg:               #FFFFFF;
  --color-bg-warm:          #F8F6F3;
  --color-bg-dark:          #1B3A5C;
  --color-bg-darker:        #122842;
  --color-bg-warm-alt:      #F1EDE7;

  /* ---- Text ---- */
  --color-text:             #3A3A3A;
  --color-text-body:        #4A5568;
  --color-text-light:       #6B7280;
  /* Accessible text-light for dark backgrounds — lightened to pass 4.5:1 on #0f1b2a */
  --color-text-light-on-dark: #9CA3AF;
  --color-text-on-dark:     #FFFFFF;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.85);
  --color-text-heading:     #1B3A5C;

  /* ---- Utility Colors ---- */
  --color-white:            #FFFFFF;
  --color-black:            #111111;
  --color-border:           #E2DED8;
  --color-border-light:     #EDEAE5;
  --color-border-dark:      rgba(255, 255, 255, 0.15);

  /* ---- Form border — must meet 3:1 against white for WCAG 1.4.11 ---- */
  --color-form-border:      #767C85;

  /* ---- Shadows ---- */
  --shadow-card:            0 4px 20px rgba(27, 58, 92, 0.08);
  --shadow-card-hover:      0 8px 32px rgba(27, 58, 92, 0.14);
  --shadow-nav:             0 2px 20px rgba(27, 58, 92, 0.06);
  --shadow-btn:             0 2px 8px rgba(27, 58, 92, 0.12);
  --shadow-btn-hover:       0 4px 16px rgba(27, 58, 92, 0.18);
  --shadow-elevated:        0 12px 40px rgba(27, 58, 92, 0.12);

  /* ---- Typography ---- */
  --font-heading:           'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:              'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;

  --fs-display:             clamp(2.75rem, 5vw, 3.5rem);
  --fs-h1:                  clamp(2.25rem, 4vw, 3rem);
  --fs-h2:                  clamp(1.75rem, 3vw, 2.25rem);
  --fs-h3:                  clamp(1.25rem, 2vw, 1.5rem);
  --fs-h4:                  clamp(1.1rem, 1.5vw, 1.25rem);
  --fs-h5:                  1.05rem;
  --fs-h6:                  0.95rem;
  --fs-body:                1.0625rem;
  --fs-body-lg:             1.1875rem;
  --fs-small:               0.875rem;
  --fs-eyebrow:             0.8125rem;

  --lh-heading:             1.25;
  --lh-body:                1.7;

  --fw-normal:              400;
  --fw-medium:              500;
  --fw-semibold:            600;
  --fw-bold:                700;

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

  /* ---- Layout ---- */
  --container-max:          1200px;
  --container-narrow:       860px;
  --container-wide:         1400px;
  --header-height:          72px;
  --border-radius:          6px;
  --border-radius-lg:       12px;
  --border-radius-full:     9999px;

  /* ---- Transitions ---- */
  --transition-fast:        150ms ease;
  --transition-base:        250ms ease;
  --transition-smooth:      400ms ease-out;
  --transition-slow:        600ms ease-out;

  /* ---- Z-Index Layers ---- */
  --z-base:                 1;
  --z-dropdown:             100;
  --z-sticky:               500;
  --z-header:               1000;
  --z-overlay:              1500;
  --z-modal:                2000;
  --z-toast:                2500;
}

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

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

body {
  min-height: 100vh;
  padding-top: var(--header-height);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Scroll margin for anchor targets */
[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* Remove default focus outline, add custom */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Selection — FIX: use dark navy bg for high contrast with white text */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--color-text-heading);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: var(--fs-h5);
  margin-bottom: var(--space-sm);
}

h6 {
  font-size: var(--fs-h6);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-md);
  max-width: 72ch;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

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

/* Animated gold underline for inline links */
.text-link,
.section p a,
.card__body a:not(.btn) {
  color: var(--color-primary);
  position: relative;
  display: inline;
}

.text-link::after,
.section p a::after,
.card__body a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 300ms ease;
}

.text-link:hover::after,
.section p a:hover::after,
.card__body a:not(.btn):hover::after {
  width: 100%;
}

small {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

strong, b {
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

blockquote {
  font-family: var(--font-heading);
  font-size: var(--fs-body-lg);
  font-style: italic;
  font-weight: var(--fw-normal);
  line-height: 1.6;
  color: var(--color-text);
  border-left: 3px solid var(--color-secondary);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  max-width: 60ch;
}

blockquote p {
  margin-bottom: 0;
}

/* Eyebrow — use accessible gold for text on white */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary-text);
  margin-bottom: var(--space-md);
}

.section-dark .eyebrow,
.section-gradient .eyebrow,
.hero .eyebrow {
  color: var(--color-secondary-light);
}

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

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.text-balance {
  text-wrap: balance;
}

/* Lead paragraph */
.lead {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--color-text);
}

/* Gold horizontal rule */
hr,
.hr-gold {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light), transparent);
  margin: var(--space-xl) 0;
  max-width: 120px;
}

hr.hr-gold--center,
.hr-gold--center {
  margin-left: auto;
  margin-right: auto;
}

hr.hr-gold--wide,
.hr-gold--wide {
  max-width: 200px;
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
  white-space: nowrap;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — Gold background with DARK text for contrast
   #C8963E background with #2E1A00 dark text gives ~8.5:1 ratio */
.btn-primary {
  background-color: var(--color-secondary);
  color: #2E1A00;
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: #B5862F;
  border-color: #B5862F;
  color: #2E1A00;
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary:active {
  background-color: #A07628;
  color: #2E1A00;
}

/* Secondary — Navy background */
.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-white);
  box-shadow: var(--shadow-btn-hover);
}

.btn-secondary:active {
  background-color: var(--color-primary-dark);
}

/* Outline — Navy border on light backgrounds */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Outline on dark backgrounds — light border */
.section-dark .btn-outline,
.section-gradient .btn-outline,
.hero .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.section-dark .btn-outline:hover,
.section-gradient .btn-outline:hover,
.hero .btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* Ghost — minimal, text-like — use accessible gold for text */
.btn-ghost {
  background-color: transparent;
  color: var(--color-secondary-text);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--color-secondary-dark);
  transform: none;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 300ms ease;
}

.btn-ghost:hover::after {
  width: 100%;
}

/* Size variants */
.btn--lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.0625rem;
  min-height: 54px;
}

.btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: var(--fs-small);
  min-height: 40px;
}

.btn--full {
  width: 100%;
}

/* Button icon */
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. LAYOUT — CONTAINERS & SECTIONS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

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

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

/* Sections */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-light {
  background-color: var(--color-bg);
  color: var(--color-text-body);
}

.section-warm {
  background-color: var(--color-bg-warm);
  color: var(--color-text-body);
}

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

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-white);
}

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

.section-dark strong {
  color: var(--color-white);
}

.section-dark small {
  color: rgba(255, 255, 255, 0.6);
}

.section-dark a:not(.btn) {
  color: var(--color-secondary-light);
}

.section-dark a:not(.btn):hover {
  color: var(--color-white);
}

.section-dark hr,
.section-dark .hr-gold {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light), transparent);
}

.section-darker {
  background-color: var(--color-bg-darker);
  color: var(--color-text-on-dark-muted);
}

.section-darker h1,
.section-darker h2,
.section-darker h3,
.section-darker h4,
.section-darker h5,
.section-darker h6 {
  color: var(--color-white);
}

.section-gradient {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: var(--color-text-on-dark-muted);
}

.section-gradient h1,
.section-gradient h2,
.section-gradient h3,
.section-gradient h4,
.section-gradient h5,
.section-gradient h6 {
  color: var(--color-white);
}

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

.section-gradient strong {
  color: var(--color-white);
}

.section-accent {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.section-accent h1,
.section-accent h2,
.section-accent h3,
.section-accent h4,
.section-accent h5,
.section-accent h6 {
  color: var(--color-white);
}

.section-accent p {
  color: rgba(255, 255, 255, 0.9);
}

.section-accent .btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

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

/* Section with curved top divider */
.section--curved-top {
  position: relative;
  margin-top: -1px;
}

.section--curved-top::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: inherit;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* --------------------------------------------------------------------------
   6. GRID UTILITIES
   -------------------------------------------------------------------------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

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

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

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

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

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

/* Alignment helpers for grids */
.grid-center {
  align-items: center;
}

.grid-start {
  align-items: start;
}

/* --------------------------------------------------------------------------
   7. SITE HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-header);
  box-shadow: var(--shadow-nav);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 72px;
  padding: 0 var(--space-lg);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color var(--transition-base);
  z-index: 10;
}

.logo:hover {
  color: var(--color-secondary-dark);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  position: relative;
  transition: color var(--transition-base);
  padding: 0.25rem 0;
}

/* Animated gold underline on nav links */
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 300ms ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

.nav-links a:not(.btn):hover {
  color: var(--color-primary);
}

.nav-links a:not(.btn).active {
  color: var(--color-primary);
}

/* Nav CTA button */
.nav-links .btn {
  margin-left: var(--space-sm);
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  min-height: 44px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Scrolled header state */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(27, 58, 92, 0.1);
}

/* Mobile navigation */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 5;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-links .btn {
    margin-left: 0;
    margin-top: var(--space-md);
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
  }
}

/* --------------------------------------------------------------------------
   8. HERO SECTION — SPLIT LAYOUT
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Split hero layout */
.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height));
}

.hero--split .hero__image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.hero--split .hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero--split .hero__image::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--color-primary));
  opacity: 0.3;
}

.hero--split .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-3xl);
  background-color: var(--color-primary);
  position: relative;
}

.hero--split .hero__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(42, 85, 128, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero--split .hero__content > * {
  position: relative;
  z-index: 2;
}

.hero--split .hero__content h1 {
  color: var(--color-white);
  font-size: var(--fs-display);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero--split .hero__content p {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-body-lg);
  max-width: 460px;
  margin-bottom: var(--space-xl);
}

.hero--split .hero__content .hr-gold {
  margin-bottom: var(--space-xl);
  max-width: 80px;
  height: 3px;
  background: var(--color-secondary);
}

.hero--split .hero__content .eyebrow {
  color: var(--color-secondary-light);
}

/* Hero CTA group */
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* Standard full-width hero with background image */
.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 40, 66, 0.88) 0%,
    rgba(27, 58, 92, 0.75) 50%,
    rgba(27, 58, 92, 0.65) 100%
  );
  z-index: 1;
}

.hero--image .hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-3xl) var(--space-lg);
}

.hero--image .hero__content h1 {
  color: var(--color-white);
  font-size: var(--fs-display);
}

.hero--image .hero__content p {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-body-lg);
  margin-left: auto;
  margin-right: auto;
}

/* Compact hero for sub-pages */
.hero--compact {
  min-height: 45vh;
  max-height: 480px;
}

/* Hero stagger animation */
.hero__content .eyebrow {
  animation: heroFadeIn 600ms ease-out 100ms both;
}

.hero__content h1 {
  animation: heroFadeIn 600ms ease-out 300ms both;
}

.hero__content p {
  animation: heroFadeIn 600ms ease-out 500ms both;
}

.hero__content .hr-gold {
  animation: heroFadeIn 600ms ease-out 600ms both;
}

.hero__content .hero__cta-group,
.hero__content .btn:first-of-type {
  animation: heroFadeIn 600ms ease-out 700ms both;
}

/* Mobile split hero */
@media (max-width: 767px) {
  .hero--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero--split .hero__image {
    min-height: 300px;
    max-height: 50vh;
  }

  .hero--split .hero__image::after {
    display: none;
  }

  .hero--split .hero__content {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero--split .hero__content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero--split .hero__content {
    padding: var(--space-2xl);
  }
}

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

/* Card with gold top border accent */
.card--accent {
  border-top: 3px solid var(--color-secondary);
}

/* Card on warm background */
.section-warm .card {
  background-color: var(--color-white);
}

/* Card on dark background */
.section-dark .card,
.section-gradient .card {
  background-color: var(--color-white);
}

.section-dark .card h3,
.section-dark .card h4,
.section-gradient .card h3,
.section-gradient .card h4 {
  color: var(--color-text-heading);
}

.section-dark .card p,
.section-gradient .card p {
  color: var(--color-text-body);
}

.card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card__image--tall {
  height: 320px;
}

.card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__body h3 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
}

.card__body p {
  color: var(--color-text-body);
  flex: 1;
}

.card__body .btn {
  align-self: flex-start;
  margin-top: var(--space-lg);
}

/* Card icon */
.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

/* Card icon with background circle */
.card__icon--circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-bg-warm);
  padding: 14px;
}

/* Team member card */
.card--team {
  text-align: center;
  overflow: visible;
}

.card--team .card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: calc(-70px + var(--space-xl)) auto var(--space-lg);
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 16px rgba(27, 58, 92, 0.12);
  display: block;
}

.card--team .card__body {
  padding-top: 0;
}

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

/* FIX: card role — use accessible gold for text on white card */
.card--team .card__role {
  color: var(--color-secondary-text);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  display: block;
}

.card--team .card__qualifications {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Testimonial card */
.card--testimonial blockquote {
  border-left: none;
  padding-left: 0;
  font-size: var(--fs-body);
  margin: 0 0 var(--space-lg);
  color: var(--color-text);
}

/* Stat card */
.card--stat {
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.card--stat:hover {
  transform: none;
  box-shadow: none;
}

/* FIX: stat number — use accessible gold for text on white */
.card--stat .stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-secondary-text);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.section-dark .card--stat .stat__number,
.section-gradient .card--stat .stat__number {
  color: var(--color-secondary-light);
}

.card--stat .stat__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
}

.section-dark .card--stat .stat__label,
.section-gradient .card--stat .stat__label {
  color: var(--color-text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   10. STAR RATING
   -------------------------------------------------------------------------- */
.stars {
  display: inline-flex;
  gap: 4px;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.stars svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-bg-darker);
  color: var(--color-text-on-dark-muted);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.site-footer h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color var(--transition-base);
  font-size: 0.9375rem;
}

.site-footer a:hover {
  color: var(--color-white);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-small);
}

.site-footer .hr-gold {
  background: linear-gradient(90deg, var(--color-secondary), transparent);
  max-width: 60px;
  margin-bottom: var(--space-lg);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */

/* Hero fade-in */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade and rise — for scroll-triggered reveals */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in only */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gold line draw */
@keyframes drawLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Image reveal — clip from left */
@keyframes imageReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Counter pulse */
@keyframes counterPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* --------------------------------------------------------------------------
   13. SCROLL-TRIGGERED ANIMATIONS
   -------------------------------------------------------------------------- */

/* Base state — hidden before reveal */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal from left */
.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal--left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal from right */
.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal--right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal--scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal--scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered reveals for children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 500ms ease-out,
    transform 500ms ease-out;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 500ms; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 600ms; }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 700ms; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Image reveal on scroll */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 800ms ease-out;
  z-index: 2;
}

.image-reveal.revealed::after {
  transform: scaleX(0);
}

.image-reveal img {
  transform: scale(1.1);
  transition: transform 800ms ease-out 200ms;
}

.image-reveal.revealed img {
  transform: scale(1);
}

/* Counter animation class */
.counter {
  font-variant-numeric: tabular-nums;
}

.counter.revealed {
  animation: counterPulse 400ms ease-out 1.5s both;
}

/* --------------------------------------------------------------------------
   14. TWO-COLUMN CONTENT LAYOUTS
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .split--reverse {
    direction: rtl;
  }

  .split--reverse > * {
    direction: ltr;
  }
}

.split__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

/* --------------------------------------------------------------------------
   15. TRUST BAR / CREDENTIALS BAR
   -------------------------------------------------------------------------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl) var(--space-2xl);
  padding: var(--space-xl) 0;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  white-space: nowrap;
}

.trust-bar__item svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

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

/* --------------------------------------------------------------------------
   16. CTA BANNER SECTION
   -------------------------------------------------------------------------- */
.cta-banner {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-body-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

.cta-banner .hr-gold {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   17. STATS / NUMBERS SECTION
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

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

.stat-item {
  padding: var(--space-lg);
}

/* FIX: stat number — use accessible gold for text on white */
.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-secondary-text);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.section-dark .stat-item__number,
.section-gradient .stat-item__number {
  color: var(--color-secondary-light);
}

.stat-item__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-text-body);
}

.section-dark .stat-item__label,
.section-gradient .stat-item__label {
  color: var(--color-text-on-dark-muted);
}

/* Divider between stats */
.stat-item + .stat-item {
  position: relative;
}

@media (min-width: 768px) {
  .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--color-border);
  }

  .section-dark .stat-item + .stat-item::before,
  .section-gradient .stat-item + .stat-item::before {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

/* --------------------------------------------------------------------------
   18. FORMS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-small);
}

/* FIX: form borders — use --color-form-border for 3:1+ against white (WCAG 1.4.11) */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-form-border);
  border-radius: var(--border-radius);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.15);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   19. BADGES & TAGS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--border-radius-full);
  white-space: nowrap;
}

/* FIX: badge--primary — was same text and bg color. Use light navy bg with navy text.
   #1B3A5C text on rgba(27,58,92,0.12) ≈ #DDE3EA bg gives ~7.5:1 */
.badge--primary {
  background-color: rgba(27, 58, 92, 0.12);
  color: var(--color-primary);
}

/* FIX: badge--secondary — darken text to #4A3409 for 4.5:1+ on light gold bg.
   rgba(200,150,62,0.15) ≈ #F5EDD9 bg, #4A3409 text gives ~8.8:1 */
.badge--secondary {
  background-color: rgba(200, 150, 62, 0.15);
  color: #4A3409;
}

.badge--light {
  background-color: var(--color-bg-warm);
  color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   20. ACCORDION / FAQ
   -------------------------------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--color-border);
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-base);
}

.accordion__trigger:hover {
  color: var(--color-secondary-dark);
}

.accordion__trigger svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-secondary);
}

.accordion__item.active .accordion__trigger svg {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.accordion__content-inner {
  padding-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   21. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.breadcrumbs a {
  color: var(--color-text-light);
  transition: color var(--transition-base);
}

.breadcrumbs a:hover {
  color: var(--color-secondary-dark);
}

.breadcrumbs .separator {
  color: var(--color-border);
}

.breadcrumbs .current {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

/* --------------------------------------------------------------------------
   22. COOKIE CONSENT BANNER
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-darker);
  color: var(--color-text-on-dark-muted);
  padding: var(--space-lg) var(--space-xl);
  z-index: var(--z-toast);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
}

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

.cookie-banner p {
  font-size: var(--fs-small);
  margin: 0;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-banner a {
  color: var(--color-secondary-light);
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: var(--color-white);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   23. PROCESS / TIMELINE
   -------------------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  counter-reset: step;
}

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

.process-step {
  position: relative;
  padding: var(--space-xl);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: rgba(200, 150, 62, 0.2);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-md);
}

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

/* Connector line between steps on desktop */
@media (min-width: 768px) {
  .process-step + .process-step::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: -1rem;
    width: 2rem;
    height: 2px;
    background-color: var(--color-secondary);
    opacity: 0.3;
  }
}

/* --------------------------------------------------------------------------
   24. PARTNER / ABOUT SECTION
   -------------------------------------------------------------------------- */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

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

.partner-card {
  text-align: center;
  padding-top: 80px;
}

.partner-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 20px rgba(27, 58, 92, 0.12);
}

.partner-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--color-text-heading);
  margin-bottom: var(--space-xs);
}

/* FIX: partner title — use accessible gold for text on white */
.partner-card__title {
  color: var(--color-secondary-text);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.partner-card__bio {
  font-size: var(--fs-body);
  color: var(--color-text-body);
  max-width: 320px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   25. SERVICE LIST / FEATURE LIST
   -------------------------------------------------------------------------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.feature-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
  margin-top: 2px;
}

.feature-list__text {
  font-size: var(--fs-body);
  color: var(--color-text-body);
}

.feature-list__text strong {
  display: block;
  color: var(--color-text-heading);
  margin-bottom: 2px;
}

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

.section-dark .feature-list__text strong {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   26. MAP / CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

/* FIX: contact-info__icon — use warm bg on light sections with navy icon (high contrast) */
.contact-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* FIX: contact-info__icon on dark backgrounds — use semi-transparent white bg
   with white icon for strong visibility */
.section-dark .contact-info__icon,
.section-gradient .contact-info__icon,
.section-darker .contact-info__icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.map-embed {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 400px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* --------------------------------------------------------------------------
   27. SECTION HEADING PATTERN
   -------------------------------------------------------------------------- */
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-heading .eyebrow {
  margin-bottom: var(--space-sm);
}

.section-heading h2 {
  margin-bottom: var(--space-md);
}

.section-heading p {
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-body);
}

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

/* --------------------------------------------------------------------------
   28. LOGO STRIP / CLIENT LOGOS
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl) var(--space-3xl);
  padding: var(--space-xl) 0;
}

.logo-strip img {
  height: 36px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition:
    opacity var(--transition-base),
    filter var(--transition-base);
}

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

/* --------------------------------------------------------------------------
   29. BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base),
    transform var(--transition-base),
    background-color var(--transition-base);
  z-index: var(--z-sticky);
  cursor: pointer;
}

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

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

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

/* --------------------------------------------------------------------------
   30. TABLE STYLES
   -------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}

.table thead {
  background-color: var(--color-primary);
}

.table thead th {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-body);
}

.table tbody tr:hover {
  background-color: var(--color-bg-warm);
}

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

/* --------------------------------------------------------------------------
   31. UTILITY CLASSES
   -------------------------------------------------------------------------- */

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }

/* Flex utilities */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.py-3xl { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.py-4xl { padding-top: var(--space-4xl); padding-bottom: var(--space-4xl); }

.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }

/* Text utilities */
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.text-primary { color: var(--color-primary); }
/* FIX: text-secondary utility — use accessible gold */
.text-secondary { color: var(--color-secondary-text); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-light); }
.text-body { color: var(--color-text-body); }

/* Background utilities */
.bg-white { background-color: var(--color-white); }
.bg-warm { background-color: var(--color-bg-warm); }
.bg-primary { background-color: var(--color-primary); }
.bg-dark { background-color: var(--color-bg-dark); }

/* Width utilities */
.w-full { width: 100%; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 960px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Border utilities */
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-full { border-radius: var(--border-radius-full); }

/* Shadow utilities */
.shadow { box-shadow: var(--shadow-card); }
.shadow-lg { box-shadow: var(--shadow-elevated); }
.shadow-none { box-shadow: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

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

/* --------------------------------------------------------------------------
   32. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Tablet (768px) */
@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }

  .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

  h1 {
    font-size: clamp(2.25rem, 4vw, 3rem);
  }

  h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
  }

  /* Show desktop nav */
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    opacity: 1;
    visibility: visible;
    background: transparent;
    flex-direction: row;
  }

  /* Hide mobile-only elements */
  .mobile-only {
    display: none;
  }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-5xl) 0;
  }

  .container {
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
  }

  /* Hero split gets more breathing room */
  .hero--split .hero__content {
    padding: var(--space-4xl);
  }
}

/* Large desktop (1280px) */
@media (min-width: 1280px) {
  .hero--split .hero__content {
    padding: var(--space-4xl) var(--space-5xl);
  }
}

/* Mobile-specific overrides */
@media (max-width: 767px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  /* Stack hero CTA buttons */
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta-group .btn {
    text-align: center;
  }

  /* Reduce card padding on mobile */
  .card__body {
    padding: var(--space-lg);
  }

  /* Stats grid 2-col on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Process steps single column */
  .process-steps {
    grid-template-columns: 1fr;
  }

  /* Blockquote smaller */
  blockquote {
    font-size: var(--fs-body);
    padding-left: var(--space-md);
  }

  /* Desktop-only elements */
  .desktop-only {
    display: none;
  }

  /* Footer grid stacks */
  .site-footer .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   33. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .nav-toggle,
  .cookie-banner,
  .back-to-top,
  .btn {
    display: none !important;
  }

  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1rem 0;
  }

  .section-dark,
  .section-gradient {
    background: #fff !important;
    color: #333 !important;
  }

  .section-dark h1,
  .section-dark h2,
  .section-dark h3,
  .section-dark h4,
  .section-gradient h1,
  .section-gradient h2,
  .section-gradient h3,
  .section-gradient h4 {
    color: #000 !important;
  }

  .section-dark p,
  .section-gradient p {
    color: #333 !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* --------------------------------------------------------------------------
   34. REDUCED MOTION
   -------------------------------------------------------------------------- */
@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;
  }

  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--scale {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }

  .image-reveal::after {
    display: none;
  }

  .hero__content .eyebrow,
  .hero__content h1,
  .hero__content p,
  .hero__content .hr-gold,
  .hero__content .hero__cta-group {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   35. DARK MODE SUPPORT (optional — respects system preference)
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  /* Only activate if a .dark-mode-auto class is on html */
  html.dark-mode-auto {
    --color-bg: #0F1B2A;
    --color-bg-warm: #162236;
    --color-text-body: #B0B8C4;
    --color-text: #D4DAE2;
    --color-text-heading: #E8ECF0;
    --color-text-light: #9CA3AF;
    --color-border: #2A3A4E;
    --color-border-light: #1E2E42;
    --color-form-border: #5A6A7E;
  }

  html.dark-mode-auto .site-header {
    background: rgba(15, 27, 42, 0.95);
  }

  html.dark-mode-auto .card {
    background-color: #162236;
  }

  html.dark-mode-auto .logo {
    color: var(--color-white);
  }

  html.dark-mode-auto .nav-links a {
    color: var(--color-text);
  }

  html.dark-mode-auto .nav-toggle span {
    background-color: var(--color-white);
  }
}

/* --------------------------------------------------------------------------
   36. SPECIAL COMPONENTS — CERTIFICATION / AWARD BADGES
   -------------------------------------------------------------------------- */
.certification-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl) var(--space-2xl);
  padding: var(--space-lg) 0;
}

.certification-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-body);
}

.certification-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

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

/* --------------------------------------------------------------------------
   37. QUOTE / HIGHLIGHT BOX
   -------------------------------------------------------------------------- */
.highlight-box {
  background-color: var(--color-bg-warm);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: var(--space-xl) var(--space-xl);
  margin: var(--space-xl) 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--color-text);
}

.highlight-box strong {
  color: var(--color-text-heading);
}

.section-dark .highlight-box {
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--color-secondary);
}

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

.section-dark .highlight-box strong {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   38. ICON LIST (for service detail pages)
   -------------------------------------------------------------------------- */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.icon-list__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  background-color: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.icon-list__icon svg {
  width: 24px;
  height: 24px;
}

.icon-list__content h4 {
  margin-bottom: var(--space-xs);
}

.icon-list__content p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   39. NOTIFICATION / ALERT BAR
   -------------------------------------------------------------------------- */
.alert-bar {
  background-color: var(--color-secondary);
  color: #2E1A00;
  text-align: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  position: relative;
  z-index: calc(var(--z-header) + 1);
}

.alert-bar a {
  color: #2E1A00;
  text-decoration: underline;
  font-weight: var(--fw-semibold);
}

.alert-bar a:hover {
  opacity: 0.85;
}

/* When alert bar is present, offset header */
.has-alert-bar .site-header {
  top: 36px;
}

.has-alert-bar body {
  padding-top: calc(var(--header-height) + 36px);
}

/* --------------------------------------------------------------------------
   40. DIVIDER PATTERNS
   -------------------------------------------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-xl) 0;
}

.divider--gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.divider--thick {
  height: 3px;
}

.section-dark .divider {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Curved section divider (used once — hero to first content) */
.section-divider-curve {
  position: relative;
  height: 50px;
  background-color: var(--color-bg-warm);
  margin-top: -1px;
}

.section-divider-curve::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -5%;
  right: -5%;
  height: 100px;
  background-color: var(--color-bg-warm);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   41. LOADING / SKELETON STATES
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-warm) 25%,
    var(--color-bg-warm-alt) 50%,
    var(--color-bg-warm) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton--text {
  height: 1em;
  margin-bottom: 0.5em;
  width: 80%;
}

.skeleton--heading {
  height: 1.5em;
  margin-bottom: 0.75em;
  width: 60%;
}

.skeleton--image {
  height: 200px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   42. SCROLL PROGRESS BAR
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
  z-index: calc(var(--z-header) - 1);
  transition: width 50ms linear;
}

/* --------------------------------------------------------------------------
   43. TOOLTIP
   -------------------------------------------------------------------------- */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: var(--fw-normal);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility var(--transition-base);
  pointer-events: none;
  z-index: var(--z-dropdown);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   44. ASPECT RATIO BOXES
   -------------------------------------------------------------------------- */
.aspect-16-9 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.aspect-16-9 img,
.aspect-4-3 img,
.aspect-1-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   45. OVERLAY PATTERNS
   -------------------------------------------------------------------------- */
.overlay {
  position: relative;
}

.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.overlay > * {
  position: relative;
  z-index: 2;
}

.overlay--dark::before {
  background: rgba(18, 40, 66, 0.7);
}

.overlay--gradient::before {
  background: linear-gradient(135deg, rgba(18, 40, 66, 0.85) 0%, rgba(27, 58, 92, 0.6) 100%);
}

.overlay--light::before {
  background: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   46. ANIMATED GOLD UNDERLINE UTILITY
   -------------------------------------------------------------------------- */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 300ms ease;
}

.gold-underline:hover::after {
  width: 100%;
}

/* Static gold underline (always visible) */
.gold-underline--static::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   47. RESPONSIVE VISIBILITY HELPERS
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}

@media (max-width: 1023px) {
  .show-desktop-only { display: none !important; }
}

@media (min-width: 768px) {
  .show-mobile-only { display: none !important; }
}

/* --------------------------------------------------------------------------
   48. CONTENT PROSE STYLES (for long-form legal/service pages)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: var(--space-3xl);
}

.prose h3 {
  margin-top: var(--space-2xl);
}

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

.prose ul,
.prose ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: var(--space-xs);
  line-height: var(--lh-body);
  color: var(--color-text-body);
}

.prose li::marker {
  color: var(--color-secondary);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.prose a:hover {
  color: var(--color-secondary-dark);
}

.prose img {
  border-radius: var(--border-radius-lg);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-card);
}

.prose blockquote {
  margin: var(--space-2xl) 0;
}

/* --------------------------------------------------------------------------
   49. FOCUS STYLES FOR ACCESSIBILITY
   -------------------------------------------------------------------------- */
.btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.2);
}

a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: calc(var(--z-header) + 10);
  font-weight: var(--fw-semibold);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* --------------------------------------------------------------------------
   50. FINAL GLOBAL TRANSITIONS
   -------------------------------------------------------------------------- */

/* Ensure all interactive elements have smooth transitions */
a,
button,
input,
textarea,
select,
.card,
.btn,
.nav-toggle span {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 250ms;
  transition-timing-function: ease;
}

/* Override for elements that already have specific transitions */
.card {
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.btn {
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

/* Ensure images in cards transition smoothly */
.card__image {
  transition: transform var(--transition-smooth);
}

.card:hover .card__image {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   END OF DESIGN SYSTEM
   Degen Krafft Barth — Steuerberatung & Rechtsberatung
   Rhein-Main Region | Premium Professional Services
   -------------------------------------------------------------------------- */