/*
=================================================================
TECHOMES COMPONENT LIBRARY
Reusable UI Components for Modern Frontend
=================================================================
Author: AI Development Team
Date: August 14, 2025
Version: 1.0
=================================================================
*/

/* =================================================================
   NAVIGATION COMPONENTS
================================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-base);
}

/* OVERRIDE: Homepage navbar has NO background by default (HIGHEST SPECIFICITY) */
body.homepage .navbar:not(.scrolled) {
  background: none !important;
  background-color: rgba(0,0,0,0) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Also remove background from wrapper if needed */
.homepage .navbar:not(.scrolled) .navbar__wrapper {
  background: none !important;
  background-color: transparent !important;
}

/* Homepage specific - TRANSPARENT navbar initially (HIGHEST PRIORITY) */
.homepage .navbar:not(.scrolled),
html.homepage .navbar:not(.scrolled) {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Homepage brand and links - white by default on homepage */
.homepage .navbar .navbar__brand {
  color: var(--primary-white) !important;
}

.homepage .navbar .navbar__link {
  color: var(--primary-white) !important;
}

.homepage .navbar .navbar__logo--white {
  opacity: 1 !important;
}

.homepage .navbar .navbar__logo--dark {
  opacity: 0 !important;
}

.homepage .navbar .navbar__toggle-line {
  background: var(--primary-white) !important;
}

.homepage .navbar .btn-outline {
  background-color: transparent !important;
  border-color: var(--primary-white) !important;
  color: var(--primary-white) !important;
}

/* Scrolled state - white background (applies to all pages) */
.navbar.scrolled,
.homepage .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--gray-100) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* When scrolled, homepage should have dark elements */
.homepage .navbar.scrolled .navbar__brand {
  color: var(--gray-900) !important;
}

.homepage .navbar.scrolled .navbar__link {
  color: var(--gray-700) !important;
}

.homepage .navbar.scrolled .navbar__logo--white {
  opacity: 0 !important;
}

.homepage .navbar.scrolled .navbar__logo--dark {
  opacity: 1 !important;
}

.homepage .navbar.scrolled .navbar__toggle-line {
  background: var(--gray-900) !important;
}

.homepage .navbar.scrolled .btn-outline {
  background-color: transparent !important;
  border-color: var(--gray-300) !important;
  color: var(--gray-700) !important;
}

.navbar--fixed {
  position: fixed;
}

.navbar__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) 0;
  min-height: 80px;
  max-height: 80px;
  overflow: visible;
}

.navbar__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: var(--font-bold);
  font-size: var(--fs-xl);
  z-index: 1001;
  transition: color var(--transition-base);
}

/* Brand text color changes when scrolled (applies to homepage) */
.navbar.scrolled .navbar__brand,
.homepage .navbar.scrolled .navbar__brand {
  color: var(--gray-900);
}

.navbar__logo {
  height: 120px;
  width: auto;
  margin-right: var(--space-3);
  transition: opacity var(--transition-base);
  position: relative;
  z-index: 10;
}

/* Logo switching logic */
.navbar__logo--white {
  opacity: 0;
}

.navbar__logo--dark {
  opacity: 1;
  position: absolute;
}

/* Homepage - show white logo initially */
.homepage .navbar__logo--white {
  opacity: 1 !important;
}

.homepage .navbar__logo--dark {
  opacity: 0 !important;
  position: absolute;
}

/* When scrolled, show dark logo on homepage */
.homepage .navbar.scrolled .navbar__logo--white {
  opacity: 0;
}

.homepage .navbar.scrolled .navbar__logo--dark {
  opacity: 1;
}

.navbar__text {
  display: none;
}

@media (min-width: 768px) {
  .navbar__text {
    display: inline;
  }
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .navbar__nav {
    display: flex;
  }
}

.navbar__item {
  position: relative;
}

.navbar__link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--fs-base);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Homepage links should be white initially */
.homepage .navbar__link {
  color: var(--primary-white) !important;
}

/* Link colors when scrolled */
.navbar.scrolled .navbar__link,
.homepage .navbar.scrolled .navbar__link {
  color: var(--gray-700);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--primary-green);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width var(--transition-base);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__arrow {
  transition: transform var(--transition-fast);
}

.navbar__item--dropdown:hover .navbar__arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.navbar__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 1000;
  min-width: 320px;
  margin-top: var(--space-4);
}

.navbar__item--dropdown:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown-content {
  padding: var(--space-4);
}

.navbar__dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  margin-bottom: var(--space-2);
}

.navbar__dropdown-link:hover {
  background: var(--gray-50);
}

.navbar__dropdown-link:last-child {
  margin-bottom: 0;
}

.navbar__dropdown-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  flex-shrink: 0;
}

.navbar__dropdown-link h4 {
  font-size: var(--fs-base);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  margin: 0 0 var(--space-1);
}

.navbar__dropdown-link p {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  margin: 0;
  line-height: var(--lh-normal);
}

/* Actions */
.navbar__actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 992px) {
  .navbar__actions {
    display: flex;
  }
}

/* Navbar button styling - default for all pages */
.navbar .btn-outline {
  background-color: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.navbar .btn-outline:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-500);
  color: var(--gray-900);
}

/* Homepage navbar button styling - white on transparent */
.homepage .navbar .btn-outline {
  background-color: transparent !important;
  border-color: var(--primary-white) !important;
  color: var(--primary-white) !important;
}

.homepage .navbar .btn-outline:hover {
  background-color: var(--primary-white);
  border-color: var(--primary-white);
  color: var(--primary-green);
}

/* Button styles when navbar is scrolled (applies to homepage) */
.homepage .navbar.scrolled .btn-outline {
  background-color: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.homepage .navbar.scrolled .btn-outline:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-500);
  color: var(--gray-900);
}

/* Mobile Toggle */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

@media (min-width: 992px) {
  .navbar__toggle {
    display: none;
  }
}

.navbar__toggle-line {
  width: 100%;
  height: 3px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

/* Homepage mobile toggle should be white initially */
.homepage .navbar__toggle-line {
  background: var(--primary-white) !important;
}

/* Mobile toggle color when scrolled (applies to homepage) */
.homepage .navbar.scrolled .navbar__toggle-line {
  background: var(--gray-900);
}

.navbar__toggle-line:last-child {
  margin-bottom: 0;
}

.navbar__toggle.active .navbar__toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar__toggle.active .navbar__toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active .navbar__toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.navbar__mobile {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--primary-white);
  border-bottom: 1px solid var(--gray-100);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.navbar__mobile.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.navbar__mobile-content {
  padding: var(--space-6);
}

.navbar__mobile-link {
  display: block;
  padding: var(--space-4) 0;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--fs-lg);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition-fast);
}

.navbar__mobile-link:hover {
  color: var(--primary-green);
}

.navbar__mobile-link:last-of-type {
  border-bottom: none;
}

.navbar__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-100);
}

/* Main Wrapper */
.main-wrapper {
  padding-top: 80px;
}

/* =================================================================
   BUTTON COMPONENTS
================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: var(--font-medium);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-base);
  line-height: var(--lh-tight);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button variants */
.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--primary-white);
}

.btn-primary:hover {
  background-color: #007A35;
  border-color: #007A35;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: var(--primary-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-500);
  color: var(--gray-900);
}

/* Hero section button overrides */
.hero .btn-outline {
  background-color: transparent;
  border-color: var(--primary-white);
  color: var(--primary-white);
}

.hero .btn-outline:hover {
  background-color: var(--primary-white);
  border-color: var(--primary-white);
  color: var(--primary-green);
}

/* Hero section secondary button override */
.hero .btn-secondary {
  background-color: transparent;
  border-color: var(--primary-white);
  color: var(--primary-white);
}

.hero .btn-secondary:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--primary-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--primary-white);
  color: var(--primary-white);
}

.btn-outline-white:hover {
  background-color: var(--primary-white);
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background-color: var(--primary-white);
  border-color: var(--primary-white);
  color: var(--primary-green);
}

.btn-white:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-50);
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-dark {
  background-color: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--primary-white);
}

.btn-dark:hover {
  background-color: var(--gray-700);
  border-color: var(--gray-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  min-width: 100px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-lg);
  min-width: 160px;
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--fs-xl);
  min-width: 200px;
}

/* Button with icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-icon-only {
  min-width: auto;
  width: 48px;
  height: 48px;
  padding: 0;
}

/* Block button */
.btn-block {
  display: flex;
  width: 100%;
}

/* Button group */
.btn-group {
  display: inline-flex;
  vertical-align: middle;
}

.btn-group .btn {
  border-radius: 0;
  border-right-width: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  border-right-width: 1px;
}

/* =================================================================
   CARD COMPONENTS
================================================================= */

.card {
  background-color: var(--primary-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-100);
  background-color: var(--gray-50);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--gray-100);
  background-color: var(--gray-50);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-size: var(--fs-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.card-subtitle {
  font-size: var(--fs-base);
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

.card-text {
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
}

/* Card variants */
.card-featured {
  border: 2px solid var(--primary-green);
  position: relative;
}

.card-featured::before {
  content: 'Featured';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background-color: var(--primary-green);
  color: var(--primary-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
}

.card-service {
  text-align: center;
  padding: var(--space-8);
  border: none;
  background: linear-gradient(145deg, var(--primary-white) 0%, var(--gray-50) 100%);
}

.card-service:hover {
  background: linear-gradient(145deg, var(--gray-50) 0%, var(--primary-white) 100%);
}

.card-service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background-color: var(--primary-green);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  font-size: var(--fs-2xl);
}

/* =================================================================
   FORM COMPONENTS
================================================================= */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: var(--font-medium);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  font-size: var(--fs-sm);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-base);
  font-weight: var(--font-regular);
  line-height: var(--lh-normal);
  color: var(--gray-900);
  background-color: var(--primary-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 146, 63, 0.1);
}

.form-control::placeholder {
  color: var(--gray-500);
}

.form-control:disabled {
  background-color: var(--gray-50);
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form control sizes */
.form-control-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
}

.form-control-lg {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-lg);
}

/* Textarea */
.form-control.textarea {
  min-height: 120px;
  resize: vertical;
}

/* Select */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: var(--space-10);
  appearance: none;
}

/* Checkbox and Radio */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-right: var(--space-3);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-base);
  cursor: pointer;
}

.form-check-input[type="radio"] {
  border-radius: var(--radius-full);
}

.form-check-input:checked {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.form-check-label {
  font-size: var(--fs-base);
  color: var(--gray-700);
  cursor: pointer;
}

/* Form validation */
.form-control.is-valid {
  border-color: var(--success);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.valid-feedback {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--success);
}

.invalid-feedback {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--danger);
}

/* =================================================================
   ALERT COMPONENTS
================================================================= */

.alert {
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  position: relative;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: var(--success);
  color: #155724;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-color: var(--warning);
  color: #856404;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: var(--danger);
  color: #721c24;
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  border-color: var(--info);
  color: #0c5460;
}

.alert-dismissible {
  padding-right: var(--space-12);
}

.alert-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  background: none;
  border: none;
  font-size: var(--fs-lg);
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

/* =================================================================
   BADGE COMPONENTS
================================================================= */

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: var(--primary-green);
  color: var(--primary-white);
}

.badge-secondary {
  background-color: var(--gray-500);
  color: var(--primary-white);
}

.badge-success {
  background-color: var(--success);
  color: var(--primary-white);
}

.badge-warning {
  background-color: var(--warning);
  color: var(--gray-900);
}

.badge-danger {
  background-color: var(--danger);
  color: var(--primary-white);
}

.badge-info {
  background-color: var(--info);
  color: var(--primary-white);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid currentColor;
}

/* =================================================================
   LOADING COMPONENTS
================================================================= */

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-green);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 4px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

/* =================================================================
   MODAL COMPONENTS
================================================================= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-modal);
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.show {
  display: block;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-modal-backdrop);
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: var(--space-4);
  pointer-events: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--primary-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
}

.modal-title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--fs-2xl);
  cursor: pointer;
  color: var(--gray-500);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--gray-900);
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: var(--space-6);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--gray-200);
}

/* Modal sizes */
@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: var(--space-8) auto;
  }
  
  .modal-dialog-lg {
    max-width: 800px;
  }
  
  .modal-dialog-xl {
    max-width: 1140px;
  }
}

/* =================================================================
   BREADCRUMB COMPONENTS
================================================================= */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: var(--fs-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  display: inline-block;
  padding: 0 var(--space-2);
  color: var(--gray-500);
}

.breadcrumb-item a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: #007A35;
}

.breadcrumb-item.active {
  color: var(--gray-700);
}

/* =================================================================
   PAGINATION COMPONENTS
================================================================= */

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  gap: var(--space-1);
}

.page-item {
  display: block;
}

.page-link {
  position: relative;
  display: block;
  padding: var(--space-2) var(--space-3);
  margin-left: 0;
  line-height: 1.25;
  color: var(--primary-green);
  text-decoration: none;
  background-color: var(--primary-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
}

.page-link:hover {
  z-index: 2;
  color: var(--primary-white);
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.page-item.active .page-link {
  z-index: 3;
  color: var(--primary-white);
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.page-item.disabled .page-link {
  color: var(--gray-500);
  pointer-events: none;
  background-color: var(--gray-100);
  border-color: var(--gray-300);
}

/* =================================================================
   TAB COMPONENTS
================================================================= */

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  border-bottom: 1px solid var(--gray-200);
}

.nav-tabs .nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  margin-bottom: -1px;
  background: none;
  border: 1px solid transparent;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-tabs .nav-link:hover {
  border-color: var(--gray-200) var(--gray-200) var(--gray-200);
  isolation: isolate;
}

.nav-tabs .nav-link.active {
  color: var(--primary-green);
  background-color: var(--primary-white);
  border-color: var(--gray-200) var(--gray-200) var(--primary-white);
}

.tab-content {
  padding: var(--space-6) 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* =================================================================
   PAGE COMPONENTS
================================================================= */

/* Section Titles and Descriptions */
.section-title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  color: var(--gray-900);
  margin: 0 0 var(--space-6);
}

.section-title.h4 {
  font-size: var(--fs-2xl);
}

.section-description {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--gray-700);
  margin: 0 0 var(--space-8);
}

.page-hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  position: relative;
  overflow: hidden;
}

/* Enhanced Page Hero for About Page */
.bg-gradient-primary {
  background: transparent;
  position: relative;
}

.page-hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
  pointer-events: none;
}

.pattern-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, var(--primary-green) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s ease-in-out infinite;
}

.pattern-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(var(--primary-green) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-green) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.1;
  animation: float 25s ease-in-out infinite reverse;
}

.page-hero__badge {
  display: flex;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-outline-white {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.badge-outline-primary {
  background: rgba(0, 146, 63, 0.1);
  border: 1px solid rgba(0, 146, 63, 0.2);
  color: var(--primary-green);
  backdrop-filter: blur(10px);
}

.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-8);
  max-width: 500px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  display: block;
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-3xl);
  line-height: var(--lh-none);
  margin-bottom: var(--space-1);
}

.stat-item__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-accent {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white-50 { color: rgba(255,255,255,0.5); }
.text-white-70 { color: rgba(255,255,255,0.7); }
.text-white-80 { color: rgba(255,255,255,0.8); }

/* Responsive Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.breadcrumb__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: var(--primary-green) !important;
}

@media (max-width: 767px) {
  .page-hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-4);
  }
  
  .stat-item__number {
    font-size: var(--fs-2xl);
  }
  
  .stat-item__label {
    font-size: var(--fs-xs);
  }
  
  .page-hero__badge {
    margin-bottom: var(--space-4);
  }
  
  .badge {
    padding: var(--space-1) var(--space-3);
    font-size: var(--fs-xs);
  }
  
  .breadcrumb {
    gap: var(--space-1);
  }
  
  .breadcrumb__link svg {
    width: 14px;
    height: 14px;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* FAQ Section Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  cursor: pointer;
  user-select: none;
}

.faq-item__question {
  font-family: var(--font-secondary);
  font-weight: var(--font-semibold);
  font-size: var(--fs-lg);
  color: var(--gray-900);
  margin: 0;
  padding-right: var(--space-4);
  line-height: var(--lh-relaxed);
}

.faq-item__toggle {
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item__toggle:hover {
  background: var(--primary-green);
  color: var(--white);
}

.faq-item__toggle svg {
  transition: transform 0.3s ease;
}

.faq-item[data-open="true"] .faq-item__toggle svg {
  transform: rotate(180deg);
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item[data-open="true"] .faq-item__content {
  max-height: 200px;
}

.faq-item__content p {
  padding: 0 var(--space-6) var(--space-6);
  margin: 0;
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
}

/* Mobile responsive FAQ */
@media (max-width: 767px) {
  .faq-item__header {
    padding: var(--space-4);
  }
  
  .faq-item__question {
    font-size: var(--fs-base);
    padding-right: var(--space-2);
  }
  
  .faq-item__toggle {
    width: 36px;
    height: 36px;
  }
  
  .faq-item__content p {
    padding: 0 var(--space-4) var(--space-4);
    font-size: var(--fs-sm);
  }
  
  /* About Page Hero Mobile Responsive */
  .page-hero__title {
    font-size: var(--fs-4xl) !important;
    line-height: var(--lh-tight) !important;
    margin: 0 0 var(--space-4) !important;
  }
  
  .page-hero__description {
    display: none;
  }
  
  .page-hero__badge {
    margin-bottom: var(--space-4);
  }
  
  .badge {
    padding: var(--space-1) var(--space-3);
    font-size: var(--fs-xs);
  }
}

@media (max-width: 480px) {
  .page-hero__title {
    font-size: var(--fs-xl) !important;
  }
  
  .breadcrumb {
    gap: var(--space-1);
  }
  
  .breadcrumb__link svg {
    width: 14px;
    height: 14px;
  }
  
  /* Section titles mobile responsive */
  .section-title {
    font-size: var(--fs-2xl) !important;
  }
}

/* General mobile responsive for section titles */
@media (max-width: 767px) {
  .section-title {
    font-size: var(--fs-3xl) !important;
    margin: 0 0 var(--space-4);
  }
}

.page-hero__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  color: var(--gray-900);
  margin: 0 0 var(--space-6);
}

.page-hero__description {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--gray-700);
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.breadcrumb__link {
  color: var(--primary-green);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__separator {
  color: var(--gray-500);
  font-size: var(--fs-sm);
}

.breadcrumb__current {
  color: var(--gray-700);
  font-size: var(--fs-sm);
}

/* Content Block */
.content-block {
  padding: 0;
}

.image-block {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-block__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-block__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.image-block:hover .image-block__overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  cursor: pointer;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.image-block:hover .play-button {
  transform: scale(1);
}

/* Stats Inline */
.stats-inline {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.stat-inline {
  text-align: center;
}

.stat-inline__number {
  display: block;
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-3xl);
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-inline__label {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* MVV Cards (Mission, Vision, Values) */
.mvv-card {
  background: var(--primary-white);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.mvv-card__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--primary-white);
  flex-shrink: 0;
}

.mvv-card__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-2xl);
  color: var(--gray-900);
  margin: 0 0 var(--space-4);
}

.mvv-card__description {
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin: 0;
  flex-grow: 1;
}

/* Value Cards */
.value-card {
  background: var(--primary-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.value-card__icon {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.value-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, rgba(0, 122, 53, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.value-card__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-xl);
  color: var(--gray-900);
  margin: var(--space-6) 0 var(--space-3);
  padding: 0 var(--space-6);
}

.value-card__description {
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin: 0;
  padding: 0 var(--space-6) var(--space-6);
}

/* Team Cards */
.team-card {
  background: var(--primary-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-card__image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.team-card:hover .team-card__overlay {
  opacity: 1;
}

.team-card__social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--primary-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-green);
  color: var(--primary-white);
  transform: translateY(-2px);
}

.team-card__content {
  padding: var(--space-6);
  text-align: center;
}

.team-card__name {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-xl);
  color: var(--gray-900);
  margin: 0 0 var(--space-2);
}

.team-card__role {
  font-size: var(--fs-base);
  color: var(--primary-green);
  font-weight: var(--font-medium);
  margin: 0 0 var(--space-3);
}

.team-card__bio {
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin: 0;
  font-size: var(--fs-sm);
}

/* Achievement Cards */
.achievement-card {
  background: var(--primary-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

.achievement-card__number {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-5xl);
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.achievement-card__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-xl);
  color: var(--gray-900);
  margin: 0 0 var(--space-3);
}

.achievement-card__description {
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin: 0;
  font-size: var(--fs-sm);
  flex-grow: 1;
}

/* Service Cards */
.service-card {
  background: var(--primary-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover .service-card__image::before {
  opacity: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 146, 63, 0.45) 0%,
    rgba(0, 146, 63, 0.25) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
  filter: brightness(1.2) saturate(1.3);
}

.service-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 146, 63, 0.1) 0%, rgba(0, 146, 63, 0.05) 100%);
}

.service-card__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 146, 63, 0.3) 0%,
    rgba(0, 146, 63, 0.15) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity var(--transition-smooth);
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) saturate(1.2);
  transition: all var(--transition-smooth);
}

.service-card__icon {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 60px;
  height: 60px;
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--primary-green);
  z-index: 2;
}

.service-card__content {
  padding: var(--space-8);
}

.service-card__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-xl);
  color: var(--gray-900);
  margin: 0 0 var(--space-4);
}

.service-card__description {
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--space-6);
}

.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
}

.service-card__features li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--gray-700);
  font-size: var(--fs-sm);
}

.service-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: var(--font-bold);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-green);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.service-card__link:hover {
  gap: var(--space-3);
  color: #007A35;
}

/* Feature Cards */
.feature-card {
  background: var(--primary-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

.feature-card__icon {
  margin: 0 auto var(--space-6);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  flex-shrink: 0;
}

.feature-card__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-xl);
  color: var(--gray-900);
  margin: 0 0 var(--space-4);
}

.feature-card__description {
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin: 0;
  flex-grow: 1;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
  position: relative;
  overflow: hidden;
}

.cta__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 146, 63, 0.9) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.cta__content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cta__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-6);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
}

.cta__description {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--space-8);
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.cta__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Partners Section */
.partners-carousel {
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.partners-track {
  display: flex;
  gap: var(--space-12);
  animation: scroll 30s linear infinite;
}

.partner-logo {
  flex-shrink: 0;
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.partner-logo:hover {
  opacity: 1;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-150px * 5 - var(--space-12) * 5));
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Mobile responsive hero section */
@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-8) 0;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
    padding: var(--space-6) 0;
  }
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 146, 63, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Mobile responsive hero content */
@media (max-width: 767px) {
  .hero__content {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 0 var(--space-3);
  }
}

.hero__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-6xl);
  line-height: var(--lh-tight);
  color: var(--primary-white);
  margin: 0 0 var(--space-6);
}

/* Mobile responsive hero title */
@media (max-width: 767px) {
  .hero__title {
    font-size: var(--fs-4xl);
    line-height: var(--lh-tight);
    margin: 0 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--fs-3xl);
  }
}

.hero__description {
  font-size: var(--fs-xl);
  line-height: var(--lh-relaxed);
  color: var(--primary-white);
  opacity: 0.9;
  margin: 0 auto var(--space-10);
  max-width: 600px;
}

/* Mobile responsive hero description */
@media (max-width: 767px) {
  .hero__description {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__description {
    display: none;
  }
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
  justify-content: center;
}

/* Mobile responsive hero actions */
@media (max-width: 767px) {
  .hero__actions {
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-direction: column;
    align-items: center;
  }
  
  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
  justify-content: center;
}

/* Mobile responsive hero stats */
@media (max-width: 767px) {
  .hero__stats {
    gap: var(--space-6);
    margin-top: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero__stats {
    gap: var(--space-4);
    flex-direction: column;
    align-items: center;
  }
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-3xl);
  color: var(--primary-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* Mobile responsive stat numbers */
@media (max-width: 767px) {
  .stat__number {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-1);
  }
}

@media (max-width: 480px) {
  .stat__number {
    font-size: var(--fs-xl);
  }
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--primary-white);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile responsive stat labels */
@media (max-width: 767px) {
  .stat__label {
    font-size: var(--fs-xs);
  }
}

/* Testimonials */
.testimonials-carousel {
  position: relative;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial {
  background: var(--primary-white);
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial__quote {
  color: var(--primary-green);
  margin-bottom: var(--space-6);
}

.testimonial__text {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--gray-700);
  margin: 0 0 var(--space-8);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.testimonial__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-green);
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__info {
  text-align: left;
}

.testimonial__name {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-lg);
  color: var(--gray-900);
  margin: 0 0 var(--space-1);
}

.testimonial__title {
  font-size: var(--fs-sm);
  color: var(--primary-green);
  margin: 0;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.testimonial-nav-btn {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-nav-btn.active,
.testimonial-nav-btn:hover {
  background: var(--primary-green);
  transform: scale(1.2);
}

/* =================================================================
   UTILITY ANIMATIONS
================================================================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Hover animations */
.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ========================================
   HOMEPAGE NAVBAR OVERRIDES - CRITICAL
   ======================================== */

/* Force transparent header on homepage at top of page (NO scrolled class) */
.homepage .navbar:not(.scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Force white elements on homepage when transparent (at top) */
.homepage .navbar:not(.scrolled) .navbar__brand {
  color: var(--primary-white) !important;
}

.homepage .navbar:not(.scrolled) .navbar__link {
  color: var(--primary-white) !important;
}

.homepage .navbar:not(.scrolled) .navbar__logo--white {
  opacity: 1 !important;
}

.homepage .navbar:not(.scrolled) .navbar__logo--dark {
  opacity: 0 !important;
}

.homepage .navbar:not(.scrolled) .navbar__toggle-line {
  background: var(--primary-white) !important;
}

.homepage .navbar:not(.scrolled) .btn-outline {
  background-color: transparent !important;
  border-color: var(--primary-white) !important;
  color: var(--primary-white) !important;
}

/* Force white background when scrolled down (HAS scrolled class) */
.homepage .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--gray-100) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Force dark elements when scrolled down */
.homepage .navbar.scrolled .navbar__brand {
  color: var(--gray-900) !important;
}

.homepage .navbar.scrolled .navbar__link {
  color: var(--gray-700) !important;
}

.homepage .navbar.scrolled .navbar__logo--white {
  opacity: 0 !important;
}

.homepage .navbar.scrolled .navbar__logo--dark {
  opacity: 1 !important;
}

.homepage .navbar.scrolled .navbar__toggle-line {
  background: var(--gray-900) !important;
}

.homepage .navbar.scrolled .btn-outline {
  background-color: transparent !important;
  border-color: var(--gray-300) !important;
  color: var(--gray-700) !important;
}

/* =================================================================
   SERVICE AND SOLUTION PAGE COMPONENTS
================================================================= */

/* Service Detail Cards */
.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-8);
}

.service-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-detail-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8);
  border-bottom: 1px solid var(--gray-100);
}

.service-detail-card__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.service-detail-card__meta {
  flex: 1;
}

.service-detail-card__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-xl);
  color: var(--gray-900);
  margin: 0 0 var(--space-1);
  line-height: var(--lh-tight);
}

.service-detail-card__subtitle {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-medium);
}

.service-detail-card__content {
  padding: var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-detail-card__description {
  font-size: var(--fs-base);
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--space-6);
}

.service-detail-card__features {
  margin-bottom: var(--space-6);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--gray-700);
}

.feature-item svg {
  color: var(--primary-green);
  flex-shrink: 0;
}

.service-detail-card__stats {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-100);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-2xl);
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-medium);
}

/* Service Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: var(--fs-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.comparison-table th {
  background: var(--gray-50);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  color: var(--gray-700);
  vertical-align: middle;
}

.comparison-table svg {
  color: var(--primary-green);
}

/* Solution Cards */
.solution-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.solution-card__header {
  position: relative;
}

.solution-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.solution-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.solution-card:hover .solution-card__image img {
  transform: scale(1.05);
}

.solution-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 146, 63, 0.8) 0%, rgba(0, 122, 53, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover .solution-card__overlay {
  opacity: 1;
}

.solution-card__icon {
  color: var(--white);
}

.solution-card__content {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-100);
}

.solution-card__title {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-xl);
  color: var(--gray-900);
  margin: 0 0 var(--space-2);
  line-height: var(--lh-tight);
}

.solution-card__subtitle {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-medium);
}

.solution-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-card__description {
  font-size: var(--fs-base);
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--space-6);
}

.solution-card__features {
  margin-bottom: var(--space-6);
}

.solution-card__features h4 {
  font-size: var(--fs-sm);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.solution-card__features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-card__features li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--gray-700);
}

.solution-card__features li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary-green);
  border-radius: 50%;
}

.solution-card__stats {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.solution-card__cta {
  margin-top: auto;
}

/* Solution Comparison Grid */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 120px 140px;
  min-width: 800px;
  background: var(--white);
}

.comparison-header {
  display: contents;
}

.comparison-row {
  display: contents;
}

.comparison-cell {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  font-size: var(--fs-sm);
  color: var(--gray-700);
}

.comparison-cell:last-child {
  border-right: none;
}

.comparison-cell--header {
  background: var(--gray-50);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-cell--property {
  background: var(--gray-25);
  font-weight: var(--font-medium);
}

.roi-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--primary-green);
  color: var(--white);
  border-radius: var(--radius-base);
  font-size: var(--fs-xs);
  font-weight: var(--font-medium);
}

/* ROI Calculator */
.roi-calculator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: var(--space-10);
}

.roi-form .form-group {
  margin-bottom: var(--space-6);
}

.roi-results {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 2px solid var(--gray-100);
}

.roi-results__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.roi-results__header h3 {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-2xl);
  color: var(--gray-900);
  margin: 0;
}

.roi-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.roi-metric {
  text-align: center;
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.roi-metric__label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-medium);
}

.roi-metric__value {
  display: block;
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  font-size: var(--fs-3xl);
  color: var(--primary-green);
  line-height: 1;
}

.roi-cta {
  text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
  .service-detail-card__header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-6);
  }
  
  .service-detail-card__icon {
    width: 60px;
    height: 60px;
  }
  
  .service-detail-card__title {
    font-size: var(--fs-lg);
  }
  
  .solution-card__image {
    height: 200px;
  }
  
  .comparison-table-wrapper,
  .comparison-wrapper {
    margin: 0 -20px;
  }
  
  .roi-calculator-card {
    padding: var(--space-6);
  }
  
  .roi-metrics {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .comparison-grid {
    grid-template-columns: 160px 1fr 100px 120px;
    font-size: var(--fs-xs);
  }
  
  .comparison-cell {
    padding: var(--space-2);
  }
}

/* =================================================================
   PHASE 3 PAGE COMPONENTS - Demo, Contact, Case Studies
================================================================= */

/* Demo Page Styles */
.demo-feature-list {
  padding: 0;
  margin: 0;
}

.demo-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.demo-feature:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.demo-feature__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.demo-feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.demo-feature__content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.demo-feature__content p {
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

/* Demo Video Container */
.demo-video-container,
.demo-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.demo-video-placeholder {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-image-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 16px;
}

.demo-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.demo-image-wrapper:hover .demo-preview-image {
  transform: scale(1.05);
}

.demo-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  border-radius: 0 0 16px 16px;
}

.demo-image-content h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.demo-image-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.875rem;
}

.demo-video-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.demo-video-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.demo-video-icon {
  margin-bottom: 2rem;
}

.demo-video-icon svg {
  stroke: white;
  opacity: 0.8;
}

/* Demo Request Form */
.demo-request-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.demo-request-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.demo-request-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0;
}

/* Multi-step Form */
.form-steps {
  position: relative;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 1rem;
}

.form-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
}

.form-step-actions .btn + .btn {
  margin-left: 1rem;
}

/* Progress Indicator */
.form-progress {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
}

.progress-bar {
  background: var(--gray-100);
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.progress-fill {
  background: var(--gradient-primary);
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 33.33%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.progress-step.active {
  background: var(--primary-500);
  color: white;
}

/* Contact Page Styles */
.contact-option-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  height: 100%;
}

.contact-option-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.contact-option-card__icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-option-card__icon svg {
  stroke: white;
}

.contact-option-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.contact-option-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.contact-details {
  text-align: left;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary-600);
  text-decoration: none;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all var(--transition-base);
}

.contact-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.support-hours {
  color: var(--gray-500);
  font-size: 0.875rem;
  padding: 0.75rem;
}

/* Contact Form Card */
.contact-form-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.contact-form-header p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Contact Info Card */
.contact-info-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-600);
}

.contact-info-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.contact-info-content p {
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

.contact-info-content a {
  color: var(--primary-600);
  text-decoration: none;
}

.contact-info-content a:hover {
  color: var(--primary-700);
}

/* Quick Actions Card */
.quick-actions-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quick-actions-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.quick-actions-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.quick-action-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all var(--transition-base);
  margin-bottom: 0.5rem;
}

.quick-action-item:hover {
  background: var(--gray-50);
  color: var(--primary-600);
  transform: translateX(4px);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.quick-action-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-600);
}

.quick-action-content h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.quick-action-content p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  flex: 1;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-green);
  transition: all var(--transition-base);
  width: 24px;
  text-align: center;
}

.faq-item.active .faq-toggle {
  color: var(--primary-green);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Map Section */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
  background: var(--gray-100);
  padding: 4rem 2rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Google Maps iframe wrapper */
.google-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.google-map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 12px;
  display: block;
}

.map-content svg {
  stroke: var(--gray-400);
  margin-bottom: 1rem;
}

.map-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.map-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Case Studies Page Styles */
.metric-card {
  background: var(--primary-green);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  height: 100%;
  color: white;
}

.metric-card:hover {
  box-shadow: 0 8px 40px rgba(0, 146, 63, 0.3);
  transform: translateY(-4px);
}

.metric-card__icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.metric-card__icon svg {
  stroke: white;
  color: white;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}
.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.metric-growth {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Featured Case Study */
.case-study-featured {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.case-study-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.case-study-type,
.case-study-location {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.case-study-type {
  background: var(--primary-100);
  color: var(--primary-700);
}

.case-study-location {
  background: var(--gray-100);
  color: var(--gray-700);
}

.case-study-featured h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.case-study-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.case-study-results {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.result-item {
  text-align: center;
}

.result-item h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-before {
  color: var(--gray-500);
  font-weight: 500;
}

.result-item svg {
  margin: 0 0.5rem;
  stroke: var(--primary-500);
}

.result-after {
  color: var(--success-600);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Case Study Visual */
.case-study-visual {
  position: relative;
}

.case-study-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.case-study-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.case-study-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-base);
}

.case-study-image:hover .case-study-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.play-button:hover {
  background: white;
  transform: scale(1.1);
}

.play-button svg {
  stroke: var(--primary-600);
  margin-left: 4px;
}

/* Case Study Cards */
.case-study-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.case-study-card__header {
  position: relative;
}

.case-study-card__header img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  background-color: #f8f9fa;
}

/* Fallback for broken images */
.case-study-card__header img::before {
  content: '';
  display: block;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
  border-radius: 12px 12px 0 0;
}

.case-study-card__header img::after {
  content: 'Image Loading...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.case-study-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.case-study-card__badge span {
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-700);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.case-study-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.case-study-summary {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.case-study-highlights {
  margin-bottom: 1.5rem;
}

.highlight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.highlight-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

.highlight-value {
  font-weight: 700;
  color: var(--success-600);
}

.case-study-card__actions {
  margin-top: auto;
}

/* Industry Cards */
.industry-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  height: 100%;
}

.industry-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.industry-card__icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.industry-card__icon svg {
  stroke: white;
}

.industry-card h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.industry-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.industry-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.industry-stats span {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.testimonial-card__content {
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-card__rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-card__rating svg {
  width: 20px;
  height: 20px;
  fill: var(--warning-400);
}

.testimonial-card__content p {
  color: var(--gray-600);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.author-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Benefit Cards */
.benefit-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  height: 100%;
}

.benefit-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.benefit-card__icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-card__icon svg {
  stroke: white;
}

.benefit-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Modal Enhancements */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid var(--gray-100);
  padding: 1.5rem 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-body {
  padding: 2rem;
}

.case-study-detail h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.case-study-detail h4:first-child {
  margin-top: 0;
}

.case-study-detail ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-study-detail li {
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.result-card {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.result-card h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-card p {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--success-600);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .demo-request-card,
  .contact-form-card,
  .case-study-featured {
    padding: 2rem 1.5rem;
  }
  
  .demo-feature {
    flex-direction: column;
    text-align: center;
  }
  
  .demo-feature__icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .case-study-results {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-step-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-step-actions .btn {
    width: 100%;
    margin: 0;
  }
  
  .industry-stats {
    flex-direction: column;
  }
  
  .metric-value {
    font-size: 2rem;
  }
  
  .progress-steps {
    gap: 0.5rem;
  }
  
  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-info-icon {
    margin: 0 auto 1rem;
  }
}

@media (max-width: 480px) {
  .demo-video-placeholder,
  .map-placeholder {
    padding: 2rem 1rem;
    min-height: 300px;
  }
  
  .metric-value {
    font-size: 1.75rem;
  }
  
  .case-study-featured h3 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

/* === SVG ICON STYLING === */
svg {
    color: var(--primary-green);
    stroke: var(--primary-green);
}

/* Specific SVG styling for different contexts */
.demo-feature svg,
.contact-option-card svg,
.case-study-card svg,
.contact-info-icon svg,
.faq-toggle,
.demo-video-placeholder svg,
.map-placeholder svg,
.quick-action-icon svg,
.benefit-card__icon svg,
.metric-card svg,
.industry-card svg,
.testimonial-card svg,
.case-study-featured svg,
.success-metrics svg {
    color: var(--primary-green) !important;
    stroke: var(--primary-green) !important;
}

/* Button SVG icons */
.btn svg {
    color: currentColor;
    stroke: currentColor;
}

/* White SVG icons for dark backgrounds */
.btn-primary svg,
.btn-outline-white svg,
.text-white svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Icon containers */
.demo-feature-icon svg,
.contact-option-card__icon svg,
.contact-info-icon svg,
.quick-action-icon svg,
.benefit-card__icon svg {
    color: var(--primary-green) !important;
    stroke: var(--primary-green) !important;
}

/* Case studies specific SVGs */
.case-study-card .case-study-meta svg,
.case-study-featured .case-study-impact svg,
.case-study-card .btn svg {
    color: var(--primary-green) !important;
    stroke: var(--primary-green) !important;
}

/* Demo page specific SVGs */
.demo-features svg,
.demo-benefits svg,
.benefit-card svg {
    color: var(--primary-green) !important;
    stroke: var(--primary-green) !important;
}

/* Contact page specific SVGs */
.contact-options svg,
.contact-info-card svg,
.quick-actions-card svg {
    color: var(--primary-green) !important;
    stroke: var(--primary-green) !important;
}

/* Override any inherited text colors that might hide SVGs */
[stroke="currentColor"] {
    stroke: var(--primary-green) !important;
}

svg[stroke="currentColor"] {
    stroke: var(--primary-green) !important;
    color: var(--primary-green) !important;
}

/* Ensure SVGs in specific page sections are visible */
.success-metrics svg,
.case-studies-grid svg,
.industry-grid svg,
.testimonials-grid svg,
.demo-benefits svg,
.why-demo svg {
    stroke: var(--primary-green) !important;
    color: var(--primary-green) !important;
}

/* Override for metric cards - make SVGs white on green background */
.metric-card svg,
.metric-card__icon svg {
    stroke: white !important;
    color: white !important;
}

/* Override for feature cards - make SVGs white and bold on green background */
.feature-card__icon svg {
    stroke: white !important;
    color: white !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* Services page - Service detail card main icons should be white */
.service-detail-card__icon svg {
    stroke: white !important;
    color: white !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* Services page - Only feature items within service cards need green SVGs, not white */
.service-detail-card .feature-item svg {
    stroke: var(--primary-green) !important;
    color: var(--primary-green) !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* Header navigation dropdown SVGs - should be white on green background */
.navbar__dropdown svg,
.navbar__dropdown-icon svg,
.dropdown-menu svg {
    stroke: white !important;
    color: white !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* Case studies - Only metric cards and success cards should have white SVGs */
.success-metrics .metric-card svg,
.metric-card svg {
    stroke: white !important;
    color: white !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* Case studies - Other SVGs should be green */
.case-studies-grid svg,
.case-study-card svg,
.industry-grid svg {
    stroke: var(--primary-green) !important;
    color: var(--primary-green) !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* About page - Value cards and stats that have green backgrounds */
.value-card__icon svg,
.mvv-card__icon svg,
.company-stats .stat svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
    stroke-width: 3 !important;
    fill: none !important;
    opacity: 1 !important;
}

/* Extra specificity for mvv-card SVGs to ensure white visibility */
.mvv .mvv-card__icon svg,
.mvv-card .mvv-card__icon svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
    stroke-width: 3 !important;
    fill: none !important;
    opacity: 1 !important;
}

/* About page - Other SVGs should be green */
.timeline-item svg,
.team-member svg {
    stroke: var(--primary-green) !important;
    color: var(--primary-green) !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* Page hero and breadcrumb SVGs - should be green or current color */
.page-hero .breadcrumb svg,
.breadcrumb svg {
    stroke: currentColor !important;
    color: currentColor !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

.page-hero .badge svg,
.badge svg {
    stroke: var(--primary-green) !important;
    color: var(--primary-green) !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

/* Ensure parent elements have proper color inheritance */
.benefit-card,
.metric-card,
.case-study-card,
.industry-card,
.contact-option-card,
.quick-action-item {
    color: inherit;
}

.benefit-card svg,
.metric-card svg,
.case-study-card svg,
.industry-card svg,
.contact-option-card svg,
.quick-action-item svg {
    stroke: var(--primary-green) !important;
    color: var(--primary-green) !important;
}

/* FAQ Toggle styling */
.faq-toggle {
    color: var(--primary-green) !important;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    color: var(--primary-green) !important;
}

/* FAQ Question styling */
.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-green);
}

/* FAQ Answer styling */
.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Fallback for when JavaScript sets the height */
}

/* === FORM VALIDATION STYLES === */
.form-control.error,
.form-select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* === CASE STUDY DETAIL STYLES === */
.case-study-detail h4 {
    color: #007bff;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.case-study-detail h4:first-child {
    margin-top: 0;
}

.case-study-detail ul {
    margin-bottom: 1.5rem;
}

.case-study-detail li {
    margin-bottom: 0.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.result-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.result-card h5 {
    color: #495057;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-card p {
    color: #007bff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* === SUCCESS MESSAGE STYLES === */
.demo-success {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 3rem 2rem;
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon svg {
    animation: checkmarkScale 0.5s ease-in-out;
}

@keyframes checkmarkScale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* === ENHANCED ANIMATIONS === */
.card-service,
.contact-option-card,
.case-study-card,
.metric-card {
    transition: all 0.3s ease;
}

.card-service:hover,
.contact-option-card:hover,
.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.demo-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* === SMOOTH TRANSITIONS === */
.btn,
.form-control,
.form-select,
.faq-answer,
.progress-fill {
    transition: all 0.3s ease;
}

/* === ACCESSIBILITY IMPROVEMENTS === */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-service,
    .contact-option-card,
    .case-study-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
    }
}

/* =================================================================
   BLOG COMPONENTS
================================================================= */

/* Blog Hero Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
    position: relative;
    overflow: hidden;
}

/* Hero section SVG fixes */
.page-hero .breadcrumb__link svg {
    stroke: currentColor !important;
    fill: none !important;
}

.page-hero .badge svg {
    stroke: currentColor !important;
    fill: none !important;
}

/* Blog Categories */
.blog-categories__pills .nav-link {
    color: var(--gray-500);
    background: var(--primary-white);
    border: 2px solid var(--gray-100);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    font-weight: var(--font-medium);
    transition: all var(--transition-base);
}

.blog-categories__pills .nav-link:hover,
.blog-categories__pills .nav-link.active {
    color: var(--primary-white);
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Featured Article */
.featured-article__card {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-base);
}

.featured-article__card:hover {
    transform: translateY(-10px);
}

.featured-article__image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.featured-article__card:hover .featured-article__image img {
    transform: scale(1.05);
}

.featured-article__badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary-green);
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: var(--fs-sm);
    font-weight: var(--font-semibold);
}

.featured-article__content {
    padding: 3rem;
}

.featured-article__title {
    font-size: 1.75rem;
    font-weight: var(--font-bold);
    line-height: 1.3;
    margin: 1rem 0;
    color: var(--gray-900);
}

.featured-article__excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.featured-article__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.author-name {
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--gray-500);
    font-size: var(--fs-sm);
}

/* Blog Cards */
.blog-card {
    background: var(--primary-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.blog-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.1);
}

.blog-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-green);
    color: var(--primary-white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--fs-sm);
    color: var(--gray-500);
}

.blog-card__title {
    margin-bottom: 1rem;
}

.blog-card__title a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    line-height: 1.3;
    transition: color var(--transition-base);
}

.blog-card__title a:hover {
    color: var(--primary-green);
}

.blog-card__excerpt {
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card__author .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.blog-card__author .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details .author-name {
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    font-size: var(--fs-sm);
    display: block;
}

.author-details .author-title {
    color: var(--gray-500);
    font-size: var(--fs-xs);
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--fs-sm);
}

.article-category {
    background: var(--primary-green);
    color: var(--primary-white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: var(--font-semibold);
}

.article-date,
.article-read-time {
    color: var(--gray-500);
}

/* Newsletter Subscription */
.newsletter-subscription {
    background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px 0 0 50px;
    font-size: 1.1rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 1rem 1.5rem;
    border: none;
    background: var(--primary-white);
    color: var(--primary-green);
    font-weight: var(--font-semibold);
}

.newsletter-form .btn:hover {
    background: var(--gray-50);
    transform: translateX(2px);
}

/* Topic Cards */
.topic-card {
    display: block;
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--gray-900);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    height: 100%;
}

.topic-card:hover {
    color: var(--gray-900);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.topic-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), #007A35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-white);
}

.topic-card__icon svg {
    color: var(--primary-white) !important;
    stroke: var(--primary-white) !important;
    fill: none !important;
}

.topic-card h5 {
    font-weight: var(--font-semibold);
    margin-bottom: 0.5rem;
}

.topic-count {
    color: var(--gray-500);
    font-size: var(--fs-sm);
}

/* Load More Button */
#loadMoreArticles {
    min-width: 200px;
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: transparent;
    transition: all var(--transition-base);
}

#loadMoreArticles:hover,
#loadMoreArticles:focus {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--primary-white);
}

#loadMoreArticles:disabled,
#loadMoreArticles.disabled {
    border-color: var(--gray-300);
    color: var(--gray-500);
    background: var(--gray-100);
    cursor: not-allowed;
}

#loadMoreArticles:disabled:hover,
#loadMoreArticles.disabled:hover {
    border-color: var(--gray-300);
    color: var(--gray-500);
    background: var(--gray-100);
}

#loadMoreArticles svg {
    transition: transform var(--transition-base);
}

#loadMoreArticles:hover svg {
    transform: translateY(2px);
}

/* Blog Single Page Styles */
.blog-single-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, #007A35 100%);
    padding: 8rem 0 4rem;
}

/* General SVG visibility fixes for blog components */
.topic-card__icon svg,
.cta__actions svg {
    color: currentColor !important;
    stroke: currentColor !important;
    fill: none !important;
}

/* Ensure button SVGs inherit proper color */
.btn-primary svg {
    color: var(--primary-white) !important;
    stroke: var(--primary-white) !important;
}

.btn-outline-white svg {
    color: var(--primary-white) !important;
    stroke: var(--primary-white) !important;
}

.blog-breadcrumb {
    background: var(--gray-50);
    padding: 1rem 0;
}

.breadcrumb {
    background: none;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-green);
}

.breadcrumb-item.active {
    color: var(--gray-700);
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--gray-900);
    margin: 2rem 0 1rem;
    font-weight: var(--font-semibold);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.author-bio {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
}

.author-bio__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.social-share {
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 2rem 0;
    margin: 3rem 0;
}

.social-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: all var(--transition-base);
}

.social-share__btn--twitter {
    background: #1DA1F2;
    color: white;
}

.social-share__btn--linkedin {
    background: #0077B5;
    color: white;
}

.social-share__btn--facebook {
    background: #1877F2;
    color: white;
}

.social-share__btn:hover {
    transform: translateY(-2px);
}

.related-articles .blog-card {
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-article__content {
        padding: 2rem;
    }
    
    .featured-article__title {
        font-size: 1.5rem;
    }
    
    .blog-categories__pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .blog-categories__pills .nav-link {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: var(--fs-sm);
    }
    
    .blog-single-hero {
        padding: 6rem 0 3rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
