/* ==================================================
   AI SOLUTIONS PAGE STYLES
   File: ai-solutions.css
   Service & Strategic Cards → --accent-violet border
================================================== */

/* ======================================
   GLOBAL NOTES
   - Body class: .ai-solutions
   - Colors from global CSS variables:
     --primary, --accent, --dark, --light,
     --brand-navy, --brand-blue, --accent-violet
====================================== */

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 6.25rem 1.25rem; /* 100px 20px */
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--accent-violet) 100%);
  color: var(--light);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.9375rem; /* 15px */
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 50rem; /* 800px */
  margin: 0.9375rem auto;
}

/* ---------- SERVICE CONTENT ---------- */
.service-content {
  max-width: 62.5rem; /* 1000px */
  margin: 3.75rem auto; /* 60px */
  padding: 0 1.25rem; /* 20px */
}

.service-content h2,
.service-overview h2,
.service-components h2,
.strategic-advantages h2,
.strategic-implementation h2,
.galcad-difference h2 {
  color: var(--primary);
  font-size: clamp(1.625rem, 3vw, 2.25rem); /* 26px → 36px */
  text-align: center;
  margin-bottom: 0.9375rem;
}

.service-content p,
.service-overview p,
.strategic-implementation p,
.galcad-difference p {
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 53.125rem; /* 850px */
  margin: 0 auto 1.25rem;
}

/* ---------- SERVICE & STRATEGIC CARDS ---------- */
.service-components article,
.strategic-advantages article {
  position: relative;
  background: var(--light);
  padding: 1.5625rem 1.25rem; /* 25px 20px */
  margin-bottom: 1.5625rem;
  border-radius: 12px;
  border-left: 5px solid var(--accent-violet);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.service-components article::before,
.strategic-advantages article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-violet), var(--primary));
  border-radius: 12px 12px 0 0;
}

.service-components article:hover,
.strategic-advantages article:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-components h3,
.strategic-advantages h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 0.5rem 0 0.625rem;
}

/* ---------- CTA BUTTON ---------- */
.cta-btn {
  display: inline-block;
  background: var(--accent-violet);
  color: var(--light);
  padding: 0.75rem 1.5625rem; /* 12px 25px */
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease;
}

.cta-btn:hover,
.cta-btn:focus {
  background: var(--accent);
  color: var(--light);
  transform: scale(1.03);
  outline: none;
}

/* ---------- CTA WRAPPER ---------- */
.cta-wrapper {
  background: linear-gradient(135deg, var(--brand-navy), var(--accent-violet));
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-top: 3rem;
  text-align: center;
}

.cta-wrapper h2,
.cta-wrapper p {
  color: var(--light);
}

.cta-wrapper .cta-btn {
  background: var(--light);
  color: var(--brand-navy);
  margin-top: 1rem;
}

.cta-wrapper .cta-btn:hover,
.cta-wrapper .cta-btn:focus {
  background: var(--brand-white);
  color: var(--accent-violet);
}

/* ---------- STRATEGIC IMPLEMENTATION LIST ---------- */
.strategic-implementation ol {
  list-style: none;
  margin: 1.5rem auto;
  padding: 0;
  max-width: 50rem;
  text-align: center;
}

.strategic-implementation li {
  position: relative;
  margin: 0 auto 0.75rem;
  padding-left: 2rem;
  max-width: 35rem;
  text-align: left;
  color: var(--dark);
  line-height: 1.6;
}

.strategic-implementation li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-violet);
}

/* ---------- ACCESSIBILITY ---------- */
.service-components article:focus-within,
.strategic-advantages article:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  transform: translateY(-3px);
}

.cta-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .service-components article,
  .strategic-advantages article,
  .cta-btn,
  .hero::before {
    transition: none;
    animation: none;
  }

  .service-components article:hover,
  .strategic-advantages article:hover,
  .cta-btn:hover {
    transform: none;
  }
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 64rem) { /* 1024px */
  .service-content {
    max-width: 90%;
  }

  .cta-wrapper {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 48rem) { /* 768px */
  .hero {
    padding: 3.75rem 0.9375rem; /* 60px 15px */
  }

  .service-content {
    padding: 0 0.9375rem; /* 15px */
    margin: 2.5rem auto;
  }

  .service-components article,
  .strategic-advantages article {
    padding: 1.25rem 0.9375rem; /* 20px 15px */
  }

  .cta-wrapper {
    padding: 2rem 1rem;
    margin-top: 2rem;
  }
}
