/* ===================================
   Sculpture Hospitality - Professional Design System
   Version 2.0 - Sleek & Sophisticated
   =================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Professional Color Palette - Castle Consulting Brand */
  --color-navy: #003366;
  --color-green: #8DC63F;
  --color-white: #FFFFFF;
  --color-off-white: #FAFAFA;
  --color-gray-dark: #1A1A1A;
  --color-gray-medium: #6b7280;
  --color-gray-light: #E8E8E8;
  --color-gray-accent: #4a5568;

  /* Professional Spacing System */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 120px;

  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 40px;
  --font-size-4xl: 56px;

  /* Professional Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
  --transition: all 0.2s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background-color: #FFFFFF;
  color-scheme: light;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-gray-dark);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageFadeIn 0.4s ease both;
}

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

/* Pushes content below the fixed navbar AND gives Chrome a white
   in-flow element to use as the overscroll bounce color. */
.nav-spacer {
  height: 80px;
  background-color: #bcc8d4;
  display: block;
}

/* Remove focus outline on all interactive elements */
*, *:focus, *:focus-visible, a, a:focus, a:focus-visible, button, button:focus, button:focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Eliminate 300ms tap delay on mobile for all interactive elements */
a, button, [role="button"], input, select, textarea, label {
  touch-action: manipulation;
}

/* Specifically target navbar links */
.navbar a, .navbar button, nav a, nav button {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* ===== PROFESSIONAL TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: 1.2;
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: 1.3;
}

h4 {
  font-size: var(--font-size-xl);
  line-height: 1.4;
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
  max-width: 75ch;
}

p.large {
  font-size: var(--font-size-lg);
}

.subheadline {
  font-size: 20px;
  color: var(--color-gray-dark);
  font-weight: 400;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

a {
  color: var(--color-navy);
  text-decoration: underline;
  transition: var(--transition);
  font-weight: 500;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* White cap that covers the overscroll zone above the viewport.
   top + height = 0, so the bottom edge sits exactly at viewport top (y=0).
   Invisible during normal scrolling; shows white when the page rubber-bands up. */
.overscroll-cap {
  position: fixed;
  top: -200vh;
  left: 0;
  right: 0;
  height: 200vh;
  background: #ffffff;
  pointer-events: none;
  z-index: 999;
}

.section {
  padding: var(--space-4xl) 0;
  background-color: #bcc8d4;
}

.section-white {
  background-color: #bcc8d4;
}

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

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

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

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

.text-center h2,
.text-center h3 {
  margin-left: auto;
  margin-right: auto;
}

/* ===== PROFESSIONAL ACCENT LINE ===== */
.accent-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-green);
  margin-bottom: var(--space-lg);
}

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

/* ===== PROFESSIONAL BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 2px 4px rgba(141, 198, 63, 0.3);
}

.btn-primary:hover {
  background-color: #7AB52F;
  box-shadow: 0 4px 8px rgba(141, 198, 63, 0.4);
  transform: scale(1.02);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-gray-light);
}

.btn-secondary:hover {
  border-color: var(--color-navy);
  background-color: #F5F5F5;
  color: var(--color-navy);
}

/* ===== PROFESSIONAL NAVIGATION ===== */
.navbar {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}

.nav-logo img {
  height: 52px; /* Increased from 40px for better visibility */
  width: auto;
  transition: height 0.3s ease;
}

.nav-logo a {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.nav-logo img {
  height: 65px;
  width: auto;
}

.logo-tagline {
  font-size: 10px;
  color: var(--color-white);
  background-color: var(--color-green);
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav-item a {
  color: var(--color-navy);
  font-weight: 500;
  font-size: var(--font-size-base);
  transition: var(--transition);
  text-decoration: none;
}

.nav-item a:hover {
  color: var(--color-green);
}

.nav-item.cta .btn {
  background-color: var(--color-green);
  color: var(--color-white);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== PROFESSIONAL HERO SECTION ===== */
.hero {
  padding: var(--space-4xl) 0;
  background-color: #bcc8d4;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-text .subheadline {
  margin-bottom: var(--space-2xl);
}

.hero-image {
  background: transparent;
  padding: 0;
}

.hero-image img {
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  /* Removed box-shadow to prevent white box effect */
}

/* Image integration fixes - remove white boxes */
.section-off-white .hero-image,
.section-off-white .image-container {
  background: transparent;
}

/* Consultant photo treatment */
.consultant-photo {
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.consultant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}

/* Software mockup images */
.software-mockup {
  background: transparent;
  position: relative;
}

.software-mockup img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

/* ===== PROFESSIONAL CARD SYSTEM ===== */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 24px;
  height: 24px;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-icon.green {
  color: var(--color-green);
}

.card-icon.gray {
  color: var(--color-gray-medium);
}

.card h3,
.card h4 {
  font-size: 20px;
  margin-bottom: var(--space-md);
  font-weight: 600;
  color: var(--color-navy);
}

.card p {
  color: var(--color-gray-dark);
  margin-bottom: 0;
  font-size: var(--font-size-base);
  line-height: 1.6;
  flex-grow: 1;
}

/* ===== PROFESSIONAL GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

/* Limit cards to 6 per section for professional look */
.grid .card:nth-child(n+7) {
  display: none;
}

/* ===== ENHANCED CHALLENGE CARDS SECTION ===== */
.inventory-challenges {
  background: #bcc8d4;
  padding: var(--space-4xl) 0;
  position: relative;
}

.inventory-challenges::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0,51,102,0.02), transparent);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray-medium);
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.challenge-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 8px;
  padding: var(--space-xl);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-green), #7AB52F);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.challenge-card:hover .card-accent {
  opacity: 1;
}

.challenge-card:hover {
  border-color: var(--color-green);
  box-shadow: 0 8px 24px rgba(141,198,63,0.12);
  transform: translateY(-4px);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #F5F5F5, #FAFAFA);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
}

.challenge-card:hover .icon-wrapper {
  background: linear-gradient(135deg, var(--color-green), #7AB52F);
}

.challenge-icon {
  width: 28px;
  height: 28px;
  stroke: var(--color-navy);
  transition: stroke 0.3s ease;
}

.challenge-card:hover .challenge-icon {
  stroke: white;
}

.challenge-card h3,
.challenge-card h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.challenge-card p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: #666;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.impact-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: var(--space-md);
  border-top: 1px solid #F0F0F0;
  margin-top: auto;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-green);
}

.stat-label {
  font-size: 12px;
  color: var(--color-gray-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== PROFESSIONAL STATS BANNER ===== */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  padding: var(--space-3xl) var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-3xl);
  border: 1px solid var(--color-gray-light);
}

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

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-green);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-gray-medium);
  display: block;
}

/* ===== PROFESSIONAL TESTIMONIALS ===== */
.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  object-fit: cover;
  filter: grayscale(100%);
}

.testimonial-quote {
  font-size: var(--font-size-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  quotes: """ """ "'" "'";
}

.testimonial-quote:before {
  content: open-quote;
}

.testimonial-quote:after {
  content: close-quote;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-navy);
  font-size: var(--font-size-sm);
}

.testimonial-business {
  color: var(--color-gray-medium);
  font-size: var(--font-size-sm);
}

/* Clamp long quotes to 6 lines with trailing ellipsis */
.testimonial-quote-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Read full review →" button */
.testimonial-expand-btn {
  background: none;
  border: none;
  color: var(--color-green);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  margin-bottom: var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, opacity 0.2s ease;
  font-family: var(--font-primary);
}

.testimonial-expand-btn:hover {
  gap: 8px;
  opacity: 0.85;
}

/* ===== REVIEW MODAL ===== */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.review-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.review-modal {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  padding: 48px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s ease;
}

.review-modal-overlay.active .review-modal {
  transform: scale(1) translateY(0);
}

.review-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-gray-medium);
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.review-modal-close:hover {
  color: var(--color-navy);
}

.review-modal-accent {
  height: 3px;
  width: 48px;
  background: var(--color-green);
  border-radius: 2px;
  margin-bottom: 28px;
}

.review-modal-quote p {
  font-size: 17px;
  color: var(--color-navy);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 100%;
}

.review-modal-quote p:last-child {
  margin-bottom: 0;
}

.review-modal-divider {
  height: 1px;
  background: var(--color-gray-light);
  margin: 28px 0;
}

.review-modal-author {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 15px;
  margin-bottom: 4px;
}

.review-modal-business {
  color: var(--color-gray-medium);
  font-size: 14px;
}

@media (max-width: 640px) {
  .review-modal {
    padding: 32px 24px;
  }
}

/* ===== PROFESSIONAL FORM STYLES ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

/* More compact form spacing for consultation section */
.consultation-form .form-group {
  margin-bottom: 18px; /* Reduced from 24px for more compact layout */
}

/* Compact CTA section styling */
.compact-cta-section {
  padding: 55px 0; /* Moderately reduced for more compact layout */
}

.compact-consultation-form .form-group {
  margin-bottom: 16px; /* Further reduced for compact form */
}

.form-row-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0; /* Remove margin, let form-group handle spacing */
}

.form-row-compact .form-group {
  margin-bottom: 16px;
}

/* Mobile responsive for compact form */
@media (max-width: 640px) {
  .form-row-compact {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-gray-dark);
  font-size: var(--font-size-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gray-medium);
}

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

.form-error {
  color: #E74C3C;
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

.form-success {
  background-color: #D4EDDA;
  color: #155724;
  padding: var(--space-md);
  border-radius: var(--border-radius);
  margin-top: var(--space-md);
  border: 1px solid #C3E6CB;
}

/* ===== PROFESSIONAL SERVICE TIERS ===== */
.tier-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.tier-card.popular {
  border: 2px solid var(--color-navy);
}

.tier-card.popular::before {
  content: "POPULAR";
  position: absolute;
  top: -12px;
  right: var(--space-lg);
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 4px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-card:hover {
  box-shadow: var(--shadow-md);
}

.tier-card h3 {
  font-size: 28px;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.tier-price {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-green);
  margin: var(--space-md) 0;
}

.tier-card > p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-medium);
  margin-bottom: var(--space-lg);
}

.tier-features {
  list-style: none;
  margin: var(--space-lg) 0;
  text-align: left;
  flex-grow: 1;
}

.tier-features li {
  padding: var(--space-md) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-gray-dark);
  border-bottom: 1px solid var(--color-gray-light);
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-features li::before {
  content: "✓";
  color: var(--color-green);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.tier-card .btn {
  margin-top: var(--space-lg);
  width: 100%;
}

/* ===== MODERN PRICING MATRIX ===== */
.pricing-matrix-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.1);
  background: white;
}

.pricing-matrix {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: white;
}

/* Header row */
.pricing-matrix thead th {
  padding: 32px 24px 28px;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 2px solid #eef0f3;
}

.pm-label-th {
  width: 38%;
  background: #fafafa;
  border-right: 1px solid #eef0f3;
}

.pm-tier-th {
  display: table-cell;
  padding: 32px 24px 28px;
  text-align: center;
  vertical-align: bottom;
  border-right: 1px solid #eef0f3;
}

.pm-featured-th {
  background: #003366;
  border-radius: 12px 12px 0 0;
  border-right: none;
}

.pm-tier-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 6px;
}

.pm-featured-th .pm-tier-name {
  color: white;
}

.pm-tier-price {
  display: block;
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.pm-tier-price strong {
  font-size: 22px;
  color: #1A1A1A;
}

.pm-featured-th .pm-tier-price {
  color: rgba(255,255,255,0.75);
}

.pm-featured-th .pm-tier-price strong {
  color: white;
}

.pm-badge {
  display: inline-block;
  background: #8DC63F;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.pm-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.pm-cta-outline {
  border: 2px solid #003366;
  color: #003366;
  background: transparent;
}

.pm-cta-outline:hover {
  background: #003366;
  color: white;
}

.pm-cta-filled {
  background: #8DC63F;
  color: white;
  border: 2px solid #8DC63F;
}

.pm-cta-filled:hover {
  background: #7ab62f;
  border-color: #7ab62f;
}

/* Section label rows */
.pm-section-row td {
  background: #f5f7fa;
  padding: 10px 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #888;
  border-top: 1px solid #e8eaed;
  border-bottom: 1px solid #e8eaed;
}

/* Feature rows */
.pricing-matrix tbody tr {
  border-bottom: 1px solid #f2f4f6;
  transition: background 0.15s ease;
}

.pricing-matrix tbody tr:hover td {
  background: #fafbfd;
}

.pricing-matrix tbody tr:hover .pm-featured-col {
  background: rgba(0,51,102,0.07);
}

/* Body cells */
.pricing-matrix td {
  padding: 16px 24px;
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
}

.pm-feature-label {
  text-align: left !important;
  font-weight: 500;
  color: #1A1A1A;
  font-size: 14px;
  background: #fafafa;
  border-right: 1px solid #eef0f3;
}

.pm-featured-col {
  background: rgba(0,51,102,0.04);
}

.pm-check {
  color: #8DC63F;
  font-size: 18px;
  font-weight: 700;
}

.pm-cross {
  color: #d0d0d0;
  font-size: 16px;
}

.pm-support-text {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.pm-support-featured {
  color: #003366;
  font-weight: 700;
}

/* CTA row */
.pm-cta-row td {
  padding: 24px;
  border-top: 2px solid #eef0f3 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-matrix {
    min-width: 580px;
  }
  .pm-tier-th,
  .pricing-matrix thead th {
    padding: 20px 16px 16px;
  }
  .pm-tier-name { font-size: 16px; }
  .pm-tier-price strong { font-size: 18px; }
  .pricing-matrix td { padding: 12px 14px; font-size: 13px; }
  .pm-feature-label { font-size: 13px; }
}

@media (max-width: 480px) {
  .pricing-matrix {
    min-width: 460px;
  }
  .pm-cta { padding: 8px 14px; font-size: 12px; }
  .pricing-matrix td { padding: 10px 12px; font-size: 12px; }
}

/* Hero image bar responsive */
@media (max-width: 768px) {
  .hero-image-bar {
    flex-direction: column;
    align-items: center;
  }
  .hero-image-bar > div {
    max-width: 100% !important;
    width: 100%;
  }
}

/* ===== PROFESSIONAL PRICING TABLE (legacy) ===== */
.pricing-table {
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: var(--space-3xl) 0;
  border: none;
}

.pricing-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.pricing-table th,
.pricing-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid #F0F0F0;
}

.pricing-table thead tr th:first-child {
  border-top-left-radius: 12px;
}

.pricing-table thead tr th:last-child {
  border-top-right-radius: 12px;
}

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

.pricing-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.pricing-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.pricing-table th {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  text-align: center;
  font-size: var(--font-size-lg);
  border-bottom: none;
}

.pricing-table td:first-child {
  font-weight: 500;
  color: var(--color-gray-dark);
  background-color: #FAFAFA;
}

.pricing-table td:not(:first-child) {
  text-align: center;
}

.pricing-table tbody tr {
  transition: background-color 0.2s ease;
}

.pricing-table tbody tr:hover td:not(:first-child) {
  background-color: #F9F9F9;
}

.checkmark {
  color: var(--color-green);
  font-size: 22px;
  font-weight: 700;
}

.crossmark {
  color: #CCCCCC;
  font-size: 22px;
  font-weight: 700;
}

/* ===== PROFESSIONAL CASE STUDY STYLES ===== */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

/* Alternate case study layout - image on right for reversed sections */
.case-study.reverse {
  direction: rtl;
}

.case-study.reverse > * {
  direction: ltr;
}

.case-study-image img {
  border-radius: var(--border-radius);
  /* Removed box-shadow to prevent white box effect */
  background: transparent;
}

.case-study-content {
  padding: 0;
}

.case-study-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-gray-medium);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
  display: block;
}

.case-study-title {
  margin-bottom: var(--space-md);
}

/* Case study section headings */
.section-heading {
  margin-top: var(--space-lg);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.section-heading.challenge {
  color: #E74C3C;
}

.section-heading.solution {
  color: #17A2B8;
}

.section-heading.results {
  color: var(--color-green);
}

/* Case study results grid */
.case-study-results {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
}

.case-study-results > div {
  flex: 1;
}

.result-metric {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-green);
  display: block;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.result-label {
  color: var(--color-gray-medium);
  font-size: var(--font-size-sm);
  display: block;
}

/* Testimonial box styling */
.testimonial-box {
  background-color: var(--color-off-white);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  margin-top: var(--space-lg);
  border-left: 4px solid var(--color-green);
}

.testimonial-box p {
  margin: 0;
}

.testimonial-box .quote {
  font-style: italic;
  color: var(--color-gray-dark);
  margin-bottom: var(--space-sm);
}

.testimonial-box .author {
  font-weight: 600;
  color: var(--color-navy);
  margin-top: var(--space-sm);
}

/* ===== PROFESSIONAL FOOTER ===== */
.footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  margin-bottom: var(--space-3xl);
}

.footer-bottom p {
  max-width: none !important;
  width: 100%;
  text-align: center !important;
  margin-left: 0;
  margin-right: 0;
}

.footer-logo img {
  height: 50px;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer-links h4 {
  color: var(--color-white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--color-green);
}

.footer-contact p {
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
}

/* ===== ENHANCED PROCESS TIMELINE ===== */
.getting-started {
  background: var(--color-off-white);
  padding: 60px 0; /* Moderately reduced for more compact section */
}

.getting-started .section-header {
  margin-bottom: 40px; /* Reduced for compact spacing */
}

.process-timeline {
  max-width: 900px;
  margin: 0 auto 40px; /* Reduced */
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 90px 1fr; /* Slightly reduced */
  gap: 28px; /* Moderately reduced */
  margin-bottom: 40px; /* Moderately reduced for more compact layout */
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number {
  width: 60px; /* Moderately reduced */
  height: 60px; /* Moderately reduced */
  background: linear-gradient(135deg, var(--color-navy), #004080);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,51,102,0.2);
  transition: all 0.4s ease;
}

.step-number span {
  font-size: 22px; /* Moderately reduced */
  font-weight: 700;
  color: white;
}

.step-connector {
  width: 2px;
  height: 55px; /* Moderately reduced for compact layout */
  background: linear-gradient(to bottom, var(--color-gray-light), transparent);
  margin-top: 12px;
}

.process-step:last-child .step-connector {
  display: none;
}

.step-content {
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 12px;
  padding: 24px; /* Moderately reduced for more compact layout */
  position: relative;
  transition: all 0.4s ease;
}

.step-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 24px; /* Adjusted to match reduced padding */
  width: 20px;
  height: 20px;
  background: var(--color-off-white);
  border-left: 1px solid var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-light);
  transform: rotate(45deg);
}

.step-icon {
  width: 44px; /* Slightly reduced */
  height: 44px; /* Slightly reduced */
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px; /* Reduced */
  transition: all 0.3s ease;
}

.step-icon svg {
  width: 22px; /* Slightly reduced */
  height: 22px; /* Slightly reduced */
  stroke: var(--color-navy);
}

.step-content h3 {
  font-size: 22px; /* Slightly reduced */
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px; /* Reduced */
}

.step-content p {
  font-size: 15px; /* Slightly reduced */
  line-height: 1.5;
  color: #666;
  margin-bottom: 18px; /* Reduced */
}

.step-details {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0; /* Reduced */
  display: flex;
  flex-wrap: wrap;
  gap: 14px; /* Slightly reduced */
}

.step-details li {
  font-size: 14px;
  color: var(--color-green);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-details li::before {
  content: '✓';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--color-green);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  flex-shrink: 0;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,51,102,0.3);
}

.process-step:hover .step-content {
  background: white;
  border-color: var(--color-green);
  box-shadow: 0 8px 24px rgba(141,198,63,0.12);
  transform: translateX(8px);
}

.process-step:hover .step-icon {
  background: var(--color-green);
}

.process-step:hover .step-icon svg {
  stroke: white;
}

.cta-wrapper {
  text-align: center;
  margin-top: var(--space-3xl);
}

.cta-subtext {
  margin-top: var(--space-md);
  font-size: 14px;
  color: var(--color-gray-medium);
}

/* Legacy timeline support - keep for backwards compatibility */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  position: relative;
  margin-top: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background-color: var(--color-gray-light);
  z-index: 0;
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--color-navy);
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}

.timeline-step h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

.timeline-step p {
  color: var(--color-gray-medium);
  font-size: var(--font-size-base);
  margin: 0 auto;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gray-light);
  z-index: 9999;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--color-green), #7AB52F);
  width: 0%;
  transition: width 0.1s ease;
}

/* ===== NAVIGATION SCROLL ANIMATION ===== */
/* Navbar animations - extends existing .navbar styles */

.navbar.scrolled {
  height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-logo img {
  height: 40px; /* Increased from 36px to match larger default logo */
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

/* On mobile: skip the hidden initial state so content is always visible.
   The observer will still add .visible but elements are already shown. */
@media (max-width: 1024px) {
  .fade-in,
  .fade-in-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --space-4xl: 80px;
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: 32px;
  }

  .hero-content,
  .case-study {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

  /* footer-content is now flex column, no grid override needed */

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

  .timeline::before {
    display: none;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-4xl: 60px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

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

  /* Hero Image Bar - Mobile */
  .hero-image-bar {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .hero-image-bar > div {
    max-width: 100% !important;
  }

  /* Mobile Navigation */
  .nav-logo img {
    height: 40px;
  }

  .logo-tagline {
    font-size: 8px;
    padding: 3px 8px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-4xl) var(--space-xl);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item.cta .btn {
    width: 100%;
  }

  /* Grid adjustments */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-banner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Footer: already flex column, nothing to override */

  /* Timeline */
  .timeline {
    grid-template-columns: 1fr;
  }

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

  /* Enhanced sections responsive */
  .challenges-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 54px 1fr; /* Moderately reduced */
    gap: 20px; /* Reduced */
    margin-bottom: 32px; /* Moderately reduced for more compact mobile layout */
  }

  .step-number {
    width: 52px; /* Smaller for mobile */
    height: 52px; /* Smaller for mobile */
  }

  .step-number span {
    font-size: 17px; /* Smaller for mobile */
  }

  .step-connector {
    height: 42px; /* Moderately reduced for more compact mobile layout */
  }

  .step-content {
    padding: 18px; /* Moderately reduced for more compact mobile layout */
  }

  .step-content::before {
    left: -8px;
    width: 16px;
    height: 16px;
  }

  /* Simplify animations on mobile */
  .fade-in,
  .fade-in-stagger {
    transition-duration: 0.3s !important;
  }
}

/* ===== PROFESSIONAL ANIMATIONS ===== */
/* Animations now handled by enhanced system above */

/* ===== ACCESSIBILITY ===== */
.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;
}

/* Focus states */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* ===== UTILITY CLASSES ===== */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

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

.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray-medium); }

.max-width-prose {
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

.text-center .max-width-prose {
  text-align: center;
}

/* ===== SOCIAL MEDIA FEED SECTION ===== */
.social-feed-section {
  padding: var(--space-4xl) 0;
}

.social-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.social-feed-box {
  background: var(--color-white);
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  position: relative;
}

.social-feed-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-feed-box:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
  border-color: #D0D0D0;
}

.social-feed-box:hover::before {
  opacity: 1;
}

.social-feed-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, #00458F 100%);
  color: var(--color-white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.social-feed-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05));
  pointer-events: none;
}

.social-feed-box[data-platform="instagram"] .social-feed-header {
  background: linear-gradient(135deg, #405DE6 0%, #5851DB 25%, #833AB4 50%, #C13584 75%, #E1306C 100%);
}

.social-feed-box[data-platform="facebook"] .social-feed-header {
  background: linear-gradient(135deg, #1877F2 0%, #0C5CAE 100%);
}

.social-feed-box[data-platform="tiktok"] .social-feed-header {
  background: linear-gradient(135deg, #010101 0%, #1a1a1a 100%);
}

.social-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.social-feed-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.social-feed-content {
  flex: 1;
  padding: 0;
  background: #FAFAFA;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 400px;
  position: relative;
}

.feed-placeholder {
  color: var(--color-gray-medium);
  text-align: center;
  font-style: italic;
}

/* Responsive styling for social media embeds */
.social-feed-content iframe,
.social-feed-content blockquote {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 400px;
}

/* Mobile responsive */
/* ===== TABLET RESPONSIVENESS (1024px and below) ===== */
@media (max-width: 1024px) {
  .social-feed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .social-feed-box:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .social-feed-box {
    min-height: 480px;
  }

  .social-feed-header {
    padding: 18px 20px;
  }

  .social-feed-header h3 {
    font-size: 17px;
  }

  .social-icon {
    width: 26px;
    height: 26px;
  }
}

/* ===== MOBILE RESPONSIVENESS (768px and below) ===== */
@media (max-width: 768px) {
  .social-feed-section {
    padding: 64px 0;
  }

  .social-feed-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .social-feed-box:last-child {
    grid-column: 1;
  }

  .social-feed-box {
    min-height: auto;
    border-radius: 10px;
  }

  .social-feed-box:hover {
    transform: translateY(-3px);
  }

  .social-feed-header {
    padding: 16px 20px;
  }

  .social-feed-header h3 {
    font-size: 16px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .social-feed-content {
    min-height: 300px;
  }

  /* Make clickable areas more touch-friendly */
  .social-feed-header-link,
  .post-link-wrapper {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
  .social-feed-section {
    padding: 48px 0;
  }

  .social-feed-grid {
    gap: 20px;
  }

  .social-feed-box {
    border-radius: 8px;
  }

  .social-feed-header {
    padding: 14px 16px;
    gap: 10px;
  }

  .social-feed-header h3 {
    font-size: 15px;
  }

  .social-icon {
    width: 22px;
    height: 22px;
  }

  .social-feed-content {
    min-height: 280px;
  }
}

/* ===================================
   CLIENT SHOWCASE — INFINITE MARQUEE
   =================================== */

.client-showcase {
  background-color: #f3f4f6;
  padding: 72px 0 110px;
  overflow: hidden;
}

/* Tighten the section-header spacing inside showcase */
.client-showcase-header {
  margin-bottom: 48px;
}

/* ── Outer wrapper: clips overflow and fades edges ── */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
}

/* Mask forces full re-composite on scroll — disable on mobile */
@media (max-width: 768px) {
  .marquee-wrapper {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ── Scrolling track ── */
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Fallback: CSS % animation before JS measures exact width */
.marquee-track.css-anim {
  animation: marquee-scroll 34s linear infinite;
  -webkit-animation: marquee-scroll 34s linear infinite;
}
/* JS-driven: exact pixel offset set via --half-w, runs on compositor thread */
@keyframes marquee-scroll-px {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--half-w)), 0, 0); }
}
.marquee-track.running {
  animation: marquee-scroll-px var(--marquee-dur, 34s) linear infinite;
  -webkit-animation: marquee-scroll-px var(--marquee-dur, 34s) linear infinite;
}
/* Desktop hover pause only */
@media (hover: hover) {
  .marquee-wrapper:hover .marquee-track.running,
  .marquee-wrapper:hover .marquee-track.css-anim {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
  }
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@-webkit-keyframes marquee-scroll {
  from { -webkit-transform: translate3d(0, 0, 0); }
  to   { -webkit-transform: translate3d(-50%, 0, 0); }
}

/* ── Individual logo items ── */
.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 72px;
}

.marquee-item img {
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  /* Default state: desaturated + slightly transparent */
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.45s ease, opacity 0.45s ease;
  display: block;
}

/* Hovered logo goes full colour */
.marquee-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Logos with solid black backgrounds: multiply makes black pixels
   blend into the light-grey section background */
.marquee-item img.logo-multiply {
  mix-blend-mode: multiply;
}

/* White/light logos on transparent bg: invert to show dark on light marquee */
.marquee-item img.logo-invert {
  filter: invert(1);
}

/* Logos with excessive canvas whitespace (wordmark fills only a thin center strip):
   cover zooms into the canvas center where the actual mark lives */
.marquee-item img.logo-zoom {
  width: 240px;
  height: 90px;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Logos with EXTREME canvas whitespace (logo is <15% of canvas):
   scale(4) zooms in on the center after the cover crop */
.marquee-item-clip {
  overflow: hidden;
  width: 240px;
  height: 90px;
}

.marquee-item img.logo-zoom-xl {
  width: 240px;
  height: 90px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(2);
  transform-origin: center;
}

/* Compact square logos that need more visual weight */
.marquee-item img.logo-large {
  height: 100px;
  max-width: none;
  width: auto;
}

/* ===== PARTNER LOGO GRID (Partners page) ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.partner-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Hidden until scroll-triggered stagger reveal */
  opacity: 0;
}

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

.partner-card.revealing {
  animation: partnerCardIn 0.5s ease forwards;
}

.partner-card.revealed {
  opacity: 1;
}

.partner-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-green);
}

.partner-card:hover::after {
  transform: scaleX(1);
}

.partner-card-dark {
  background: #1A1A1A;
  border-color: #333;
}

.partner-card-dark:hover {
  border-color: var(--color-green);
}

.partner-logo {
  max-height: 80px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.85;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

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

/* Canvas-whitespace logos: zoom to crop into the actual artwork */
.partner-logo-zoom {
  width: 200px;
  height: 80px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

/* Square/tall logos that benefit from a bit more height */
.partner-logo-large {
  max-height: 96px;
  max-width: 200px;
}

/* White/transparent logos — invert so they're visible on white card */
.partner-logo-invert {
  filter: invert(1) grayscale(40%);
  opacity: 0.85;
}
.partner-card:hover .partner-logo-invert {
  filter: invert(1) grayscale(0%);
  opacity: 1;
}

/* Logos with EXTREME canvas whitespace: scale(2) after cover crop */
.partner-logo-zoom-xl {
  width: 200px;
  height: 80px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: scale(2);
  transform-origin: center;
}

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

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


/* ===== LOGO WALL (Partners page) ===== */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
}

.logo-wall-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 44px;
  position: relative;
}

/* Thin vertical divider between logos in the same row */
.logo-wall-item + .logo-wall-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--color-gray-light);
}

.logo-wall-img {
  max-height: 64px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

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

.logo-wall-img-multiply {
  mix-blend-mode: multiply;
}

.logo-wall-img-zoom {
  width: 160px;
  height: 64px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.logo-wall-img-large {
  max-height: 80px;
  max-width: 180px;
}

/* White/light logos on transparent bg: invert so they're visible on light background */
.logo-wall-img-invert {
  filter: invert(1) grayscale(40%);
  opacity: 0.7;
}
.logo-wall-item:hover .logo-wall-img-invert {
  filter: invert(1) grayscale(0%);
  opacity: 1;
}

/* ===== PARTNER SPLIT — vertical ticker (Partners page) ===== */

.partner-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

/* Left side: text + stat */
.partner-split-text { }
.partner-split-text h2 { margin-bottom: 16px; }
.partner-split-text .large { color: var(--color-gray-medium, #555); }

.partner-split-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--color-gray-light);
}

.partner-split-num {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-navy);
}

.partner-split-label {
  font-size: 15px;
  color: var(--color-gray-medium, #555);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Right side: vertical scrolling columns */
.partner-vscroll-wrap {
  display: flex;
  gap: 16px;
  height: 520px;
  overflow: hidden;
  position: relative;
}

/* Top & bottom gradient fades */
.partner-vscroll-wrap::before,
.partner-vscroll-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}
.partner-vscroll-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, #FAFAFA 0%, transparent 100%);
}
.partner-vscroll-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, #FAFAFA 0%, transparent 100%);
}

.partner-vscroll-col {
  flex: 1;
  overflow: hidden;
}
.partner-vscroll-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* JS sets --half-h to exact px value before adding .running — eliminates % rounding glitch */
@keyframes pvScrollUp {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, calc(-1 * var(--half-h, 50%)), 0); }
}
@keyframes pvScrollDown {
  from { transform: translate3d(0, calc(-1 * var(--half-h, 50%)), 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.pv-up.running   { animation: pvScrollUp   var(--pv-speed, 30s) linear infinite; }
.pv-down.running { animation: pvScrollDown var(--pv-speed, 30s) linear infinite; }

/* Desktop hover pause via CSS — no JS listeners needed */
@media (hover: hover) {
  .partner-vscroll-col:has(.partner-vscroll-card:hover) .partner-vscroll-track {
    animation-play-state: paused;
  }
}

/* Touch devices: kill card hover effects entirely — scale/shadow repaint glitches the GPU layer */
@media (hover: none) {
  .partner-vscroll-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(0,0,0,0.07) !important;
  }
  .partner-vscroll-card:hover::after { transform: scaleX(0) !important; }
}

.partner-vscroll-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  flex-shrink: 0;
  min-height: 110px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.partner-vscroll-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.partner-vscroll-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
  border-color: transparent;
}
.partner-vscroll-card:hover::after { transform: scaleX(1); }

/* Dark card variant */
.partner-vscroll-card.pv-card-dark {
  background: #1a1a1a;
}

.pv-img {
  max-height: 52px;
  max-width: min(140px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(50%);
  opacity: 0.6;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.partner-vscroll-card:hover .pv-img {
  filter: grayscale(0%);
  opacity: 1;
}
.pv-img-large   { max-height: 64px; max-width: 160px; }
.pv-img-zoom    { width: 140px; height: 52px; max-width: none; max-height: none; object-fit: cover; object-position: center; }
.pv-img-multiply { mix-blend-mode: multiply; }
.pv-img-invert  { filter: invert(1) grayscale(50%); opacity: 0.6; }
.partner-vscroll-card:hover .pv-img-invert { filter: invert(1) grayscale(0%); opacity: 1; }

/* Tablet */
@media (max-width: 900px) {
  .partner-split { gap: 32px; }
  .partner-vscroll-wrap { height: 440px; }
}

/* Mobile */
@media (max-width: 640px) {
  .partner-split {
    gap: 14px;
    grid-template-columns: 0.85fr 1.15fr;
  }
  .partner-split-text h2 { font-size: 15px !important; margin-bottom: 8px; }
  .partner-split-text .large { font-size: 11px !important; line-height: 1.5; }
  .partner-split-num { font-size: 38px; }
  .partner-split-label { font-size: 10px; line-height: 1.4; }
  .partner-split-stat { margin-top: 16px; padding-top: 16px; gap: 10px; }
  .partner-vscroll-wrap { height: 360px; gap: 8px; }
  .partner-vscroll-card { min-height: 70px; padding: 10px 6px; }
  .pv-img { max-height: 30px; max-width: min(90px, 100%); }
  .pv-img-large { max-height: 38px; }
  .pv-img-zoom { width: 100%; height: 30px; max-width: 100%; }
}

/* Small mobile */
@media (max-width: 400px) {
  .partner-split { gap: 10px; }
  .partner-split-num { font-size: 32px; }
  .partner-vscroll-wrap { height: 300px; gap: 6px; }
  .partner-vscroll-card { min-height: 58px; padding: 8px 4px; }
  .pv-img { max-height: 24px; max-width: min(72px, 100%); }
  .pv-img-large { max-height: 30px; }
  .pv-img-zoom { height: 24px; }
}

/* ===== PARTNER MARQUEE — multi-row infinite scroll (Partners page) ===== */
.partner-logos-section { padding-bottom: 60px; }

.partner-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

/* Left & right edge fades — makes rows look infinite */
.partner-marquee-wrap::before,
.partner-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.partner-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #FAFAFA 0%, transparent 100%);
}
.partner-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #FAFAFA 0%, transparent 100%);
}

.partner-marquee-row {
  padding: 10px 0;
}

/* Pause row's track on hover so users can inspect a logo */
.partner-marquee-row:hover .partner-marquee-track {
  animation-play-state: paused;
}

.partner-marquee-track {
  display: flex;
  width: max-content;
}

@keyframes pmScrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pmScrollRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.pm-left  { animation: pmScrollLeft  var(--pm-speed, 30s) linear infinite; }
.pm-right { animation: pmScrollRight var(--pm-speed, 30s) linear infinite; }

.partner-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 44px;
  flex-shrink: 0;
}

.partner-marquee-img {
  max-height: 58px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(50%);
  opacity: 0.55;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.partner-marquee-item:hover .partner-marquee-img {
  filter: grayscale(0%);
  opacity: 1;
}

.pm-img-large {
  max-height: 74px;
  max-width: 180px;
}

/* Cover-crop for logos with heavy canvas whitespace */
.pm-img-zoom {
  width: 155px;
  height: 58px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.pm-img-multiply { mix-blend-mode: multiply; }

/* White/transparent logos — invert to dark */
.pm-img-invert {
  filter: invert(1) grayscale(50%);
  opacity: 0.55;
}
.partner-marquee-item:hover .pm-img-invert {
  filter: invert(1) grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .partner-marquee-wrap::before,
  .partner-marquee-wrap::after { width: 56px; }
  .partner-marquee-item { padding: 12px 22px; }
  .partner-marquee-img { max-height: 38px; max-width: 100px; }
  .pm-img-large { max-height: 48px; max-width: 120px; }
  .pm-img-zoom { width: 100px; height: 38px; }
}

.logo-wall-img-zoom-xl {
  width: 160px;
  height: 64px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: scale(2);
  transform-origin: center;
}

@media (max-width: 768px) {
  .logo-wall-item {
    padding: 24px 32px;
  }
  .logo-wall-img {
    max-height: 52px;
    max-width: 130px;
  }
}

/* ===== MOBILE RESPONSIVENESS ===== */

/* --- Pricing table: horizontal scroll on phones --- */
@media (max-width: 768px) {
  /* Wrap the .pricing-table to allow the gradient overlay */
  .pricing-table-wrapper {
    position: relative;
  }

  /* Right-edge fade to signal there's more content to scroll */
  .pricing-table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
    pointer-events: none;
    z-index: 2;
    border-radius: 0 12px 12px 0;
  }

  /* Hide the gradient once the user has scrolled to the end */
  .pricing-table-wrapper.scrolled-end::after {
    display: none;
  }

  /* .pricing-table is the <div> wrapper around the <table> */
  .pricing-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .pricing-table table {
    min-width: 540px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Local expertise stats panel: remove side borders when grid stacks to 1 col */
  .grid-3 > .text-center {
    border-left: none !important;
    border-right: none !important;
  }

  /* Social feed: single column */
  .social-feed-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Small mobile: 480px and below --- */
@media (max-width: 480px) {
  /* Tighter container edges */
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  /* Typography scale-down */
  h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  h3 {
    font-size: 18px;
  }

  /* Hero: keep hero feel but fit small screens */
  .hero {
    min-height: 340px;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  /* Partner grid: single column */
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .partner-card {
    padding: 24px 20px;
    min-height: 110px;
  }

  /* Review modal: tighter padding */
  .review-modal {
    padding: 32px 24px;
    margin: 16px;
    max-width: calc(100% - 32px);
  }

  /* Logo marquee: slightly smaller logos */
  .marquee-logo {
    max-height: 44px;
    max-width: 100px;
  }

  /* Buttons: slightly smaller on phones */
  .btn-primary,
  .btn-secondary {
    padding: 14px 24px;
    font-size: 14px;
  }

  /* CTA button group: stack vertically */
  .cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* --- Extra small: 360px and below --- */
@media (max-width: 360px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ===================================================================
   COMPREHENSIVE ENHANCEMENTS
   Responsive typography, spacing, visual polish
   =================================================================== */

/* ----- Typography: subheadline ------------------------------------ */
@media (max-width: 768px) {
  .subheadline {
    font-size: 18px;
  }
  .large {
    font-size: 17px;
  }
}
@media (max-width: 480px) {
  .subheadline {
    font-size: 16px;
  }
  .large {
    font-size: 16px;
  }
}

/* ----- Stat numbers: fluid scaling -------------------------------- */
@media (max-width: 1024px) {
  .stat-number {
    font-size: 40px;
  }
}
@media (max-width: 768px) {
  .stat-number {
    font-size: 32px;
  }
  .stats-banner {
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
  }
}
@media (max-width: 480px) {
  .stat-number {
    font-size: 26px;
  }
  .stats-banner {
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
  }
}

/* ----- Tier cards: pricing page ----------------------------------- */
@media (max-width: 768px) {
  .tier-card {
    padding: var(--space-xl);
  }
  .tier-card h3 {
    font-size: 22px;
  }
  .tier-price {
    font-size: 32px;
  }
}
@media (max-width: 480px) {
  .tier-card {
    padding: var(--space-lg);
  }
  .tier-price {
    font-size: 28px;
  }
}

/* ----- General card padding: mobile ------------------------------- */
@media (max-width: 768px) {
  .card {
    padding: var(--space-lg);
  }
  .challenge-card {
    padding: var(--space-lg);
  }
}
@media (max-width: 480px) {
  .card {
    padding: var(--space-md);
  }
  .challenge-card {
    padding: var(--space-md);
  }
}

/* ----- Card hover: polish ----------------------------------------- */
.card:hover {
  border-color: rgba(0, 51, 102, 0.2);
  transform: translateY(-2px);
}

/* ----- Logo wall: hide vertical dividers on mobile ---------------- */
@media (max-width: 768px) {
  .logo-wall-item + .logo-wall-item::before {
    display: none;
  }
  .logo-wall-item {
    padding: 20px 28px;
  }
  .logo-wall-img {
    max-height: 48px;
    max-width: 120px;
  }
}
@media (max-width: 480px) {
  .logo-wall-item {
    padding: 16px 20px;
    flex: 0 0 50%;
  }
  .logo-wall-img {
    max-height: 40px;
    max-width: 100px;
  }
}

/* ----- Marquee: scale down on mobile ------------------------------ */
@media (max-width: 768px) {
  .marquee-item {
    margin-right: 48px;
  }
  .marquee-item img {
    height: 52px;
  }
}
@media (max-width: 480px) {
  .marquee-item {
    margin-right: 32px;
  }
  .marquee-item img {
    height: 44px;
  }
}

/* ----- Pricing table: small phone --------------------------------- */
@media (max-width: 480px) {
  .pricing-table table {
    min-width: 460px;
  }
  .pricing-table th,
  .pricing-table td {
    padding: 10px 10px;
    font-size: 12px;
  }
  .pricing-table th {
    font-size: 13px;
  }
}

/* ----- Process steps: tablet intermediate ------------------------- */
@media (max-width: 1024px) {
  .process-step {
    grid-template-columns: 70px 1fr;
    gap: 24px;
  }
  .step-number {
    width: 66px;
    height: 66px;
  }
}

/* ----- Testimonial cards: polish ---------------------------------- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 51, 102, 0.2);
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-carousel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 52px; /* room for arrows */
}

.testimonial-carousel-track {
  position: relative;
}

/* Inactive slides: stacked behind, invisible */
.testimonial-carousel-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Active slide: in flow (sets height), visible */
.testimonial-carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Prev / Next buttons */
.t-carousel-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 0; /* hide HTML character — arrow drawn via ::before */
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-navy);
  z-index: 2;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.t-carousel-btn::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-navy);
  border-right: 2px solid var(--color-navy);
}
.t-carousel-prev::before { transform: translate(3px, 0) rotate(-135deg); }
.t-carousel-next::before { transform: translate(-3px, 0) rotate(45deg); }
.t-carousel-btn:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(calc(-50% - 2px));
}
.t-carousel-prev { left: 0; }
.t-carousel-next { right: 0; }

/* Navigation dots */
.t-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.t-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.t-carousel-dot.active {
  background: var(--color-navy);
  transform: scale(1.3);
}

/* ----- Accent line: consistent sizing ----------------------------- */
.accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-green);
  margin: 0 auto var(--space-md);
  border-radius: 2px;
}

/* ----- Buttons: refined hover ------------------------------------- */
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(141, 198, 63, 0.35);
}
.btn-secondary:hover {
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.15);
}

/* ----- Hero: ensure min padding on very small screens ------------- */
@media (max-width: 480px) {
  .hero {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .hero h1 {
    font-size: 26px;
  }
}

/* ----- Section headings: slight refinement ------------------------ */
.section .text-center .accent-line {
  margin-bottom: var(--space-md);
}

/* ----- Footer: mobile spacing ------------------------------------- */
@media (max-width: 480px) {
  .footer {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
  .footer-bottom {
    font-size: 13px;
    text-align: center;
  }
}

/* ----- Nav: refine mobile menu ------------------------------------ */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }
  .nav-menu {
    padding-top: 80px;
  }
}

/* ----- Consultation form: mobile polish --------------------------- */
@media (max-width: 480px) {
  .form-input {
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
  }
}

/* ----- Social feed section: tablet 3→2 col already handled,
         ensure heading scales on mobile ----------------------------- */
@media (max-width: 480px) {
  .social-feed-section .section-heading,
  .social-feed-section h2 {
    font-size: 22px;
  }
}

/* ----- Partner page stats panel: mobile --------------------------- */
@media (max-width: 480px) {
  .stats-banner .stat-number {
    font-size: 36px;
  }
}

/* ----- Table of contents / page anchors: offset for fixed nav ----- */
:target {
  scroll-margin-top: 80px;
}

/* ----- Pricing: horizontal tier rows ------------------------------ */
.plan-tier {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  padding: 40px 48px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
  position: relative;
}
.plan-tier:last-of-type {
  margin-bottom: 0;
}
.plan-tier:hover {
  box-shadow: var(--shadow-md);
}
.plan-tier-featured {
  border-color: var(--color-green);
  border-width: 2px;
}
.plan-tier-badge {
  position: absolute;
  top: -13px;
  right: 48px;
  background: var(--color-navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 20px;
}
.plan-tier-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.plan-tier-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-medium);
  display: block;
  margin-bottom: 6px;
}
.plan-tier-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 6px;
}
.plan-tier-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-green);
  margin: 0;
}
.plan-tier-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray-medium);
}
.plan-tier-cta {
  flex-shrink: 0;
  align-self: center;
  min-width: 140px;
  text-align: center;
}
.plan-tier-desc {
  font-size: 15px;
  color: var(--color-gray-dark);
  line-height: 1.65;
  margin: 0;
}
.plan-tier-divider {
  height: 1px;
  background: var(--color-gray-light);
  margin: 24px 0;
}
.plan-tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 40px;
}
.plan-tier-features li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gray-dark);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ptf-check {
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 13px;
}
.ptf-support {
  color: var(--color-navy);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 13px;
}
@media (max-width: 768px) {
  .plan-tier {
    padding: 32px 24px;
  }
  .plan-tier-badge {
    right: 24px;
  }
  .plan-tier-features {
    grid-template-columns: 1fr;
  }
  .plan-tier-header {
    flex-direction: column;
    gap: 16px;
  }
  .plan-tier-cta {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .plan-tier {
    padding: 28px 20px;
  }
  .plan-tier-name {
    font-size: 22px;
  }
}

/* ----- Pricing: included strip ------------------------------------ */
.included-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.included-item {
  background: var(--color-white);
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.included-icon {
  width: 28px;
  height: 28px;
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 3px;
}
.included-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 6px;
}
.included-item p {
  font-size: 14px;
  color: var(--color-gray-medium);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .included-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .included-item {
    padding: 24px 20px;
  }
}

/* ----- Pricing page: trust bar ------------------------------------ */
.pricing-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius);
  padding: 24px 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  flex: 1;
}
.pricing-trust-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-green);
  line-height: 1;
}
.pricing-trust-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  text-align: center;
  letter-spacing: 0.02em;
}
.pricing-trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .pricing-trust-bar {
    padding: 20px 16px;
    gap: 0;
  }
  .pricing-trust-item {
    padding: 0 16px;
  }
  .pricing-trust-number {
    font-size: 22px;
  }
  .pricing-trust-label {
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .pricing-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 20px;
    border-radius: var(--border-radius);
  }
  .pricing-trust-divider {
    display: none;
  }
  .pricing-trust-item {
    padding: 0;
  }
}

/* ----- Pricing cards ---------------------------------------------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 12px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}
.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border: 2px solid var(--color-navy);
  box-shadow: 0 8px 32px rgba(0,51,102,0.12);
}
.pricing-card.featured:hover {
  box-shadow: 0 16px 48px rgba(0,51,102,0.18);
}
.pricing-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: white;
  padding: 5px 22px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-card-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}
.pricing-card-price {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-green);
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-card-price-note {
  font-size: 13px;
  color: var(--color-gray-medium);
  margin-bottom: 20px;
}
.pricing-card-desc {
  font-size: 15px;
  color: var(--color-gray-dark);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-light);
}
.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}
.pricing-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--color-gray-dark);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  line-height: 1.5;
}
.pricing-card-features li:last-child {
  border-bottom: none;
}
.feat-check {
  color: var(--color-green);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width: 1024px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .pricing-card.featured {
    order: -1;
  }
}
@media (max-width: 480px) {
  .pricing-card {
    padding: 36px 24px;
  }
  .pricing-card-price {
    font-size: 34px;
  }
  .pricing-card-name {
    font-size: 20px;
  }
}

/* ----- All plans strip -------------------------------------------- */
.all-plans-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.all-plans-item {
  background: var(--color-white);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.2s ease;
}
.all-plans-item:hover {
  background: var(--color-off-white);
}
.all-plans-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}
.all-plans-item h4 {
  font-size: 16px;
  color: var(--color-navy);
  margin-bottom: 8px;
  font-weight: 600;
}
.all-plans-item p {
  font-size: 13px;
  color: var(--color-gray-medium);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .all-plans-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .all-plans-strip {
    grid-template-columns: 1fr;
  }
  .all-plans-item {
    padding: 24px 20px;
  }
}

/* ----- Before / After comparison ---------------------------------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.comparison-col {
  padding: 40px 36px;
}
.comparison-col-bad {
  background: #FFF8F8;
  border-right: 1px solid #FECACA;
}
.comparison-col-good {
  background: #F7FFF0;
}
.comparison-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid;
}
.comparison-col-bad .comparison-col-header {
  border-color: #FECACA;
}
.comparison-col-good .comparison-col-header {
  border-color: #BBF7A0;
}
.comparison-col-header h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.comparison-col-bad .comparison-col-header h4 {
  color: #C0392B;
}
.comparison-col-good .comparison-col-header h4 {
  color: #27AE60;
}
.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  line-height: 1.5;
}
.comparison-list li:last-child {
  border-bottom: none;
}
.icon-bad {
  color: #E74C3C;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}
.icon-good {
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}
@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .comparison-col-bad {
    border-right: none;
    border-bottom: 1px solid #FECACA;
  }
  .comparison-col {
    padding: 32px 24px;
  }
}
@media (max-width: 480px) {
  .comparison-col {
    padding: 24px 20px;
  }
  .comparison-list li {
    font-size: 14px;
  }
}

/* ----- FAQ items -------------------------------------------------- */
.faq-item {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.faq-item:last-child {
  margin-bottom: 0;
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 51, 102, 0.15);
}
.faq-item h3 {
  color: var(--color-navy);
  margin-bottom: 0;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item h3::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--color-navy);
}
.faq-item.open h3::after {
  content: '−';
}
.faq-item p {
  display: none;
  color: var(--color-gray-dark);
  margin: var(--space-md) 0 0;
  line-height: 1.7;
}
.faq-item.open p {
  display: block;
}
@media (max-width: 768px) {
  .faq-item {
    padding: var(--space-lg);
  }
  .faq-item h3 {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .faq-item {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  .faq-item h3 {
    font-size: 16px;
    margin-bottom: var(--space-sm);
  }
}

/* =====================================================================
   MOBILE OPTIMIZATIONS - Comprehensive responsive polish
   ===================================================================== */

/* -- Nav: shrink tagline on mobile, keep single line -- */
@media (max-width: 768px) {
  .logo-tagline {
    font-size: 5.5px;
    padding: 2px 5px;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* -- Nav: dim backdrop when mobile menu slides open -- */
body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  pointer-events: auto;
}

/* -- Nav toggle: smooth hamburger animation -- */
.nav-toggle span {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* -- Comparison panels on solution page -- */
.comparison-panel {
  padding: var(--space-2xl);
}

@media (max-width: 768px) {
  .comparison-panel {
    padding: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .comparison-panel {
    padding: var(--space-lg);
  }
}

/* -- Service area map container (about page) -- */
.service-area-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .service-area-container {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .service-area-container {
    height: 280px;
  }
}

/* -- Logo wall: 1 per row on very small screens -- */
@media (max-width: 360px) {
  .logo-wall-item {
    flex: 0 0 100%;
  }
}

/* -- Hero: center text when stacked on tablet/mobile -- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

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

  .hero-text .accent-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text .subheadline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text .btn {
    display: inline-block;
  }
}

/* -- Hero image: constrain height on tablet to avoid huge image -- */
@media (max-width: 1024px) {
  .hero-image img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
  }
}

/* -- Hero image: hide on small phones to keep focus on CTA -- */
@media (max-width: 480px) {
  .hero-image {
    display: none;
  }
}

/* -- Navy CTA large buttons: scale down on mobile -- */
@media (max-width: 768px) {
  .section-navy .btn-primary,
  .section-navy .btn-secondary {
    font-size: 16px;
    padding: 14px 28px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .section-navy .btn-primary,
  .section-navy .btn-secondary {
    font-size: 14px;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Navy CTA heading + text tighter on phones */
  .section-navy .container.text-center h2 {
    font-size: 22px;
  }

  .section-navy .container.text-center p {
    font-size: 15px;
  }
}

/* -- Tier cards: stack and full-width on mobile -- */
@media (max-width: 768px) {
  .grid-3 .tier-card {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* -- Process steps: tighter on small phones -- */
@media (max-width: 480px) {
  .step-content {
    padding: 14px 16px;
  }

  .step-connector {
    height: 32px;
  }
}

/* -- Challenges grid: 1 column on mobile -- */
@media (max-width: 480px) {
  .challenges-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* -- Stats banner: better on 2-col at 640px -- */
@media (max-width: 640px) {
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -- Hero (pricing page): image bar hides on small phones -- */
@media (max-width: 480px) {
  .hero-image-bar {
    display: none !important;
  }
}

/* -- Consultation form step indicator: compact on small phones -- */
@media (max-width: 480px) {
  #step-indicator > div:first-child,
  #step-indicator > div:last-child {
    font-size: 11px;
  }
}

/* -- Footer: stack content nicely -- */
@media (max-width: 480px) {
  .footer-about p {
    font-size: 14px;
  }

  .footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* -- About page: hero-content inner divs at tablet -- */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content[style*="direction: rtl"] {
    direction: ltr !important;
  }
}

/* -- Power stats panel (case-studies page) -- */
.power-stats-panel {
  background-color: var(--color-off-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  padding: var(--space-2xl) var(--space-3xl);
}

@media (max-width: 768px) {
  .power-stats-panel {
    padding: var(--space-xl) var(--space-xl);
  }
}

@media (max-width: 480px) {
  .power-stats-panel {
    padding: var(--space-lg) var(--space-md);
  }

  /* Scale down the large stat numbers inside */
  .power-stats-panel [style*="font-size: 44px"] {
    font-size: 32px !important;
  }
}

/* -- Consultation popup: smaller on mobile -- */
@media (max-width: 768px) {
  #consultation-popup {
    max-width: 260px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  #consultation-popup h3 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }

  #consultation-popup p {
    font-size: 13px !important;
    margin-bottom: 14px !important;
  }

  #consultation-popup [style*="width: 60px"] {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 10px !important;
  }

  #consultation-popup [style*="padding: 28px"] {
    padding: 20px 16px !important;
  }

  #book-consultation-cta {
    font-size: 14px !important;
    padding: 10px 16px !important;
  }

  /* Success overlay inner box: tighter padding on phones */
  #success-overlay > div {
    padding: 32px 24px !important;
  }
}

/* -- Prevent horizontal body scroll on all pages -- */
html {
  overflow-x: hidden;
}

/* Social card tagline: hidden on desktop, shown on mobile via media query */
.social-card-tagline {
  display: none;
}

/* ===== MOBILE PHONE LAYOUT (≤768px) ===== */
@media (max-width: 768px) {

  /* --- Hide sections not shown on mobile --- */
  .client-showcase-header {
    display: none !important;
  }

  /* --- Container: generous edge spacing --- */
  .container {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  /* --- NAV: shrink to 60px on mobile --- */
  .navbar {
    height: 60px !important;
  }

  .nav-spacer {
    height: 60px;
  }

  /* --- HERO: fills viewport below nav; content starts near top (no center gap) --- */
  .hero {
    min-height: calc(100svh - 60px);
    min-height: calc(100vh - 60px);
    padding-top: 28px;
    padding-bottom: 28px;
    display: flex;
    align-items: flex-start;
  }
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 20px;
    align-items: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text .accent-line {
    margin: 0 auto 12px;
    width: 36px;
  }
  .hero-text .subheadline {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
  .hero-text .btn {
    display: inline-block;
  }
  /* Show hero image — natural size (landscape 600×400), no cropping */
  .hero .hero-image {
    display: block !important;
  }
  .hero .hero-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    border-radius: var(--border-radius);
  }

  /* --- SECTIONS: full viewport so one section per scroll --- */
  #solution-overview {
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #solution-overview > .container {
    width: 100%;
  }

  /* --- SOLUTION OVERVIEW IMAGE: full natural height, no cropping --- */
  #solution-overview .hero-image {
    display: block !important;
  }
  #solution-overview .hero-image img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: unset;
    border-radius: var(--border-radius);
  }

  /* --- SOCIAL MEDIA: compact strip, no full-screen height --- */
  #social-media {
    min-height: 0 !important;
    display: block !important;
    padding: 28px 0 !important;
  }
  .social-feed-section {
    padding: 28px 0 !important;
  }
  /* Hide intro sub-line */
  #social-media .intro {
    display: none !important;
  }
  /* Tighten heading block */
  #social-media .text-center,
  #social-media .mb-3xl {
    margin-bottom: 16px !important;
  }
  /* 3 compact cards side by side */
  .social-feed-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }
  .social-feed-box:last-child {
    grid-column: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
  /* Show feed content on mobile — image only, caption hidden via JS */
  .social-feed-content {
    display: block !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* Make the image fill the card at a fixed height */
  .social-feed-content img,
  .social-feed-content video {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 0 0 10px 10px !important;
    display: block !important;
  }
  .social-feed-box {
    min-height: 0 !important;
    height: auto !important;
    border-radius: 10px !important;
  }
  .social-feed-header {
    padding: 12px 8px !important;
    flex-direction: column !important;
    gap: 5px !important;
    text-align: center !important;
    border-radius: 10px !important;
  }
  .social-feed-header h3 {
    font-size: 10px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }
  .social-icon {
    width: 20px !important;
    height: 20px !important;
  }
  /* Tagline: hidden on both desktop and mobile — icon + platform name only */
  .social-card-tagline {
    display: none !important;
  }

  /* --- CONSULTATION: compact form, no full-screen height --- */
  #consultation {
    min-height: 0 !important;
    display: block !important;
    padding: 32px 0 !important;
  }
  .compact-cta-section {
    padding: 32px 0 !important;
  }
  /* Section heading + subtext */
  #consultation h2 {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }
  #consultation p.text-white {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }
  /* Form card tighter padding */
  #consultation .container > div {
    padding: 14px !important;
    max-width: 100% !important;
  }
  /* Step indicator compact */
  #step-indicator {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }
  #step-1-circle,
  #step-2-circle {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
    margin-bottom: 3px !important;
  }
  /* Keep form fields in 2 columns on mobile (override 640px single-col rule) */
  .form-row-compact {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .form-row-compact .form-group {
    margin-bottom: 8px !important;
  }
  .form-group {
    margin-bottom: 8px !important;
  }
  .form-input {
    padding: 7px 9px !important;
    font-size: 13px !important;
  }
  .form-label {
    font-size: 11px !important;
    margin-bottom: 3px !important;
  }
  .consultation-form .form-group,
  .compact-consultation-form .form-group {
    margin-bottom: 8px !important;
  }
  /* Consent row tighter */
  #consent-checkbox + label,
  label[for="consent-checkbox"] {
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  /* --- TYPOGRAPHY: consistent scale, !important to beat specificity --- */
  h1,
  .hero-text h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }
  h2,
  .section-header h2,
  .section-heading {
    font-size: 19px !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
  }
  h3 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  h4 {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }
  p,
  .hero-text .subheadline,
  .subheadline {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }
  body {
    font-size: 14px;
  }

  /* --- SECTION PADDING --- */
  .section {
    padding: 48px 0 !important;
  }

  /* --- BUTTONS --- */
  .btn,
  .btn-primary,
  .btn-secondary {
    font-size: 14px !important;
    padding: 12px 22px !important;
  }

  /* --- ACCENT LINE --- */
  .accent-line {
    width: 36px;
    margin-bottom: 10px;
  }

  /* --- STAT / NUMBER elements --- */
  [style*="font-size: 44px"],
  [style*="font-size:44px"] {
    font-size: 28px !important;
  }
  [style*="font-size: 32px"],
  [style*="font-size:32px"] {
    font-size: 22px !important;
  }

  /* ---- ALL PAGES: hero padding override (beats inline style="padding-bottom:60px") --- */
  .hero {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  /* --- ALL PAGES: section inline padding overrides --- */
  /* Sections with hardcoded inline padding-top/bottom values */
  .section[style*="padding-top"],
  .section[style*="padding-bottom"] {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  /* --- ALL PAGES: stats banner stays 2-col on phones (2×2 grid) --- */
  .stats-banner {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    padding: 16px 8px !important;
    margin-top: 16px !important;
  }
  .stat-number {
    font-size: 22px !important;
  }
  .stat-label {
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  /* --- CASE STUDIES: logo wall tighter on phones --- */
  .logo-wall-item {
    padding: 14px 20px !important;
  }
  .logo-wall-img {
    max-height: 40px !important;
    max-width: 100px !important;
  }
  .logo-wall-img-zoom,
  .logo-wall-img-zoom-xl {
    width: 100px !important;
    height: 40px !important;
  }
  .logo-wall-img-large {
    max-height: 52px !important;
    max-width: 110px !important;
  }

  /* --- SOLUTION PAGE: tier card text tighter --- */
  .tier-card {
    padding: 20px !important;
  }
  .tier-price {
    font-size: 16px !important;
  }

  /* --- SOLUTION / PRICING: comparison list items tighter --- */
  .comparison-panel ul li {
    font-size: 13px !important;
    padding: 5px 0 !important;
  }

  /* --- ALL PAGES: faq items tighter --- */
  .faq-item {
    padding: 14px 0 !important;
  }
  .faq-item h3 {
    font-size: 15px !important;
  }

  /* ===== PARTNERS PAGE MOBILE ===== */

  /* Partners hero: text-only — don't force full viewport height */
  .partners-hero {
    min-height: 42vh !important;
    padding-top: 64px !important;
    padding-bottom: 64px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Logo wall: hide the vertical divider lines between items */
  .logo-wall-item + .logo-wall-item::before {
    display: none !important;
  }
  /* Same flex-wrap as desktop — natural 5-4-3 wrapping, just smaller */
  .logo-wall {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .logo-wall-item {
    flex: 0 0 auto !important;
    padding: 10px 8px !important;
  }
  /* Small enough that ~5 avg logos fit per row, varying widths create 5-4-3 */
  .logo-wall-img {
    filter: grayscale(100%);
    opacity: 0.45;
    max-height: 32px !important;
    max-width: 58px !important;
  }
  .logo-wall-img-zoom,
  .logo-wall-img-zoom-xl {
    width: 58px !important;
    height: 32px !important;
  }
  .logo-wall-img-large {
    max-height: 42px !important;
    max-width: 66px !important;
  }
  /* Touch tap colors the logo */
  .logo-wall-item:active .logo-wall-img,
  .logo-wall-item.tapped .logo-wall-img {
    filter: grayscale(0%);
    opacity: 1;
  }
  /* Touch tap for inverted logos */
  .logo-wall-item:active .logo-wall-img-invert,
  .logo-wall-item.tapped .logo-wall-img-invert {
    filter: invert(1) grayscale(0%);
    opacity: 1;
  }
  /* Pagination nav on mobile */
  .logo-wall-nav { margin-top: 20px; }

  /* Local expertise: reduce the large bottom margin on the text block */
  .power-stats-panel {
    margin-top: 16px !important;
  }

  /* Power stats grid: keep 3-col side by side on mobile */
  .power-stats-panel .grid-3 {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 4px !important;
  }
  .power-stats-panel .grid-3 > div {
    padding: 8px 4px !important;
  }
  /* "The power of Sculpture" label tighter */
  .power-stats-panel > p {
    margin-bottom: 12px !important;
    font-size: 10px !important;
  }

  /* ===== SOLUTION PAGE MOBILE ===== */

  /* 1. Comparison panels: keep side by side, compact */
  .comparison-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  /* Ensure the fade-in wrappers inside don't add a visible box */
  .comparison-grid > .fade-in {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .comparison-panel {
    padding: 10px !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
  .comparison-panel h3 {
    font-size: 12px !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  .comparison-panel ul li {
    font-size: 10px !important;
    padding: 4px 0 !important;
    gap: 4px !important;
    line-height: 1.3 !important;
    border-bottom: none !important;
  }

  /* 2. Feature cards: 2-col rows */
  .features-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .features-grid .card {
    padding: 12px !important;
  }
  .features-grid .card h4 {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
  .features-grid .card p {
    font-size: 11px !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
  }

  /* 3. Tier cards: 3-col side by side with feature lists visible */
  .tiers-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
  }
  .tiers-grid .tier-card {
    padding: 10px 6px !important;
    margin-bottom: 0 !important;
  }
  .tiers-grid .tier-card h3 {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }
  .tiers-grid .tier-card .tier-price {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }
  /* Hide only the short description paragraph, keep the feature list */
  .tiers-grid .tier-card > p:not(.tier-price) {
    display: none !important;
  }
  /* Feature list: small but readable */
  .tiers-grid .tier-card .tier-features {
    display: block !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
  }
  .tiers-grid .tier-card .tier-features li {
    font-size: 9px !important;
    padding: 2px 0 !important;
    line-height: 1.3 !important;
    border-bottom: none !important;
  }
  .tiers-grid .tier-card .btn {
    font-size: 10px !important;
    padding: 6px 8px !important;
    display: block !important;
    text-align: center !important;
  }
  /* Scale down the "popular" badge to fit narrow column */
  .tiers-grid .tier-card.popular::before {
    display: block !important;
    font-size: 7px !important;
    padding: 3px 6px !important;
    top: -10px !important;
    right: 4px !important;
    letter-spacing: 0 !important;
  }

  /* 4. Hide the navy "Ready to transform" CTA on solution page */
  .solution-cta {
    display: none !important;
  }

  /* ===== PRICING PAGE MOBILE ===== */

  /* 1. Hero: no full-screen height; extra top space before title */
  .pricing-hero {
    min-height: auto !important;
    padding-top: 52px !important;
    padding-bottom: 48px !important;
  }
  .hero-image-bar {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-top: 20px !important;
    max-width: 100% !important;
  }
  .hero-image-bar > div {
    flex: 1 !important;
    max-width: none !important;
  }
  .hero-image-bar img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }

  /* 2. Pricing table: subtle corner radius, fit without scroll, no gradient */
  .pricing-table {
    border-radius: 6px !important;
    margin-bottom: 16px !important;
    overflow-x: visible !important;
  }
  .pricing-table thead tr th:first-child {
    border-top-left-radius: 6px !important;
  }
  .pricing-table thead tr th:last-child {
    border-top-right-radius: 6px !important;
  }
  .pricing-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px !important;
  }
  .pricing-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px !important;
  }
  /* Remove the right-edge fade gradient */
  .pricing-table-wrapper::after {
    display: none !important;
  }
  .pricing-table table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
  }
  /* Features col wider, plan cols equal */
  .pricing-table th:first-child,
  .pricing-table td:first-child {
    width: 34% !important;
  }
  .pricing-table th:not(:first-child),
  .pricing-table td:not(:first-child) {
    width: 22% !important;
  }
  .pricing-table th,
  .pricing-table td {
    padding: 4px 2px !important;
    font-size: 8px !important;
    word-break: break-word !important;
    text-align: center !important;
  }
  .pricing-table td:first-child {
    text-align: left !important;
  }
  /* Header row: plan name only, hide price sub-line */
  .pricing-table th span[style*="font-weight: 400"] {
    display: none !important;
  }
  .pricing-table th {
    font-size: 9px !important;
    line-height: 1.3 !important;
    padding: 6px 2px !important;
  }
  /* Keep POPULAR badge but shrink it */
  .pricing-table th span[style*="background-color: #003366"] {
    font-size: 6px !important;
    padding: 2px 4px !important;
    margin-top: 2px !important;
  }
  /* Checkmarks / X marks */
  .pricing-table .checkmark,
  .pricing-table .crossmark {
    font-size: 11px !important;
  }
  /* Get Started buttons: tiny, no wrapping */
  .pricing-table .btn {
    font-size: 8px !important;
    padding: 5px 4px !important;
    white-space: nowrap !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* 3. What's Included: 3 boxes side by side, more square */
  .included-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
  }
  .included-grid .card {
    padding: 8px 6px !important;
  }
  .included-grid .card-icon {
    font-size: 16px !important;
    width: 28px !important;
    height: 28px !important;
    min-height: unset !important;
    margin-bottom: 4px !important;
    line-height: 28px !important;
  }
  .included-grid .card h4 {
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }
  .included-grid .card p {
    font-size: 9px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  /* 4. FAQ: accordion — tighter sizing on small phones */
  .faq-item {
    padding: 12px !important;
    margin-bottom: 6px !important;
  }
  .faq-item h3 {
    font-size: 14px !important;
  }
  .faq-item p {
    font-size: 13px !important;
    margin-top: 10px !important;
  }

  /* 5. Real cost of: keep 2 cards side by side */
  .pricing-value-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .pricing-value-grid .card {
    padding: 10px !important;
  }
  .pricing-value-grid .card h4 {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }
  .pricing-value-grid .card ul li {
    font-size: 10px !important;
    padding: 4px 0 !important;
    line-height: 1.3 !important;
  }
  /* ===== GETTING STARTED IS SIMPLE (mobile) ===== */
  .getting-started {
    padding: 40px 0 !important;
  }
  .getting-started .section-header {
    margin-bottom: 20px !important;
  }
  .process-timeline {
    margin-bottom: 24px !important;
  }
  .process-step {
    grid-template-columns: 52px 1fr !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
  }
  .step-number {
    width: 40px !important;
    height: 40px !important;
  }
  .step-number span {
    font-size: 15px !important;
  }
  .step-connector {
    height: 28px !important;
    margin-top: 6px !important;
  }
  .step-content {
    padding: 14px !important;
    border-radius: 8px !important;
  }
  .step-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
  }
  .step-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .step-content h3 {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }
  .step-content p {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }
  .step-details {
    gap: 4px !important;
  }
  .step-details li {
    font-size: 10px !important;
    padding: 3px 0 3px 16px !important;
  }

  /* ===== TESTIMONIALS (mobile) ===== */
  #testimonials {
    padding: 40px 0 !important;
  }
  #testimonials .mb-3xl {
    margin-bottom: 16px !important;
  }
  /* Carousel: hide arrows on mobile, dots only */
  .t-carousel-prev,
  .t-carousel-next {
    display: none !important;
  }
  .testimonial-carousel {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .testimonial-card {
    padding: 12px !important;
  }
  .testimonial-quote {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }
  .testimonial-quote-clamp {
    -webkit-line-clamp: 3 !important;
  }
  .testimonial-expand-btn {
    font-size: 10px !important;
    margin-bottom: 8px !important;
  }
  .testimonial-author {
    font-size: 12px !important;
  }
  .testimonial-business {
    font-size: 11px !important;
  }

  /* Add breathing room at the bottom of the "Most clients see ROI" section */
  .value-prop-section {
    padding-bottom: 100px !important;
  }

  /* ===== HERE'S WHAT YOU'LL GAIN (mobile) ===== */
  #benefits {
    padding: 40px 0 !important;
  }
  #benefits .mb-3xl {
    margin-bottom: 16px !important;
  }
  #benefits .grid-3 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  #benefits .card {
    padding: 14px 12px !important;
  }
  #benefits .card-icon {
    font-size: 16px !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    margin-bottom: 8px !important;
  }
  #benefits .card h4 {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
  #benefits .card p {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  /* ===== INVENTORY CHALLENGES (mobile) ===== */
  .inventory-challenges {
    padding: 40px 0 !important;
  }
  .inventory-challenges .section-header {
    margin-bottom: 24px !important;
  }
  .challenges-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 0 !important;
  }
  .challenge-card {
    padding: 14px 12px !important;
    border-radius: 8px !important;
  }
  .icon-wrapper {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
  }
  .challenge-icon {
    width: 18px !important;
    height: 18px !important;
  }
  .challenge-card h3 {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }
  .challenge-card p {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }
  .impact-stat {
    padding-top: 8px !important;
    gap: 4px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .stat-value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--color-green) !important;
    line-height: 1 !important;
  }
  .impact-stat .stat-label {
    font-size: 9px !important;
    color: var(--color-gray-medium) !important;
  }

  /* ===== ABOUT PAGE (mobile) ===== */

  /* Issue 2: reduce gap between "Experience You Can Trust" title and cards */
  .about-credentials .text-center {
    margin-bottom: 20px !important;
  }
  /* Issue 1: Experience You Can Trust — 2 square-ish cards side by side */
  .about-trust-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .about-trust-grid .card {
    padding: 10px 8px !important;
  }
  .about-trust-grid .card-icon {
    font-size: 16px !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    margin-bottom: 6px !important;
  }
  .about-trust-grid .card h4 {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }
  .about-trust-grid .card li {
    padding: 4px 0 !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  /* Reduce gap between "Power of Sculpture" title and cards */
  .about-sculpture .text-center {
    margin-bottom: 20px !important;
  }

  /* Issue 3: Power of Sculpture — 3 small stat cards, no overflow */
  .about-sculpture-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .about-sculpture-grid .card {
    padding: 8px 6px !important;
    overflow: hidden !important;
  }
  /* Override the inline font-size: 48px on the big stat numbers */
  .about-sculpture-grid .card > div:first-child {
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }
  .about-sculpture-grid .card h4 {
    font-size: 9px !important;
    margin-bottom: 3px !important;
  }
  .about-sculpture-grid .card p {
    font-size: 8px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  /* Issue 6: reduce gap between "Our Approach" title and cards */
  .about-approach .text-center {
    margin-bottom: 20px !important;
  }
  /* Issue 4 + 5: Our Approach — 3 cards, smaller emojis */
  .about-approach-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .about-approach-grid .card {
    padding: 10px 8px !important;
  }
  .about-approach-grid .card-icon {
    font-size: 12px !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    margin-bottom: 6px !important;
  }
  .about-approach-grid .card h4 {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }
  .about-approach-grid .card p {
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  /* 1. Why We Do What We Do — keep side-by-side but compact */
  .about-story-block {
    grid-template-columns: 100px 1fr !important;
    gap: 14px !important;
    align-items: flex-start !important;
  }
  .about-story-img {
    flex: 0 0 90px !important;
    width: 90px !important;
  }
  .about-story-img img {
    width: 90px !important;
    height: auto !important;
  }
  .about-story-block h3 {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }
  .about-story-block [style*="padding: 32px"] {
    padding: 10px !important;
  }
  .about-story-block p {
    font-size: 11px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
  }

  /* 2. "Today our expertise..." navy box */
  .about-mission-box {
    padding: 18px !important;
  }
  .about-mission-box p:first-child {
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }
  .about-mission-box p:last-child {
    font-size: 11px !important;
  }

  /* 3. "What this means for you" box */
  .about-means-box {
    padding: 18px !important;
  }
  .about-means-box h3 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }
  .about-means-box p {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  /* 4. Service area county boxes */
  .about-county-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .about-county-grid > div {
    padding: 10px !important;
  }
  .about-county-grid [style*="font-size: 16px"] {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
  .about-county-grid [style*="font-size: 13px"] {
    font-size: 10px !important;
  }

  /* 5. "We're not just consultants..." navy box */
  .about-neighbors-box {
    padding: 18px !important;
  }
  .about-neighbors-box p:first-child {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
  }
  .about-neighbors-box p:last-child {
    font-size: 12px !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* ===== PARTNERS PAGE MOBILE ===== */

  /* Hero: full viewport like all hero sections */
  .partners-hero h1 {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }
  .partners-hero .subheadline {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }

  /* Stats section ("The Numbers Don't Lie") */
  .stats-banner-heading {
    margin-bottom: 12px !important;
  }

  /* Local expertise: reduce the 64px inline bottom margin */
  .local-expertise-intro {
    margin-bottom: 24px !important;
  }
  .local-expertise-intro h2 {
    font-size: 17px !important;
  }
  .local-expertise-intro p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  /* Power stats panel numbers (30+/40+/5,000+) */
  .power-stats-panel [style*="font-size: 44px"] {
    font-size: 24px !important;
  }

  /* CTA section */
  .section-navy h2 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }
  .section-navy p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

}

