/* ============================================
   WEBSHAPE THEME ADDITIONS
   Add these styles to theme.css
   ============================================ */


/* Prevent customize-support from affecting layout */
/* body.customize-support .body-section,
body.customize-support .body-container {
  margin-left: auto;
  margin-right: auto;
} */ 

/* ============================================
   CSS VARIABLES - Extended Palette
   ============================================ */
:root {
  --gradient-light: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-1-5) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(62, 106, 144, 0.95) 0%, rgba(62, 106, 144, 0.7) 100%);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.06);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Colours */
    --color-dark: #202132;
    --color-dark-lighter: #2a2b3d;
    --color-wine: #C82D44;
    --color-wine-dark: #a82539;
    --color-secondary: #8D99AE;
    --color-light: #EDF2F4;
    --color-light-alt: #F4F6F8;
    --color-white: #FFFFFF;
    --color-text: #202132;
    --color-text-muted: #5a5b6a;
    
    /* Typography */
    --font-primary: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(32, 33, 50, 0.05);
    --shadow-md: 0 4px 6px rgba(32, 33, 50, 0.07), 0 2px 4px rgba(32, 33, 50, 0.05);
    --shadow-lg: 0 10px 15px rgba(32, 33, 50, 0.1), 0 4px 6px rgba(32, 33, 50, 0.05);
    --shadow-xl: 0 20px 25px rgba(32, 33, 50, 0.1), 0 10px 10px rgba(32, 33, 50, 0.04);
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}




/* ============================================
   1. PAGE HEADER - APP STYLE
   Modern, clean headers that match the site aesthetic
   ============================================ */

.page-head {
  min-height: 320px;
  padding: 140px 5% 60px;
  position: relative;
  overflow: hidden;
}

.page-head .background-image {
  opacity: 0.5;
  filter: grayscale(100%);
  mix-blend-mode: multiply;
}

.page-head .background-overlay {
  background: linear-gradient(180deg, var(--blue-1) 0%, transparent 100%);
  opacity: 0.8;
}

.page-head .home-slide-inner {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.page-head .featured-report-title {
  color: var(--white);
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-head p {
  color: var(--white);
  font-size: 18px;
  opacity: 0.85;
  max-width: 600px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 400;
}

.breadcrumbs a {
  color: var(--white);
  opacity: 0.7;
  font-weight: 400;
  transition: var(--transition-smooth);
}

.breadcrumbs a:hover {
  opacity: 1;
  color: var(--pink);
}

.breadcrumbs .separator {
  color: var(--white);
  opacity: 0.4;
  font-size: 12px;
}

.breadcrumbs .current {
  color: var(--pink);
  font-weight: 500;
}

/* Decorative circles for page header */
.page-head .header-circle {
  position: absolute;
  border-radius: 100%;
  background: var(--on-blue-text);
  opacity: 0.03;
}

.page-head .header-circle-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -100px;
}

.page-head .header-circle-2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  left: 10%;
}

@media screen and (max-width: 991px) {
  .page-head {
    min-height: 280px;
    padding: 120px 5% 50px;
  }
  
  .page-head .featured-report-title {
    font-size: 36px;
  }
}

@media screen and (max-width: 568px) {
  .page-head {
    min-height: 240px;
    padding: 100px 5% 40px;
  }
  
  .page-head .featured-report-title {
    font-size: 28px;
  }
  
  .breadcrumbs {
    font-size: 12px;
  }
}


/* ============================================
   2. BLOG ARCHIVE - CATEGORY FILTER FIX
   ============================================ */

/* Category filter wrapper */
.button-holder.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 5%;
}

/* Category filter - mobile adjustments */
@media screen and (max-width: 991px) {
  .button-holder.cats {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.button-holder.cats a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--blue-3);
  background-color: var(--white);
  color: var(--on-blue-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.button-holder.cats a:hover {
  background-color: var(--pink);
  border-color: var(--pink);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 22, 84, 0.25);
}

/* Blog grid section with coloured background */
.body-section.blog-archive {
  background-color: var(--blue-1);
}

/* Alternative: Blog cards with subtle shadow on white bg */
.blog-card.has-shadow {
  background-color: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--blue-2);
}

.blog-card.has-shadow:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--blue-3);
}


/* ============================================
   3. SINGLE PROJECT TEMPLATE
   Inspired by The Web Kitchen style
   ============================================ */

/* Project Hero Header */
.project-header {
  background: var(--on-blue-text);
  color: var(--white);
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.project-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-header-content {
  z-index: 2;
}

.project-client-logo {
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: none;
}

.project-header h1 {
  color: var(--white);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 20px;
}

.project-header .project-intro {
  color: var(--white);
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.85;
}

.project-header-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.project-header-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project Meta Tags */
.project-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-meta-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--white);
  color: var(--on-blue-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 50px;
  border: 1px solid var(--blue-3);
}

.project-meta-tag.sector {
  background-color: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

/* Project Content Sections */
.project-section {
  padding: 80px 5%;
  position: relative;
}

.project-section.light {
  background-color: var(--blue-1);
}

.project-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.project-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.project-section-grid.reverse {
  direction: rtl;
}

.project-section-grid.reverse > * {
  direction: ltr;
}

/* Section Headers */
.section-label {
  display: inline-block;
  color: var(--pink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  color: var(--on-blue-text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-content {
  color: var(--on-blue-text);
  font-size: 16px;
  line-height: 1.75;
}

.section-content p {
  margin-bottom: 16px;
}

/* Project Image Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.project-gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.project-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.project-gallery-item.full-width {
  grid-column: 1 / -1;
}

/* Full Width Image Section */
.project-full-image {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  margin: 40px 0;
}

.project-full-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================
   PROJECT HEADER - SHOWCASE IMAGE VARIANT
   For collage/montage style project images
   ============================================ */

.project-header.has-showcase {
  padding: 140px 5% 80px;
  min-height: auto;
}

.project-header.has-showcase .project-header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
}

.project-header.has-showcase .breadcrumbs {
  margin-bottom: 24px;
}

/* Showcase image container */
.project-header-showcase {
  position: relative;
}

.project-header-showcase > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Logo badge - overlays bottom-left corner */
.project-logo-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  max-width: 220px;
  min-height: 80px;
}

.project-logo-badge img {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

/* Tablet and below - image moves above content */
@media screen and (max-width: 991px) {
  .project-header.has-showcase {
    padding: 100px 5% 60px;
  }
  
  .project-header.has-showcase .project-header-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Image appears first (above content) */
  .project-header-showcase {
    order: -1;
    width: 100%;
    max-width: none;
  }
  
  .project-header-showcase > img {
    border-radius: var(--border-radius-md);
  }
  
  .project-logo-badge {
    bottom: -16px;
    left: 16px;
    padding: 12px 16px;
    min-width: 130px;
    max-width: 180px;
    min-height: 60px;
  }
  
  .project-logo-badge img {
    max-height: 50px;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .project-header.has-showcase {
    padding: 90px 5% 50px;
  }
  
  .project-header.has-showcase h1 {
    font-size: 32px;
  }
  
  .project-logo-badge {
    bottom: -12px;
    left: 12px;
    padding: 10px 14px;
    min-width: 80px;
    max-width: 120px;
    min-height: 44px;
    border-radius: var(--border-radius-sm);
  }
  
  .project-logo-badge img {
    max-height: 32px;
  }
}

@media screen and (max-width: 568px) {
  .project-header.has-showcase {
    padding: 80px 5% 40px;
  }
  
  .project-header.has-showcase h1 {
    font-size: 26px;
  }
}

/* ============================================
   PROJECT STATS - DASHBOARD STYLE
   Visual, dynamic display for client metrics
   ============================================ */

.project-stats-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
  padding: 80px 5%;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern background */
.project-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.project-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.project-stats-header {
  text-align: center;
  margin-bottom: 50px;
}

.project-stats-header .section-label {
  color: var(--pink);
}

.project-stats-header .section-title {
  color: var(--white);
}

/* Stats Dashboard Grid */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Individual Stat Card */
.stat-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card size variants */
.stat-card.span-3 { grid-column: span 3; }
.stat-card.span-4 { grid-column: span 4; }
.stat-card.span-6 { grid-column: span 6; }
.stat-card.span-12 { grid-column: span 12; }

/* Stat with circular progress indicator */
.stat-card.has-progress {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-progress-ring {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.stat-progress-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.stat-progress-ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.stat-progress-ring .progress-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.stat-progress-ring .progress-fill {
  stroke: var(--pink);
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease-out;
}

.stat-progress-ring .progress-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}

/* Stat with bar chart */
.stat-card.has-bar {
  padding-bottom: 20px;
}

.stat-bar-container {
  margin-top: 20px;
}

.stat-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), #ff6b8a);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-out;
}

.stat-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Stat with trend arrow */
.stat-card.has-trend .stat-value-wrapper {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.stat-trend.up {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.stat-trend.down {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.stat-trend svg {
  width: 14px;
  height: 14px;
}

/* Large feature stat */
.stat-card.featured {
  background: linear-gradient(135deg, var(--pink), #d4145a);
  border: none;
  text-align: center;
  padding: 40px;
}

.stat-card.featured .stat-value {
  font-size: 64px;
  line-height: 1;
}

.stat-card.featured .stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-top: 8px;
}

/* Stat content */
.stat-content {
  flex: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 22, 84, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--pink);
}

.stat-value {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-value.highlight {
  background: linear-gradient(90deg, var(--pink), #ff6b8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-sublabel {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  line-height: 1.4;
}

/* Mini sparkline chart */
.stat-sparkline {
  margin-top: 16px;
  height: 40px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.stat-sparkline-bar {
  flex: 1;
  background: linear-gradient(to top, var(--pink), rgba(255, 22, 84, 0.3));
  border-radius: 2px 2px 0 0;
  transition: height 0.5s ease-out;
}

/* Achievement badge */
.stat-achievement {
  grid-column: span 12;
  background: linear-gradient(90deg, rgba(255, 22, 84, 0.1), transparent);
  border-left: 4px solid var(--pink);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}

.stat-achievement-icon {
  width: 56px;
  height: 56px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-achievement-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.stat-achievement-content {
  flex: 1;
}

.stat-achievement-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-achievement-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media screen and (max-width: 991px) {
  .stats-dashboard {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .stat-card.span-3 { grid-column: span 3; }
  .stat-card.span-4 { grid-column: span 3; }
  .stat-card.span-6 { grid-column: span 6; }
  .stat-card.span-12 { grid-column: span 6; }
  
  .stat-achievement {
    grid-column: span 6;
  }
}

@media screen and (max-width: 768px) {
  .stats-dashboard {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .stat-card.span-3,
  .stat-card.span-4 { grid-column: span 1; }
  
  .stat-card.span-6,
  .stat-card.span-12 { grid-column: span 2; }
  
  .stat-achievement {
    grid-column: span 2;
    flex-direction: column;
    text-align: center;
  }
  
  .stat-card.has-progress {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-progress-ring {
    width: 80px;
    height: 80px;
  }
  
  .stat-value {
    font-size: 32px;
  }
  
  .stat-card.featured .stat-value {
    font-size: 48px;
  }
}

@media screen and (max-width: 568px) {
  .stats-dashboard {
    grid-template-columns: 1fr;
  }
  
  .stat-card.span-3,
  .stat-card.span-4,
  .stat-card.span-6,
  .stat-card.span-12 { 
    grid-column: span 1; 
  }
  
  .stat-achievement {
    grid-column: span 1;
  }
}

/* Animation on scroll */
.stat-card {
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stat-card:nth-child(1) { transition-delay: 0s; }
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-card:nth-child(4) { transition-delay: 0.3s; }
.stat-card:nth-child(5) { transition-delay: 0.4s; }
.stat-card:nth-child(6) { transition-delay: 0.5s; }


/* ============================================
   5. PROJECT TESTIMONIAL
   ============================================ */

.project-testimonial {
  background: var(--blue-1);
  padding: 80px 5%;
}

.project-testimonial-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  position: relative;
  padding: 40px;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 120px;
  font-family: Georgia, serif;
  color: var(--on-blue-text);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-text {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-blue-text);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 30px;
}

.testimonial-author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.testimonial-author-role {
  font-size: 14px;
  color: var(--on-blue-text);
  opacity: 0.7;
}

.testimonial-company-logo {
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
  margin: 20px auto 0;
  filter: grayscale(100%);
  opacity: 0.6;
}

@media screen and (max-width: 768px) {
  .testimonial-text {
    font-size: 20px;
  }
  
  .testimonial-quote::before {
    font-size: 80px;
  }
}


/* ============================================
   6. PROJECT VIDEO SECTION
   ============================================ */

.project-video-section {
  padding: 80px 5%;
  background: var(--dark);
}

.project-video-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.project-video-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.project-video-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.project-video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--pink);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 2;
  border: 3px solid var(--white);
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 40px rgba(255, 22, 84, 0.5);
}

.video-play-button svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
  margin-left: 4px;
}


/* ============================================
   7. RELATED PROJECTS
   ============================================ */

.related-projects {
  padding: 80px 5%;
  background: var(--white);
}

.related-projects-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.related-projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-project-card {
  display: block;
  background: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.related-project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.related-project-card:hover .related-project-image img {
  transform: scale(1.05);
}

.related-project-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.related-project-content {
  padding: 24px;
}

.related-project-logo {
  max-width: 100px;
  max-height: 30px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: grayscale(100%);
  opacity: 0.7;
}

.related-project-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}

.related-project-sector {
  font-size: 13px;
  color: var(--on-blue-text);
  opacity: 0.7;
}

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

@media screen and (max-width: 568px) {
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   8. PROJECT ARCHIVE GRID - UPDATED STYLE
   ============================================ */

.projects-archive-section {
  padding: 60px 5%;
  background: var(--white);
}

.projects-archive-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Filter buttons for projects */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}

.projects-filter button,
.projects-filter a {
  padding: 10px 22px;
  background: var(--white);
  border: 1px solid var(--blue-3);
  color: var(--on-blue-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.projects-filter button:hover,
.projects-filter a:hover,
.projects-filter button.active,
.projects-filter a.active {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  display: block;
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  text-decoration: none;
  background: var(--white);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.project-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-1);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-card-logo {
  position: absolute;
  bottom: 16px;
  left: 16px;
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
  background: var(--white);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-subtle);
}

.project-card-content {
  padding: 24px;
}

.project-card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.project-card:hover .project-card-title {
  color: var(--pink);
}

.project-card-sector {
  font-size: 13px;
  color: var(--on-blue-text);
  opacity: 0.7;
}

.project-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--blue-1);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.project-card:hover .project-card-arrow {
  background: var(--pink);
}

.project-card-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--on-blue-text);
  transition: stroke 0.3s ease;
}

.project-card:hover .project-card-arrow svg {
  stroke: var(--white);
}

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

@media screen and (max-width: 568px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   SERVICE / INDUSTRY FEATURED CARDS
   Used by our_services.php and industries.php
   ============================================ */

.service-featured-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--border-radius-md, 16px);
  overflow: hidden;
  min-height: 340px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card, 0 4px 20px rgba(0, 0, 0, 0.08));
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(0, 0, 0, 0.15));
}

/* Full-bleed background image */
.service-featured-card-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.service-featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gradient overlay body */
.service-featured-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(32, 33, 50, 0.92) 0%,
    rgba(32, 33, 50, 0.55) 60%,
    transparent 100%
  );
}

.service-featured-card-body h3 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.service-featured-card-body p {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.service-featured-card .article-read-more {
  color: #fff;
}

.service-featured-card:hover .article-read-more {
  gap: 0.65rem;
}

@media screen and (max-width: 991px) {
  .service-featured-card {
    min-height: 300px;
  }
}

@media screen and (max-width: 568px) {
  .service-featured-card {
    min-height: 260px;
  }

  .service-featured-card-body {
    padding: 1.5rem;
  }

  .service-featured-card-body h3 {
    font-size: 1.1rem;
  }
}


/* ============================================
   PAGE FORM — contact methods & form fields
   ============================================ */

.page-form-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}

.page-form-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-dark, #202132);
  transition: color 0.25s ease;
}

.page-form-contact-item:hover {
  color: var(--color-wine, #C82D44);
}

.page-form-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-light, #EDF2F4);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.page-form-contact-item:hover .page-form-contact-icon {
  background: rgba(200, 45, 68, 0.08);
}

.page-form-contact-icon svg {
  stroke: var(--on-blue-text, #3E6A90);
  transition: stroke 0.25s ease;
}

.page-form-contact-item:hover .page-form-contact-icon svg {
  stroke: var(--color-wine, #C82D44);
}

.page-form-contact-text {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Form field wrapper */
.page-form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-form-field.full {
  width: 100%;
}

.page-form-label {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-dark, #202132);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

/* Error states */
.page-form-error {
  display: none;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.75rem;
  color: var(--color-wine, #C82D44);
  margin-top: 2px;
}

.text-field.has-error {
  border-color: var(--color-wine, #C82D44) !important;
  box-shadow: 0 0 0 3px rgba(200, 45, 68, 0.08);
}

/* Focus state enhancement */
.page-form-field .text-field:focus {
  border-color: var(--on-blue-text, #3E6A90);
  box-shadow: 0 0 0 3px rgba(62, 106, 144, 0.1);
  outline: none;
}

/* Success state */
.page-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 300px;
}

.page-form-success svg {
  stroke: #22c55e;
  margin-bottom: 16px;
}

.page-form-success h3 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark, #202132);
  margin-bottom: 8px;
}

.page-form-success p {
  color: var(--color-secondary, #8D99AE);
  font-size: 1rem;
}

/* Fail state */
.page-form-fail {
  padding: 12px 16px;
  background: rgba(200, 45, 68, 0.06);
  border: 1px solid rgba(200, 45, 68, 0.15);
  border-radius: 8px;
  margin-top: 12px;
}

.page-form-fail p {
  color: var(--color-wine, #C82D44);
  font-size: 0.88rem;
  margin: 0;
}

/* Privacy / reCAPTCHA notice */
.page-form-privacy {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-secondary, #8D99AE);
  margin: 16px 0 0;
  padding: 12px 16px;
  background: rgba(141, 153, 174, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--color-secondary, #8D99AE);
}

.page-form-privacy a {
  color: var(--color-wine, #C82D44);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-form-privacy a:hover {
  color: var(--color-dark, #202132);
}

/* Submit button disabled state */
/* Select fields inside form */
select.text-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238D99AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

select.text-field:focus {
  border-color: var(--on-blue-text, #3E6A90);
  box-shadow: 0 0 0 3px rgba(62, 106, 144, 0.1);
  outline: none;
}

select.text-field.has-error {
  border-color: var(--color-wine, #C82D44) !important;
  box-shadow: 0 0 0 3px rgba(200, 45, 68, 0.08);
}

/* Disabled first option (placeholder) */
select.text-field option[disabled] {
  color: var(--color-secondary, #8D99AE);
}

#pageContactSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .page-form-contact-methods {
    margin-top: 1rem;
  }
}


/* ============================================
   CTA BLOCK — dark background layout
   ============================================ */

.cta-block-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-block-content .title-holder.left {
  text-align: left;
}

.cta-block-content .title-holder.left .small-title,
.cta-block-content .title-holder.left h2,
.cta-block-content .title-holder.left .text-title {
  color: #fff;
}

.cta-block-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.cta-block-text p {
  color: rgba(255, 255, 255, 0.75);
}

.cta-block-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-block-results-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.cta-block-results-link:hover {
  color: #fff;
  gap: 0.65rem;
}

.cta-block-results-link svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Stat cards grid */
.cta-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md, 16px);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.cta-stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.cta-stat-card.highlight {
  background: rgba(200, 45, 68, 0.15);
  border-color: rgba(200, 45, 68, 0.25);
}

.cta-stat-card.highlight:hover {
  background: rgba(200, 45, 68, 0.22);
}

.cta-stat-number {
  display: block;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.cta-stat-card.highlight .cta-stat-number {
  color: var(--color-wine, #C82D44);
}

.cta-stat-label {
  display: block;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  .cta-block-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .cta-block-content .title-holder.left {
    text-align: center;
  }

  .cta-block-text {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-block-actions {
    justify-content: center;
  }

  .cta-stat-grid {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 479px) {
  .cta-stat-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .cta-stat-card {
    padding: 22px 20px;
  }

  .cta-stat-number {
    font-size: 1.8rem;
  }
}


/* ============================================
   CASE STUDY CAROUSEL — service flag
   ============================================ */

.project-slide-flag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--color-wine, #C82D44);
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}


/* ============================================
   9. QUOTE FORM STYLES
   Multi-step web design quote form
   ============================================ */

.quote-form-section {
  padding: 80px 5%;
  background: linear-gradient(135deg, var(--dark) 0%, #0f0f0f 100%);
  position: relative;
  overflow: hidden;
}

.quote-form-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 22, 84, 0.15) 0%, transparent 70%);
  border-radius: 100%;
}

.quote-form-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quote-form-header {
  text-align: center;
  margin-bottom: 50px;
  color: var(--white);
}

.quote-form-header h2 {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 16px;
}

.quote-form-header p {
  font-size: 18px;
  opacity: 0.7;
}

/* Progress Steps */
.quote-progress {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 50px;
  position: relative;
}

.quote-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.progress-step-number {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.progress-step.active .progress-step-number,
.progress-step.completed .progress-step-number {
  background: var(--pink);
  border-color: var(--pink);
}

.progress-step-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-step.active .progress-step-label {
  color: var(--white);
}

/* Form Card */
.quote-form-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 50px;
}

/* This extends the WPForms styling already in additional.css */

@media screen and (max-width: 768px) {
  .quote-form-header h2 {
    font-size: 32px;
  }
  
  .quote-progress {
    gap: 30px;
  }
  
  .quote-progress::before {
    width: 80%;
  }
  
  .quote-form-card {
    padding: 30px 20px;
  }
}


/* ============================================
   10. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media screen and (max-width: 991px) {
  .project-header-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project-header-image {
    order: -1;
  }
  
  .project-header h1 {
    font-size: 36px;
  }
  
  .project-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project-section-grid.reverse {
    direction: ltr;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
  }
  
  .project-gallery.three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .project-header {
    padding: 120px 5% 60px;
  }
  
  .project-header h1 {
    font-size: 30px;
  }
  
  .project-section {
    padding: 60px 5%;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .project-gallery.three-col {
    grid-template-columns: 1fr;
  }
  
  .testimonial-text {
    font-size: 18px;
  }
}

@media screen and (max-width: 568px) {
  .project-header {
    padding: 100px 5% 50px;
  }
  
  .project-header h1 {
    font-size: 26px;
  }
  
  .project-meta-tags {
    gap: 8px;
  }
  
  .project-meta-tag {
    padding: 5px 12px;
    font-size: 11px;
  }
}


/* ==========================================================================
   Case Studies Grid & Children
   ========================================================================== */


.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.case-study-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.case-study-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.case-study-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-study-overlay {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
}

.case-study-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--color-wine);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.case-study-content {
    padding: var(--space-lg);
}

.case-study-meta {
    margin-bottom: var(--space-sm);
}

.case-study-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
}

.case-study-stat {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.case-study-content p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-wine);
    transition: gap var(--transition-base);
}

.case-study-link:hover {
    gap: 0.75rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-studies-grid .case-study-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid .case-study-card:last-child {
        grid-column: span 1;
    }
}


/* ============================================
   11. UTILITY CLASSES
   ============================================ */

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

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

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





/* ============================================
   RAPPORT-STYLE PROJECT TEMPLATE CSS
   Uses existing Webshape classes where possible
   ============================================ */


/* ============================================
   1. HERO SECTION
   ============================================ */
.rp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.rp-hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.rp-hero-image img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
}

.rp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(0, 0, 0, 0.4) 40%, 
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
  z-index: 2;
}

.rp-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.rp-hero-content {
  flex: 1;
  max-width: 700px;
}

.rp-hero-content h1 {
  color: var(--white);
  margin: 0;
}

/* Hero Sidebar - Pink Box */
.rp-hero-sidebar {
  background: var(--pink);
  color: var(--white);
  padding: 35px 40px;
  min-width: 300px;
  max-width: 360px;
}

.rp-sidebar-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rp-sidebar-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rp-sidebar-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.rp-sidebar-value {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

.rp-sidebar-item--link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.rp-sidebar-item--link a:hover {
  opacity: 0.8;
  color: var(--white);
}

.rp-sidebar-item--link svg {
  transition: transform 0.3s ease;
}

.rp-sidebar-item--link a:hover svg {
  transform: translate(3px, -3px);
}


/* ============================================
   2. ABOUT SECTION - With circ decorations
   ============================================ */
.rp-about {
  position: relative;
  padding: 80px 5%;
  background: var(--white);
  overflow: hidden;
}

.rp-about-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Position circ elements - About section */
.rp-about .circ1 {
  position: absolute;
  top: -50px;
  left: -100px;
  z-index: 1;
}

.rp-about .circ2 {
  position: absolute;
  bottom: -50px;
  right: -100px;
  z-index: 1;
}

/* Position circ elements - Challenge section (opposite sides) */
.rp-challenge .circ1 {
  position: absolute;
  top: -50px;
  right: -100px;
  left: auto;
  z-index: 1;
}

.rp-challenge .circ2 {
  position: absolute;
  bottom: -50px;
  left: -100px;
  right: auto;
  z-index: 1;
}


/* ============================================
   3. SECTION TITLES
   ============================================ */
.rp-section-title {
  font-style: italic;
  font-weight: 300;
  color: var(--on-blue-text);
  margin: 0 0 30px;
  position: relative;
  will-change: transform, opacity;
}

.rp-section-title--white {
  color: var(--white);
}

.rp-section-title--centered {
  text-align: center;
}

.rp-section-text {
  line-height: 1.8;
  color: var(--on-blue-text);
  will-change: transform, opacity;
}

.rp-section-text--white,
.rp-section-text--white p {
  color: rgba(255, 255, 255, 0.85);
}

.rp-section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5%;
}


/* ============================================
   4. CHALLENGE SECTION
   ============================================ */
.rp-challenge {
  position: relative;
  padding: 80px 5%;
  background: var(--light);
  overflow: hidden;
}


/* ============================================
   5. GALLERY CAROUSEL
   ============================================ */
.rp-gallery {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.rp-gallery-swiper {
  overflow: visible;
  padding: 20px 0;
}

.rp-gallery-swiper .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.rp-gallery-slide {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.rp-gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/11;
  object-fit: cover;
  min-height: 400px;
}

.swiper-slide:not(.swiper-slide-active) .rp-gallery-slide {
  opacity: 0.35;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.swiper-slide-active .rp-gallery-slide {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Pink Navigation Arrows */
.rp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 4px 20px rgba(200, 45, 68, 0.4);
}

.rp-gallery-nav:hover {
  background: #a82539;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 25px rgba(200, 45, 68, 0.5);
}

.rp-gallery-nav svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.rp-gallery-prev { left: 3%; }
.rp-gallery-next { right: 3%; }


/* ============================================
   6. COLOUR TRANSITION WRAPPER
   ============================================ */
.rp-transition-wrapper {
  position: relative;
  overflow: hidden;
}

.rp-transition-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.rp-transition-bg--white {
  background: var(--white);
}

.rp-transition-bg--pink {
  background: var(--pink);
  opacity: 0;
}

.rp-transition-wrapper > section {
  position: relative;
  z-index: 2;
}


/* ============================================
   7. EXECUTION SECTION (Pink Background)
   ============================================ */
.rp-execution {
  padding: 80px 5%;
  background: transparent;
  color: var(--white);
}

.rp-execution-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 5%;
}

.rp-execution-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.rp-image-caption {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}


/* ============================================
   7. VIDEO SECTION
   ============================================ */
.rp-video-section {
  padding: 80px 5%;
  background: var(--on-blue-text);
  position: relative;
}

.rp-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pink);
}

.rp-video-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.rp-video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.rp-video-container iframe,
.rp-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rp-video-container video {
  object-fit: cover;
  background: #000;
}


/* ============================================
   8. RESULTS/STATS - Dark Background
   Uses existing .our-stats, .stat-item classes
   ============================================ */
.rp-results {
  padding: 100px 5%;
  background: var(--on-blue-text);
  color: var(--white);
}

.rp-results .body-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Override stat styles for dark background */
.rp-results .our-stats,
.rp-stats-grid {
  margin-top: 50px;
  justify-content: center;
  text-align: center;
}

.rp-results .stat-item {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.rp-results .stat-item-inner {
  justify-content: center;
}

/* White stat figures on dark background */
.rp-results .stat-item-figure {
  color: var(--white);
}

.rp-results .stat-item-text {
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================
   9. TESTIMONIAL
   ============================================ */
.rp-testimonial {
  padding: 80px 5%;
  background: var(--light);
}

.rp-testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.rp-quote-icon {
  width: 50px;
  height: 50px;
  fill: var(--pink);
  opacity: 0.4;
  margin-bottom: 30px;
}

.rp-quote-text {
  font-style: italic;
  margin: 0 0 40px;
  border: none;
  padding: 0;
}

.rp-quote-text p {
  margin: 0;
}

.rp-quote-author {
  margin-bottom: 24px;
}

.rp-quote-author strong {
  display: block;
  font-weight: 600;
  color: var(--on-blue-text);
  margin-bottom: 6px;
}

.rp-quote-author span {
  color: var(--dark-grey);
}

.rp-quote-logo {
  max-width: 100px;
  max-height: 40px;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

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


/* ============================================
   10. RELATED CASE STUDIES
   ============================================ */
.rp-related-grid {
  margin-top: 40px;
}

.rp-related-card {
  display: block;
  text-decoration: none;
  transition: transform 0.4s ease;
}

.rp-related-card:hover {
  transform: translateY(-8px);
}

.rp-related-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
}

.rp-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rp-related-card:hover .rp-related-image img {
  transform: scale(1.05);
}

.rp-related-content h4 {
  font-weight: 600;
  color: var(--on-blue-text);
  margin: 0 0 8px;
  transition: color 0.3s ease;
}

.rp-related-card:hover .rp-related-content h4 {
  color: var(--pink);
}

.rp-related-content span {
  color: var(--dark-grey);
}


/* ============================================
   11. RESPONSIVE STYLES
   ============================================ */
@media screen and (max-width: 991px) {
  .rp-hero {
    min-height: 80vh;
  }
  
  .rp-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 5%;
  }
  
  .rp-hero-sidebar {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 25px 30px;
  }
  
  .rp-sidebar-item {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 30px;
  }
  
  .rp-sidebar-item:last-child {
    border-right: none;
    padding-right: 0;
  }
  
  .rp-execution-images {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .rp-hero {
    min-height: 70vh;
  }
  
  .rp-hero-sidebar {
    flex-direction: column;
    gap: 0;
  }
  
  .rp-sidebar-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  
  .rp-about,
  .rp-challenge,
  .rp-execution,
  .rp-results,
  .rp-testimonial {
    padding: 60px 5%;
  }
  
  .rp-gallery-nav {
    width: 48px;
    height: 48px;
  }
  
  .rp-gallery-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .rp-gallery-prev { left: 2%; }
  .rp-gallery-next { right: 2%; }
  
  .rp-gallery-slide img {
    min-height: 280px;
  }
  
  .rp-video-section {
    padding: 60px 5%;
  }
  
  .rp-video-container {
    border-radius: 12px;
  }
}


/* ============================================
   12. ANIMATION CLASSES (used by GSAP)
   ============================================ */
.rp-hero-content,
.rp-hero-sidebar {
  opacity: 0;
  will-change: transform, opacity;
}

.rp-transition-bg {
  will-change: opacity;
}

.rp-transition-bg--pink {
  transition: opacity 0.1s linear;
}


/* Hover video */
.info-card.has-hover-video {
  position: relative;
}

.info-card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.info-card.has-hover-video:hover .info-card-video {
  opacity: 1;
}

.info-card.has-hover-video .info-card-cover {
  z-index: 2;
}

.info-card.has-hover-video .info-card-text {
  z-index: 3;
}


/* ============================================
   HOME HEADER STATS BAR
   Trust/credibility stats below the hero buttons
   ============================================ */
.home-header-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-header-stat {
  display: flex;
  flex-direction: column;
}

.home-header-stat strong {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.2;
}

.home-header-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

.home-header-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .home-header-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .home-header-stat-divider {
    display: none;
  }
}


/* ============================================
   ARTICLE CARDS
   Consistent card pattern used across:
   - Recent Posts block
   - Blog Archive
   - Category archive
   - Pillar page (single-ideas) articles grid
   ============================================ */

/* Grid layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

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

/* Featured card — spans 2 rows on pillar pages */
.article-card--featured {
  grid-row: span 2;
  position: relative;
}

/* Base card */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white, #fff);
  border-radius: var(--border-radius-md, 16px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 10px 15px rgba(32, 33, 50, 0.1));
  border-color: transparent;
}

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

.article-card:hover .article-read-more {
  gap: 0.65rem;
}

/* Card image */
.article-card-image {
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-light, #EDF2F4);
}

/* Featured card image overrides */
.article-card--featured .article-card-image {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 280px;
}

/* Card body */
.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card--featured .article-card-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  min-height: 100%;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(32, 33, 50, 0.92) 0%,
    rgba(32, 33, 50, 0.65) 60%,
    transparent 100%
  );
}

/* Category badge */
.article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-light, #EDF2F4);
  color: var(--color-dark, #202132);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  margin-right: 0.35rem;
  width: fit-content;
}

.article-card--featured .article-category {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

/* Card heading */
.article-card-body h3 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1.05rem;
  color: var(--color-dark, #202132);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.article-card--featured .article-card-body h3 {
  font-size: 1.35rem;
  color: #fff;
}

/* Card excerpt */
.article-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted, #5a5b6a);
  line-height: 1.6;
  flex: 1;
}

.article-card--featured .article-card-body p {
  color: rgba(255, 255, 255, 0.75);
}

/* Read more link */
.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-wine, #C82D44);
  transition: gap 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card--featured .article-read-more {
  color: #fff;
}

.article-read-more svg {
  flex-shrink: 0;
}


/* ============================================
   BLOG ARCHIVE PAGE HEADER
   ============================================ */
.page-head-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 2rem;
}

.page-head-inner h1 {
  margin-bottom: 0.75rem;
}

.page-head-inner .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-wine, #C82D44);
  margin-bottom: 1rem;
}

.page-head-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted, #5a5b6a);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}


/* ============================================
   PILLAR PAGE — HERO
   ============================================ */
.pillar-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 140px 5% 80px;
  overflow: hidden;
}

.pillar-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pillar-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.pillar-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(32, 33, 50, 0.88) 0%,
    rgba(32, 33, 50, 0.65) 50%,
    rgba(32, 33, 50, 0.78) 100%
  );
}

.pillar-hero .body-container {
  position: relative;
  z-index: 2;
}

.pillar-hero-content {
  width: 100%;
  min-width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb svg {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.breadcrumb > span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Hero badge */
.pillar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.pillar-hero-badge svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Hero heading */
.pillar-hero h1 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.pillar-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* Hero stats */
.pillar-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pillar-stat strong {
  display: block;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.2;
}

.pillar-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.pillar-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Hero actions */
.pillar-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pillar-hero-actions .main-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}


/* ============================================
   PILLAR PAGE — INTRODUCTION
   ============================================ */
.pillar-intro .pillar-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.pillar-intro-text h2 {
  margin-bottom: 1rem;
}

.pillar-intro-text p {
  font-size: 1.02rem;
  color: var(--color-text-muted, #5a5b6a);
  line-height: 1.75;
  margin-top: 1rem;
}

/* Sidebar card */
.pillar-intro-card {
  background: var(--color-light, #EDF2F4);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-md, 16px);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.pillar-intro-card h3 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1.1rem;
  color: var(--color-dark, #202132);
  margin-bottom: 0.5rem;
}

.pillar-intro-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted, #5a5b6a);
  line-height: 1.6;
}

/* Related topic tags */
.pillar-intro-treatments {
  background: var(--color-light-alt, #F4F6F8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-md, 16px);
  padding: 1.5rem;
}

.pillar-intro-treatments h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #5a5b6a);
  margin-bottom: 0.75rem;
}

.treatment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.treatment-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--color-white, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark, #202132);
  text-decoration: none;
  transition: all 0.2s ease;
}

.treatment-tag:hover {
  background: var(--color-light, #EDF2F4);
  border-color: var(--color-secondary, #8D99AE);
  transform: translateY(-1px);
}


/* ============================================
   PILLAR PAGE — ARTICLES HEADER
   ============================================ */
.pillar-articles-header {
  margin-bottom: 1rem;
}


/* ============================================
   ARTICLE SEARCH (within articles grid)
   ============================================ */
.article-search-wrapper {
  position: relative;
  max-width: 520px;
  margin: 0 0 2rem;
}

.article-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted, #5a5b6a);
  pointer-events: none;
}

.article-search {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 3rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.92rem;
  color: var(--color-dark, #202132);
  background: var(--color-white, #fff);
  outline: none;
  transition: all 0.25s ease;
}

.article-search::placeholder {
  color: var(--color-text-muted, #5a5b6a);
}

.article-search:focus {
  border-color: var(--color-wine, #C82D44);
  box-shadow: 0 0 0 3px rgba(200, 45, 68, 0.1);
}

.article-search-clear {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: 50%;
  color: var(--color-text-muted, #5a5b6a);
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-search-clear:hover {
  background: var(--color-light, #EDF2F4);
  color: var(--color-dark, #202132);
}

.article-no-results {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted, #5a5b6a);
  padding: 2rem 1rem;
}

/* Load More button spacing */
#loadMoreWrapper {
  margin-top: 2.5rem;
}


/* ============================================
   PILLAR PAGE — CTA BAND
   ============================================ */
.pillar-cta-band {
  padding: 3.5rem 5%;
  background: var(--color-dark, #202132);
}

.pillar-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

.pillar-cta-text h2 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 0.25rem;
}

.pillar-cta-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

.pillar-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pillar-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pillar-cta-phone:hover {
  color: #fff;
}

.pillar-cta-phone svg {
  flex-shrink: 0;
}


/* ============================================
   PILLAR PAGE — SEARCHABLE FAQ
   ============================================ */
.pillar-faq .pillar-faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.pillar-faq .pillar-faq-header p {
  color: var(--color-text-muted, #5a5b6a);
  margin-top: 0.5rem;
}

.pillar-faq .pillar-faq-header a {
  color: var(--color-wine, #C82D44);
  font-weight: 600;
  text-decoration: none;
}

.pillar-faq .pillar-faq-header a:hover {
  text-decoration: underline;
}

/* FAQ search */
.faq-search-wrapper {
  position: relative;
  max-width: 520px;
  margin: 1.75rem auto 0;
}

.faq-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted, #5a5b6a);
  pointer-events: none;
}

.faq-search {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 3rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.92rem;
  color: var(--color-dark, #202132);
  background: var(--color-white, #fff);
  outline: none;
  transition: all 0.25s ease;
}

.faq-search::placeholder {
  color: var(--color-text-muted, #5a5b6a);
}

.faq-search:focus {
  border-color: var(--color-wine, #C82D44);
  box-shadow: 0 0 0 3px rgba(200, 45, 68, 0.1);
}

.faq-search-clear {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: 50%;
  color: var(--color-text-muted, #5a5b6a);
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-search-clear:hover {
  background: var(--color-light, #EDF2F4);
  color: var(--color-dark, #202132);
}

/* FAQ grid */
.pillar-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto;
}

/* FAQ items */
.pillar-faq-item {
  background: var(--color-white, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-sm, 8px);
  overflow: hidden;
  transition: all 0.25s ease;
}

.pillar-faq-item:hover {
  border-color: rgba(32, 33, 50, 0.15);
}

.pillar-faq-item.active {
  border-color: var(--color-wine, #C82D44);
  box-shadow: 0 2px 12px rgba(200, 45, 68, 0.08);
}

.pillar-faq-item.hidden {
  display: none;
}

.pillar-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.35rem;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-dark, #202132);
  gap: 0.75rem;
  line-height: 1.4;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-wine, #C82D44);
  transition: transform 0.3s ease;
}

.pillar-faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.pillar-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.pillar-faq-answer-inner,
.pillar-faq-answer p {
  padding: 0 1.35rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted, #5a5b6a);
  line-height: 1.7;
}

.pillar-faq-answer a {
  color: var(--color-wine, #C82D44);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(200, 45, 68, 0.3);
  text-underline-offset: 2px;
}

.pillar-faq-answer a:hover {
  text-decoration-color: var(--color-wine, #C82D44);
}

/* No results */
.faq-no-results {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted, #5a5b6a);
  padding: 2rem 1rem;
}

.faq-no-results a {
  color: var(--color-wine, #C82D44);
  font-weight: 600;
}

/* Search highlight */
.faq-highlight {
  background: rgba(200, 45, 68, 0.1);
  border-radius: 2px;
  padding: 0 2px;
}


/* ============================================
   FAQ LIST (single-column, sidebar layout)
   ============================================ */
.pillar-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Sidebar search — full width within column */
.faq-search-wrapper--sidebar {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

/* When FAQ header is not inside .pillar-faq section, relax the centred text */
.body-container > .pillar-faq-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}


/* ============================================
   ARTICLE CARDS — RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .article-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .article-card--featured .article-card-image {
    min-height: 240px;
  }

  .pillar-intro .pillar-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillar-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pillar-hero {
    min-height: auto;
    padding: 120px 5% 60px;
  }

  .pillar-hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .pillar-stat-divider {
    display: none;
  }

  .pillar-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .articles-grid,
  .articles-grid--archive {
    grid-template-columns: 1fr;
  }

  .article-card--featured {
    grid-column: span 1;
  }

  .pillar-cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .pillar-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .pillar-hero h1 {
    font-size: 1.9rem;
  }

  .faq-search {
    font-size: 0.85rem;
    padding: 0.85rem 2.8rem;
  }

  .pillar-faq-question {
    font-size: 0.86rem;
    padding: 1rem 1.1rem;
  }
}


/* =============================================
   SINGLE BLOG POST — two-column layout
   ============================================= */

/* --- Reading progress bar --- */
.blog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-wine, #C82D44), #e8425a);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- Post meta row in header --- */
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.blog-post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.blog-post-meta-item svg {
  opacity: 0.65;
  stroke: #fff;
  flex-shrink: 0;
}

/* --- Blog post body (two-column wrapper) --- */
.blog-post-body {
  padding: 60px 0 40px;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* --- Sticky sidebar --- */
.blog-post-sidebar {
  position: sticky;
  top: 100px;
}

/* --- TOC card --- */
.toc-card {
  background: #fff;
  border: 1px solid rgba(141, 153, 174, 0.2);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(32, 33, 50, 0.06);
}

.toc-title {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-dark, #202132);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(141, 153, 174, 0.15);
}

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

.toc-link {
  display: block;
  font-size: 14px;
  color: var(--color-secondary, #8D99AE);
  padding: 7px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
  line-height: 1.4;
  text-decoration: none;
}

.toc-link:hover {
  color: var(--color-dark, #202132);
  background: var(--color-light, #EDF2F4);
}

.toc-link.active {
  color: var(--color-wine, #C82D44);
  border-left-color: var(--color-wine, #C82D44);
  background: rgba(200, 45, 68, 0.06);
  font-weight: 600;
}

.toc-cta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(141, 153, 174, 0.15);
  text-align: center;
}

.toc-cta p {
  font-size: 13px;
  color: var(--color-secondary, #8D99AE);
  margin-bottom: 10px;
}

.toc-cta .button {
  width: 100%;
  text-align: center;
  font-size: 13px;
  padding: 10px 16px;
}

/* --- Sidebar categories --- */
.blog-sidebar-categories {
  margin-top: 24px;
  background: #fff;
  border: 1px solid rgba(141, 153, 174, 0.2);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(32, 33, 50, 0.06);
}

.blog-sidebar-heading {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-dark, #202132);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(141, 153, 174, 0.15);
}

.blog-sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-secondary, #8D99AE);
  border-radius: 6px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.blog-sidebar-cat-link:hover,
.blog-sidebar-cat-link.active {
  color: var(--color-dark, #202132);
  background: var(--color-light, #EDF2F4);
}

.blog-sidebar-cat-count {
  font-size: 12px;
  background: var(--color-light, #EDF2F4);
  color: var(--color-secondary, #8D99AE);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* --- Blog post content area --- */
.blog-post-content {
  min-width: 0;
}

.blog-post-content h2 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--color-dark, #202132);
  margin: 48px 0 16px;
  padding-top: 16px;
}

.blog-post-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.blog-post-content h3 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark, #202132);
  margin: 32px 0 12px;
}

.blog-post-content h4 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark, #202132);
  margin: 24px 0 8px;
}

.blog-post-content p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: #444;
}

.blog-post-content p:last-child {
  margin-bottom: 0;
}

.blog-post-content img {
  border-radius: 8px;
  margin: 24px 0;
  max-width: 100%;
  height: auto;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 16px 0;
  padding-left: 24px;
  color: #444;
}

.blog-post-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.blog-post-content blockquote {
  border-left: 3px solid var(--color-wine, #C82D44);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--color-light, #EDF2F4);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-dark, #202132);
}

.blog-post-content a {
  color: var(--color-wine, #C82D44);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.blog-post-content a:hover {
  color: var(--color-dark, #202132);
}

.blog-post-content strong {
  color: var(--color-dark, #202132);
  font-weight: 700;
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.blog-post-content th {
  background: var(--color-light, #EDF2F4);
  font-weight: 700;
  color: var(--color-dark, #202132);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(141, 153, 174, 0.2);
}

.blog-post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(141, 153, 174, 0.12);
  vertical-align: top;
}

/* --- Blog FAQ section (inline in content) --- */
.blog-faq-section {
  margin: 48px 0 24px;
  padding-top: 16px;
}

.blog-faq-section .faq-search-wrapper {
  margin-bottom: 16px;
}

/* --- Blog CTA section --- */
.blog-cta-section {
  text-align: center;
}

.blog-cta-card {
  background: linear-gradient(135deg, var(--color-light, #EDF2F4), rgba(200, 45, 68, 0.04));
  border: 1px solid rgba(200, 45, 68, 0.15);
  border-radius: 16px;
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
}

.blog-cta-card h2 {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--color-dark, #202132);
  margin-bottom: 12px;
}

.blog-cta-card p {
  color: var(--color-secondary, #8D99AE);
  max-width: 500px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.65;
}

.blog-cta-card .button {
  font-size: 15px;
}

/* --- Blog post responsive --- */
@media (max-width: 991px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
  }

  .blog-post-sidebar {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .toc-card {
    order: 1;
  }

  .blog-sidebar-categories {
    order: 2;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .blog-post-body {
    padding: 40px 0 24px;
  }

  .blog-post-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-sidebar-categories {
    margin-top: 16px;
  }

  .blog-post-meta {
    flex-direction: column;
    gap: 8px;
  }

  .blog-cta-card {
    padding: 32px 24px;
  }

  .blog-post-content h2 {
    margin-top: 36px;
  }
}

@media (max-width: 479px) {
  .blog-post-meta-item {
    font-size: 13px;
  }

  .blog-cta-card h2 {
    font-size: 1.3rem;
  }
}


/* =============================================
   PROJECT ARCHIVE — filter bar
   ============================================= */

/* --- Filter bar wrapper --- */
.project-filter-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: var(--on-blue-text, #3E6A90);
  border-radius: 12px;
  margin-top: -20px;
}

.project-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--white, #fff);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-filter-label svg {
  stroke: var(--white, #fff);
  flex-shrink: 0;
}

/* --- Searchable select dropdown --- */
.project-select {
  position: relative;
  flex: 1;
  max-width: 340px;
  z-index: 200;
}

.project-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark, #202132);
  background: #fff;
  border: 1px solid rgba(141, 153, 174, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 10px;
}

.project-select-trigger:hover {
  border-color: var(--color-secondary, #8D99AE);
}

.project-select.open .project-select-trigger {
  border-color: var(--color-wine, #C82D44);
  box-shadow: 0 0 0 3px rgba(200, 45, 68, 0.08);
}

.project-select-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-select-chevron {
  flex-shrink: 0;
  stroke: var(--color-secondary, #8D99AE);
  transition: transform 0.2s ease;
}

.project-select.open .project-select-chevron {
  transform: rotate(180deg);
  stroke: var(--color-wine, #C82D44);
}

/* Dropdown panel */
.project-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(141, 153, 174, 0.2);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(32, 33, 50, 0.1);
  z-index: 100;
  overflow: hidden;
}

.project-select.open .project-select-dropdown {
  display: block;
}

/* Search input inside dropdown */
.project-select-search-wrap {
  position: relative;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(141, 153, 174, 0.12);
}

.project-select-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--color-secondary, #8D99AE);
  pointer-events: none;
}

.project-select-search {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 13px;
  color: var(--color-dark, #202132);
  background: var(--color-light, #EDF2F4);
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.project-select-search:focus {
  border-color: rgba(141, 153, 174, 0.3);
  background: #fff;
}

.project-select-search::placeholder {
  color: var(--color-secondary, #8D99AE);
}

/* Options list */
.project-select-options {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 220px;
  overflow-y: auto;
}

.project-select-option {
  padding: 9px 16px;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 14px;
  color: var(--color-dark, #202132);
  cursor: pointer;
  transition: background 0.15s ease;
}

.project-select-option:hover {
  background: var(--color-light, #EDF2F4);
}

.project-select-option.active {
  color: var(--color-wine, #C82D44);
  font-weight: 700;
  background: rgba(200, 45, 68, 0.05);
}

/* Empty state */
.project-select-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--color-secondary, #8D99AE);
  text-align: center;
}

/* --- Inline filter search (blog archive) --- */
.filter-search-wrap {
  position: relative;
  flex: 1;
  max-width: 280px;
}

.filter-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--color-secondary, #8D99AE);
  pointer-events: none;
}

.filter-search-input {
  width: 100%;
  padding: 10px 38px 10px 38px;
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark, #202132);
  background: #fff;
  border: 1px solid rgba(141, 153, 174, 0.25);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search-input:focus {
  border-color: var(--color-wine, #C82D44);
  box-shadow: 0 0 0 3px rgba(200, 45, 68, 0.08);
}

.filter-search-input::placeholder {
  color: var(--color-secondary, #8D99AE);
  font-weight: 500;
}

.filter-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: var(--color-light, #EDF2F4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-search-clear:hover {
  background: var(--color-secondary, #8D99AE);
}

.filter-search-clear svg {
  stroke: var(--color-dark, #202132);
}

/* --- Filter bar responsive --- */
@media (max-width: 767px) {
  .project-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px;
  }

  .project-select {
    max-width: none;
  }

  .filter-search-wrap {
    max-width: none;
  }
}

@media (max-width: 479px) {
  .project-select-trigger {
    font-size: 13px;
    padding: 9px 14px;
  }

  .filter-search-input {
    font-size: 13px;
    padding: 9px 34px 9px 34px;
  }
}


/* ============================================================
   Reviews Carousel (replaces Webflow slider)
   ============================================================ */

.review-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.review-carousel-track {
  display: flex;
  gap: 30px;
  will-change: transform;
}

.review-slide {
  flex: 0 0 530px;
  max-width: 530px;
}

.review-slide-inner {
  border: 1px solid var(--dark-grey);
  background-color: var(--white);
  color: var(--dark-text);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  height: 320px;
  padding: 30px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Navigation arrows */
.review-nav {
  position: absolute;
  top: -70px;
  right: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--on-blue-text);
  background-color: var(--white);
  color: var(--on-blue-text);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0;
  font-size: 0;
  line-height: 1;
}

.review-nav:hover {
  background-color: var(--on-blue-text);
  color: var(--white);
}

.review-nav-next {
  right: 0;
}

/* ── Reviews responsive ── */
@media (max-width: 991px) {
  .review-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .review-nav {
    right: 60px;
  }

  .single-text-holder {
    width: 100%;
    padding-right: 140px;
  }
}

@media (max-width: 767px) {
  .single-text-holder {
    padding-bottom: 64px;
    padding-right: 0;
  }

  .review-nav {
    top: auto;
    bottom: -60px;
    left: 0;
    right: auto;
  }

  .review-nav-next {
    left: 65px;
    right: auto;
  }

  .review-carousel {
    max-width: 90vw;
    margin-bottom: 80px;
  }

  .review-slide-inner {
    border-radius: 20px;
    height: 360px;
    padding: 16px;
  }

  .review-logo {
    height: 34px;
  }

  .review-text {
    height: 208px;
  }
}


/* ============================================================
   Growth Package
   ============================================================ */

.growth-package {
  margin-top: 40px;
  border-radius: var(--border-radius-lg, 24px);
  overflow: hidden;
  background: var(--color-white, #fff);
  border: 1px solid rgba(141, 153, 174, 0.2);
  box-shadow: var(--shadow-lg);
}

/* Header banner */
.growth-package-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--color-dark, #202132);
  color: var(--color-white, #fff);
}

.growth-package-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.growth-package-arrow {
  display: flex;
  align-items: center;
  color: var(--color-wine, #C82D44);
}

/* Two-phase grid */
.growth-package-phases {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

/* Individual phase */
.growth-phase {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.growth-phase.phase-build {
  border-right: none;
}

.growth-phase.phase-grow {
  background: linear-gradient(135deg, rgba(200, 45, 68, 0.03) 0%, rgba(200, 45, 68, 0.08) 100%);
}

/* Phase badge */
.growth-phase-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.phase-build .growth-phase-badge {
  background: var(--on-blue-text, #3E6A90);
  color: var(--white, #fff);
}

.phase-grow .growth-phase-badge {
  background: var(--color-wine, #C82D44);
  color: var(--white, #fff);
}

/* Phase title */
.growth-phase-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* Pricing */
.growth-phase-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.growth-phase-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--color-dark, #202132);
}

.growth-phase-price-label {
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--color-secondary, #8D99AE);
  line-height: 1.2;
}

/* Phase description */
.growth-phase-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted, #5a5b6a);
  margin: 0;
}

/* Connector arrow between phases */
.growth-phase-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary, #8D99AE);
  padding: 0 4px;
  background: linear-gradient(180deg, transparent 0%, rgba(141, 153, 174, 0.06) 50%, transparent 100%);
  border-left: 1px solid rgba(141, 153, 174, 0.15);
  border-right: 1px solid rgba(141, 153, 174, 0.15);
}

/* Checklist tweaks inside growth phase */
.growth-phase .check-list-wrap {
  margin-top: 8px;
  font-size: 0.83rem;
}

.growth-phase .check-list-item {
  min-height: 26px;
  padding-left: 38px;
}

.growth-phase .check-list-icon-wrap {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 5px;
}


/* ── Growth Package responsive ── */
@media (max-width: 991px) {
  .growth-package-phases {
    grid-template-columns: 1fr;
  }

  .growth-phase-connector {
    flex-direction: column;
    padding: 12px 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(141, 153, 174, 0.15);
    border-bottom: 1px solid rgba(141, 153, 174, 0.15);
    background: linear-gradient(90deg, transparent 0%, rgba(141, 153, 174, 0.06) 50%, transparent 100%);
  }

  .growth-phase-connector svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 767px) {
  .growth-package {
    border-radius: var(--border-radius-md, 16px);
  }

  .growth-package-header {
    padding: 16px 24px;
  }

  .growth-package-label {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
  }

  .growth-phase {
    padding: 24px;
  }

  .growth-phase-price {
    font-size: 1.67rem;
  }
}

@media (max-width: 479px) {
  .growth-phase {
    padding: 20px 16px;
  }

  .growth-phase-badge {
    width: 40px;
    height: 40px;
    font-size: 0.83rem;
  }

  .growth-phase-title {
    font-size: 1.1rem;
  }
}


/* ============================================================
   Website Quote — Multi-Step Form
   ============================================================ */

/* Progress bar */
.wq-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.wq-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(32, 33, 50, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.wq-progress-fill {
  height: 100%;
  background: var(--color-wine, #C82D44);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.wq-progress-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary, #8D99AE);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form container */
.wq-form {
  background: var(--color-white, #fff);
  border-radius: var(--border-radius-lg, 24px);
  border: 1px solid rgba(141, 153, 174, 0.15);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

/* Step */
.wq-step {
  animation: wqFadeIn 0.3s ease;
}

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

.wq-step-title {
  font-size: 1.33rem;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--color-dark, #202132);
}

.wq-step-hint {
  font-size: 0.83rem;
  color: var(--color-secondary, #8D99AE);
  margin: -12px 0 20px;
}

/* Fields grid (2-col for contact details) */
.wq-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wq-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wq-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Card selections (radio / single-choice) ── */
.wq-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

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

.wq-card {
  cursor: pointer;
  display: block;
}

.wq-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wq-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  border: 2px solid rgba(141, 153, 174, 0.2);
  border-radius: var(--border-radius-md, 16px);
  background: var(--color-white, #fff);
  text-align: center;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 120px;
}

.wq-card:hover .wq-card-inner {
  border-color: var(--color-wine, #C82D44);
  box-shadow: 0 4px 12px rgba(200, 45, 68, 0.08);
}

.wq-card input:checked + .wq-card-inner {
  border-color: var(--color-wine, #C82D44);
  background: rgba(200, 45, 68, 0.04);
  box-shadow: 0 4px 16px rgba(200, 45, 68, 0.12);
}

.wq-card-icon {
  color: var(--color-wine, #C82D44);
}

.wq-card-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark, #202132);
}

.wq-card-desc {
  font-size: 0.72rem;
  color: var(--color-secondary, #8D99AE);
  margin: 0;
  line-height: 1.4;
}

/* Group error state */
.wq-card-group.has-error .wq-card-inner {
  border-color: rgba(200, 45, 68, 0.3);
}

.wq-group-error {
  margin-top: 4px;
}

/* Conditional field */
.wq-conditional {
  margin-top: 24px;
}

/* ── Checkbox selections (multi-choice) ── */
.wq-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.wq-checkbox {
  display: block;
  cursor: pointer;
}

.wq-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wq-checkbox-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm, 8px);
  border: 1px solid rgba(141, 153, 174, 0.15);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text, #202132);
}

.wq-checkbox:hover .wq-checkbox-inner {
  background: rgba(200, 45, 68, 0.02);
  border-color: rgba(200, 45, 68, 0.2);
}

.wq-checkbox input:checked + .wq-checkbox-inner {
  background: rgba(200, 45, 68, 0.04);
  border-color: var(--color-wine, #C82D44);
}

.wq-checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(141, 153, 174, 0.35);
  border-radius: 4px;
  position: relative;
  top: 1px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wq-checkbox input:checked + .wq-checkbox-inner .wq-checkbox-box {
  background: var(--color-wine, #C82D44);
  border-color: var(--color-wine, #C82D44);
}

.wq-checkbox input:checked + .wq-checkbox-inner .wq-checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wq-checkbox-group.has-error .wq-checkbox-inner {
  border-color: rgba(200, 45, 68, 0.3);
}

/* ── Summary table ── */
.wq-summary {
  border: 1px solid rgba(141, 153, 174, 0.15);
  border-radius: var(--border-radius-md, 16px);
  overflow: hidden;
  margin-bottom: 24px;
}

.wq-summary-row {
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr auto;
  gap: 12px;
  padding: 14px 20px;
  align-items: center;
  border-bottom: 1px solid rgba(141, 153, 174, 0.08);
}

.wq-summary-row:last-child {
  border-bottom: none;
}

.wq-summary-row:nth-child(even) {
  background: rgba(237, 242, 244, 0.4);
}

.wq-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-dark, #202132);
}

.wq-summary-value {
  font-size: 0.88rem;
  color: var(--color-text-muted, #5a5b6a);
  word-break: break-word;
}

.wq-summary-edit {
  background: none;
  border: none;
  color: var(--color-wine, #C82D44);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.wq-summary-edit:hover {
  background: rgba(200, 45, 68, 0.06);
}

/* ── Price result card ── */
.wq-price-result {
  background: linear-gradient(135deg, var(--color-dark, #202132) 0%, #2a2b3d 100%);
  color: var(--color-white, #fff);
  padding: 32px;
  border-radius: var(--border-radius-lg, 24px);
  text-align: center;
}

.wq-price-result--success {
  margin-top: 24px;
  border-radius: var(--border-radius-md, 16px);
}

.wq-price-label {
  font-size: 0.83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  opacity: 0.8;
}

.wq-price-range {
  font-size: 2.22rem;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  color: #EDF2F4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wq-price-result--success .wq-price-range {
  color: var(--color-wine, #C82D44);
  text-shadow: none;
}

.wq-price-note {
  font-size: 0.72rem;
  margin: 0;
  opacity: 0.65;
  font-style: italic;
}

/* ── Navigation ── */
.wq-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(141, 153, 174, 0.1);
}

.wq-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid var(--color-wine, #C82D44);
  color: var(--color-wine, #C82D44);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.wq-nav-back:hover {
  background: rgba(200, 45, 68, 0.06);
}


/* ── Quote form responsive ── */
@media (max-width: 991px) {
  .wq-card-group--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .wq-form {
    padding: 24px;
    border-radius: var(--border-radius-md, 16px);
  }

  .wq-fields-grid {
    grid-template-columns: 1fr;
  }

  .wq-card-group,
  .wq-card-group--four {
    grid-template-columns: 1fr;
  }

  .wq-card-inner {
    min-height: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }

  .wq-summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 16px;
  }

  .wq-summary-edit {
    justify-self: start;
  }

  .wq-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .wq-nav-back,
  .wq-nav .main-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .wq-price-range {
    font-size: 1.67rem;
  }
}

@media (max-width: 479px) {
  .wq-form {
    padding: 20px 16px;
  }

  .wq-step-title {
    font-size: 1.17rem;
  }
}


/* ============================================================
   Team Block
   ============================================================ */

/* Grid — default 2-column, switches to 3 when PHP adds --three */
.team-grid {
  display: grid;
  gap: 30px;
}

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

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

/* Card */
.team-card {
  background: var(--color-white, #fff);
  border-radius: var(--border-radius-md, 16px);
  overflow: hidden;
  border: 1px solid rgba(141, 153, 174, 0.12);
  box-shadow: var(--shadow-card, 0 4px 20px rgba(0, 0, 0, 0.08));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(0, 0, 0, 0.15));
}

/* Image */
.team-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-light, #EDF2F4);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Body */
.team-card-body {
  padding: 24px;
}

.team-card-name {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 1.17rem;
  font-weight: 800;
  color: var(--color-dark, #202132);
  margin: 0 0 4px;
  line-height: 1.3;
}

.team-card-role {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-wine, #C82D44);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.team-card-desc {
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.88rem;
  color: var(--color-text-muted, #5a5b6a);
  line-height: 1.65;
  margin: 0;
}

/* ── Team responsive ── */
@media (max-width: 991px) {
  .team-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 567px) {
  .team-grid--two,
  .team-grid--three {
    grid-template-columns: 1fr;
  }

  .team-card-image {
    aspect-ratio: 4 / 3;
  }

  .team-card-body {
    padding: 20px;
  }
}


.review-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.review-nav .w-icon-slider-left,
.review-nav .w-icon-slider-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0;
	margin-bottom: 5px;
}

.review-nav .w-icon-slider-left::before {
  content: '‹';
  font-size: 28px;
  font-weight: 700;
  font-family: inherit;
  line-height: 0;
}

.review-nav .w-icon-slider-right::before {
  content: '›';
  font-size: 28px;
  font-weight: 700;
  font-family: inherit;
  line-height: 0;
}



/* ============================================
   SOFTWARE AUDIT CALCULATOR
   Additional CSS (add to theme.css or additional.css)
   
   Reuses existing classes:
   - .body-section.dark (section wrapper)
   - .body-container (max-width container)
   - .title-holder.center.white (heading area)
   - .small-title (section label)
   - .text-restrict (description text)
   - .main-button.pink (CTA button)
   - .button-holder (button wrapper)
   ============================================ */

/* Tool Container */
.audit-tool {
  max-width: 900px;
  margin: 40px auto 0;
}

/* Input Row */
.audit-input-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 30px;
}

.audit-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.audit-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  padding: 12px 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
  -moz-appearance: textfield;
}

.audit-input::-webkit-outer-spin-button,
.audit-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.audit-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.audit-input:focus {
  outline: none;
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.12);
}

/* Override main-button.pink sizing for the inline add btn */
.audit-add-btn {
  min-width: auto !important;
  width: 100%;
  padding: 12px 24px !important;
  font-size: 14px !important;
  letter-spacing: 1px;
}

/* Table */
.audit-list-wrapper {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
}

.audit-th {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-th-right { text-align: right; }
.audit-th-center { text-align: center; }

.audit-td {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 300;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-td-name { font-weight: 500; }
.audit-td-right { text-align: right; }
.audit-td-center { text-align: center; }

.audit-row:last-child .audit-td {
  border-bottom: none;
}

.audit-row {
  transition: background 0.2s ease;
}

.audit-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Remove Button */
.audit-remove-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.audit-remove-btn:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #ffffff;
}

/* Summary Dashboard */
.audit-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.audit-summary-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.audit-summary-card.highlight {
  background: rgba(200, 45, 68, 0.15);
  border-color: rgba(200, 45, 68, 0.3);
}

.audit-summary-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-summary-value {
  color: #ffffff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
}

.audit-summary-card.highlight .audit-summary-value {
  color: var(--pink);
  font-weight: 500;
}

/* CTA Note */
.audit-cta-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-top: 16px;
  font-weight: 300;
}

.audit-cta-note strong {
  color: var(--pink);
  font-weight: 600;
}

/* Empty State */
.audit-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

.audit-empty svg {
  opacity: 0.3;
}

.audit-empty p {
  font-size: 16px;
  font-weight: 300;
  margin: 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 991px) {
  .audit-input-row {
    grid-template-columns: 1fr 1fr;
  }

  .audit-input-group:first-child {
    grid-column: 1 / -1;
  }

  .audit-input-group.audit-input-action {
    grid-column: 1 / -1;
  }

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

@media screen and (max-width: 768px) {
  .audit-list-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .audit-table {
    min-width: 580px;
  }

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

  .audit-summary-value {
    font-size: 24px;
  }
}

@media screen and (max-width: 479px) {
  .audit-input-row {
    grid-template-columns: 1fr;
  }

  .audit-input-group:first-child {
    grid-column: auto;
  }

  .audit-input-group.audit-input-action {
    grid-column: auto;
  }

  .audit-summary-cards {
    grid-template-columns: 1fr;
  }

  .audit-add-btn {
    width: 100%;
  }
}




/* ============================================
   CUSTOM BUSINESS APPS — MOBILE FIXES
   Add to theme.css or as a separate enqueued file
   ============================================ */


/* --------------------------------------------------
   FIX 1: Title holder layout on mobile
   
   Problem: On ≤479px, .title-holder.center was set to
   flex-direction: row (from the 991px breakpoint rule
   that changes it to "flex-flow: row") which makes
   the .small-title and h2 sit side-by-side.
   
   The 991px rule sets:
     .title-holder.center { flex-flow: row; }
   
   This should be column on mobile so the label
   sits above the heading.
   -------------------------------------------------- */

@media screen and (max-width: 991px) {
  .software-audit-section .title-holder.center,
  .body-section.dark .title-holder.center.white {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}


/* --------------------------------------------------
   FIX 2: Bottom contact bar icons cut off on mobile
   
   Problem: On ≤479px the .top-contact bar moves to
   bottom: 0 with height: 44px, but the icon links
   inside are 60x60px (absolutely positioned) which
   overflow and get clipped. The section also doesn't
   have overflow: visible, and the icons sit partially
   outside the bar.
   -------------------------------------------------- */

@media screen and (max-width: 479px) {

  /* Allow icons to overflow above the bar */
  .top-contact {
    overflow: visible;
    z-index: 9999;
  }

  /* Reduce icon size so they don't get clipped */
  .top-contact-link {
    width: 48px;
    height: 48px;
    bottom: 6px;
  }

  .top-contact-link .top-contact-icon {
    width: 22px;
    height: 22px;
  }

  /* Give the page body enough bottom padding so
     content isn't hidden behind the fixed bar */
  body {
    padding-bottom: 54px;
  }
}


/* --------------------------------------------------
   FIX 3: Audit tool input grid on small mobile
   
   Problem: The .audit-input-row grid doesn't fully
   collapse on narrow screens — fields can overflow
   or feel cramped.
   -------------------------------------------------- */

@media screen and (max-width: 479px) {

  .audit-input-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .audit-input-row .audit-input-group,
  .audit-input-row .audit-input-group:first-child,
  .audit-input-row .audit-input-group.audit-input-action {
    grid-column: auto;
    width: 100%;
  }

  /* Make Add button full width */
  .audit-add-btn {
    width: 100% !important;
  }
}


/* --------------------------------------------------
   FIX 4: Summary cards grid on small mobile
   
   Problem: The 3-column summary cards grid gets
   too cramped on very small screens.
   -------------------------------------------------- */

@media screen and (max-width: 479px) {

  .audit-summary-cards {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }

  .audit-summary-value {
    font-size: 22px;
  }
}

@media screen and (max-width: 360px) {

  .audit-summary-cards {
    grid-template-columns: 1fr !important;
  }
}


/* --------------------------------------------------
   FIX 5a: More breathing room between heading and
   description text in the audit section
   -------------------------------------------------- */

.software-audit-section .text-restrict {
  margin-top: 10px;
}


/* --------------------------------------------------
   FIX 5: Text restrict centering in dark section
   
   On mobile the text-restrict has padding-left: 0
   and text-align: left (from the 991px breakpoint).
   For this centred section it should stay centred.
   -------------------------------------------------- */

@media screen and (max-width: 991px) {
  .software-audit-section .text-restrict {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 479px) {
  .software-audit-section .text-restrict {
    text-align: left;
  }
}


/* --------------------------------------------------
   FIX 6: Audit table horizontal scroll on mobile
   
   Ensure the table wrapper scrolls smoothly and
   doesn't break the page width.
   -------------------------------------------------- */

@media screen and (max-width: 768px) {
  .audit-list-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .audit-table {
    min-width: 560px;
  }
}


/* ============================================
   WEBSITE HEALTH CHECK TOOL
   Prefix: .whc-
   ============================================ */

/* --- Form Card --- */
.whc-section {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.whc-form-card {
  background: var(--color-white, #fff);
  border: 1px solid rgba(32, 33, 50, 0.08);
  border-radius: var(--border-radius-lg, 24px);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
}

.whc-form-header {
  margin-bottom: var(--space-lg);
}

.whc-form-header .text-title {
  margin-top: 0.25rem;
}

.whc-form-subtitle {
  color: var(--color-text-muted, #5a5b6a);
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.whc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.whc-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text, #202132);
  margin-bottom: 0.35rem;
}

.whc-required {
  color: var(--color-wine, #C82D44);
}

.whc-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(32, 33, 50, 0.15);
  border-radius: var(--border-radius-sm, 8px);
  font-family: var(--font-primary, 'Mulish', sans-serif);
  font-size: 0.95rem;
  color: var(--color-text, #202132);
  background: var(--color-light-alt, #F4F6F8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.whc-field input:focus {
  outline: none;
  border-color: var(--pink, #c82d44);
  box-shadow: 0 0 0 3px rgba(200, 45, 68, 0.1);
  background: #fff;
}

.whc-field input::placeholder {
  color: var(--color-secondary, #8D99AE);
}

/* URL field */
.whc-field-url {
  margin-bottom: var(--space-md);
}

.whc-url-input-wrapper {
  position: relative;
}

.whc-url-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-secondary, #8D99AE);
  pointer-events: none;
}

.whc-field-url input {
  padding-left: 2.8rem;
}

/* Actions */
.whc-form-actions {
  margin-bottom: var(--space-sm);
}

.whc-form-actions .main-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.whc-form-note {
  font-size: 0.78rem;
  color: var(--color-secondary, #8D99AE);
  text-align: center;
  line-height: 1.5;
}

/* Error */
.whc-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-sm, 8px);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: var(--space-sm);
  text-align: center;
}


/* --- Loading State --- */
.whc-loading {
  display: flex;
  justify-content: center;
  padding: var(--space-3xl) 0;
}

.whc-loading-inner {
  text-align: center;
  max-width: 400px;
}

.whc-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(32, 33, 50, 0.1);
  border-top-color: var(--pink, #c82d44);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: whcSpin 0.8s linear infinite;
}

@keyframes whcSpin {
  to { transform: rotate(360deg); }
}

.whc-loading-inner h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.whc-loading-inner p {
  color: var(--color-text-muted, #5a5b6a);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.whc-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.whc-loading-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--border-radius-sm, 8px);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-secondary, #8D99AE);
  background: rgba(32, 33, 50, 0.03);
  transition: all 0.3s ease;
}

.whc-loading-step.active {
  color: var(--color-text, #202132);
  background: rgba(200, 45, 68, 0.06);
  border-left: 3px solid var(--pink, #c82d44);
}

.whc-loading-step svg {
  flex-shrink: 0;
}


/* --- Results --- */
.whc-results-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: var(--color-light-alt, #F4F6F8);
  border-radius: var(--border-radius-sm, 8px);
  font-size: 0.9rem;
  color: var(--color-text-muted, #5a5b6a);
  margin-bottom: var(--space-xl);
}

.whc-results-banner strong {
  color: var(--color-text, #202132);
  word-break: break-all;
}

.whc-results-banner svg {
  flex-shrink: 0;
  color: var(--color-secondary, #8D99AE);
}


/* --- Score Gauges --- */
.whc-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.whc-score-card {
  background: var(--color-white, #fff);
  border: 1px solid rgba(32, 33, 50, 0.08);
  border-radius: var(--border-radius-md, 16px);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.whc-gauge {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-sm);
}

.whc-gauge svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.whc-gauge-bg {
  fill: none;
  stroke: rgba(32, 33, 50, 0.06);
  stroke-width: 8;
}

.whc-gauge-fill {
  fill: none;
  stroke: var(--pink, #c82d44);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
}

.whc-gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text, #202132);
}

.whc-score-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text, #202132);
}

.whc-score-synopsis {
  font-size: 0.78rem;
  color: var(--color-text-muted, #5a5b6a);
  line-height: 1.4;
}


/* --- Panels --- */
.whc-panel {
  background: var(--color-white, #fff);
  border: 1px solid rgba(32, 33, 50, 0.08);
  border-radius: var(--border-radius-md, 16px);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.whc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.whc-panel-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.whc-panel-header h3 svg {
  color: var(--pink, #c82d44);
  flex-shrink: 0;
}

.whc-panel-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(200, 45, 68, 0.08);
  color: var(--color-wine, #C82D44);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
}


/* --- Issues List --- */
.whc-issues-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media screen and (max-width: 767px) {
  .whc-issues-list {
    grid-template-columns: 1fr;
  }
}

.whc-issue {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--border-radius-sm, 8px);
  font-size: 0.88rem;
  line-height: 1.5;
}

.whc-issue::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.whc-issue-error {
  background: rgba(239, 68, 68, 0.05);
}
.whc-issue-error::before {
  background: #ef4444;
}

.whc-issue-warning {
  background: rgba(245, 158, 11, 0.05);
}
.whc-issue-warning::before {
  background: #f59e0b;
}

.whc-issue-info {
  background: rgba(59, 130, 246, 0.05);
}
.whc-issue-info::before {
  background: #3b82f6;
}


/* --- On-Page Grid --- */
.whc-onpage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.whc-onpage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--border-radius-sm, 8px);
  background: var(--color-light-alt, #F4F6F8);
  font-size: 0.88rem;
}

.whc-onpage-label {
  font-weight: 600;
  color: var(--color-text, #202132);
  white-space: nowrap;
}

.whc-onpage-value {
  color: var(--color-text-muted, #5a5b6a);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
  flex: 1;
}

.whc-onpage-status {
  flex-shrink: 0;
  display: flex;
}


/* --- Keywords Table --- */
.whc-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.whc-table {
  width: 100%;
  border-collapse: collapse;
}

.whc-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary, #8D99AE);
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(32, 33, 50, 0.08);
}

.whc-th-right { text-align: right !important; }
.whc-th-center { text-align: center !important; }

.whc-table tbody td {
  padding: 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(32, 33, 50, 0.04);
  color: var(--color-text, #202132);
}

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

.whc-td-right { text-align: right; }
.whc-td-center { text-align: center; }

.whc-kw-name {
  font-weight: 500;
}

.whc-pos-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
}

.whc-pos-top {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.whc-pos-page1 {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.whc-pos-other {
  background: rgba(32, 33, 50, 0.06);
  color: var(--color-text-muted, #5a5b6a);
}

.whc-no-keywords {
  color: var(--color-text-muted, #5a5b6a);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space-lg) 0;
}


/* --- Results CTA --- */
.whc-results-cta {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-dark, #202132);
  border-radius: var(--border-radius-lg, 24px);
  margin-top: var(--space-xl);
}

.whc-results-cta h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.whc-results-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.whc-results-cta .button-holder {
  gap: 0.75rem;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 991px) {
  .whc-scores {
    grid-template-columns: repeat(2, 1fr);
  }

  .whc-onpage-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .whc-form-card {
    padding: var(--space-xl) var(--space-md);
  }

  .whc-panel {
    padding: var(--space-md);
  }

  .whc-table {
    min-width: 480px;
  }
}

@media screen and (max-width: 767px) {
  .whc-onpage-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .whc-onpage-value {
    max-width: 100%;
    text-align: left;
  }
}

@media screen and (max-width: 479px) {
  .whc-form-grid {
    grid-template-columns: 1fr;
  }

  .whc-scores {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .whc-gauge {
    width: 80px;
    height: 80px;
  }

  .whc-gauge-value {
    font-size: 1.3rem;
  }

  .whc-score-card {
    padding: var(--space-sm);
  }

  .whc-results-cta {
    padding: var(--space-xl) var(--space-sm);
    border-radius: var(--border-radius-md, 16px);
  }
}
