:root {
  --ap-bg-white: #ffffff;
  --ap-bg-light: #f7f8fa;
  --ap-bg-card: #ffffff;
  --ap-bg-card-hover: #f0f2f5;
  --ap-border: #e2e4e8;
  --ap-border-strong: #d0d3d9;
  --ap-accent: #4b5563;
  --ap-accent-light: #6b7280;
  --ap-accent-dark: #374151;
  --ap-accent-bg: rgba(75, 85, 99, 0.06);
  --ap-text: #1a1a1a;
  --ap-text-secondary: #5f6368;
  --ap-text-muted: #9aa0a6;
  --ap-hero-bg: #111318;
  --ap-footer-bg: #111318;
  --ap-font-heading: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ap-font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ap-radius: 8px;
  --ap-radius-lg: 12px;
  --ap-transition: 0.25s ease;
  --ap-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --ap-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --ap-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--ap-bg-white);
  color: var(--ap-text);
  font-family: var(--ap-font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: #d1d5db;
  color: #111827;
}

/* ---------- Utility Classes ---------- */

.text-accent {
  color: #5c93ff;
}

.text-secondary-light {
  color: var(--ap-text-secondary) !important;
}

.ls-wide {
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
}

.py-6 {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-dark {
  background-color: var(--ap-bg-white);
}

.section-darker {
  background-color: var(--ap-bg-light);
}

/* ---------- Buttons ---------- */

.btn-accent {
  background-color: var(--ap-accent);
  border-color: var(--ap-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--ap-radius);
  transition: var(--ap-transition);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--ap-accent-dark);
  border-color: var(--ap-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.22);
}

.btn-outline-dark {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: rgba(255, 255, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--ap-radius);
  font-weight: 600;
  transition: var(--ap-transition);
}

.btn-outline-dark:hover, .btn-outline-dark:focus {
  color: #fff;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* ---------- Navbar ---------- */

.navbar-ap {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ap-border);
  padding: 0.75rem 0;
  transition: var(--ap-transition);
}

.navbar-ap.scrolled {
  box-shadow: var(--ap-shadow-sm);
}

.navbar-ap .navbar-brand {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 60px;
}

.navbar-brand-logo {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.navbar-ap .nav-link {
  color: var(--ap-text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.navbar-ap .nav-link:hover, .navbar-ap .nav-link:focus {
  color: #111827;
}

.navbar-ap .nav-link.active {
  color: #2b2f36;
  font-weight: 600;
}

.navbar-ap .navbar-toggler {
  border-color: var(--ap-border);
}

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
  background: url('../../assets/img/placeholder.jpg') center center / cover no-repeat;
  min-height: 100vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(32,51,98,0.88) 0%, rgba(17, 19, 24, 0.72) 52%, rgba(19,32,64,0.62) 100%);
  z-index: 1;
}

.hero-section .container {
  z-index: 2;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.hero-title {
  color: #fff;
  line-height: 1.12;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
}

.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Why Section Images ---------- */

.why-image-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.why-image-stack .img-industrial {
  width: 100%;
  object-fit: cover;
  border-radius: var(--ap-radius-lg) !important;
  box-shadow: var(--ap-shadow-md);
}

.why-image-stack .img-industrial:first-child {
  min-height: 300px;
  max-height: 420px;
}

.img-industrial-secondary {
  min-height: 240px;
  max-height: 320px;
}

@media (min-width: 992px) {
  .why-image-stack {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}

@media (min-width: 992px) {
  .why-image-stack .img-industrial:first-child, .img-industrial-secondary {
    height: 100%;
    min-height: 320px;
    max-height: none;
  }
}

@media (max-width: 991.98px) {
  .why-image-stack {
    gap: 0.75rem;
  }
}

@media (max-width: 991.98px) {
  .why-image-stack .img-industrial:first-child {
    max-height: 360px;
  }
}

@media (max-width: 991.98px) {
  .img-industrial-secondary {
    max-height: 280px;
  }
}

/* ---------- Section Headings ---------- */

.section-eyebrow {
  font-weight: 600;
}

.section-title {
  color: var(--ap-text);
  line-height: 1.2;
}

/* ---------- Problem Cards ---------- */

.problem-card {
  background-color: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  transition: var(--ap-transition);
  box-shadow: var(--ap-shadow-sm);
}

.problem-card:hover {
  border-color: var(--ap-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-lg);
}

.problem-icon {
  font-size: 1.5rem;
  color: #4b5563;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: var(--ap-radius);
}

/* ---------- Service Cards ---------- */

.service-card {
  background-color: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  transition: var(--ap-transition);
  box-shadow: var(--ap-shadow-sm);
}

.service-card:hover {
  border-color: var(--ap-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-lg);
}

.service-card-featured {
  border-color: #cfd4dc;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.06), var(--ap-shadow-sm);
}

.service-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.65rem;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--ap-radius);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.4) brightness(0.95);
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
  filter: saturate(0.6) brightness(1);
}

.service-icon {
  font-size: 1.35rem;
  color: #4b5563;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: var(--ap-radius);
}

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

.ai-orange-theme .navbar-ap .nav-link:hover, .ai-orange-theme .navbar-ap .nav-link:focus, .ai-orange-theme .navbar-ap .nav-link.active {
  color: #b45309;
}

.ai-orange-theme .btn-accent {
  background-color: #ea580c;
  border-color: #ea580c;
}

.ai-orange-theme .btn-accent:hover, .ai-orange-theme .btn-accent:focus {
  background-color: #c2410c;
  border-color: #c2410c;
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.28);
}

.ai-orange-theme .hero-section {
  background: url('../../assets/img/photo-1454165804606-c3d57bc86b40.jpg') center center / cover no-repeat;
}

.ai-orange-theme .hero-overlay {
  background: linear-gradient(135deg, rgba(122, 42, 13, 0.9) 0%, rgba(79, 27, 10, 0.78) 52%, rgba(36, 18, 12, 0.7) 100%);
}

.ai-orange-theme .problem-icon, .ai-orange-theme .service-icon {
  color: #c2410c;
  background-color: #fff4ec;
}

.ai-orange-theme .process-number {
}

.ai-orange-theme .service-card-featured, .ai-orange-theme .problem-card:hover, .ai-orange-theme .service-card:hover {
  border-color: #fdba74;
}

color: #c2410c; background-color: #fff7ed; .ai-orange-theme .service-badge {
  background-color: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.ai-orange-theme .process-number {
  border-color: #fdba74;
  color: #c2410c;
}

.ai-orange-theme .problem-card:hover, .ai-orange-theme .service-card:hover {
  border-color: #fdba74;
}

.ai-orange-text {
  color: #f97316 !important;
}

.service-list li {
  padding: 0.3rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.9rem;
}

.service-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #9aa0a6;
  font-weight: 700;
}

/* ---------- Process Steps ---------- */

.process-step {
  padding: 2rem 1.5rem;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  background-color: var(--ap-bg-card);
  transition: var(--ap-transition);
  position: relative;
  box-shadow: var(--ap-shadow-sm);
}

.process-step:hover {
  border-color: var(--ap-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-md);
}

.process-number {
  font-size: 3rem;
  font-weight: 800;
  color: #6b7280;
  line-height: 1;
  opacity: 0.8;
  font-family: var(--ap-font-heading);
}

/* ---------- Industry Cards ---------- */

.industry-card {
  background-color: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  transition: var(--ap-transition);
  box-shadow: var(--ap-shadow-sm);
}

.industry-card:hover {
  border-color: var(--ap-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow-md);
}

.industry-icon {
  font-size: 2rem;
  color: #4b5563;
}

/* ---------- Why Section ---------- */

.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: var(--ap-radius);
}

.img-industrial {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  filter: saturate(0.3) brightness(0.95);
  transition: filter 0.4s ease;
}

.img-industrial:hover {
  filter: saturate(0.5) brightness(1);
}

/* ---------- Results Cards ---------- */

.result-card {
  background-color: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  border-left: 3px solid #9ca3af;
  transition: var(--ap-transition);
  box-shadow: var(--ap-shadow-sm);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-lg);
}

.result-metric {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ap-text-muted);
  letter-spacing: 0.12em;
}

.result-outcome {
  font-size: 0.9rem;
  color: var(--ap-text);
}

/* ---------- Tech Tags ---------- */

.tech-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ap-text-secondary);
  background-color: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: 100px;
  transition: var(--ap-transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tech-tag:hover {
  color: var(--ap-text);
  border-color: var(--ap-border-strong);
  background-color: #f3f4f6;
}

/* ---------- FAQ Accordion ---------- */

.accordion-item {
  background-color: var(--ap-bg-card) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-radius-lg) !important;
  margin-bottom: 0.75rem;
}

.accordion-button {
  background-color: var(--ap-bg-card) !important;
  color: var(--ap-text) !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--ap-radius-lg) !important;
  box-shadow: none !important;
  padding: 1.25rem 1.5rem;
}

.accordion-button::after {
  filter: none;
}

.accordion-button:not(.collapsed)::after {
  filter: none;
}

.accordion-button:not(.collapsed) {
  color: var(--ap-text) !important;
  background-color: var(--ap-bg-light) !important;
}

.accordion-body {
  padding: 0 1.5rem 1.25rem;
  line-height: 1.8;
}

/* ---------- Contact Form ---------- */

.contact-form {
  background-color: #ffffff;
  border: 1px solid #d9dde3;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.contact-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4b5563;
}

.contact-form .form-control, .contact-form .form-select {
  background-color: #ffffff;
  border: 1px solid #d7dce3;
  color: var(--ap-text);
  border-radius: var(--ap-radius);
  padding: 0.75rem 1rem;
  transition: var(--ap-transition);
}

.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.16);
  background-color: #fff;
  color: var(--ap-text);
}

.contact-form .form-control::placeholder {
  color: #9ca3af;
}

.contact-form .form-select option {
  background-color: #fff;
  color: var(--ap-text);
}

/* ---------- Footer ---------- */

.footer-section {
  background-color: var(--ap-footer-bg);
  border-top: none;
  color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
  color: #fff;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-social:hover {
  color: #fff;
}

.footer-section hr {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-section .text-secondary-light {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* ---------- Back to Top ---------- */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--ap-text);
  color: #fff;
  border-radius: var(--ap-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--ap-transition);
  z-index: 1000;
  box-shadow: var(--ap-shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #2b2f36;
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Decorative Lines (hidden) ---------- */

.section-dark::before, .section-darker::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #d1d5db;
  margin: 0 auto 0;
  opacity: 0;
}

/* ---------- Animations on Scroll ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .hero-stats .col-auto {
    margin-bottom: 1rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-ap .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow-md);
  }
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ---------- Legal Pages ---------- */

.legal-block h2 {
  color: var(--ap-text);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ap-border);
}

.legal-block ul {
  padding-left: 1.25rem;
}

.legal-block ul li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.legal-block a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-block a:hover {
  color: var(--ap-accent-dark) !important;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-stats .display-6 {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .result-metric {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .process-number {
    font-size: 2.25rem;
  }
}

.display-6 {
  color: white;
}

/* ---------- Built-to-Last Band ---------- */

.built-to-last-band {
  background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.built-to-last-statement {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  color: #e8edf3;
  line-height: 1.6;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

