/* ==========================================================================
   London Fit Out Ltd - Modernized Production Stylesheet
   Art Direction: Trade Playbook Variant B (Clean Premium Commercial Trade)
   WCAG 2.1 AA Compliant | Fluid Typography & Mobile-First CSS Grid
   ========================================================================== */

:root {
  /* Color Tokens from design_brief.json */
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0072b2;       /* Architectural Azure - WCAG AA compliant on white */
  --primary-hover: #005a8e;
  --primary-text: #ffffff;
  --accent: #00bbff;        /* Legacy Cyan interactive accent */
  --accent-light: #e6f8ff;
  --accent-hover: #00a4e4;
  --dark: #0b1320;          /* London City Night Slate */
  --dark-surface: #141f33;
  --dark-text: #f8fafc;
  --dark-muted: #94a3b8;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-dark: #1e293b;
  
  /* Status / Accents */
  --gold: #d97706;
  --gold-bg: #fffbeb;
  --success: #15803d;
  --success-bg: #f0fdf4;
  
  /* Typography Tokens */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --line-height-base: 1.6;
  --line-height-tight: 1.25;
  --line-height-heading: 1.15;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 25px -5px rgba(0, 187, 255, 0.35);
  
  /* Border Radii */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Document Base
   ========================================================================== */

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: var(--line-height-base);
  color: var(--text);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 99999;
  padding: 0.875rem 1.5rem;
  background-color: var(--dark);
  color: var(--dark-text);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}

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

/* Focus Visibility */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding-inline: 2.5rem;
  }
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1400px;
}

.section-padding {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.section-padding-sm {
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

/* ==========================================================================
   Typography Scale
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-family: var(--font-family);
  font-weight: 800;
  line-height: var(--line-height-heading);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: var(--line-height-base);
  margin-bottom: 1rem;
}

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

.lead-text {
  font-size: clamp(1.125rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.eyebrow-accent {
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background-color: currentColor;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.badge-primary {
  background-color: rgba(0, 114, 178, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 114, 178, 0.25);
}

.badge-accent {
  background-color: rgba(0, 187, 255, 0.12);
  color: #007ea8;
  border: 1px solid rgba(0, 187, 255, 0.3);
}

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

.badge-gold {
  background-color: var(--gold-bg);
  color: var(--gold);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.625rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  min-height: 48px;
  touch-action: manipulation;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 114, 178, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-text);
  box-shadow: 0 6px 16px rgba(0, 114, 178, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  font-weight: 800;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--dark-text);
  border-color: rgba(248, 250, 252, 0.4);
}

.btn-outline-white:hover {
  background-color: var(--surface);
  color: var(--dark);
  border-color: var(--surface);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
  min-height: 56px;
}

.btn-icon {
  display: inline-flex;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition-normal), background-color var(--transition-normal);
}

header.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 1);
}

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

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
}

.brand-logo-img {
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-logo-img {
    height: 54px;
    max-width: 230px;
  }
}

.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
  }

  .nav-link:hover {
    color: var(--primary);
    background-color: var(--bg);
  }

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

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.header-phone-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .header-phone-link {
    display: inline-flex;
  }
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.hamburger-icon {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

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

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

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

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 19, 32, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 380px);
  background-color: var(--surface);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding: 1.75rem;
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.mobile-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--bg);
  color: var(--primary);
}

.mobile-drawer-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   Hero Section (Split Layout)
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3rem, 5vw, 5.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-proof-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  width: fit-content;
}

.stars-rating {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 800;
}

.hero-headline {
  margin: 0;
}

.hero-subheadline {
  font-size: clamp(1.125rem, 1.4vw, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-media {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3.4;
  background-color: var(--dark);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-media:hover .hero-image {
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 1rem;
  max-width: 320px;
}

@media (min-width: 768px) {
  .hero-floating-card {
    display: flex;
  }
}

.floating-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Trust Credentials & Accreditations Strip
   ========================================================================== */

.trust-section {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem;
}

.trust-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.trust-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
  margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
  .certifications-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
}

.cert-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  height: 100px;
  transition: var(--transition-fast);
}

.cert-badge-card:hover {
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cert-badge-img {
  max-height: 55px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

.client-logos-wrapper {
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}

.client-logos-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  justify-items: center;
}

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

@media (min-width: 1024px) {
  .client-logos-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 3rem;
  }
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 100%;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: var(--transition-normal);
}

.client-logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.client-logo-img {
  max-height: 42px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   Services Section & Cards
   ========================================================================== */

.services-section {
  background-color: var(--bg);
}

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

.section-header.text-center {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

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

.service-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--dark);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.service-card-text {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.service-feature-item {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.feature-check {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Director-Led Delivery Showcase
   ========================================================================== */

.directors-section {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.directors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

.director-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.director-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.director-photo-wrapper {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background-color: var(--dark);
  overflow: hidden;
}

.director-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.director-card:hover .director-photo {
  transform: scale(1.03);
}

.director-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.director-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.director-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.director-qual {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.director-bio {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.director-highlight {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dark);
  background-color: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Signature Section: Before & After Transformation Studio
   ========================================================================== */

.signature-section {
  background-color: var(--dark);
  color: var(--dark-text);
  padding-block: clamp(4rem, 7vw, 7rem);
}

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

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

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  user-select: none;
  -webkit-user-select: none;
  background-color: #000;
}

@media (max-width: 640px) {
  .slider-container {
    aspect-ratio: 4 / 3.2;
  }
}

.slider-image-before,
.slider-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-image-before img,
.slider-image-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-image-before {
  z-index: 2;
  width: 50%;
  border-right: 2px solid var(--accent);
}

.slider-image-after {
  z-index: 1;
}

.slider-badge {
  position: absolute;
  top: 1.25rem;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

.badge-before {
  left: 1.25rem;
  background: rgba(11, 19, 32, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-after {
  right: 1.25rem;
  background: var(--accent);
  color: var(--dark);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 187, 255, 0.6);
  z-index: 10;
  pointer-events: none;
  cursor: ew-resize;
  border: 3px solid #ffffff;
}

.slider-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 20;
  cursor: ew-resize;
  margin: 0;
}

.transformation-meta-bar {
  margin-top: 1.75rem;
  background-color: var(--dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.meta-box-label {
  font-size: 0.75rem;
  color: var(--dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.meta-box-value {
  font-size: 1.05rem;
  color: var(--dark-text);
  font-weight: 700;
}

/* ==========================================================================
   Featured Projects Archive & Grid
   ========================================================================== */

.projects-section {
  background-color: var(--bg);
}

.filter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  background-color: var(--dark);
  overflow: hidden;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card-img {
  transform: scale(1.04);
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(11, 19, 32, 0.85);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.project-location {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.project-spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.spec-value {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 700;
}

/* ==========================================================================
   Three-Stage Delivery Framework
   ========================================================================== */

.framework-section {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.framework-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

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

.framework-step-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.framework-step-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 114, 178, 0.2);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.step-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.step-description {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.step-deliverables-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.step-deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-deliverable-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.step-deliverable-item::before {
  content: '▪';
  color: var(--accent);
  font-size: 1.1rem;
}

/* ==========================================================================
   Areas Covered & Map Section
   ========================================================================== */

.areas-section {
  background-color: var(--bg);
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.areas-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition-fast);
}

.area-chip:hover {
  border-color: var(--primary);
  background-color: var(--accent-light);
  color: var(--primary);
}

.area-postcode {
  font-size: 0.75rem;
  font-weight: 800;
  background-color: rgba(0, 114, 178, 0.1);
  color: var(--primary);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
}

.map-embed-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  background-color: var(--dark);
}

.map-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Client Reviews & Testimonials Section
   ========================================================================== */

.reviews-section {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.review-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 1rem;
}

.review-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background-color: var(--surface);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.review-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  font-style: normal;
  margin-bottom: 1.5rem;
  flex: 1;
}

.review-author-meta {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.author-company {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   Tendering Discipline, JCT Contracts & GEO Comparison Table
   ========================================================================== */

.comparison-section {
  background-color: var(--bg);
}

.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  margin-block: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
  min-width: 680px;
}

.comparison-table th {
  background-color: var(--dark);
  color: var(--dark-text);
  padding: 1.25rem 1.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--accent);
}

.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--bg);
}

.comparison-table tbody tr:hover {
  background-color: var(--accent-light);
}

.table-scope-title {
  font-weight: 800;
  color: var(--primary);
  display: block;
  font-size: 1.05rem;
}

/* ==========================================================================
   FAQ Section (Accordion Pattern)
   ========================================================================== */

.faq-section {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  gap: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal), background-color var(--transition-normal);
  font-weight: 700;
}

.faq-button[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-answer.is-open {
  display: block;
}

/* ==========================================================================
   Project Consultation / Quote Form & Subcontractor Vetting
   ========================================================================== */

.enquiry-section {
  background-color: var(--bg);
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .enquiry-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.enquiry-form-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.form-label .required {
  color: #dc2626;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--text);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(0, 114, 178, 0.15);
}

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

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 0.5rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-checkbox-label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-success-alert {
  display: none;
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(21, 128, 61, 0.25);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Sidebar Info & Subcontractor Vetting Card */
.enquiry-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.direct-contact-card {
  background-color: var(--dark);
  color: var(--dark-text);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
}

.direct-contact-card h3 {
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.direct-contact-card p {
  color: var(--dark-muted);
  margin-bottom: 1.5rem;
}

.contact-quick-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-quick-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--dark-surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-dark);
}

.subcontractor-box {
  background-color: var(--surface);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.subcontractor-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.subcontractor-box p {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Global Footer & Legal Info
   ========================================================================== */

footer.site-footer {
  background-color: var(--dark);
  color: var(--dark-text);
  border-top: 1px solid var(--border-dark);
  padding-top: clamp(4rem, 6vw, 6rem);
  padding-bottom: 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

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

@media (min-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  }
}

.footer-col h4 {
  color: var(--dark-text);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background-color: var(--accent);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--dark-muted);
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

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

.footer-link {
  font-size: 0.875rem;
  color: var(--dark-muted);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--dark-muted);
  margin-bottom: 0.875rem;
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--dark-muted);
  text-align: center;
}

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

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

/* ==========================================================================
   Mobile Sticky Action Bar & Back to Top
   ========================================================================== */

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.625rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--dark);
  color: var(--dark-text);
  border: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-fast);
}

@media (min-width: 768px) {
  .back-to-top {
    bottom: 2rem;
    right: 2rem;
  }
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

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

/* Floating Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 997;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transform: translateY(150%);
  transition: transform var(--transition-slow);
}

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

@media (max-width: 767px) {
  .cookie-banner {
    bottom: 4.75rem;
    left: 1rem;
    right: 1rem;
  }
}

.cookie-text {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.625rem;
}

/* ==========================================================================
   Motion & Animation (Inside prefers-reduced-motion)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
