/* =============================================
   APEX MARKETING - Custom Styles
   Supplement to Tailwind CSS utilities
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --navy: #0a1628;
  --navy-2: #0f1f3d;
  --blue: #1a56db;
  --blue-light: #3b82f6;
  --orange: #f97316;
  --orange-d: #ea580c;
  --light: #f8fafc;
  --gray: #6b7280;
  --border: #1e3a5f;
  --transition: 0.3s ease;
}

/* ---- Base ---- */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: #ffffff;
  color: #1f2937;
  overflow-x: hidden;
}

::selection {
  background: var(--orange);
  color: #fff;
}

/* ---- Scroll-reveal animation classes ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.stagger-1 {
  transition-delay: 0.05s;
}
.stagger-2 {
  transition-delay: 0.15s;
}
.stagger-3 {
  transition-delay: 0.25s;
}
.stagger-4 {
  transition-delay: 0.35s;
}
.stagger-5 {
  transition-delay: 0.45s;
}
.stagger-6 {
  transition-delay: 0.55s;
}

/* ---- Navbar ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition:
    background var(--transition),
    box-shadow var(--transition);
  width: 100vw;
}
#navbar.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.775rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active-link {
  color: #fff;
}
.nav-link:hover::after,
.nav-link.active-link::after {
  width: 100%;
}

/* Hamburger lines */
.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}
#hamburger.open .ham-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
}
#hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(14px);
}
#mobile-menu.open {
  max-height: 500px;
}

/* ---- Hero ---- */
.hero-bg {
  background: linear-gradient(
    135deg,
    #070e1d 0%,
    #0a1628 40%,
    #0f2040 70%,
    #0a1628 100%
  );
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 65% 50%,
      rgba(26, 86, 219, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 20% 80%,
      rgba(249, 115, 22, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 219, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.hero-title .highlight {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 1s ease 0.5s;
}
.hero-title .highlight.animate-underline::after {
  transform: scaleX(1);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 35%;
  padding: 0.45rem 1rem;
  background: rgba(26, 86, 219, 0.15);
  border: 1px solid rgba(26, 86, 219, 0.35);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.hero-badge:hover {
  background: rgba(26, 86, 219, 0.28);
  border-color: rgba(26, 86, 219, 0.6);
  color: #fff;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #000000;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 0.5rem;
  border: 2px solid var(--orange);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--orange-d);
  border-color: var(--orange-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--blue);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Stats bar ---- */
.stats-bar {
  background: linear-gradient(90deg, #0f1f3d 0%, #102141 50%, #0f1f3d 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  height: 50px;
}

/* ---- Section headings ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-tag::before,
.section-tag::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}
.section-title.light {
  color: #fff;
}
.section-desc {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
  max-width: 680px;
}
.section-desc.light {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Product cards ---- */
.product-card {
  background: #fff;
  border: 1px solid #c6c6c7;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.product-card:hover {
  box-shadow: 0 16px 48px rgba(26, 86, 219, 0.12);
  transform: translateY(-4px);
  border-color: #bfdbfe;
}
.product-card:hover::before {
  transform: scaleX(1);
}
.product-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    rgba(26, 86, 219, 0.12),
    rgba(59, 130, 246, 0.08)
  );
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(26, 86, 219, 0.15);
}
.product-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  padding: 0.3rem 0;
}
.product-feature-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Partner cards ---- */
.partner-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  transition: all var(--transition);
  box-shadow: 4px 4px 4px #80808080;
}
.partner-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 8px 8px 8px #80808080;
}
.partner-logo-badge {
  background: linear-gradient(135deg, #1a56db, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  display: inline-block;
  margin-bottom: 1rem;
}
.partner-logo-badge.siemens {
  background: linear-gradient(135deg, #009bd5, #0098d7);
}
.partner-logo-badge.yaskawa {
  background: linear-gradient(135deg, #003087, #1565c0);
}

.component-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  transition: all var(--transition);
  text-align: center;
}
.component-partner:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--blue);
}

/* ---- Cert cards ---- */
.cert-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cert-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cert-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.1);
  transform: translateY(-3px);
}
.cert-badge-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.2),
    rgba(249, 115, 22, 0.1)
  );
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.cert-detail-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cert-detail-item:last-child {
  border-bottom: none;
}
.cert-detail-item strong {
  color: rgba(255, 255, 255, 0.9);
  min-width: 90px;
}

/* ---- Why choose cards ---- */
.why-card {
  background: #fff;
  border: 1px solid #c6c6c7;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all var(--transition);
}
.why-card:hover {
  box-shadow: 0 16px 40px rgba(26, 86, 219, 0.1);
  border-color: #93c5fd;
  transform: translateY(-3px);
}
.why-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(26, 86, 219, 0.5);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* ---- Industry cards ---- */
.industry-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.industry-card:hover {
  background: var(--navy);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.15);
}
.industry-card:hover .industry-icon-wrap {
  background: rgba(249, 115, 22, 0.2);
}
.industry-card:hover .industry-name {
  color: #fff;
}
.industry-icon-wrap {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  transition: background var(--transition);
}
.industry-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  transition: color var(--transition);
}

/* ---- Gallery ---- */
.gallery-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background:
    radial-gradient(
      circle at top right,
      rgba(249, 115, 22, 0.08),
      transparent 28%
    ),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 14px 40px rgba(15, 31, 61, 0.06);
  align-items: center;
}
.gallery-summary-eyebrow,
.gallery-section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.55rem;
}
.gallery-summary-title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
}
.gallery-summary-copy {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #6b7280;
}
.gallery-section-card {
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 16px 42px rgba(15, 31, 61, 0.07);
}
.gallery-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.gallery-section-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
}
.gallery-section-meta {
  max-width: 360px;
}
.gallery-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.gallery-section-count-orange {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.gallery-section-count-blue {
  background: rgba(26, 86, 219, 0.1);
  color: var(--blue);
  border: 1px solid rgba(26, 86, 219, 0.16);
}
.gallery-section-copy {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #6b7280;
}
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  /* gap: 1rem; */
}
.gallery-photo-card {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.gallery-photo-frame {
  display: block;
  position: relative;
  overflow: hidden;
  /* border-radius: 1rem; */
  border: 1px solid #dbe4f0;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  aspect-ratio: 4 / 3;
}
.gallery-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}
.gallery-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.04) 0%,
    rgba(10, 22, 40, 0.18) 45%,
    rgba(10, 22, 40, 0.84) 100%
  );
}
.gallery-photo-label {
  font-size: 0.7rem;
  /* font-weight: 600; */
  color: #ffffff;
  line-height: 1.4;
  border: solid 1px white;
  padding: 0.2rem 0.6rem 0.1rem 0.6rem;
  border-radius: 1rem;
  background: #00000045;
  opacity: 0.8;
}
.gallery-photo-card:hover .gallery-photo-image,
.gallery-photo-card:focus-visible .gallery-photo-image {
  transform: scale(1.05);
  filter: saturate(1.03);
}
.gallery-photo-card:focus-visible {
  outline: 3px solid rgba(26, 86, 219, 0.22);
  outline-offset: 4px;
  border-radius: 1rem;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.open {
  opacity: 1;
  pointer-events: all;
}
#lightbox-content {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 680px;
  width: 90%;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  max-height: 90vh;
}
#lightbox.open #lightbox-content {
  transform: scale(1);
}
.lightbox-media {
  width: 100%;
  min-height: 220px;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #1a2e4a);
}
.lightbox-image {
  display: block;
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
}

/* ---- Contact ---- */
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition);
}
.contact-card:hover {
  background: rgba(26, 86, 219, 0.1);
  border-color: rgba(26, 86, 219, 0.4);
}
.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: orange;
}
.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fff;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

/* ---- Footer ---- */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
}
.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-link:hover {
  color: var(--orange);
}
.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: all var(--transition);
}
.footer-cert-badge:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fff;
}

/* ---- Quick action buttons ---- */
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.quick-action-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateX(4px);
}

/* ---- Toast notification ---- */
#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  border-left: 4px solid var(--blue);
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}
#toast.success {
  border-left-color: #10b981;
}
#toast.error {
  border-left-color: #ef4444;
}

/* ---- Misc ---- */
.underline-accent {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}
.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}
.divider.dark {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
}

/* ---- Responsive overrides ---- */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }
  .btn-primary,
  .btn-secondary {
    padding: 0.5rem 0.7rem;
    font-size: 0.875rem;
  }
  .stat-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }
  .gallery-summary-card,
  .gallery-section-head {
    grid-template-columns: 1fr;
    display: grid;
  }
  .gallery-section-meta {
    max-width: none;
  }
  .gallery-photo-grid {
    grid-template-columns: 1fr;
  }
}
/* ---- Certificate Directory (tabbed table) ---- */
.cert-dir-wrap {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.cert-dir-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Tabs */
.cert-dir-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.cert-dir-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  bottom: -1px;
  letter-spacing: 0.3px;
}
.cert-dir-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
}
.cert-dir-tab.active {
  color: #fff;
  border-bottom-color: var(--orange);
  background: rgba(249, 115, 22, 0.06);
}
.cert-dir-tab.active svg {
  color: var(--orange);
}
.cert-dir-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
}
.cert-dir-tab.active .cert-dir-count {
  background: rgba(249, 115, 22, 0.25);
  color: var(--orange);
}

/* Panels */
.cert-dir-panel {
  display: none;
}
.cert-dir-panel.active {
  display: block;
}

/* Table */
.cert-dir-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cert-dir-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.cert-dir-table thead tr {
  border-bottom: 1px solid var(--border);
  background: rgba(26, 86, 219, 0.06);
}
.cert-dir-table th {
  padding: 0.8rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.cert-dir-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition);
}
.cert-dir-table tbody tr:last-child {
  border-bottom: none;
}
.cert-dir-table tbody tr:hover {
  background: rgba(26, 86, 219, 0.07);
}
.cert-dir-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  vertical-align: middle;
}

/* Cell helpers */
.cert-dir-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
}
.cert-dir-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 0.2rem;
  padding-left: 1rem;
}
.cert-dir-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cert-dir-dot.quality {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}
.cert-dir-dot.partner {
  background: #60a5fa;
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.5);
}
.cert-dir-dot.cpri {
  background: var(--orange);
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.5);
}

.cert-dir-code {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: rgba(249, 115, 22, 0.8);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}
.cert-dir-std {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.cert-dir-validity {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.cert-dir-validity.valid {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
}
.cert-dir-validity.expired {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
}

/* View PDF button */
.cert-dir-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.cert-dir-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Footer note */
.cert-dir-footer {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.cert-dir-footer p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 640px) {
  .cert-dir-tab {
    padding: 0.75rem 1rem;
    font-size: 0.76rem;
  }
}

/* ---- Partner logo image wrappers (replaces text badges) ---- */
.partner-logo-img-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 56px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  width: fit-content;
  min-width: 160px;
  max-width: 240px;
}

.partner-logo-img {
  max-height: 38px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: filter 0.2s ease;
}

.partner-card:hover .partner-logo-img {
  filter: brightness(1.05);
}

/* ---- Component partner logo grid ---- */
.component-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .component-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .component-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.component-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  cursor: default;
}

.component-logo-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.component-logo-item img {
  height: 36px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
  /* Normalise dark/coloured backgrounds to transparent look */
  mix-blend-mode: multiply;
}

.component-logo-item span {
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---- Premium Trust Showcase ---- */
.trust-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Tier 1: Siemens - Primary Partner */
.trust-tier-1 .trust-card-premium {
  background: linear-gradient(135deg, #0a1628 0%, #102141 50%, #0a1628 100%);
  border: 1px solid rgba(30, 58, 95, 0.8);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(249, 115, 22, 0.6),
    transparent
  );
}

.trust-card-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at 20% 50%,
    rgba(26, 86, 219, 0.08) 0%,
    transparent 80%
  );
  pointer-events: none;
}

.trust-card-premium:hover {
  border-color: rgba(30, 58, 95, 1);
  box-shadow:
    0 20px 48px rgba(249, 115, 22, 0.12),
    inset 0 0 1px rgba(249, 115, 22, 0.2);
  transform: translateY(-4px);
}

.trust-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.trust-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  flex-shrink: 0;
}

.trust-icon-primary {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: rgba(249, 115, 22, 0.15);
  border: 2px solid rgba(249, 115, 22, 0.3);
}

.trust-badge-tier {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), #ff8c42);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.trust-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.trust-title-lg {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.trust-subtitle {
  font-size: 0.8rem;
  color: rgba(249, 115, 22, 0.9);
  margin: 0.2rem 0 0.5rem 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trust-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0.6rem 0;
}

.trust-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(249, 115, 22, 0.3),
    transparent
  );
  margin: 0.75rem 0;
}

.trust-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.trust-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.trust-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 0.3rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.trust-logo-secondary {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.trust-logo-compact {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Tier 2: Secondary Partners */
.trust-tier-2 .trust-card-secondary {
  background: #fff;
  border: 1px solid #d6d8d9;
  border-radius: 0.875rem;
  padding: 1.1rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.trust-card-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.trust-card-secondary:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 32px rgba(26, 86, 219, 0.1);
  transform: translateY(-3px);
}

.trust-card-secondary:hover::before {
  transform: scaleX(1);
}

.trust-card-secondary .trust-icon-secondary {
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    rgba(26, 86, 219, 0.1),
    rgba(59, 130, 246, 0.08)
  );
  border: 1px solid rgba(26, 86, 219, 0.2);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.trust-card-secondary .trust-title {
  font-size: 1rem;
  color: #111827;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.trust-caption {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  margin: 0.2rem 0 0.4rem 0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.trust-dot-divider {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin: 0.4rem 0;
}

.trust-small-text {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

/* Tier 3: Compact Partner Cards */
.trust-tier-3 .trust-card-compact {
  background: #fff;
  border: 1px solid #d6d8d9;
  border-radius: 0.75rem;
  padding: 1.25rem 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.trust-card-compact:hover {
  border-color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(26, 86, 219, 0.06);
  transform: translateY(-2px);
  background: #fafbfc;
}

.trust-icon-compact {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(26, 86, 219, 0.08);
}

.trust-partner-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.1;
}

.trust-partner-role {
  font-size: 0.7rem;
  color: #9ca3af;
  margin: 0;
  font-weight: 500;
}

/* Section Divider */
.trust-section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #e5e7eb 20%,
    #e5e7eb 80%,
    transparent
  );
  margin: 0.9rem 0;
}

.trust-section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.8rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
}

/* Approvals Section */
.trust-tier-approvals .trust-card-approval {
  background: linear-gradient(135deg, #f0fdf4 0%, #f1f5f9 100%);
  border: 1px solid #d1e7dd;
  border-radius: 0.75rem;
  padding: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.trust-card-approval:hover {
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fef9 100%);
}

.trust-icon-approval {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.trust-approval-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.trust-approval-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .trust-card-premium {
    padding: 1.1rem;
  }

  .trust-title-lg {
    font-size: 1.15rem;
  }

  .trust-icon {
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .trust-showcase {
    gap: 0.75rem;
  }

  .trust-tier-2 .grid,
  .trust-tier-3 .grid {
    grid-template-columns: 1fr !important;
  }

  .trust-tier-3 .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .trust-card-premium {
    padding: 1rem;
  }

  .trust-card-secondary {
    padding: 0.95rem;
  }

  .trust-title-lg {
    font-size: 1.1rem;
  }

  .trust-title {
    font-size: 0.95rem;
  }

  .trust-description {
    font-size: 0.85rem;
  }

  .trust-icon {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .trust-showcase {
    gap: 0.6rem;
  }

  .trust-tier-2 .grid {
    grid-template-columns: 1fr !important;
  }

  .trust-tier-3 .grid {
    grid-template-columns: 1fr !important;
  }

  .trust-card-premium {
    padding: 0.9rem;
  }

  .trust-card-secondary {
    padding: 0.85rem;
  }

  .trust-card-compact {
    padding: 0.8rem;
  }

  .trust-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .trust-title-lg {
    font-size: 1rem;
  }

  .trust-title {
    font-size: 0.9rem;
  }

  .trust-highlights {
    font-size: 0.8rem;
  }

  .trust-description {
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }
  .cert-dir-tabs {
    overflow-x: scroll;
  }
}

/* ---- Trusted Clients Grid ---- */
.clients-logo-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.client-logo-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}

.client-logo-item img {
  max-height: 48px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Make all logos appear light/white against dark background */
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition:
    opacity 0.25s ease,
    filter 0.25s ease;
}

.client-logo-item:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) sepia(1) saturate(0.5) hue-rotate(0deg);
}

@media (max-width: 640px) {
  .clients-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 160px));
    gap: 14px;
  }

  .client-logo-item {
    width: 40%;
  }
}
