/*
 * AETHELGARD PARTNERS - STYLING ARCHITECTURE
 * Palette: Cool Slate, Steel Blue & Platinum
 * Typography: Cormorant Garamond (Editorial Serif) & Plus Jakarta Sans (Geometric Sans)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Premium Cool Slate & Platinum Palette (No pure white, no dark backgrounds) */
  --bg-main: #e2e8f0;            /* Rich Cool Cement/Slate Background */
  --bg-alternate: #d1dbe5;       /* Premium Sand-Slate/Cool Gray Contrast */
  --bg-card: #edf2f7;            /* Smooth Slate-Platinum Card Base */
  --bg-card-hover: #f5f8fa;      /* Ice-Silver highlight on hover (not pure white) */
  
  /* High-Contrast Corporate Typography */
  --text-primary: #0f172a;        /* Deep Midnight Navy (Pristine focus) */
  --text-secondary: #334155;      /* Slate Blue/Gray (Detailed explanation) */
  --text-muted: #64748b;         /* Muted Silver-Steel (Labels and secondary elements) */
  
  /* Strategic Active Highlights */
  --accent-blue: #0284c7;        /* Sky/Prussian Blue for high-focus CTAs & active indicators */
  --accent-blue-rgb: 2, 132, 199;
  --accent-silver: #94a3b8;      /* Clean Platinum accent */
  --accent-silver-light: rgba(148, 163, 184, 0.2);
  
  /* Geometry & Borders */
  --border-color: rgba(15, 23, 42, 0.12); /* Crisp navy-slate gridline at 12% opacity */
  --border-hover: rgba(2, 132, 199, 0.4);
  --border-active: rgba(2, 132, 199, 0.8);
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Animation Timing */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-snappy: all 0.2s ease;
  
  /* Layout Sizing */
  --header-height: 80px;
  --header-shrink-height: 64px;
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.625;
  background-color: var(--bg-main);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Precise scroll margins to align sections perfectly under sticky header */
section {
  scroll-margin-top: var(--header-height);
  overflow-x: hidden;
  overflow-x: clip;
}

@media (max-width: 991px) {
  section {
    scroll-margin-top: var(--header-shrink-height);
  }
}

/* Structural Background Geometric Grids (Blueprint lines) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 80px 80px; /* Precise geometric scale */
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* Luxury Soft Radiant Strategic Gradients */
.glowing-mesh {
  position: absolute;
  width: 600px;
  height: 600px;
  max-width: 100%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .glowing-mesh {
    width: 280px;
    height: 280px;
  }
}

.mesh-pos-1 { top: 10%; right: -10%; }
.mesh-pos-2 { bottom: 20%; left: -10%; }

/* Container Rules */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
}

p {
  font-family: var(--font-sans);
  color: var(--text-secondary);
}

.label-caps {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-blue);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
  background: rgba(0, 0, 0, 0);
  background-color: rgba(0, 0, 0, 0);
}

header.scrolled {
  height: var(--header-shrink-height);
  background-color: rgba(226, 232, 240, 0.85) !important;
  background: rgba(226, 232, 240, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--text-primary);
  transform: rotate(45deg);
  transition: var(--transition-smooth);
}

.logo-icon::before {
  content: '';
  width: 12px;
  height: 12px;
  background-color: var(--accent-blue);
  transition: var(--transition-smooth);
}

.logo:hover .logo-icon {
  transform: rotate(135deg);
  border-color: var(--accent-blue);
}

.logo:hover .logo-icon::before {
  background-color: var(--text-primary);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-snappy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--accent-blue);
  transition: var(--transition-smooth);
}

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

.nav-link:hover::after {
  width: 100%;
}

/* Action CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-minimal {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-snappy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-minimal svg {
  transition: var(--transition-smooth);
}

.btn-minimal:hover {
  color: var(--accent-blue);
}

.btn-minimal:hover svg {
  transform: translateX(4px);
}

/* Primary Button */
.btn-primary {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--text-primary);
  color: var(--bg-main);
  border: 1px solid var(--text-primary);
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-blue);
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  color: #ffffff;
  border-color: var(--accent-blue);
}

.btn-primary:hover::before {
  left: 0;
}

/* Hamburger Icon for Mobile */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1010;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  left: 0;
  transition: var(--transition-smooth);
}

.hamburger-line:nth-child(1) { top: 4px; }
.hamburger-line:nth-child(2) { top: 11px; }
.hamburger-line:nth-child(3) { top: 18px; }

header.mobile-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--text-primary);
}

header.mobile-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

header.mobile-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--text-primary);
}

/* Premium full-screen Slide-Out Mobile Navigation */
@media (max-width: 991px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background-color: rgba(226, 232, 240, 0.96); /* Luxurious highly blurred glass background */
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-left: 1px solid var(--border-color);
    box-shadow: -15px 0 45px rgba(15, 23, 42, 0.08);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 7rem 3rem 4rem 3rem;
    gap: 1.5rem;
    z-index: 1005;
    transition: var(--transition-smooth);
    overflow-y: auto;
  }
  
  @media (max-width: 576px) {
    .nav-menu {
      max-width: 100%; /* Full screen takeover on small viewports */
      border-left: none;
    }
  }
  
  header.mobile-open .nav-menu {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 0.5rem;
  }
  
  .nav-link {
    font-family: var(--font-serif);
    font-size: 1.75rem; /* Majestic boardroom size */
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    text-decoration: none;
    transition: var(--transition-snappy);
  }
  
  /* Redesigned sky-blue Roman numerals */
  .nav-menu li:nth-child(1) .nav-link::before { content: 'I.'; }
  .nav-menu li:nth-child(2) .nav-link::before { content: 'II.'; }
  .nav-menu li:nth-child(3) .nav-link::before { content: 'III.'; }
  .nav-menu li:nth-child(4) .nav-link::before { content: 'IV.'; }
  .nav-menu li:nth-child(5) .nav-link::before { content: 'V.'; }
  
  .nav-link::before {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-right: 0.75rem;
    width: 2.25rem;
    display: inline-block;
    letter-spacing: normal;
    opacity: 0.85;
  }
  
  .nav-link::after {
    display: none; /* Disable hover underline inside slide-out menu */
  }
  
  .nav-link:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
  }
  
  .nav-cta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 1rem;
  }
  
  .nav-cta .btn-minimal {
    font-size: 1.125rem;
    width: 100%;
    justify-content: flex-start;
    padding: 0.5rem 0;
  }
  
  .nav-cta .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
  }
  
  /* Mobile menu details block styles */
  .mobile-menu-info {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-top: 1rem;
    display: flex !important;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .menu-info-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 1.25rem;
  }
  
  .menu-info-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
  }
  
  .menu-info-detail {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
  }
}

/* Desktop-only: Hide the mobile menu info block */
@media (min-width: 992px) {
  .mobile-menu-info {
    display: none !important;
  }
}

/* ==========================================================================
   REVEAL ON SCROLL ENGINE
   ========================================================================== */

.reveal-fade,
.reveal-slide-up,
.reveal-slide-right,
.reveal-slide-left {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-slide-up {
  transform: translateY(40px);
}

.reveal-slide-right {
  transform: translateX(-40px);
}

.reveal-slide-left {
  transform: translateX(40px);
}

.reveal-active {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Grid Border Dividers between Sections */
.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  position: relative;
  z-index: 5;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.3em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-actions .btn-primary {
  padding: 1rem 2.25rem;
}

/* Image framing structures */
.hero-visual {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-editorial-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 460px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.hero-frame-border {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 2;
}

.hero-editorial-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-blue);
  opacity: 0.15;
  pointer-events: none;
  z-index: 3;
  transition: var(--transition-smooth);
}

/* Hover effects */
.hero-editorial-frame:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 
    0 40px 80px -25px rgba(15, 23, 42, 0.18),
    0 0 30px rgba(2, 132, 199, 0.1);
}

.hero-editorial-frame:hover .hero-image-asset {
  transform: scale(1.04);
}

.hero-editorial-frame:hover .hero-frame-border {
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-color: rgba(2, 132, 199, 0.4);
}

/* Mobile Hero styling: Completely clean, minimalist typography without geometric clutter */
@media (max-width: 991px) {
  .hero-layout {
    position: relative;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
  }
  .hero-visual {
    display: none !important; /* Completely hide geometric visual on mobile */
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* ==========================================================================
   2. SERVICES SECTION
   ========================================================================== */

.section-padding {
  padding: 8rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }
}

.section-header {
  margin-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 3rem;
}

.section-header-content h2 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.section-header-description {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (max-width: 991px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }
}

/* Services Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
  overflow: hidden;
}

/* Structural Corner Elements in Cards */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-blue);
  transition: var(--transition-smooth);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-color: rgba(2, 132, 199, 0.06);
  border: 1px solid rgba(2, 132, 199, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.25rem;
  color: var(--accent-blue);
  transition: var(--transition-smooth);
}

.service-card h3 {
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
}

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

.service-card-link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-snappy);
}

.service-card-link svg {
  transition: var(--transition-smooth);
  color: var(--accent-blue);
}

/* Card Hover Logic */
.service-card:hover {
  background-color: var(--bg-card-hover);
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.service-card:hover::before {
  width: 100%;
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--accent-blue), #0369a1);
  color: #ffffff;
  border-color: var(--accent-blue);
  transform: scale(1.05) rotate(5deg);
}

.service-card:hover .service-card-link {
  color: var(--accent-blue);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   3. METRICS SECTION
   ========================================================================== */

.metrics {
  background-color: var(--bg-alternate);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.metrics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 80px 100%;
  pointer-events: none;
  z-index: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.metric-item {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding-right: 1.5rem;
}

.metric-item:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-value {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.metric-value span.highlight {
  color: var(--accent-blue);
}

.metric-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Mobile Metrics: Forced into a single row with optimized text-scaling */
@media (max-width: 991px) {
  .metrics {
    padding: 4rem 0;
  }
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr) !important; /* Force single row! */
    gap: 0.75rem;
  }
  .metric-item {
    border-right: 1px solid var(--border-color) !important;
    padding-right: 0.25rem;
  }
  .metric-item:last-child {
    border-right: none !important;
    padding-right: 0;
  }
  .metric-value {
    font-size: clamp(1.15rem, 3.2vw, 1.85rem) !important;
    margin-bottom: 0.35rem;
  }
  .metric-label {
    font-size: clamp(0.6rem, 1.8vw, 0.85rem) !important;
    line-height: 1.2;
  }
}

/* ==========================================================================
   4. CASE STUDIES
   ========================================================================== */

.cases-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

/* Custom Case Selector Menu */
.case-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.case-tab-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.case-tab-btn span.tab-meta {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: var(--transition-smooth);
}

.case-tab-btn span.tab-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Case tab states */
.case-tab-btn.active {
  background-color: var(--bg-card);
  border-left: 3px solid var(--accent-blue);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.case-tab-btn.active span.tab-meta {
  color: var(--accent-blue);
}

.case-tab-btn:hover:not(.active) {
  background-color: rgba(237, 242, 247, 0.5);
  transform: translateX(4px);
}

/* Case Content Cards Display */
.case-showcase {
  position: relative;
  min-height: 480px;
}

.case-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-panel.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
  position: relative;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.case-industry {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
}

.case-year {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.case-panel h3 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.case-challenge-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.case-block-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.case-block-content {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Strategic Outcomes Metrics inside Case */
.case-outcomes {
  display: flex;
  gap: 4rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 2rem;
}

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

.outcome-value {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.2;
}

.outcome-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .cases-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .case-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
  }
  .case-tab-btn {
    flex-shrink: 0;
    width: 240px;
  }
  .case-panel {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .case-challenge-solution-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .case-outcomes {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ==========================================================================
   5. PROCESS TIMELINE (Animated Workflow)
   ========================================================================== */

.timeline-container {
  position: relative;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1px; /* Let layout lines handle gaps */
}

/* Central Alignment Line */
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background-color: var(--border-color);
  transform: translateX(-50%);
  z-index: 1;
}

/* Individual Stage */
.timeline-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.timeline-stage:last-child {
  margin-bottom: 0;
}

/* Alternating Placement */
.timeline-stage:nth-child(even) .timeline-stage-content {
  grid-column: 2;
}

.timeline-stage:nth-child(even) .timeline-stage-meta {
  grid-column: 1;
  text-align: right;
  order: -1;
}

.timeline-stage-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
  transition: var(--transition-smooth);
}

.timeline-stage-content:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

.timeline-stage-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-main);
  border: 2px solid var(--text-primary);
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: var(--transition-smooth);
}

.timeline-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  transform: translate(-50%, -50%) scale(0);
  transition: var(--transition-smooth);
}

/* Active nodes state */
.timeline-stage.active .timeline-node {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.15);
}

.timeline-stage.active .timeline-node::before {
  transform: translate(-50%, -50%) scale(1.5);
}

.timeline-stage.active .timeline-stage-content {
  border-left: 3px solid var(--accent-blue);
}

/* Content details inside timeline */
.timeline-num {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--border-color);
  margin-bottom: 0.5rem;
  transition: var(--transition-smooth);
}

.timeline-stage.active .timeline-num {
  color: rgba(2, 132, 199, 0.2);
}

.timeline-stage-meta h3 {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-stage-meta p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.timeline-stage-content h4 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.timeline-stage-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

@media (max-width: 991px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 50px;
  }
  .timeline-stage:nth-child(even) .timeline-stage-content {
    grid-column: 1;
  }
  .timeline-stage:nth-child(even) .timeline-stage-meta {
    grid-column: 1;
    text-align: left;
    order: 0;
  }
  .timeline-node {
    left: 20px;
    top: 30px;
  }
  .timeline-stage-meta {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   6. LEADERSHIP TEAM
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Silhouette Image Placeholders using sleek custom headshots */
.team-image-container {
  position: relative;
  width: 100%;
  height: 380px;
  background: linear-gradient(180deg, var(--bg-alternate) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(104%);
  transition: var(--transition-smooth);
}

/* Sleek geometric vector overlay inside avatar background */
.team-image-container::before {
  content: '';
  position: absolute;
  width: 160%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  top: 40%;
  left: -30%;
  animation: rotateSphere 20s infinite linear;
  pointer-events: none;
  z-index: 2;
}

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

/* Info Box */
.team-info {
  padding: 2.25rem 2rem;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
  background-color: var(--bg-card);
  transition: var(--transition-smooth);
  flex-grow: 1;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.team-credentials {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Social link reveals */
.team-socials {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateX(50px);
  opacity: 0;
  z-index: 20;
  transition: var(--transition-smooth);
}

.team-social-btn {
  width: 36px;
  height: 36px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-snappy);
}

.team-social-btn:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

/* Hover Reveals */
.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.team-card:hover .team-avatar-img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(100%);
}

.team-card:hover .team-socials {
  transform: translateX(0);
  opacity: 1;
}

.team-card:hover .team-info {
  background-color: var(--bg-card-hover);
}

/* ==========================================================================
   6.1 LEADERSHIP TEAM - DOSSIER VISUAL HINT & INTERACTION STYLES
   ========================================================================== */

/* Dynamic Interactive Hint for Dossiers */
.team-interactive-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  text-align: center;
  padding: 0.5rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.hint-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

/* Elegant Desktop/Mobile Card CTA Hint */
.team-card-cta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: var(--transition-smooth);
}

.team-card:hover .team-card-cta {
  color: var(--accent-blue);
}

/* Mobile Monogram Row (hidden by default on desktop) */
.team-monograms-row {
  display: none;
}


/* 6.2 Shared Takeover Cinematic Modal Styles */
.spotlight-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.spotlight-modal.active {
  opacity: 1;
  visibility: visible;
}

.spotlight-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(226, 232, 240, 0.88); /* Slate / Cement tint */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.spotlight-modal-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.15);
  transform: translateY(40px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  scrollbar-width: thin;
}

.spotlight-modal.active .spotlight-modal-container {
  transform: translateY(0) scale(1);
}

.spotlight-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-alternate);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 10;
  transition: var(--transition-smooth);
}

.spotlight-modal-close:hover {
  transform: rotate(90deg);
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  color: var(--accent-blue);
}

.spotlight-modal-content {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  min-height: 500px;
}

.spotlight-modal-image-wrapper {
  background: linear-gradient(180deg, var(--bg-alternate) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-right: 1px solid var(--border-color);
  overflow: hidden;
  height: 100%;
  position: relative;
}

.spotlight-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-modal-info {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-modal-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: block;
}

.spotlight-modal-info h3 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-serif);
}

.spotlight-modal-role {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.75rem;
}

.spotlight-modal-credentials {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.spotlight-modal-quote {
  border-left: 2px solid var(--accent-blue);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.spotlight-modal-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.spotlight-modal-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.spotlight-modal-social-btn {
  padding: 0.5rem 1rem;
  background-color: var(--bg-alternate);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-snappy);
}

.spotlight-modal-social-btn:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}



/* 6.5 Responsive Media Queries */
@media (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Spotlight Layout mobile: circle monograms badge row */
  .team-grid {
    display: none !important;
  }
  .team-monograms-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
  }
  .team-monogram-badge {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
  }
  .monogram-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image is clipped to circle */
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
  }
  .monogram-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(15%) contrast(105%);
    transition: var(--transition-smooth);
  }
  .team-monogram-badge:hover .monogram-circle,
  .team-monogram-badge:focus .monogram-circle {
    border-color: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
  }
  .team-monogram-badge:hover .monogram-avatar-img,
  .team-monogram-badge:focus .monogram-avatar-img {
    filter: grayscale(0%) contrast(100%);
  }
  .monogram-name {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 0.75rem;
    color: var(--text-primary);
  }
  .monogram-meta {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-blue);
    margin-top: 0.25rem;
  }
  /* Modal responsive sizes */
  .spotlight-modal-content {
    grid-template-columns: 1fr;
  }
  .spotlight-modal-image-wrapper {
    height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .spotlight-modal-info {
    padding: 2.25rem 1.75rem;
  }
  .spotlight-modal-info h3 {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   7. CLIENT TESTIMONIALS
   ========================================================================== */

.testimonials {
  background-color: var(--bg-alternate);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--border-color);
  line-height: 1;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-silver), var(--bg-main));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.author-meta h4 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.author-meta p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

.testimonial-card:hover::after {
  color: rgba(2, 132, 199, 0.15);
}

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

/* Mobile Swipe Row Scroll layout for Testimonials */
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-bottom: 2rem !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    gap: 1.25rem !important;
    scrollbar-width: none !important; /* Hide scrollbar Firefox */
  }
  .testimonials-grid::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar Chrome/Safari */
  }
  .testimonial-card {
    flex: 0 0 80% !important; /* Visual peeking of the next card */
    scroll-snap-align: start !important;
    height: auto !important;
  }
}

/* ==========================================================================
   8. CONSULTATION FORM (Lead Generation)
   ========================================================================== */

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.form-info h3 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.form-info p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.form-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.bullet-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.bullet-text h4 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bullet-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Card Form Container */
.lead-form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem;
  position: relative;
  transition: var(--transition-smooth);
}

.lead-form-wrapper:hover {
  box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.08);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Elegant Floating Labels */
.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--border-color);
  padding: 0.75rem 0;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.form-label {
  position: absolute;
  top: 0.75rem;
  left: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Floating label triggers */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.form-input:focus {
  border-bottom-color: var(--accent-blue);
}

select.form-input {
  cursor: pointer;
}

select.form-input option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

/* Button & Loading overlay */
.lead-form .btn-primary {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
  padding: 1rem 0;
}

.form-feedback {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-feedback-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(2, 132, 199, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--accent-blue);
}

.form-feedback h4 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.form-feedback p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

@media (max-width: 991px) {
  .form-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .lead-form-wrapper {
    padding: 3rem 2rem;
  }
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

footer {
  background-color: var(--bg-alternate);
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 3rem 0;
  position: relative;
  z-index: 10;
}

/* Professional 5-column grid layout for desktop */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 1.2fr; /* Explicit 5-column layout! */
  gap: 3rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-snappy);
}

.footer-link:hover {
  color: var(--accent-blue);
  transform: translateX(4px);
  display: inline-block;
}

.footer-office {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer-office strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer social Connect icons rules */
.footer-social-icons {
  display: flex;
  gap: 0.75rem;
}

.footer-social-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-snappy);
  text-decoration: none;
}

.footer-social-icon-btn:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

/* Newsletter styling */
.newsletter-form {
  margin-top: 1rem;
}

.newsletter-group {
  display: flex;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.newsletter-input {
  background: none;
  border: none;
  flex-grow: 1;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
}

.newsletter-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0 0.5rem;
  transition: var(--transition-snappy);
}

.newsletter-btn:hover {
  color: var(--accent-blue);
  transform: translateX(4px);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
