/* ============================================
   Consulting Page - Modern 2026 Design
   Enhanced with 2x2 Grid Layout
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --primary: #6bb8be;
  --primary-dark: #4a9ea5;
  --primary-light: rgba(107, 184, 190, 0.12);
  --primary-glow: rgba(107, 184, 190, 0.25);
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-warm: #faf9f7;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;
  
  /* Service card accent colors */
  --accent-scoping: #f59e0b;
  --accent-planning: #10b981;
  --accent-migration: #8b5cf6;
  --accent-training: #6bb8be;
}

/* ===== Hero Section ===== */
.cons-hero {
  position: relative;
  background-image: linear-gradient(
      100deg,
      rgba(30, 41, 59, 0.92) 0%,
      rgba(45, 55, 72, 0.8) 35%,
      rgba(55, 65, 81, 0.5) 60%,
      rgba(100, 116, 139, 0.25) 100%
    ),
    url("/e15/images/business-apps/hero-consulting-1222.jpg");
  background-size: cover;
  background-position: center 30%;
  padding: 65px 0 60px;
  overflow: hidden;
}

.cons-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 20% 80%,
    rgba(107, 184, 190, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.cons-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.cons-hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.cons-hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 18px;
}

.cons-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cons-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cons-hero-btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cons-hero-btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
  text-decoration: none;
}

.cons-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cons-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  text-decoration: none;
}

/* ===== Intro Section ===== */
.cons-intro-section {
  padding: 70px 0 60px;
  background: var(--bg-light);
}

.cons-intro-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.cons-intro-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.cons-intro-content p {
  line-height: 1.8;
  color: var(--text-medium);
  margin: 0 0 20px;
}

.cons-intro-content p:last-child {
  margin-bottom: 0;
}

/* ===== Section Headers ===== */
.cons-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.cons-section-label {
  display: inline-block;
  padding: 8px 18px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.cons-section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.cons-section-header-light .cons-section-label {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.cons-section-header-light h2 {
  color: var(--white);
}

/* ===== Services Section - 2x2 Grid ===== */
.cons-services-section {
  padding: 90px 0;
  background: var(--white);
}

.cons-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.cons-service-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cons-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.cons-service-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.cons-service-header h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.cons-service-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cons-service-card:hover .cons-service-accent {
  opacity: 1;
}

.cons-service-scoping .cons-service-accent {
  background: linear-gradient(90deg, var(--accent-scoping), #fbbf24);
}

.cons-service-planning .cons-service-accent {
  background: linear-gradient(90deg, var(--accent-planning), #34d399);
}

.cons-service-migration .cons-service-accent {
  background: linear-gradient(90deg, var(--accent-migration), #a78bfa);
}

.cons-service-training .cons-service-accent {
  background: linear-gradient(90deg, var(--accent-training), #81d4d9);
}

.cons-service-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all 0.4s ease;
  font-size: 1.5rem;
}

.cons-service-scoping .cons-service-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%);
  color: var(--accent-scoping);
}

.cons-service-planning .cons-service-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(52, 211, 153, 0.08) 100%);
  color: var(--accent-planning);
}

.cons-service-migration .cons-service-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(167, 139, 250, 0.08) 100%);
  color: var(--accent-migration);
}

.cons-service-training .cons-service-icon {
  background: linear-gradient(135deg, rgba(107, 184, 190, 0.12) 0%, rgba(129, 212, 217, 0.08) 100%);
  color: var(--accent-training);
}

.cons-service-card:hover .cons-service-icon {
  transform: scale(1.1) rotate(5deg);
}

.cons-service-scoping:hover .cons-service-icon {
  background: linear-gradient(135deg, var(--accent-scoping) 0%, #fbbf24 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.cons-service-planning:hover .cons-service-icon {
  background: linear-gradient(135deg, var(--accent-planning) 0%, #34d399 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.cons-service-migration:hover .cons-service-icon {
  background: linear-gradient(135deg, var(--accent-migration) 0%, #a78bfa 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.cons-service-training:hover .cons-service-icon {
  background: linear-gradient(135deg, var(--accent-training) 0%, #81d4d9 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(107, 184, 190, 0.3);
}

.cons-service-content {
  flex: 1;
}

.cons-service-lead {
  line-height: 1.7;
  color: var(--text-medium);
  margin: 0 0 24px;
  font-weight: 500;
}

.cons-service-details {
  margin-top: 24px;
}

.cons-service-details h4 {
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

.cons-service-details h4:first-child {
  margin-top: 0;
}

.cons-service-details p {
  line-height: 1.7;
  color: var(--text-medium);
  margin: 0 0 12px;
}

.cons-service-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.cons-service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text-medium);
}

.cons-service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.cons-service-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.cons-service-platforms {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 12px;
}

.cons-service-platforms h4 {
  margin: 0 0 12px;
}

.cons-service-platforms p {
  margin: 0 0 12px;
}

.cons-platform-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cons-platform-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-medium);
  font-weight: 500;
}

.cons-platform-tag i {
  color: var(--accent-migration);
  opacity: 0.6;
  font-size: 0.9em;
}

.cons-service-action {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.cons-service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cons-service-link:hover {
  color: var(--primary);
  gap: 12px;
  text-decoration: none;
}

.cons-service-link i {
  transition: transform 0.2s ease;
}

.cons-service-link:hover i {
  transform: translateX(4px);
}

/* ===== Locations Section ===== */
.cons-locations-section {
  padding: 80px 0;
  background: var(--bg-light);
  position: relative;
}

.cons-locations-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(107, 184, 190, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(107, 184, 190, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.cons-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.cons-location-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cons-location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.cons-location-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.cons-location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.cons-location-overlay {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 12px;
}

.cons-location-region {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cons-location-content {
  padding: 28px;
}

.cons-location-content h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 20px;
}

.cons-location-details {
  font-style: normal;
}

.cons-location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.cons-location-item i {
  width: 18px;
  color: var(--primary);
  font-size: 0.9rem;
}

.cons-location-item a {
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cons-location-item a:hover {
  color: var(--primary-dark);
}

.cons-location-item span {
  color: var(--text-light);
}

.cons-locations-action {
  text-align: center;
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

.cons-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cons-btn-outline {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.cons-btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  text-decoration: none;
}

/* ===== CTA Section ===== */
.cons-cta-section {
  padding: 90px 0;
  background: 
    linear-gradient(135deg, rgba(30, 41, 59, 0.87) 0%, rgba(45, 55, 72, 0.85) 100%),
    url("/e15/images/business-apps/consultinghdr.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.cons-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 0% 100%, rgba(107, 184, 190, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(107, 184, 190, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cons-cta-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(107, 184, 190, 0.3) 50%, transparent 100%);
}

.cons-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cons-cta-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 184, 190, 0.15);
  border: 1px solid rgba(107, 184, 190, 0.3);
  border-radius: 20px;
  color: var(--primary);
  margin: 0 auto 28px;
  font-size: 2rem;
}

.cons-cta-content h2 {
  color: var(--white);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.2;
  font-size: 2.6rem;
  letter-spacing: -0.01em;
}

.cons-cta-content p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin: 0 0 36px;
}

.cons-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cons-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cons-cta-btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(107, 184, 190, 0.3);
}

.cons-cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(107, 184, 190, 0.4);
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

.cons-cta-btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cons-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  text-decoration: none;
}

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

@media (max-width: 1400px) {
  .cons-services-grid {
    gap: 28px;
  }
  
  .cons-service-card {
    padding: 36px 32px;
  }
}

@media (max-width: 1200px) {
  .cons-hero h1 {
    font-size: 2.8rem;
  }
  
  .cons-services-grid {
    gap: 24px;
  }

  .cons-locations-grid {
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .cons-hero {
    padding: 50px 0 45px;
  }
  
  .cons-hero h1 {
    font-size: 2.4rem;
  }
  
  .cons-hero-subtitle {
    font-size: 1.3rem;
  }

  .cons-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cons-service-card {
    padding: 32px 28px;
  }

  .cons-locations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .cons-hero {
    padding: 40px 0 35px;
  }
  
  .cons-hero h1 {
    font-size: 2rem;
  }
  
  .cons-hero-subtitle {
    font-size: 1.15rem;
  }
  
  .cons-hero-description {
    font-size: 1rem;
  }

  .cons-hero-actions {
    flex-direction: column;
  }

  .cons-hero-btn {
    width: 100%;
    justify-content: center;
  }

  .cons-intro-section {
    padding: 50px 0 45px;
  }
  
  .cons-intro-title {
    font-size: 1.8rem;
  }

  .cons-services-section {
    padding: 70px 0;
  }
  
  .cons-section-header h2 {
    font-size: 2.2rem;
  }

  .cons-service-card {
    padding: 28px 24px;
  }
  
  .cons-service-header h3 {
    font-size: 1.3rem;
  }

  .cons-locations-section {
    padding: 70px 0;
  }

  .cons-location-image {
    height: 160px;
  }

  .cons-cta-section {
    padding: 70px 0;
  }
  
  .cons-cta-content h2 {
    font-size: 2.2rem;
  }
  
  .cons-cta-content p {
    font-size: 1rem;
  }

  .cons-cta-actions {
    flex-direction: column;
  }

  .cons-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .cons-hero {
    padding: 35px 0 30px;
  }
  
  .cons-hero h1 {
    font-size: 1.75rem;
  }
  
  .cons-hero-subtitle {
    font-size: 1.05rem;
  }
  
  .cons-intro-title {
    font-size: 1.5rem;
  }
  
  .cons-section-header h2 {
    font-size: 1.9rem;
  }

  .cons-service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .cons-service-card {
    padding: 24px 20px;
  }
  
  .cons-location-content {
    padding: 24px 20px;
  }
  
  .cons-cta-content h2 {
    font-size: 1.9rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.cons-hero-btn:focus,
.cons-btn:focus,
.cons-cta-btn:focus,
.cons-service-link:focus,
.cons-location-item a:focus {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.cons-hero-btn:focus-visible,
.cons-btn:focus-visible,
.cons-cta-btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cons-service-card,
  .cons-location-card,
  .cons-hero-btn,
  .cons-btn,
  .cons-cta-btn,
  .cons-service-icon,
  .cons-service-link,
  .cons-location-image img {
    transition: none;
    animation: none;
  }
}

/* High contrast */
@media (prefers-contrast: high) {
  .cons-service-card,
  .cons-location-card {
    border-width: 2px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .cons-hero {
    background: #f0f0f0 !important;
    padding: 30px 0;
  }

  .cons-hero h1,
  .cons-hero-subtitle,
  .cons-hero-description {
    color: #000 !important;
  }

  .cons-hero-actions,
  .cons-cta-section {
    display: none !important;
  }

  .cons-service-card,
  .cons-location-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .cons-services-grid,
  .cons-locations-grid {
    display: block;
  }

  .cons-services-grid > *,
  .cons-locations-grid > * {
    margin-bottom: 20px;
  }
}