:root {
  /* Core Colors */
  --color-bg: #FFFFFF;
  --color-primary: #001F3F;
  /* Deep Navy */
  --color-action: #00CED1;
  /* Bright Turquoise */
  --color-action-hover: #00B4B4;
  /* Darker Turquoise */
  --color-accent: #FFD700;
  /* Premium Gold */
  --color-text-body: #333333;
  --color-text-light: #F5F5F5;
  --color-border-light: #E0E0E0;
  --color-bg-alt: #FAFAFA;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Shadows */
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  background-image: url('flavor_bg_pattern.png');
  background-repeat: repeat;
  background-size: 800px;
  background-blend-mode: soft-light;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

.text-white {
  color: white;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-action);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--color-action-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-action);
  color: var(--color-action);
}

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

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

/* Icon Sizing Classes */
.icon-inline {
  width: 1.5em;
  height: auto;
  vertical-align: -0.2em;
  margin-right: 0.35rem;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.icon-sm {
  width: 2.5rem;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

.icon-md {
  width: 3.5rem;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

.icon-xl {
  width: 5rem;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

.feature-icon-lg {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* Sections */
.section {
  padding: var(--spacing-lg) 0;
}

.section-lg {
  padding: var(--spacing-xl) 0;
}

/* Header */
header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  border-top: 3px solid var(--color-accent);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 3.5rem;
  width: auto;
  margin: -1rem 0;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-primary);
}

.nav-links a:hover {
  color: var(--color-action);
}

.nav-links a.active {
  color: var(--color-action);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

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

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links .btn {
    margin-top: var(--spacing-sm);
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background-image: url('flavor_accent_blob.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 540px;
}

.hero .btn {
  margin-top: var(--spacing-md);
}

/* Hero Image */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--color-accent);
}

/* Value Prop Image */
.value-prop-image {
  overflow: hidden;
  border-radius: var(--radius-md);
  border-bottom: 4px solid var(--color-accent);
}

.value-prop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.value-prop-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Collage (legacy) */
.hero-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--spacing-sm);
  min-height: 400px;
}

.hero-collage-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.hero-collage-item:hover {
  transform: scale(1.02);
}

.hero-collage-item.large {
  grid-column: span 2;
}

.hero-collage-icon {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
}

.hero-collage-item h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.hero-collage-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Card Styles */
.card {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-top: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card.accent-border {
  border-top-color: var(--color-accent);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  color: white;
  border-bottom: 3px solid var(--color-accent);
}

/* Pillar Cards */
.pillar-card {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
}

.pillar-card .card-icon {
  margin: 0 auto var(--spacing-md);
}

.pillar-card h3 {
  color: var(--color-primary);
}

.pillar-card p {
  color: #666;
  margin: 0;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-md);
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 3rem;
  position: relative;
  border-bottom: 1px solid var(--color-border-light);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.25em;
  height: 1.25em;
  background-image: url('icon_check.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Pricing Section */
.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.pricing-header {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-lg);
  text-align: center;
  border-top: 3px solid var(--color-accent);
}

.pricing-header h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.pricing-body {
  padding: var(--spacing-lg);
}

.pricing-body .btn {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-md);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  margin-top: var(--spacing-xs);
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

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

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

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

/* Service Page Styles */
.service-hero {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.service-hero h1 {
  color: white;
}

.service-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: var(--spacing-md) auto 0;
  font-size: 1.25rem;
}

.service-section {
  padding: var(--spacing-xl) 0;
}

.service-section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.service-content h2 {
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.service-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

.service-visual {
  border-radius: var(--radius-md);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 4px solid var(--color-accent);
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

/* Advanced Calculator Styles */
.calc-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.calc-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.calc-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.calc-hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.calc-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0;
}

.calc-section {
  background: var(--color-bg-alt);
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.calc-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .calc-dashboard {
    grid-template-columns: 1fr 1.2fr;
  }
}

.calc-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-card);
}

.panel-header {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.panel-header h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.panel-subtitle {
  font-size: 0.85rem;
  color: #888;
}

/* Service Type Toggle */
.toggle-group {
  display: flex;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

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

.toggle-btn.active {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Input Sections */
.input-section {
  margin-bottom: var(--spacing-md);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 0.75rem;
}

.input-group {
  margin-bottom: var(--spacing-sm);
}

/* Input Variants */
.input-with-prefix,
.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix,
.input-suffix {
  position: absolute;
  color: #888;
  font-weight: 600;
  pointer-events: none;
}

.input-prefix {
  left: 0.75rem;
}

.input-suffix {
  right: 1rem;
}

.form-group .input-with-prefix input {
  padding-left: 3.5rem !important;
  /* Increased padding */
}

.input-with-suffix input {
  padding-right: 4rem;
}

.input-hint {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.35rem;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #888;
  pointer-events: none;
}

/* Range Slider */
.range-container {
  padding: 0.5rem 0;
}

.range-container input[type="range"] {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--color-action), var(--color-action-hover));
  border-radius: 3px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.range-current {
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Calculate Button */
.calc-btn {
  width: 100%;
  margin-top: var(--spacing-sm);
}

/* Results Panel */
.calc-results-panel {
  border-top: 4px solid var(--color-accent);
}

/* Key Metric */
.key-metric {
  text-align: center;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.key-metric-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.key-metric-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: white;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 0.25rem;
  line-height: 1;
}

.key-metric-subtitle {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
}

/* Timeline Results */
.timeline-results {
  margin-bottom: var(--spacing-md);
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  gap: 0 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-marker {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
  border: 2px solid var(--color-accent);
}

.timeline-content {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-label {
  font-weight: 600;
  color: var(--color-primary);
}

.timeline-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.timeline-desc {
  font-size: 0.8rem;
  color: #888;
  width: 100%;
}

.timeline-bar {
  grid-column: 2;
  height: 6px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.timeline-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-action) 0%, var(--color-accent) 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Recurring Breakdown */
.recurring-breakdown {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.recurring-breakdown h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

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

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

.breakdown-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.breakdown-value {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Echo Effect Card */
.echo-effect-card {
  background: linear-gradient(135deg, #f0f8f8 0%, #e8f4f4 100%);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  border-left: 3px solid var(--color-accent);
}

.echo-effect-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.echo-effect-icon {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
}

.echo-effect-header h4 {
  margin: 0;
  font-size: 1rem;
}

.echo-effect-card p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
}

.echo-multipliers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.multiplier {
  text-align: center;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: var(--radius-sm);
}

.mult-value {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.mult-label {
  font-size: 0.7rem;
  color: #888;
}

.multiplier-arrow {
  color: var(--color-accent);
  font-weight: 700;
}

/* Calculator CTA */
.calc-cta {
  text-align: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border-light);
}

.calc-cta p {
  margin-bottom: 1rem;
  color: #666;
}

.calc-cta .btn {
  width: 100%;
}

/* Legacy Calculator Container */
.calc-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.form-group input[type="range"] {
  padding: 0;
  height: 8px;
  -webkit-appearance: none;
  background: var(--color-border-light);
  border-radius: 4px;
  border: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-action);
  border-radius: 50%;
  cursor: pointer;
}

.range-value {
  text-align: right;
  font-weight: 700;
  color: var(--color-action);
  margin-top: 0.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.result-card {
  background: var(--color-bg-alt);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  border-top: 3px solid var(--color-accent);
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-3px);
}

.result-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--color-primary);
  font-weight: 700;
  margin: 0.5rem 0;
}

.result-desc {
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 600px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.echo-info {
  background: linear-gradient(135deg, #f0f8f8 0%, #e8f4f4 100%);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}

.echo-info h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.echo-info ul {
  margin-top: var(--spacing-sm);
  padding-left: var(--spacing-md);
}

.echo-info li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

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

.contact-info {
  padding: var(--spacing-lg);
}

.contact-info h2 {
  margin-bottom: var(--spacing-md);
}

.contact-info h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin-top: var(--spacing-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  border-bottom: 2px solid var(--color-accent);
}

.contact-form-wrapper {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: white;
  padding: var(--spacing-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

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

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
  font-weight: 700;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

.fade-in-delay-4 {
  animation-delay: 0.4s;
}

/* Scroll Animation Classes (JS activated) */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile overlay for nav */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* ================================
   Service Detail Pages
   ================================ */

/* Service Detail Hero */
.service-detail-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.service-detail-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.service-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.service-detail-hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.service-detail-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Agitation Block */
.agitation-block {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.agitation-block h2 {
  margin-bottom: var(--spacing-lg);
}

.pain-points-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

.pain-point {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-top: 3px solid #dc3545;
}

.pain-icon {
  width: 50px;
  height: 50px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto var(--spacing-sm);
}

.pain-point h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pain-point p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* Solution Grid */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

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

.solution-item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.solution-check {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-action);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.solution-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.solution-item p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

.feature-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  border-top: 3px solid var(--color-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  border-bottom: 3px solid var(--color-accent);
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* Proof Stat Block */
.proof-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .proof-stat-block {
    flex-direction: row;
    text-align: left;
    gap: var(--spacing-lg);
  }
}

.proof-stat-value {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  border-bottom: 4px solid var(--color-accent);
  padding-bottom: 0.25rem;
  margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
  .proof-stat-value {
    margin-bottom: 0;
  }
}

.proof-stat-text h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.proof-stat-text p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

/* Service Hub Cards */
.service-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

.service-hub-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--color-accent);
}

.service-hub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-hub-card-content {
  padding: var(--spacing-md);
}

.service-hub-card-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-accent);
}

.service-hub-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.service-hub-card p {
  color: #666;
  margin-bottom: var(--spacing-sm);
  font-size: 0.95rem;
}

.service-hub-card .btn {
  margin-top: var(--spacing-sm);
}

/* ================================
   Echo System Page
   ================================ */

.echo-system-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.echo-system-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.echo-system-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.echo-system-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  line-height: 1.7;
}

/* Comparison Block */
.comparison-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  align-items: stretch;
}

@media (min-width: 992px) {
  .comparison-block {
    grid-template-columns: 1fr auto 1fr;
  }
}

.comparison-side {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.comparison-side h3 {
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.35rem;
}

.comparison-bad {
  border-top: 4px solid #dc3545;
}

.comparison-good {
  border-top: 4px solid var(--color-action);
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #999;
  padding: 0 var(--spacing-sm);
}

.comparison-diagram {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.diagram-item.disconnected {
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  margin: 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #888;
  border: 2px dashed #ddd;
}

.echo-cycle {
  position: relative;
  width: 180px;
  height: 180px;
}

.cycle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-action);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.cycle-item {
  position: absolute;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.cycle-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cycle-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.cycle-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cycle-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.comparison-list {
  list-style: none;
  padding: 0;
}

.comparison-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: #555;
}

.comparison-bad .comparison-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: 700;
}

.comparison-good .comparison-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-action);
  font-weight: 700;
}

/* Flywheel Section */
.flywheel-section {
  max-width: 1000px;
  margin: 0 auto;
}

.flywheel-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--spacing-md);
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .flywheel-step {
    grid-template-columns: 60px 1fr 300px;
  }
}

.flywheel-step-reverse {
  direction: rtl;
}

.flywheel-step-reverse>* {
  direction: ltr;
}

@media (min-width: 768px) {
  .flywheel-step-reverse {
    grid-template-columns: 300px 1fr 60px;
  }
}

.flywheel-step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  border: 3px solid var(--color-accent);
}

.flywheel-step-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.flywheel-step-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.flywheel-tag {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flywheel-step-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.flywheel-metrics {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

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

.flywheel-metric .metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.flywheel-metric .metric-label {
  font-size: 0.8rem;
  color: #888;
}

.flywheel-step-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
}

@media (min-width: 768px) {
  .flywheel-step-visual {
    display: block;
  }
}

.flywheel-step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.flywheel-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.connector-line {
  width: 3px;
  height: 30px;
  background: linear-gradient(to bottom, var(--color-action), var(--color-accent));
}

.connector-arrow {
  background: var(--color-bg-alt);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}

/* Compound Effect */
.compound-effect-block {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.compound-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.compound-header h2 {
  margin-bottom: 0.5rem;
}

.compound-header p {
  color: #666;
  margin: 0;
}

.compound-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

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

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

.compound-month-header {
  margin-bottom: var(--spacing-sm);
}

.month-label {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
}

.month-phase {
  font-size: 0.8rem;
  color: var(--color-action);
  font-weight: 600;
}

.compound-bar {
  background: linear-gradient(to top, var(--color-action), var(--color-accent));
  width: 60%;
  margin: 0 auto var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.compound-details {
  list-style: none;
  padding: 0;
  text-align: left;
}

.compound-details li {
  font-size: 0.8rem;
  color: #666;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.compound-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-action);
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

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

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

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

.industry-item {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.industry-item:hover {
  transform: translateY(-3px);
}

.industry-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.industry-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Why Grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

.why-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-accent);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.why-card p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

/* ================================
   Enhanced Service Detail Pages
   ================================ */

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats Bar */
.service-stats-bar {
  background: var(--color-primary);
  padding: var(--spacing-md) 0;
}

.stats-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  text-align: center;
}

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

.stat-inline-item {
  padding: var(--spacing-sm);
}

.stat-inline-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-inline-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Section Tags */
.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-tag-bad {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.section-tag-good {
  background: rgba(0, 206, 209, 0.1);
  color: var(--color-action);
}

/* Problem/Solution Grid */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 992px) {
  .problem-solution-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.problem-side,
.solution-side {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
}

.problem-side {
  background: #fef2f2;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.solution-side {
  background: #f0fdf4;
  border: 1px solid rgba(0, 206, 209, 0.2);
}

.problem-side h2,
.solution-side h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.problem-list,
.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.problem-item,
.solution-item-detailed {
  display: flex;
  gap: var(--spacing-sm);
}

.problem-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.solution-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--color-action);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.problem-item h4,
.solution-item-detailed h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.problem-item p,
.solution-item-detailed p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* Included Grid */
.included-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

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

.included-category {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-accent);
}

.included-category h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.included-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: #555;
  border-bottom: 1px solid var(--color-border-light);
}

.included-list li:last-child {
  border-bottom: none;
}

.included-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-action);
  font-weight: 700;
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

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

.process-step {
  text-align: center;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
}

.process-step-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-accent);
}

.process-step-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.process-step-content p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
}

/* Results Showcase */
.results-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.results-content {
  padding: var(--spacing-lg);
}

.results-content h2 {
  margin-bottom: var(--spacing-sm);
}

.results-content>p {
  color: #666;
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.results-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.result-metric {
  text-align: center;
  padding: var(--spacing-sm);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.result-metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.result-metric-label {
  font-size: 0.8rem;
  color: #666;
}

.results-visual {
  display: none;
}

@media (min-width: 768px) {
  .results-visual {
    display: block;
  }

  .results-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

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

.faq-item {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--color-accent);
}

.faq-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.faq-item p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

/* ================================
   Conversation Demo (AI Page)
   ================================ */

.conversation-demo {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  max-width: 800px;
  margin: 0 auto;
  border-top: 4px solid var(--color-action);
}

.conversation-exchange {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.conversation-line {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.conversation-line .speaker {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.conversation-line.caller .speaker {
  color: #666;
}

.conversation-line.ai .speaker {
  color: var(--color-action);
}

.conversation-line p {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
}

.conversation-line.caller p {
  background: var(--color-bg-alt);
  color: var(--color-text-body);
  border-left: 3px solid #ddd;
}

.conversation-line.ai p {
  background: linear-gradient(135deg, #f0fafa 0%, #e8f8f8 100%);
  color: var(--color-text-body);
  border-left: 3px solid var(--color-action);
}

/* ================================
   LSA Page Specific Styles
   ================================ */

/* Dispute Reasons Grid */
.dispute-reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

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

@media (min-width: 992px) {
  .dispute-reasons-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.dispute-reason {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  border-top: 3px solid var(--color-action);
}

.dispute-reason-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.dispute-reason h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.dispute-reason p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Dispute Example */
.dispute-example {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  max-width: 800px;
  margin: 0 auto;
  border-top: 4px solid var(--color-accent);
}

.dispute-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.dispute-stat {
  padding: var(--spacing-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.dispute-stat.highlight {
  background: linear-gradient(135deg, #e8f8e8 0%, #d4f0d4 100%);
  border: 2px solid var(--color-action);
}

.dispute-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dispute-stat.highlight .dispute-stat-value {
  color: #0a7c0a;
}

.dispute-stat-label {
  font-size: 0.85rem;
  color: #666;
}

.dispute-breakdown {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.dispute-breakdown h4 {
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.dispute-breakdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dispute-breakdown li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
  color: #555;
}

.dispute-breakdown li:last-child {
  border-bottom: none;
}

.dispute-note {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border-light);
}

/* ================================
   Review Page Specific Styles
   ================================ */

/* Review Flow */
.review-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .review-flow {
    flex-direction: row;
    align-items: stretch;
  }
}

.review-flow-step {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  flex: 1;
  border-top: 3px solid var(--color-action);
}

.review-flow-step.split {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  border-top: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

@media (min-width: 576px) {
  .review-flow-step.split {
    flex-direction: row;
  }
}

.review-flow-branch {
  flex: 1;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.review-flow-branch.happy {
  background: linear-gradient(135deg, #e8f8e8 0%, #d4f0d4 100%);
  border: 2px solid #28a745;
}

.review-flow-branch.unhappy {
  background: linear-gradient(135deg, #fff8e8 0%, #fff0d4 100%);
  border: 2px solid #ffc107;
}

.review-flow-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto var(--spacing-sm);
}

.review-flow-icon.good,
.review-flow-icon.bad {
  background: transparent;
  font-size: 2rem;
}

.review-flow-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.review-flow-content p,
.review-flow-branch p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.review-flow-branch h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.review-flow-arrow {
  font-size: 2rem;
  color: var(--color-action);
  font-weight: 700;
  display: none;
}

@media (min-width: 992px) {
  .review-flow-arrow {
    display: flex;
    align-items: center;
  }
}

/* Message Sequence */
.message-sequence {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.message-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message-timing {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.message-bubble {
  background: linear-gradient(135deg, #e8f4e8 0%, #d8efd8 100%);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-radius: 20px 20px 20px 4px;
  position: relative;
}

.message-bubble p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* Before/After Grid */
.before-after-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .before-after-grid {
    flex-direction: row;
    align-items: stretch;
  }
}

.before-after-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  flex: 1;
  text-align: center;
}

.before-after-card.before {
  border-top: 4px solid #dc3545;
}

.before-after-card.after {
  border-top: 4px solid var(--color-action);
}

.before-after-label {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

.before-after-card.before .before-after-label {
  background: #ffeaea;
  color: #dc3545;
}

.before-after-card.after .before-after-label {
  background: #e8f8f8;
  color: var(--color-action);
}

.review-preview {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
}

.review-preview .stars {
  font-size: 2rem;
  color: #ffc107;
  margin-bottom: 0.5rem;
}

.review-preview .rating {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.review-preview .count {
  font-size: 0.9rem;
  color: #666;
}

.before-after-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.before-after-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: #555;
}

.before-after-card.before .before-after-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: 700;
}

.before-after-card.after .before-after-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-action);
  font-weight: 700;
}

.before-after-arrow {
  font-size: 2.5rem;
  color: var(--color-action);
  font-weight: 700;
  display: none;
}

@media (min-width: 768px) {
  .before-after-arrow {
    display: flex;
    align-items: center;
  }
}

/* ================================
   Icon System (Visual Overhaul)
   ================================ */

/* Small inline icons */
.icon-sm {
  width: 1.2em;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Medium icons for cards/features */
.icon-md {
  width: 1.5em;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Large icons for feature cards */
.icon-lg {
  width: 2em;
  height: auto;
  display: block;
}

/* Icon inside solution circles */
.solution-icon .icon-sm,
.solution-icon img {
  width: 1rem;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Icon inside step icons */
.step-icon .icon-md,
.step-icon img {
  width: 1.5rem;
  height: auto;
}

/* Industry chip icons */
.industry-chip .icon-sm,
.industry-chip img {
  width: 1.25rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* Dispute reason icons */
.dispute-reason-icon .icon-md,
.dispute-reason-icon img {
  width: 2rem;
  height: auto;
}

/* Arrow icons */
.multiplier-arrow .icon-sm,
.step-arrow .icon-sm,
.review-flow-arrow .icon-sm,
.before-after-arrow .icon-sm {
  width: 1.5rem;
  height: auto;
  filter: brightness(0) saturate(100%) invert(55%) sepia(92%) saturate(1000%) hue-rotate(145deg);
}

/* Feature list check icons */
.feature-list li .icon-check,
.included-list li .icon-check {
  width: 0.9rem;
  height: auto;
  position: absolute;
  left: 0;
  top: 0.85rem;
  filter: brightness(0) saturate(100%) invert(55%) sepia(92%) saturate(1000%) hue-rotate(145deg);
}

/* Echo effect icon */
.echo-effect-icon .icon-sm {
  width: 1rem;
  height: auto;
}

/* ================================
   Flavor/Vibe Enhancements
   ================================ */

/* Background pattern for dark sections */
.hero,
.service-detail-hero,
.echo-system-hero,
.calc-hero {
  position: relative;
}

.hero::after,
.service-detail-hero::after,
.echo-system-hero::after,
.calc-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('flavor_bg_pattern.png');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Accent blob for decorative effect */
.flavor-blob {
  position: absolute;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  width: 400px;
  height: auto;
}

.flavor-blob-left {
  left: -100px;
  top: 20%;
}

.flavor-blob-right {
  right: -100px;
  bottom: 10%;
}

/* ================================
   Visual Fix: Better Icon Integration
   ================================ */

/* Core Icon Sizing - scales with text */
.icon-inline {
  width: 1.25em;
  height: auto;
  vertical-align: middle;
  margin-right: 0.25rem;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Large Feature Icons (for Pillars/Cards) */
.feature-icon-lg {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* Industry Chip - pseudo-element icon method */
.industry-chip {
  padding-left: 2.25rem;
  position: relative;
}

.industry-chip::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  background-image: url('icon_tools.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Remove img from industry chips when using pseudo */
.industry-chip img {
  display: none;
}

/* ================================
   Visual Fix: Flavor Backgrounds
   ================================ */

/* Subtle body texture */
body {
  background-image: url('flavor_bg_pattern.png');
  background-repeat: repeat;
  background-size: 800px;
  background-blend-mode: soft-light;
}

/* Accent blob behind hero */
.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background-image: url('flavor_accent_blob.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero content stays above blob */
.hero .container {
  position: relative;
  z-index: 1;
}

/* Accent blob for service detail heroes */
.service-detail-hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background-image: url('flavor_accent_blob.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.service-detail-hero .container {
  position: relative;
  z-index: 1;
}
/* Step Card Icons - Much Larger (Appended Fix) */
.step-icon img {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
  margin: 1rem 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Blue Square Separator */
.step-separator-square {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--color-action);
  transform: rotate(45deg);
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-arrow {
  display: none;
}

@media (min-width: 901px) {
  .step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    z-index: 5;
    width: 30px; 
    height: 30px;
  }

  .step-card:last-child .step-arrow {
    display: none;
  }
}
