/* AEQ Solutions - Main Stylesheet */

/* Color Variables */
:root {
  /* Primary Brand Colors */
  --primary-teal: #5A8A8C;
  --primary-gold: #B5A574;
  --gradient-start: #5A8A8C;
  --gradient-mid: #6B9B8C;
  --gradient-end: #B5A574;
  
  /* Neutral Colors */
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-light: #E9ECEF;
  --bg-dark: #1A1A1A;
  
  /* Semantic Colors */
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  
  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 60px;
}

/* Typography */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

.lead {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Utility Classes */
.gradient-bg {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-primary-color { color: var(--primary-teal); }
.text-secondary-color { color: var(--primary-gold); }

/* Brand-aligned icon colors */
.text-brand-primary { color: var(--primary-teal); }
.text-brand-secondary { color: var(--primary-gold); }
.text-brand-gradient {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-teal);
  color: white;
  border-color: var(--primary-teal);
}

.btn-primary:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.btn-outline-primary:hover {
  background-color: var(--primary-teal);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* Navigation */
.navbar {
  background-color: var(--bg-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(90, 138, 140, 0.1);
}

.navbar-brand {
  padding: 0.5rem 0;
  margin-right: 2rem;
}

.navbar-brand img {
  height: 140px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Negative padding for larger logo */
.navbar-brand img.logo-large {
  margin: -40px 0;
  padding: 0;
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-teal);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Show dropdown on hover with delay - DESKTOP ONLY */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover .dropdown-menu,
  .navbar-nav .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
  }

  /* Add delay before hiding dropdown */
  .navbar-nav .dropdown-menu {
    transition: all 0.3s ease 0.15s; /* 150ms delay before hiding */
  }

  .navbar-nav .dropdown:hover .dropdown-menu {
    transition: all 0.3s ease; /* No delay when showing */
  }
}

.navbar-nav .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(90, 138, 140, 0.1), rgba(181, 165, 116, 0.1));
  color: var(--primary-teal);
  transform: translateX(5px);
}

/* Remove dropdown arrows */
.navbar-nav .dropdown-toggle::after {
  display: none;
}

.navbar-nav .btn.dropdown-toggle::after {
  display: none;
}

/* Override Bootstrap's default blue colors with brand colors */
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active {
  background-color: rgba(90, 138, 140, 0.1) !important;
  color: var(--primary-teal) !important;
}

.dropdown-menu .dropdown-item.active {
  background-color: var(--primary-teal) !important;
  color: white !important;
}

/* Fix any other blue color overrides */
.text-primary {
  color: var(--primary-teal) !important;
}

.btn-primary {
  background-color: var(--primary-teal) !important;
  border-color: var(--primary-teal) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-gold) !important;
  border-color: var(--primary-gold) !important;
}

.navbar-nav .btn {
  margin-left: 1.5rem;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold));
  border: none;
  color: white;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar-nav .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 138, 140, 0.3);
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
  /* Reset dropdown styles for mobile - let Bootstrap handle everything */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: rgba(248, 249, 250, 0.95);
    border: none;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(90, 138, 140, 0.1);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  
  /* Disable all hover effects on mobile */
  .navbar-nav .dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    display: none;
  }
  
  /* Style mobile dropdown items */
  .navbar-nav .dropdown-item {
    padding: 0.75rem 2rem;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(90, 138, 140, 0.1);
  }
  
  .navbar-nav .dropdown-item:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    background-color: rgba(90, 138, 140, 0.1);
    color: var(--primary-teal);
    transform: none;
  }
  
  /* Style mobile nav links */
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
  }
  
  .navbar-nav .nav-link::after {
    display: none; /* Remove underline effects on mobile */
  }
  
  /* Mobile CTA button */
  .navbar-nav .btn {
    margin: 1rem 1rem 0.5rem;
    text-align: center;
    width: calc(100% - 2rem);
  }
  
  /* Adjust logo size for mobile */
  .navbar-brand img.logo-large {
    height: 100px;
    margin: -25px 0;
  }
  
  /* Mobile navbar collapse styling */
  .navbar-collapse {
    border-top: 1px solid rgba(90, 138, 140, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section.gradient-bg {
  color: white;
}

.hero-section h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 24px;
  color: white;
  margin-bottom: 2rem;
}

/* Cards */
.service-card {
  height: 100%;
}

.service-card .card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card .icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-card ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.service-card ul li i {
  color: var(--success);
  margin-right: 0.5rem;
}

/* Statistics Section */
.stats-section {
  background-color: var(--bg-light);
  padding: var(--section-padding) 0;
}

.stat-box {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 18px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 1rem 0;
  display: flex;
  align-items: start;
}

.features-list li i {
  color: var(--primary-teal);
  margin-right: 1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Forms */
.form-control {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 0.2rem rgba(90, 138, 140, 0.25);
  outline: none;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 3rem 0 2rem;
}

footer h5 {
  color: white;
  font-size: 18px;
  margin-bottom: 1rem;
}

footer p,
footer li,
footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

footer a:hover {
  color: var(--primary-gold);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  padding: 0.25rem 0;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-gold);
  transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form .input-group {
  max-width: 400px;
}

.newsletter-form .form-control {
  border-right: none;
}

.newsletter-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-teal);
  margin-bottom: 2rem;
}

.testimonial-card p {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 500;
  color: var(--text-primary);
}

/* Process Steps */
.process-step {
  text-align: center;
  padding: 2rem;
}

.process-step .step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-step h4 {
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  color: white;
  padding: var(--section-padding) 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 20px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  color: white;
  padding: 6rem 0 4rem;
  margin-top: 76px;
}

.page-header h1 {
  color: white;
  margin-bottom: 1rem;
}

.page-header .lead {
  color: white;
}

/* Ensure all lead text in gradient backgrounds is white */
.gradient-bg .lead,
.cta-section .lead,
section.gradient-bg .lead,
.hero-section .text-secondary,
.page-header .text-secondary,
.gradient-bg .text-secondary,
.cta-section .text-secondary {
  color: white !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.min-vh-80 { min-height: 80vh; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15); }
.transition-all { transition: all 0.3s ease; }

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Enterprise-specific styles for new content */

/* Timeline styles for roadmaps and processes */
.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background-color: var(--primary-teal);
  border-radius: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 1.5rem;
  width: 2px;
  height: calc(100% + 1rem);
  background-color: var(--border-light);
}

.timeline-item:last-child::after {
  display: none;
}

/* Certification badges */
.certification-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-light);
  border: 2px solid var(--primary-teal);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

.certification-badge:hover {
  background-color: var(--primary-teal);
  color: white;
  transform: translateY(-2px);
}

.certification-badge i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-teal);
}

.certification-badge:hover i {
  color: white;
}

/* Partner cards */
.partner-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.partner-card:hover {
  border-color: var(--primary-teal);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.partner-logo {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

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

/* Engagement program cards */
.engagement-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  border: none;
  border-left: 5px solid var(--primary-teal);
  border-radius: 8px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.engagement-card:hover {
  border-left-color: var(--primary-gold);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.engagement-card .card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

/* ROI Calculator specific styles */
.roi-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.calculator-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.calculator-card .card-header {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold));
  border: none;
  padding: 2rem;
}

.form-control:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 0.25rem rgba(90, 138, 140, 0.15);
}

.form-select:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 0.25rem rgba(90, 138, 140, 0.15);
}

/* Trust indicators */
.trust-indicator {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: rgba(90, 138, 140, 0.05);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.trust-indicator i {
  color: var(--success);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.trust-indicator strong {
  color: var(--text-primary);
}

/* Industry-specific color schemes */
.maritime-theme { --accent-color: #0891b2; }
.manufacturing-theme { --accent-color: #f59e0b; }
.energy-theme { --accent-color: #10b981; }
.infrastructure-theme { --accent-color: #8b5cf6; }

/* Enterprise content blocks */
.enterprise-block {
  background: linear-gradient(135deg, var(--bg-white) 0%, #f8fafc 100%);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.enterprise-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold));
}

.enterprise-block h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.enterprise-block .lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Success metrics display */
.metric-display {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.metric-display:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.metric-value {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Enhanced button styles for enterprise */
.btn-enterprise {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-gold) 100%);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-enterprise::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-enterprise:hover::before {
  left: 100%;
}

.btn-enterprise:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(90, 138, 140, 0.3);
}

/* Professional spacing utilities */
.section-spacing-lg { padding: 120px 0; }
.section-spacing-md { padding: 80px 0; }
.section-spacing-sm { padding: 60px 0; }

/* Enhanced typography for enterprise content */
.display-enterprise {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead-enterprise {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Data visualization enhancements */
.chart-container {
  position: relative;
  background: var(--bg-white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.chart-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-right: 0.5rem;
}