/* ==========================================================================
   SERVICES PAGE STYLESHEET — REVA PHOENIX CALIBRATION LABORATORIES
   Design System: Premium Industrial Metrology Dark Theme
   ========================================================================== */

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

/* 1. HERO SECTION */
.services-hero {
  position: relative;
  padding: 130px 0 60px 0;
  background: radial-gradient(circle at 50% 20%, rgba(241, 90, 36, 0.12) 0%, transparent 65%),
              linear-gradient(180deg, #07090d 0%, #0c1017 100%);
  border-bottom: 1px solid var(--border-graphite);
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.6;
}

.services-hero-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.services-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-technical);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.services-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.services-breadcrumb a:hover {
  color: var(--orange-primary);
}

.services-breadcrumb .current {
  color: var(--orange-primary);
}

.services-hero-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.services-hero-subtitle {
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  color: var(--text-secondary);
  width: 100%;
  max-width: 100%;
  line-height: 1.65;
  margin-bottom: 32px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Key Stats Bar */
.services-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.services-stat-card {
  background: rgba(18, 24, 34, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border-left: 3px solid var(--orange-primary);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.services-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange-border);
}

.services-stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--orange-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.services-stat-label {
  font-family: var(--font-technical);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 2. STICKY SUB-NAVIGATION */
.services-subnav-sticky {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(10, 14, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-graphite);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.services-subnav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.services-subnav-container::-webkit-scrollbar {
  display: none;
}

.services-pill {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.services-pill:hover {
  color: #FFFFFF;
  background: rgba(241, 90, 36, 0.12);
  border-color: var(--orange-border);
}

.services-pill.active {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(241, 90, 36, 0.35);
}

/* 3. SECTION WRAPPER & HEADINGS */
.service-section-wrap {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-graphite);
  position: relative;
  scroll-margin-top: 140px;
}

.service-section-wrap:nth-child(even) {
  background: rgba(14, 18, 26, 0.5);
}

.service-section-header {
  margin-bottom: 40px;
}

.service-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(241, 90, 36, 0.1);
  border: 1px solid var(--orange-border);
  border-radius: 9999px;
  font-family: var(--font-technical);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 14px;
}

.service-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.2;
}

.service-section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  width: 100%;
  max-width: 100%;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 4. CARDS, GRIDS & TECHNICAL CONTAINERS */
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 5. SALES & METROLOGY EQUIPMENT CATALOG */
.catalog-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-graphite);
  padding-bottom: 14px;
}

.catalog-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(241, 90, 36, 0.1);
  border-color: var(--orange-border);
}

.catalog-tab-btn.active {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #FFFFFF;
}

.catalog-search-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 520px;
}

.catalog-search-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: #FFFFFF;
  font-size: 0.9rem;
}

.catalog-search-input:focus {
  border-color: var(--orange-primary);
  outline: none;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.equipment-item-card {
  background: var(--bg-surface, #141a24);
  border: 1px solid var(--border-graphite, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  padding: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.equipment-item-card:hover {
  border-color: var(--orange-primary, #ff6600);
  background: rgba(255, 102, 0, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px var(--orange-glow, rgba(255, 102, 0, 0.25));
}

.equipment-item-img-wrap {
  width: 100%;
  height: 160px;
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.equipment-item-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 144px;
  object-fit: contain;
  transition: transform 0.35s ease;
  display: block;
}

.equipment-item-card:hover .equipment-item-img {
  transform: scale(1.08);
}

.equipment-item-badge-pill {
  display: none !important;
}

.equipment-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.equipment-item-cat {
  font-family: var(--font-technical, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-primary, #ff6600);
  margin-bottom: 4px;
  font-weight: 700;
}

.equipment-item-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.35;
}

.equipment-item-specs-hint {
  font-size: 0.75rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  margin-top: auto;
}

.equipment-item-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.25s ease;
}

.equipment-item-card:hover .equipment-item-cta {
  background: linear-gradient(135deg, var(--orange-primary, #ff6600) 0%, var(--orange-highlight, #ff7a30) 100%);
  border-color: var(--orange-highlight, #ff7a30);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--orange-glow, rgba(255, 102, 0, 0.3));
}

/* 6. CNC CALIBRATION CARDS */
.cnc-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cnc-system-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.cnc-system-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.cnc-system-img-wrap {
  height: 220px;
  background: #000000;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-graphite);
}

.cnc-system-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.cnc-system-card:hover .cnc-system-img-wrap img {
  transform: scale(1.06);
}

.cnc-system-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cnc-spec-pill {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
  display: inline-block;
  margin-bottom: 12px;
}

/* 7. LIMS MODULES GRID */
.lims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.lims-module-card {
  background: rgba(18, 24, 34, 0.7);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  gap: 14px;
  transition: all var(--transition-fast);
}

.lims-module-card:hover {
  border-color: var(--orange-primary);
  background: rgba(241, 90, 36, 0.04);
  transform: translateY(-2px);
}

.lims-module-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(241, 90, 36, 0.1);
  border: 1px solid var(--orange-border);
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 7B. NON-ACCREDITED TRACEABLE CALIBRATION SCOPES */
.nonacc-toolbar,
.nonacc-search-filter-wrap {
  background: var(--bg-surface, #141a24);
  border: 1px solid var(--border-graphite, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nonacc-toolbar-header,
.nonacc-filter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nonacc-toolbar-title {
  font-family: var(--font-display, inherit);
  font-size: 1.25rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 4px;
}

.nonacc-toolbar-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.nonacc-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-graphite, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-sm, 8px);
  padding: 10px 16px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nonacc-search-wrap:focus-within {
  border-color: var(--orange-primary, #f15a24);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.2);
}

.nonacc-search-wrap svg {
  color: var(--text-muted, #94a3b8);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.nonacc-search-wrap:focus-within svg {
  color: var(--orange-primary, #f15a24);
}

.nonacc-search-input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0;
}

.nonacc-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}

.nonacc-tabs,
.nonacc-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nonacc-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-graphite, rgba(255, 255, 255, 0.1));
  color: var(--text-muted, #94a3b8);
  padding: 8px 16px;
  border-radius: var(--radius-full, 999px);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nonacc-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nonacc-tab-btn.active {
  background: var(--orange-primary, #f15a24);
  border-color: var(--orange-primary, #f15a24);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(241, 90, 36, 0.35);
}

.nonacc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.nonacc-card {
  background: var(--bg-surface, #141a24);
  border: 1px solid var(--border-graphite, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  padding: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.nonacc-card:hover {
  border-color: var(--orange-primary, #ff6600);
  background: rgba(255, 102, 0, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px var(--orange-glow, rgba(255, 102, 0, 0.25));
}

.nonacc-img-wrap {
  width: 100%;
  height: 165px;
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nonacc-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 149px;
  object-fit: contain;
  transition: transform 0.35s ease;
  display: block;
}

.nonacc-card:hover .nonacc-img {
  transform: scale(1.08);
}

.nonacc-traceable-badge {
  display: none !important;
}

.nonacc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.nonacc-cat {
  font-family: var(--font-technical, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-primary, #ff6600);
  margin-bottom: 4px;
  font-weight: 700;
}

.nonacc-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.35;
}

.nonacc-desc {
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  margin-bottom: 8px;
}

.nonacc-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.25s ease;
  margin-top: auto;
}

.nonacc-card:hover .nonacc-cta {
  background: linear-gradient(135deg, var(--orange-primary, #ff6600) 0%, var(--orange-highlight, #ff7a30) 100%);
  border-color: var(--orange-highlight, #ff7a30);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--orange-glow, rgba(255, 102, 0, 0.3));
}

/* 8. API & NDT GALLERY */
.service-photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.service-photo-thumb {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  border: 1px solid var(--border-graphite);
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-photo-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--orange-primary);
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.2);
}

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

.service-photo-thumb:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   8B. THIRD-PARTY INSPECTION (TPI) & EXPEDITING
   ========================================================================== */
.tpi-hero-banner {
  background: linear-gradient(135deg, rgba(20, 24, 33, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.tpi-hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange-primary) 0%, rgba(241, 90, 36, 0.2) 100%);
}

.tpi-overview-lead {
  font-size: 1.05rem;
  color: #FFFFFF;
  line-height: 1.75;
  margin-bottom: 16px;
}

.tpi-overview-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.tpi-itp-highlight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(241, 90, 36, 0.08);
  border: 1px solid rgba(241, 90, 36, 0.25);
  border-radius: 8px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #ff9d66;
  line-height: 1.5;
}

.tpi-itp-highlight svg {
  color: var(--orange-primary);
  flex-shrink: 0;
}

/* Regulatory Framework Strip */
.tpi-framework-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.tpi-framework-header {
  margin-bottom: 16px;
}

.tpi-framework-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tpi-framework-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tpi-framework-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tpi-code-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tpi-code-badge:hover {
  border-color: var(--orange-primary);
  color: #FFFFFF;
  background: rgba(241, 90, 36, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 90, 36, 0.15);
}

.tpi-code-badge .badge-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* 7 Core Services Grid */
.tpi-section-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tpi-section-lead {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.tpi-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.tpi-service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.tpi-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tpi-service-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-primary);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tpi-service-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tpi-service-heading svg {
  color: var(--orange-primary);
  flex-shrink: 0;
}

.tpi-service-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Benefits Grid */
.tpi-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.tpi-benefit-card {
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.04) 0%, rgba(20, 24, 33, 0.85) 100%);
  border: 1px solid var(--border-graphite);
  border-top: 3px solid var(--orange-primary);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: all 0.25s ease;
}

.tpi-benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange-primary);
  box-shadow: 0 8px 24px rgba(241, 90, 36, 0.15);
}

.tpi-benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(241, 90, 36, 0.12);
  border: 1px solid rgba(241, 90, 36, 0.25);
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tpi-benefit-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.tpi-benefit-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Industry Verticals Grid */
.tpi-industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.tpi-industry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tpi-industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.tpi-industry-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0d1117;
  position: relative;
}

.tpi-industry-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tpi-industry-card:hover .tpi-industry-img-wrap img {
  transform: scale(1.08);
}

.tpi-industry-caption {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  letter-spacing: 0.01em;
}

/* Disciplines Grid */
.tpi-disciplines-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-graphite);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 32px;
}

.tpi-disciplines-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.tpi-discipline-pill {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.tpi-discipline-pill:hover {
  background: rgba(241, 90, 36, 0.08);
  border-color: rgba(241, 90, 36, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 10px rgba(241, 90, 36, 0.15);
}

.tpi-discipline-symbol {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.tpi-discipline-pill:hover .tpi-discipline-symbol {
  background: rgba(244, 122, 60, 0.15);
  border-color: rgba(244, 122, 60, 0.45);
}

.tpi-discipline-symbol-img {
  width: 26px;
  height: 26px;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 1px rgba(244, 122, 60, 0.7));
  transition: transform 0.25s ease, filter 0.25s ease;
  pointer-events: none;
}

.tpi-discipline-pill:hover .tpi-discipline-symbol-img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(244, 122, 60, 0.95)) brightness(1.2);
}

.tpi-discipline-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #CBD5E1;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.tpi-discipline-pill:hover .tpi-discipline-text {
  color: #FFFFFF;
}

.tpi-discipline-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-primary);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(241, 90, 36, 0.6);
}

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .services-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cnc-systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .tpi-industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tpi-benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 110px 0 40px 0;
  }
  .services-stats-grid {
    grid-template-columns: 1fr;
  }
  .cnc-systems-grid {
    grid-template-columns: 1fr;
  }
  .service-photo-gallery {
    grid-template-columns: 1fr;
  }
  .service-section-wrap {
    padding: 50px 0;
  }
  .nonacc-toolbar-header {
    flex-direction: column;
    align-items: stretch;
  }
  .nonacc-search-wrap {
    max-width: 100%;
  }
  .tpi-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tpi-services-grid {
    grid-template-columns: 1fr;
  }
  .tpi-hero-banner {
    padding: 24px 20px;
  }
}
