/* ==========================================================================
   SERVICES PAGE STYLES (Automation & Security Inc.)
   100% Full-Width Fluid & Fully Responsive Design Across All Viewports
   ========================================================================== */

:root {
  --primary-red: #e11d2a;
  --primary-red-hover: #c8101e;
  --primary-red-tint: #fee2e2;
  --primary-red-tint-soft: #fef2f2;
  
  --navy-950: #060e1f;
  --navy-900: #091a3e;
  --navy-800: #102a5c;
  --navy-700: #173b7e;
  
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-max: 100%;
}

/* Full Width Fluid Container */
.services-container,
.container {
  width: 100%;
  max-width: 100% !important;
  margin: 0 auto;
  padding-left: clamp(20px, 3.8vw, 64px);
  padding-right: clamp(20px, 3.8vw, 64px);
  box-sizing: border-box;
}

.text-red {
  color: var(--primary-red) !important;
}

/* ==========================================================================
   1. HERO SECTION (Full Width Edge-to-Edge Background)
   ========================================================================== */
.services-hero-section {
  position: relative;
  width: 100%;
  height: clamp(460px, 33.5vw, 560px);
  min-height: 480px;
  background-color: #060e1f;
  background-image: url('../images/services/services-hero-bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  image-rendering: -webkit-optimize-contrast;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(30px, 2.8vw, 48px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.services-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 60px);
  width: 100%;
}

.services-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(720px, 60vw);
  position: relative;
  z-index: 2;
}

/* Breadcrumb (Matches About Us & Solutions Hero Pill Badge Style) */
.services-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none !important;
  width: fit-content;
}

.services-breadcrumb .breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.services-breadcrumb .breadcrumb-link:hover {
  color: #ff4d5a;
}

.services-breadcrumb .breadcrumb-icon {
  color: var(--primary-red);
  flex-shrink: 0;
}

.services-breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

.services-breadcrumb .breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

/* Sub-labels / Mini Tags */
.hero-tag-wrap,
.services-mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  max-width: 100%;
}

.hero-tag-bar {
  display: none !important;
}

.hero-tag-text {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ff4d5a;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Main Hero Title */
.services-hero-title {
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.services-hero-title .text-red {
  color: #ff4d5a !important;
}

.services-hero-desc {
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 20px;
  max-width: 580px;
}

/* Hero Action Buttons */
.services-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.services-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--primary-red, #e11d2a);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(225, 29, 42, 0.42);
  transition: all 0.25s ease;
}

.services-btn-primary:hover {
  background-color: #c8101e;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(225, 29, 42, 0.55);
  color: #ffffff !important;
}

.services-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.25s ease;
}

.services-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.services-hero-actions .btn-arrow {
  transition: transform 0.2s ease;
}

.services-hero-actions a:hover .btn-arrow {
  transform: translateX(3px);
}

/* 3 Feature Cards / Trust Badges (Matches Solutions Exactly) */
.services-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 14px);
  align-items: stretch;
  width: 100%;
  max-width: 780px;
  margin-top: 2px;
}

.services-trust-badges .trust-badge-card {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.9vw, 12px);
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 8px clamp(8px, 1vw, 12px);
  box-shadow: none !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  min-width: 0;
}

.services-trust-badges .trust-badge-card:hover {
  transform: translateY(-2px);
  border-color: #fca5a5;
  box-shadow: none !important;
}

.services-trust-badges .trust-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #fee2e2;
  color: var(--primary-red, #e11d2a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.services-trust-badges .trust-badge-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary-red, #e11d2a);
}

.services-trust-badges .trust-badge-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.services-trust-badges .trust-badge-title {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  color: #0b192c;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.services-trust-badges .trust-badge-desc {
  font-size: clamp(10.5px, 0.78vw, 11px);
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Quote Card - Hidden on desktop so the technician is 100% visible */
.hero-quote-card {
  display: none !important;
}

.hero-quote-line {
  width: 32px;
  height: 3.5px;
  background-color: var(--primary-red);
  border-radius: 2px;
  margin-bottom: 14px;
}

.hero-quote-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-quote-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate-600);
  margin-bottom: 22px;
}

.btn-talk-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(225, 29, 42, 0.35);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-talk-team:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 42, 0.45);
}

.btn-talk-team .arrow {
  transition: transform 0.2s ease;
}

.btn-talk-team:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   2. EXPERT SERVICES GRID SECTION (Full Width 3x3 Cards)
   ========================================================================== */
.services-grid-section {
  width: 100%;
  padding: clamp(52px, 6.5vw, 84px) 0;
  background-color: #ffffff;
}

.services-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 3.8vw, 48px);
}

.services-header-left {
  max-width: 720px;
}

.services-section-title {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy-900);
  letter-spacing: -0.5px;
}

.services-header-right {
  max-width: 460px;
}

.services-section-subtitle-right {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
  text-align: right;
}

/* Full Width 3x3 Cards Grid */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}

/* Individual Service Card */
.service-card-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  min-height: 250px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
  border-color: rgba(225, 29, 42, 0.25);
}

/* Left Half: Photo */
.service-card-media {
  width: 44%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background-color: #0d1e38;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.service-card-item:hover .service-card-img {
  transform: scale(1.06);
}

/* Right Half: Body */
.service-card-body {
  width: 56%;
  padding: clamp(18px, 1.8vw, 24px) clamp(16px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-red-tint);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon-circle svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-red);
}

.service-number-faint {
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  letter-spacing: -0.5px;
}

.service-card-title {
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--slate-600);
  margin-bottom: 14px;
}

.service-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
  align-self: flex-end;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-item:hover .service-arrow-btn,
.service-arrow-btn:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   3. OUR SERVICE PROCESS SECTION (Full Width 5 Steps)
   ========================================================================== */
.services-process-section {
  width: 100%;
  padding: clamp(52px, 6vw, 80px) 0;
  background-color: var(--slate-50);
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
}

.process-header {
  margin-bottom: clamp(36px, 4.2vw, 52px);
}

.process-steps-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 20px);
  width: 100%;
}

.process-step-item {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  flex: 1;
}

.process-step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary-red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225, 29, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.process-step-item:hover .process-step-circle {
  transform: scale(1.06);
  border-color: var(--primary-red);
}

.process-step-circle svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-red);
}

.process-step-text {
  display: flex;
  flex-direction: column;
}

.process-step-num-title {
  font-size: clamp(13.5px, 1.1vw, 15px);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 3px;
  white-space: nowrap;
}

.process-step-desc {
  font-size: 12px;
  line-height: 1.35;
  color: var(--slate-600);
  margin: 0;
  max-width: 190px;
}

.process-arrow-divider {
  color: var(--slate-400);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  padding: 0 clamp(4px, 0.8vw, 12px);
}

/* ==========================================================================
   4. WHY CHOOSE ASI SECTION (Full Width 4 Feature Boxes)
   ========================================================================== */
.services-why-section {
  width: 100%;
  padding: clamp(54px, 6.5vw, 84px) 0;
  background-color: #ffffff;
}

.why-header {
  margin-bottom: clamp(32px, 3.8vw, 44px);
}

.services-why-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate-600);
  margin-top: 8px;
}

.why-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}

.why-feature-box {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: clamp(18px, 1.8vw, 24px) clamp(16px, 1.6vw, 22px);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.why-feature-box:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 42, 0.3);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.why-feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  flex-shrink: 0;
}

.why-feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-red);
}

.why-feature-info {
  flex: 1;
}

.why-feature-heading {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 3px;
}

.why-feature-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--slate-600);
  margin: 0;
}

/* ==========================================================================
   5. BOTTOM CTA BANNER (Let's Work Together)
   ========================================================================== */
.services-cta-banner-section {
  width: 100%;
  position: relative;
  padding: clamp(48px, 5.5vw, 72px) 0;
  background-color: #091830;
  background-image: url('/images/services/services-cta-bg.jpg?v=20261121');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #ffffff;
  overflow: hidden;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.services-cta-banner-section::before,
.services-cta-banner-section::after {
  display: none !important;
  content: none !important;
}

.services-cta-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.services-cta-text-col {
  max-width: min(540px, 56%);
}

.services-cta-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--slate-400);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.services-cta-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.services-cta-subtitle {
  font-size: 14.5px;
  color: var(--slate-300);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.services-cta-action-col {
  margin-top: 4px;
}

.btn-service-request {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(225, 29, 42, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-service-request:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 29, 42, 0.5);
}

.btn-service-request .arrow {
  transition: transform 0.2s ease;
}

.btn-service-request:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (Fluid Full-Width Adaptation)
   ========================================================================== */
@media (max-width: 1200px) {
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps-track {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }

  .process-step-item {
    flex: 0 0 calc(33.333% - 14px);
  }

  .process-arrow-divider {
    display: none;
  }

  .why-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .services-hero-section {
    height: auto;
    min-height: auto;
    padding: 36px 0;
    background-position: left center;
  }

  .services-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .services-hero-content {
    max-width: 100%;
  }

  .hero-quote-card {
    display: none !important;
  }

  .services-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .services-section-subtitle-right {
    text-align: left;
  }

  .process-step-item {
    flex: 0 0 calc(50% - 10px);
  }

  .services-trust-badges {
    max-width: min(100%, 740px);
    gap: 10px;
  }

  .services-trust-badges .trust-badge-card {
    padding: 8px 12px;
    max-width: 100%;
  }

  .services-trust-badges .trust-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .services-trust-badges .trust-badge-title {
    font-size: 12px;
    font-weight: 700;
  }

  .services-trust-badges .trust-badge-desc {
    font-size: 10.5px;
  }
}

@media (max-width: 768px) {
  .services-hero-section {
    padding: 32px 0 38px;
  }

  .services-hero-actions {
    width: 100%;
    gap: 10px;
  }

  .services-btn-primary,
  .services-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .services-trust-badges {
    grid-template-columns: 1fr;
    max-width: 390px;
    gap: 7px;
    margin-top: 6px;
  }

  .services-trust-badges .trust-badge-card {
    width: 100%;
    max-width: 390px;
    padding: 7px 10px;
    box-sizing: border-box;
  }

  .services-trust-badges .trust-badge-icon {
    width: 26px;
    height: 26px;
  }

  .services-trust-badges .trust-badge-title {
    font-size: 11.5px;
  }

  .services-trust-badges .trust-badge-desc {
    font-size: 10px;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
  }

  .service-card-item {
    min-height: auto;
  }

  .why-cards-row {
    grid-template-columns: 1fr;
  }

  .services-cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .services-cta-text-col {
    max-width: 100%;
  }

  .btn-service-request {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .service-card-item {
    flex-direction: column;
  }

  .service-card-media {
    width: 100%;
    height: 190px;
  }

  .service-card-body {
    width: 100%;
    padding: 18px 16px;
  }

  .process-step-item {
    flex: 0 0 100%;
  }

  .hero-quote-card {
    padding: 22px 18px;
  }

  .services-trust-badges {
    width: 100%;
    max-width: min(340px, 100%);
    gap: 6px;
  }

  .services-trust-badges .trust-badge-card {
    padding: 6px 9px;
    max-width: min(340px, 100%);
  }

  .services-trust-badges .trust-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .services-trust-badges .trust-badge-title {
    font-size: 11px;
  }

  .services-trust-badges .trust-badge-desc {
    font-size: 9.5px;
  }
}
