/* Asia Core Group — Page-specific styles (Mobile First) */

/* =========================================================
   Homepage
   ========================================================= */
.home .main {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.home .hero-media {
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.home .section-title-link:hover,
.home .section-title-link:focus {
  text-decoration: none;
}

.home .lead-text {
  padding: 0;
  margin-bottom: var(--space-5);
  color: var(--acg-text);
  font-size: var(--text-base);
  text-align: justify;
  line-height: 1.55;
}

.home .lead-text p {
  margin-bottom: var(--space-1);
}

.home .lead-text p:last-child {
  margin-bottom: 0;
}

.home .our-products {
  background-color: var(--acg-bg-gray);
}

.home .our-services {
  background-color: var(--acg-bg);
  border-top: 1px solid var(--acg-border);
  border-bottom: 1px solid var(--acg-border);
}

.home .our-clients {
  background: linear-gradient(160deg, var(--acg-navy) 0%, #17175c 55%, var(--acg-navy) 100%);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  overflow: hidden;
  position: relative;
}

/* Inverted title treatment on the navy band */
.home .our-clients .section-title {
  color: var(--acg-white);
}

.home .our-clients .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

.home .our-clients .section-cta {
  margin-top: var(--space-6);
  text-align: center;
}

.home .our-clients .main {
  padding-top: 0;
  padding-bottom: 0;
}

/* Intro section alignment */
.about-intro-row {
  align-items: center;
}

.intro-content {
  margin-bottom: var(--space-7);
}

.intro-image {
  text-align: center;
}

/* Section title link */
.section-title-link {
  color: inherit;
  display: block;
  text-align: center;
}

.section-title-link:hover,
.section-title-link:focus {
  color: inherit;
  text-decoration: none;
}

.section-title-link .section-title {
  margin-bottom: 0;
}

/* Variant section separators */
.variant-section {
  border-top: 1px solid var(--acg-border);
}

.variant-section .section-title-area {
  margin-bottom: var(--space-7);
}

/* =========================================================
   Product Variant 1 — Tabs
   ========================================================= */
.product-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--acg-border);
}

.product-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--acg-text-light);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  /* max-width: 180px; */
}

.product-tab .tab-img {
  display: block;
  width: 90%;
  /* height: 86px; */
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.product-tab .tab-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.product-tab .tab-name {
  display: block;
  text-align: center;
}

.product-tab .tab-desc {
  display: block;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--acg-text-light);
  text-align: center;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-bottom: var(--space-1);
}

.product-tab.active .tab-desc,
.product-tab[aria-selected="true"] .tab-desc {
  /* color: var(--acg-white); */
  opacity: 1;
}

.product-tab::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: calc(-1 * var(--space-5));
  translate: -50% 0 scaleX(0);
  width: calc(100% - var(--space-6));
  height: 3px;
  background: var(--acg-red);
  border-radius: var(--radius-full);
  transition: translate var(--transition-base);
}

.product-tab:hover,
.product-tab:focus {
  color: var(--acg-heading);
  background: var(--acg-bg-light);
}

.product-tab.active,
.product-tab[aria-selected="true"] {
  color: var(--acg-white);
  background: var(--acg-red);
  border-style: solid;
  border-width: 1px 1px 0 1px;
  border-color: var(--acg-muted);
  /* border-radius: var(--radius-sm); */
}

.product-tab.active::after,
.product-tab[aria-selected="true"]::after {
  translate: -50% 0 scaleX(0);
}

.product-tab:not(.active):not([aria-selected="true"]) {
  background: var(--acg-navy);
  color: var(--acg-white);
}

.product-tabs-content {
  position: relative;
}

.product-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(var(--space-3));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Product Variant 2 — Masonry / Asymmetric Grid
   ========================================================= */
.masonry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  display: block;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.masonry-item:hover,
.masonry-item:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.masonry-item:hover img,
.masonry-item:focus img {
  transform: scale(1.08);
}

.masonry-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-5);
  background: linear-gradient(0deg, rgba(12, 12, 69, 0.85), transparent);
  color: var(--acg-white);
  transition: background 0.3s ease;
}

.masonry-item:hover .masonry-caption,
.masonry-item:focus .masonry-caption {
  background: linear-gradient(0deg, rgba(224, 34, 34, 0.92), rgba(224, 34, 34, 0.25));
}

.masonry-caption .eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-1);
}

.masonry-caption strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
}

.masonry-caption b {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  margin-top: var(--space-1);
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   Product Variant 3 — Horizontal Scroll Cards
   ========================================================= */
.product-scroll-wrapper {
  position: relative;
  padding: 0;
}

.product-scroll-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: var(--space-3) var(--space-3);
  margin: 0 calc(-1 * var(--space-3));
  scrollbar-width: none;
}

.product-scroll-track::-webkit-scrollbar {
  display: none;
}

.product-scroll-track .horizontal-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  margin-bottom: 0;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--radius-full);
  border: 1px solid var(--acg-border);
  background: var(--acg-bg);
  color: var(--acg-heading);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.scroll-arrow:hover,
.scroll-arrow:focus {
  background: var(--acg-red);
  border-color: var(--acg-red);
  color: var(--acg-white);
  transform: translateY(-50%) scale(1.08);
}

.scroll-prev {
  left: 0;
}

.scroll-next {
  right: 0;
}

/* =========================================================
   Product Variant 4 — Minimal List with Thumbnails
   ========================================================= */
.product-list-minimal {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--acg-bg);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.product-list-item:hover,
.product-list-item:focus {
  border-color: var(--acg-red);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.product-list-thumb {
  flex-shrink: 0;
  width: var(--space-11);
  height: var(--space-11);
  border-radius: var(--radius-md);
  background: var(--acg-bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-list-thumb img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.product-list-item:hover .product-list-thumb img,
.product-list-item:focus .product-list-thumb img {
  transform: scale(1.08);
}

.product-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-list-meta {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--acg-red);
}

.product-list-body strong {
  font-size: var(--text-lg);
  color: var(--acg-heading);
  font-weight: 700;
}

.product-list-desc {
  font-size: var(--text-sm);
  color: var(--acg-text-light);
  line-height: var(--leading-normal);
}

.product-list-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--acg-bg-light);
  color: var(--acg-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.product-list-item:hover .product-list-arrow,
.product-list-item:focus .product-list-arrow {
  background: var(--acg-red);
  color: var(--acg-white);
  transform: translateX(3px);
}

/* =========================================================
   Product Variant 5 — Large Featured + Sidebar Grid
   ========================================================= */
.featured-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.featured-large {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-large:hover,
.featured-large:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.featured-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.featured-large:hover img,
.featured-large:focus img {
  transform: scale(1.05);
}

.featured-caption {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  padding: var(--space-6);
  background: linear-gradient(0deg, rgba(12, 12, 69, 0.88), transparent);
  color: var(--acg-white);
}

.featured-caption .eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-1);
}

.featured-caption strong {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
}

.featured-caption b {
  display: block;
  font-size: var(--text-base);
  font-weight: 400;
  margin-top: var(--space-1);
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

/* NOTE: .sidebar-grid/.sidebar-item have no template usage since the
   featured-layout refactor; kept as a no-op grid utility. */
.sidebar-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: block;
  aspect-ratio: 16 / 10;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sidebar-item:hover,
.sidebar-item:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.sidebar-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.sidebar-item:hover img,
.sidebar-item:focus img {
  transform: scale(1.08);
}

.sidebar-caption {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(12, 12, 69, 0.85), transparent);
  color: var(--acg-white);
}

.sidebar-caption strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-caption b {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  margin-top: var(--space-1);
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   Client Marquee
   ========================================================= */
.client-marquee {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: var(--space-6) 0;
  background: transparent;
  box-sizing: border-box;
  position: relative;
  contain: paint;
  /* Edge fade into the navy band on both sides — symmetric, so it works
     unchanged in RTL and LTR. */
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.client-marquee-track {
  display: flex;
  align-items: center;
  /* Spacing lives on the ITEMS (margin), not the track: with track `gap`,
     translateX(-50%) lands one copy plus half a gap off, causing a visible
     seam jump every loop. Item margins make -50% exactly one copy. */
  --acg-marquee-duration: 35s;
  width: max-content;
  animation: marqueeScroll var(--acg-marquee-duration, 35s) linear infinite;
}

.client-marquee:hover .client-marquee-track,
.client-marquee:focus-within .client-marquee-track {
  animation-play-state: paused;
}

.client-marquee-content {
  display: contents;
}

.client-marquee-item {
  flex-shrink: 0;
  width: 170px;
  height: 96px;
  margin-inline-end: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--acg-white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.client-marquee-item:hover,
.client-marquee-item:focus {
  border-color: var(--acg-red);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  text-decoration: none;
}

/* Full-color logos with a gentle idle state — modern trust walls keep brand
   colors visible; the tile itself provides the contrast on the navy band. */
.client-marquee-item img {
  max-height: 100px;
  width: auto;
  max-width: 100%;
  display: block;
  opacity: 0.92;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.client-marquee-item:hover img,
.client-marquee-item:focus img {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Batched navigation mode (JS adds .is-batch) --- */
.client-marquee.is-batch {
  /* Room for the nav arrows above the strip. */
  padding-top: calc(var(--space-6) + 34px);
}

.client-marquee.is-batch .client-marquee-track {
  animation: none;
  transition: transform 0.6s ease;
  will-change: transform;
}

.client-marquee-nav {
  display: none;
}

.client-marquee.is-batch .client-marquee-nav {
  display: flex;
  gap: 8px;
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.client-marquee-nav-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.client-marquee-nav-btn:hover,
.client-marquee-nav-btn:focus-visible {
  border-color: var(--acg-red, #e63946);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

[dir="rtl"] .client-marquee-nav-btn i {
  transform: scaleX(-1);
}

.client-marquee.nav-hidden .client-marquee-nav {
  display: none;
}

@media (min-width: 480px) {
  .client-marquee-item {
    margin-inline-end: var(--space-3);
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .home .main {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .home .lead-text {
    font-size: 16px;
  }

  .intro-content {
    margin-bottom: 0;
  }

  .variant-section .section-title-area {
    margin-bottom: var(--space-8);
  }

  .product-tabs-nav {
    gap: var(--space-3);
    margin-bottom: var(--space-8);
  }

  .product-tab {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-5);
  }

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

  .masonry-item {
    aspect-ratio: auto;
    min-height: 240px;
  }

  .masonry-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 360px;
  }

  .masonry-wide {
    grid-column: span 2;
  }

  .product-scroll-wrapper {
    padding: 0 var(--space-9);
  }

  .scroll-arrow {
    display: inline-flex;
    width: var(--space-9);
    height: var(--space-9);
  }

  .product-scroll-track .horizontal-card {
    flex: 0 0 320px;
  }

  .product-list-item {
    padding: var(--space-5);
    gap: var(--space-5);
  }

  .product-list-thumb {
    width: var(--space-12);
    height: var(--space-12);
  }

  .product-list-body strong {
    font-size: var(--text-xl);
  }

  .product-list-desc {
    font-size: var(--text-base);
  }

  .featured-layout {
    grid-template-columns: 1fr 1fr;
  }

  .featured-large {
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .sidebar-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .client-marquee-item {
    width: 200px;
    height: 112px;
  }

  /* .client-marquee-item img {
    max-height: 60px;
  } */
}

/* Desktop and up */
@media (min-width: 992px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .masonry-item {
    min-height: 260px;
  }

  .masonry-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
  }

  .masonry-wide {
    grid-column: span 2;
  }

  .product-scroll-track .horizontal-card {
    flex: 0 0 360px;
  }

  .client-marquee-item {
    width: 220px;
    height: 124px;
  }

  /* .client-marquee-item img {
    max-height: 68px;
  } */
}

/* =========================================================
   About Us Page
   ========================================================= */
.page-template-page-about-us .main {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.page-template-page-about-us .content-page {
  padding-bottom: 0;
}

.page-template-page-about-us .about-features {
  padding: var(--space-6) 0 0;
}

.page-template-page-about-us .about-feature {
  text-align: center;
  margin-bottom: var(--space-6);
  padding: var(--space-6) var(--space-5);
  padding-top: calc(var(--space-6) + 6px);
  background: var(--acg-bg);
  border: 1px solid var(--acg-border);
  border-top: 3px solid var(--acg-red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.page-template-page-about-us .about-feature:hover,
.page-template-page-about-us .about-feature:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--acg-red);
}

.page-template-page-about-us .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(200,16,46,0.10), rgba(12,12,69,0.06));
  border: 2px solid rgba(200,16,46,0.18);
  color: var(--acg-red);
  font-size: 28px;
  line-height: 1;
  transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.page-template-page-about-us .about-feature:hover .feature-icon,
.page-template-page-about-us .about-feature:focus-within .feature-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--acg-red), var(--acg-navy));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(200,16,46,0.32);
  color: var(--acg-white);
}

.page-template-page-about-us .about-feature:hover .feature-icon i,
.page-template-page-about-us .about-feature:focus-within .feature-icon i {
  transform: none;
}

.page-template-page-about-us .about-feature h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.page-template-page-about-us .about-feature p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--acg-text-light);
  margin-bottom: 0;
}

/* =========================================================
   Timeline — Horizontal (desktop) / Vertical (mobile)
   ========================================================= */
.timeline-section {
  padding: var(--space-7) 0 var(--space-8);
  overflow-x: hidden;
}

.timeline-section .section-title-area {
  margin-bottom: var(--space-6);
}

.timeline-wrap {
  position: relative;
  overflow: hidden;
}

/* Horizontal line — visible on desktop only */
.timeline-line {
  display: none;
}

/* ---- Mobile: vertical layout ---- */
.timeline-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-inline-start: var(--space-6);
  border-inline-start: 3px solid var(--acg-red);
}

.timeline-dot {
  position: absolute;
  inset-inline-start: -8px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: var(--radius-full);
  background: var(--acg-red);
  border: 3px solid var(--acg-bg);
  box-shadow: 0 0 0 2px var(--acg-red);
  flex-shrink: 0;
  z-index: 2;
}

.timeline-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--acg-bg);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.timeline-item:hover .timeline-body {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--acg-red);
}

.timeline-year {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--acg-white);
  background: var(--acg-red);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.timeline-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--acg-heading);
  margin-bottom: var(--space-2);
  line-height: 1.35;
}

.timeline-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--acg-text-light);
  margin: 0;
  flex: 1;
}

/* =========================================================
   Desktop — horizontal layout inside container
   ========================================================= */
@media (min-width: 768px) {
  .timeline-section {
    padding: var(--space-8) 0;
  }

  .timeline-section .section-title-area {
    margin-bottom: var(--space-7);
  }

  .timeline-items {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-4);
  }

  .timeline-item {
    flex: 1 1 0;
    min-width: 0;
    border-inline-start: none;
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Central horizontal line */
  .timeline-line {
    display: block;
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--acg-red), var(--acg-red-alpha-12));
    border-radius: 2px;
    z-index: 0;
  }

  .timeline-dot {
    position: relative;
    inset-inline-start: auto;
    top: auto;
    width: 15px;
    height: 15px;
    border-width: 3px;
    margin-bottom: var(--space-4);
    z-index: 2;
  }

  /* Vertical connector from dot to card */
  .timeline-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 14px;
    background: var(--acg-red);
    transform: translateX(-50%);
    opacity: 0.4;
  }

  .timeline-body {
    text-align: start;
    padding: var(--space-5) var(--space-4);
    height: 100%;
  }

  .timeline-year {
    align-self: center;
  }

  .timeline-title {
    font-size: var(--text-lg);
  }
}

/* Desktop large — more breathing room */
@media (min-width: 992px) {
  .timeline-items {
    gap: var(--space-5);
  }

  .timeline-body {
    padding: var(--space-6) var(--space-5);
  }
}

/* RTL: mirror the horizontal line gradient */
[dir="rtl"] .timeline-line {
  background: linear-gradient(270deg, var(--acg-red), var(--acg-red-alpha-12));
}

.page-template-page-about-us .locations-section {
  background: var(--acg-bg-light);
  border-top: 1px solid var(--acg-border);
}

/* Keep locations cards centered in RTL (override rtl.css right-align) */
[dir="rtl"] .page-template-page-about-us .locations-section .service-box-v1 p,
[dir="rtl"] .page-template-page-about-us .locations-section .service-box-v1 h2 {
  text-align: center;
}

/* About intro */
.page-template-page-about-us .about-intro-text {
  max-width: 860px;
  margin: 0 auto var(--space-7);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--acg-text);
}
/* Stats */
.about-stats {
  background: var(--acg-navy);
  color: var(--acg-white);
  padding: var(--space-7) 0;
  position: relative;
  overflow: hidden;
}
.about-stats::before {
  content: "";
  position: absolute;
  inset-inline-start: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(200,16,46,0.35), transparent 70%);
  pointer-events: none;
}
.stats-grid { display: flex; flex-wrap: wrap; }
.stat-card {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  margin-bottom: var(--space-4);
  height: 100%;
  position: relative;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.stat-card:hover,
.stat-card:focus-within {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--acg-white);
  font-size: 22px;
  line-height: 1;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}
.stat-card:hover .stat-icon,
.stat-card:focus-within .stat-icon {
  background: var(--acg-red);
  border-color: var(--acg-red);
  transform: scale(1.1) rotate(-6deg);
}
.stat-number {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-2);
  direction: ltr;
  unicode-bidi: isolate;
  background: linear-gradient(135deg, #ffffff 0%, #ffd7de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--acg-white);
}
.stat-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* Tablet and up */
@media (min-width: 768px) {
  .page-template-page-about-us .about-features {
    padding: var(--space-8) 0;
  }

  .page-template-page-about-us .about-feature {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
  }

  .page-template-page-about-us .feature-icon {
    width: 96px;
    height: 96px;
    font-size: 38px;
  }

  .page-template-page-about-us .about-feature h3 {
    font-size: var(--text-xl);
  }

  .about-stats { padding: var(--space-8) 0; }
  .stat-number { font-size: var(--text-5xl); }
  .stat-icon { width: 62px; height: 62px; font-size: 26px; }
}

@media (max-width: 767px) {
  .stats-grid .col-xs-6 { width: 50%; }
}

/* =========================================================
   Services Page
   ========================================================= */
.services-page .services-list {
  display: flex;
  flex-wrap: wrap;
  padding: var(--space-7) 0;
}

/* Redesigned service card: white canvas, soft icon chip, top accent bar,
   ghost step numeral — a calm editorial composition in both directions. */
.services-page .service-detail {
  position: relative;
  overflow: hidden;
  display: block;
  margin-bottom: var(--space-6);
  padding: var(--space-7);
  background: var(--acg-white);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  height: 100%;
  min-height: 250px;
}

/* Top accent bar — centered origin keeps the sweep direction-neutral in RTL. */
.services-page .service-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--acg-red), var(--acg-red-dark));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.services-page .service-detail:hover,
.services-page .service-detail:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224, 34, 34, 0.35);
}

.services-page .service-detail:hover::before,
.services-page .service-detail:focus-within::before {
  transform: scaleX(1);
}

/* Soft neutral chip replaces the former filled red square. */
.services-page .service-detail .service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--acg-bg-gray);
  color: var(--acg-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--space-5);
  border: 1px solid var(--acg-border);
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.services-page .service-detail:hover .service-icon,
.services-page .service-detail:focus-within .service-icon {
  background: var(--acg-white);
  color: var(--acg-red);
  border-color: var(--acg-red);
  transform: scale(1.06);
}

.services-page .services-list > [class*="col-"] {
  display: flex;
  margin-bottom: var(--space-5);
}

.services-page .services-list > [class*="col-"] .service-detail {
  width: 100%;
}

.services-page .service-detail .service-body {
  position: relative;
  z-index: 1;
}

.services-page .service-detail h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.services-page .service-detail p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--acg-text-light);
  margin-bottom: 0;
}

/* Ghost step numeral — oversized, whisper-quiet, flips side in RTL. */
.premium-service .service-step {
  position: absolute;
  top: 10px;
  inset-inline-end: 18px;
  font-size: 76px;
  font-weight: 900;
  color: var(--acg-navy);
  opacity: 0.06;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.premium-service:hover .service-step,
.premium-service:focus-within .service-step {
  opacity: 0.1;
  transform: translateY(-2px);
}

.premium-service .service-body h2 {
  position: relative;
  z-index: 1;
}

/* Tablet and up */
@media (min-width: 768px) {
  .services-page .services-list {
    padding: var(--space-8) 0;
  }

  .services-page .service-detail {
    margin-bottom: var(--space-6);
    padding: var(--space-8);
  }

  .services-page .service-detail h2 {
    font-size: var(--text-2xl);
  }

  .services-page .service-detail i {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .services-page .service-detail {
    min-height: auto;
    padding: var(--space-5);
  }
  .premium-service .service-step { font-size: 40px; }
  .services-page .service-detail .service-icon { width: 54px; height: 54px; font-size: 22px; margin-bottom: var(--space-4); }
}

@media (max-width: 479px) {
  .services-page .service-detail {
    padding: var(--space-5) var(--space-4);
  }
  .premium-service .service-step { font-size: 30px; }
  .services-page .service-detail .service-icon { width: 48px; height: 48px; font-size: 19px; }
}

/* =========================================================
   Clients Page
   ========================================================= */
.clients-page .clients-section {
  background: var(--acg-bg-gray);
  padding-bottom: var(--space-8);
}

.clients-page .clients-count {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acg-red);
}

.clients-page .clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-7);
}

.clients-page .client-logo {
  position: relative;
  text-align: center;
  padding: var(--space-5) var(--space-4) var(--space-4);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  background: var(--acg-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

/* Red accent bar that sweeps in on hover — centered so it is direction-neutral in RTL. */
.clients-page .client-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--acg-red);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.clients-page .client-logo:hover,
.clients-page .client-logo:focus-within {
  border-color: var(--acg-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.clients-page .client-logo:hover::before,
.clients-page .client-logo:focus-within::before {
  transform: scaleX(1);
}

/* Editorial index number — logical inset flips to the left in RTL. */
.clients-page .client-logo-index {
  position: absolute;
  top: var(--space-3);
  inset-inline-end: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(12, 12, 69, 0.35);
}

.clients-page .client-logo-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: var(--space-4);
}

.clients-page .client-logo img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  opacity: 0.92;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.clients-page .client-logo:hover img,
.clients-page .client-logo:focus-within img {
  opacity: 1;
  transform: scale(1.04);
}

/* Name label with hairline separator — gives the grid a directory feel. */
.clients-page .client-logo-name {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--acg-border);
  width: 100%;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--acg-navy);
  transition: color var(--transition-base);
}

.clients-page .client-logo:hover .client-logo-name,
.clients-page .client-logo:focus-within .client-logo-name {
  color: var(--acg-red);
}

/* Neutral monogram placeholder for clients without a logo — never shows
   the company logo in a client slot. */
.client-monogram {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--acg-navy-alpha-12);
  color: var(--acg-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1;
  text-transform: uppercase;
}

.client-marquee-item--static {
  cursor: default;
}

.client-marquee-item--static:hover,
.client-marquee-item--static:focus {
  border-color: rgba(255, 255, 255, 0.14);
  transform: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.client-marquee-item--static:hover img,
.client-marquee-item--static:focus img {
  opacity: 0.92;
  transform: none;
}

/* Tablet and up */
@media (min-width: 768px) {
  .clients-page .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    padding: var(--space-7) 0 var(--space-8);
  }

  .clients-page .client-logo {
    min-height: 190px;
    padding: var(--space-6) var(--space-5) var(--space-5);
  }

  .clients-page .client-logo img {
    max-height: 90%;
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  .clients-page .clients-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  .clients-page .client-logo img {
    max-height: 90%;
  }
}

/* =========================================================
   Contact Page
   ========================================================= */
.contact-page .contact-info-box {
  background: var(--acg-bg-light);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.contact-page .contact-info-box:hover,
.contact-page .contact-info-box:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--acg-red-alpha-12);
}

.contact-page .contact-info-box h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--acg-heading);
}
.contact-page .contact-info-box h3 i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--acg-red-alpha-12);
  color: var(--acg-red);
  border-radius: var(--radius-full);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-page .contact-info-box:hover h3 i {
  background: var(--acg-red);
  color: var(--acg-white);
}

.contact-page .contact-info-box p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
  color: var(--acg-text);
  padding-inline-start: 54px;
}
.contact-page .contact-info-box p a { color: var(--acg-navy); font-weight: 600; }
.contact-page .contact-info-box p a:hover { color: var(--acg-red); }

.contact-page .contact-form-wrap {
  padding: var(--space-6);
  background: var(--acg-bg);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.contact-page .contact-form-wrap h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
  color: var(--acg-heading);
}
.contact-page .contact-form-wrap h2 + form { margin-top: var(--space-6); }
.contact-page .form-control {
  height: 48px;
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.contact-page .form-control:focus {
  border-color: var(--acg-red);
  box-shadow: 0 0 0 3px var(--acg-red-alpha-12);
  outline: none;
}
.contact-page textarea.form-control { height: auto; min-height: 140px; resize: vertical; }
.contact-page .form-group label { font-weight: 700; font-size: var(--text-sm); color: var(--acg-heading); margin-bottom: 6px; }
.contact-page .btn.sendbutton {
  width: 100%;
  height: 50px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
}
@media (min-width: 768px) {
  .contact-page .btn.sendbutton { width: auto; padding-left: var(--space-8); padding-right: var(--space-8); }
}

/* Premium contact split */
.contact-premium {
  margin-top: var(--space-6);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--acg-bg);
}
.contact-premium-row { margin: 0; display: flex; flex-wrap: wrap; }
.contact-premium-row > [class*="col-"] { padding: 0; display: flex; flex: 1 1 100%; max-width: 100%; }
@media (min-width: 992px) {
  .contact-premium-row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; }
}
/* Redesigned contact panel: calm light sidebar — white surface, hairline
   separators, red icon accents. WhatsApp is intentionally absent here; it
   lives only in the floating action button. */
.contact-info-premium {
  background: var(--acg-bg-gray);
  color: var(--acg-navy);
  padding: var(--space-8);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  overflow: hidden;
}
/* Thin red keyline along the panel's leading edge — logical, so it tracks
   the reading start edge in RTL automatically. */
.contact-info-premium::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--acg-red), var(--acg-red-dark));
}
.contact-info-premium .info-header h3 {
  font-size: var(--text-2xl);
  color: var(--acg-navy);
  margin-bottom: var(--space-2);
}
.contact-info-premium .info-header p { color: var(--acg-text-light); font-size: var(--text-sm); margin: 0; }

.contact-methods { display: flex; flex-direction: column; }

/* Each method is a clean row separated by hairlines instead of boxed tiles. */
.contact-method {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--acg-border);
  transition: background var(--transition-fast);
}
.contact-method:first-child { padding-top: 0; }
.contact-method:hover { background: transparent; }
.contact-method:hover .method-icon {
  background: var(--acg-red);
  border-color: var(--acg-red);
  color: var(--acg-white);
}
.method-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--acg-white);
  color: var(--acg-red);
  border: 1px solid var(--acg-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.method-body strong { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--acg-text-light); margin-bottom: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.method-body p { margin: 0; font-size: var(--text-sm); color: var(--acg-navy); line-height: 1.55; }
.method-body p a { color: var(--acg-navy); font-weight: 600; transition: color var(--transition-fast); }
.method-body p a:hover { color: var(--acg-red); text-decoration: none; }
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--acg-text-light);
}
.contact-meta span { display: inline-flex; align-items: center; gap: 8px; }
.contact-meta .fa { color: var(--acg-red); }
.contact-form-premium {
  padding: var(--space-8);
  background: var(--acg-bg);
  width: 100%;
}
.contact-form-premium .form-header { margin-bottom: var(--space-6); text-align: start; }
.contact-form-premium .form-header .form-title { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.contact-form-premium .form-subtitle { color: var(--acg-text-light); font-size: var(--text-sm); margin: 0; }
.contact-premium .form-control { height: 52px; }
.contact-premium .btn.sendbutton { background: linear-gradient(135deg, var(--acg-red), var(--acg-red-dark)); border: none; color: var(--acg-white); box-shadow: var(--shadow-red); }
.contact-premium .btn.sendbutton:hover { background: linear-gradient(135deg, var(--acg-red-dark), var(--acg-red)); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(224,34,34,0.32); }

@media (max-width: 767px) {
  .contact-info-premium { padding: var(--space-6); }
  .method-icon { width: 42px; height: 42px; font-size: 18px; }
  .contact-form-premium { padding: var(--space-6); }
}
@media (min-width: 992px) {
  .contact-info-premium { padding: var(--space-8) var(--space-7); }
  .contact-form-premium { padding: var(--space-8) var(--space-7); }
}

.contact-page .map-wrapper {
  margin-top: var(--space-8);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-page .map-wrapper iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* Tablet and up */
@media (min-width: 768px) {
  .contact-page .contact-info-box {
    padding: var(--space-7);
  }

  .contact-page .contact-info-box h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-5);
  }

  .contact-page .contact-form-wrap {
    padding: var(--space-8);
  }

  .contact-page .contact-form-wrap h2 {
    font-size: var(--text-3xl);
  }

  .contact-page .map-wrapper iframe {
    height: 420px;
  }
}

/* =========================================================
   Products Hub Page
   ========================================================= */
.products-page .category-list {
  padding: var(--space-5) 0;
}

.products-page .product-list {
  padding: var(--space-4) 0 var(--space-6);
}

/* Tablet and up */
@media (min-width: 768px) {
  .products-page .category-list {
    padding: var(--space-6) 0;
  }

  .products-page .product-list {
    padding: var(--space-6) 0 var(--space-8);
  }
}

/* =========================================================
   Product Category Page
   ========================================================= */
/* Tight breadcrumb strip: the taxonomy template renders breadcrumbs in
   their own .main wrapper directly above the tabs section — without this
   the two stacked wrappers double the vertical whitespace. */
.product-category-breadcrumbs {
  padding-top: var(--space-6);
  padding-bottom: 0;
}

.product-category-breadcrumbs .breadcrumb {
  margin: 0;
}

@media (min-width: 992px) {
  .product-category-breadcrumbs {
    padding-top: var(--space-7);
  }
}

.product-category-page .subcategory-grid {
  padding: var(--space-6) 0;
}

.product-category-page .product-list {
  padding: var(--space-6) 0;
}

/* Tablet and up */
@media (min-width: 768px) {
  .product-category-page .subcategory-grid {
    padding: var(--space-7) 0;
  }

  .product-category-page .product-list {
    padding: var(--space-7) 0;
  }
}

/* =========================================================
   Product Detail Page
   ========================================================= */
.product-detail-page .product-hero-section {
  background: var(--acg-bg-light);
}

.product-detail-page .product-gallery {
  background: var(--acg-bg);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base);
}

.product-detail-page .product-gallery:hover,
.product-detail-page .product-gallery:focus-within {
  border-color: var(--acg-red);
}

.product-detail-page .product-gallery img {
  max-height: 400px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
  transition: transform var(--transition-base);
}

.product-detail-page .product-gallery:hover img,
.product-detail-page .product-gallery:focus-within img {
  transform: scale(1.02);
}

.product-detail-page .product-summary {
  margin-bottom: var(--space-6);
}

.product-detail-page .product-summary .category {
  color: var(--acg-red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: block;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
}

.product-detail-page .product-summary h1,
.product-detail-page .product-summary h2.product-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.product-detail-page .product-summary p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--acg-text);
  margin-bottom: var(--space-5);
}

.product-detail-page .product-specs {
  background: var(--acg-bg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.product-detail-page .product-specs h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.product-detail-page .product-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-detail-page .product-specs li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--acg-border);
  font-size: var(--text-sm);
  color: var(--acg-text);
}

.product-detail-page .product-specs li:last-child {
  border-bottom: none;
}

.product-detail-page .product-specs strong {
  color: var(--acg-heading);
}

.product-detail-page .related-products-section {
  background: var(--acg-bg-gray);
}

/* Tablet and up */
@media (min-width: 768px) {
  .product-detail-page .product-gallery {
    padding: var(--space-7);
    margin-bottom: 0;
  }

  .product-detail-page .product-gallery img {
    max-height: 500px;
  }

  .product-detail-page .product-summary h1,
  .product-detail-page .product-summary h2.product-title {
    font-size: var(--text-3xl);
  }

  .product-detail-page .product-summary p {
    font-size: var(--text-lg);
  }

  .product-detail-page .product-specs {
    padding: var(--space-7);
  }

  .product-detail-page .product-specs h3 {
    font-size: var(--text-2xl);
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  .product-detail-page .product-gallery img {
    max-height: 560px;
  }
}

/* =========================================================
   404 Page
   ========================================================= */
.error404 .main {
  text-align: center;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.error-404 {
  max-width: 560px;
  margin: 0 auto;
}

.error-code {
  font-size: clamp(96px, 20vw, 160px);
  font-weight: 800;
  line-height: 1;
  color: var(--acg-red);
  opacity: 0.18;
  margin-bottom: var(--space-4);
}

.error-404 h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.error-404 p {
  color: var(--acg-text-light);
  margin-bottom: var(--space-6);
}

/* =========================================================
   Search Page
   ========================================================= */
.search-page .search-form {
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.search-page .search-form .input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.search-page .search-form .form-control {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-md);
}

.search-page .search-form .btn {
  border-radius: var(--radius-md);
}

/* Honeypot field — off-screen, not display:none (bots probe for hidden fields). */
.acg-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Generic search form (searchform.php) — 404 page + empty search results.
   Flex row mirrors automatically in RTL. */
.search-form {
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.search-form .search-form-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.search-form .form-control {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-md);
}

.search-form .btn {
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .search-form .search-form-inner {
    flex-direction: row;
  }
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result-item {
  padding: var(--space-5);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  background: var(--acg-bg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.search-result-thumb {
  flex-shrink: 0;
  width: 96px;
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--acg-bg-light);
  align-self: flex-start;
}

.search-result-thumb img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.search-result-body {
  flex: 1;
  min-width: 0;
}

[dir="rtl"] .search-result-item {
  flex-direction: row-reverse;
}

.search-result-item:hover,
.search-result-item:focus-within {
  border-color: var(--acg-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.search-result-item h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.search-result-item h2 a {
  color: var(--acg-heading);
}

.search-result-item h2 a:hover,
.search-result-item h2 a:focus {
  color: var(--acg-red);
}

.search-result-item p {
  color: var(--acg-text-light);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .search-page .search-form .input-group {
    flex-direction: row;
  }

  .search-page .search-form .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }

  [dir="rtl"] .search-page .search-form .form-control {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }

  .search-page .search-form .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }

  [dir="rtl"] .search-page .search-form .btn {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }
}

/* =========================================================
   Blog / Archive
   ========================================================= */
.archive-page .post-card,
.blog-page .post-card {
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  background: var(--acg-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.archive-page .post-card:hover,
.archive-page .post-card:focus-within,
.blog-page .post-card:hover,
.blog-page .post-card:focus-within {
  border-color: var(--acg-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.archive-page .post-card img,
.blog-page .post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.archive-page .post-card .post-body,
.blog-page .post-card .post-body {
  padding: var(--space-5);
}

.archive-page .post-card h2,
.blog-page .post-card h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.archive-page .post-card h2 a,
.blog-page .post-card h2 a {
  color: var(--acg-heading);
}

.archive-page .post-card h2 a:hover,
.archive-page .post-card h2 a:focus,
.blog-page .post-card h2 a:hover,
.blog-page .post-card h2 a:focus {
  color: var(--acg-red);
}

.archive-page .post-meta,
.blog-page .post-meta {
  font-size: var(--text-xs);
  color: var(--acg-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

/* =========================================================
   Product list variant direction-aware polish
   ========================================================= */
[dir="rtl"] .product-list-minimal {
  text-align: right;
}

[dir="rtl"] .product-list-item:hover,
[dir="rtl"] .product-list-item:focus {
  transform: translateX(-4px);
}

/* =========================================================
   Horizontal scroll wrapper overflow guard
   ========================================================= */
.product-scroll-wrapper {
  position: relative;
}

.product-scroll-track {
  scroll-padding-inline: var(--space-4);
}

/* =========================================================
   2-Level Tabs + Zigzag (Homepage + Product Category)
   ========================================================= */
.main-tabs-nav,
.sub-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-2);
}
.main-tabs-nav {
  border-bottom: 2px solid var(--acg-border);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-7);
}
.sub-tabs-nav {
  justify-content: flex-start;
  /* background: var(--acg-bg-light); */
  /* border: 1px solid var(--acg-border); */
  /* border-radius: var(--radius-lg); */
  padding: var(--space-2);
  gap: var(--space-2);
}
.sub-tab {
  appearance: none;
  border: 1px solid var(--acg-border);
  background: var(--acg-page-bg);
  color: var(--acg-text-light);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  /* border-radius: var(--radius-md); */
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex: 0 1 auto;
}
.sub-tab:hover,
.sub-tab:focus {
  border-color: var(--acg-navy);
  color: var(--acg-navy);
  background: var(--acg-bg);
}
.sub-tab.active,
.sub-tab[aria-selected="true"] {
  background: var(--acg-navy);
  color: var(--acg-white);
  border-color: var(--acg-navy);
  box-shadow: var(--shadow-sm);
}
.sub-tabs-content,
.product-tabs-content {
  position: relative;
}
.sub-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.sub-tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Adaptive tabs: always responsive, handles overflow without clipping */
.product-tabs,
.sub-tabs,
.product-category-page,
.sectors-section {
  max-width: 100%;
  overflow: visible;
}
.main-tabs-nav,
.sub-tabs-nav {
  max-width: 100%;
  box-sizing: border-box;
}
/* Mobile tabs: the Tab Redesign block below stacks main tabs and wraps
   sub-tabs — the old horizontal scroll-strip (mask, sticky chevron,
   scroll-snap) was removed because it collided with that regime and
   faded out tab label text at the edges. */
@media (max-width: 767px) {
  .product-tabs-nav,
  .sub-tabs-nav,
  .zigzag-row {
    min-width: 0;
  }
  /* Tabs must never get clipped by the container on small screens; scope
     the overflow override to tab sections only (site-wide .container
     overflow:visible re-exposes Bootstrap float overflow). */
  .product-tabs .container,
  .sub-tabs .container,
  .product-category-page .container,
  .sectors-section .container {
    overflow: visible;
  }
}

/* Main cat header */
.main-cat-header {
  text-align: center;
  margin-bottom: var(--space-3);
  padding: var(--space-4);
  background: var(--acg-bg-light);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
}
.main-cat-title {
  font-size: var(--text-2xl);
  color: var(--acg-heading);
  margin-bottom: var(--space-3);
}
.main-cat-lede {
  font-size: var(--text-lg);
  color: var(--acg-text);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.main-cat-desc {
  font-size: var(--text-sm);
  color: var(--acg-text-light);
  line-height: var(--leading-relaxed);
  max-width: 760px;
  margin: 0 auto;
}
.main-cat-header .btn {
  margin-top: var(--space-4);
}

/* Zigzag - minimal spacing */
.zigzag-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.zigzag-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-1);
  background: var(--acg-bg);
  /* border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg); */
  /* box-shadow: var(--shadow-sm); */
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
/* .zigzag-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--acg-navy-alpha-12); } */
.zigzag-row.has-image .zigzag-text { flex: 0 0 50%; max-width: 50%; }
.zigzag-row.has-image .zigzag-media { flex: 0 0 50%; max-width: 50%; }
.zigzag-row.no-image .zigzag-text { flex: 1 1 100%; max-width: 100%; }
.zigzag-row.is-reverse { flex-direction: row-reverse; }
.zigzag-text { display: flex; flex-direction: column; gap: var(--space-3); }
.zigzag-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--acg-red);
  color: var(--acg-white);
  font-weight: 800;
  font-size: var(--text-sm);
}
.zigzag-title { font-size: var(--text-xl); margin: 0; color: var(--acg-heading); }
.zigzag-title a { color: inherit; }
.zigzag-title a:hover { color: var(--acg-red); }
.zigzag-desc { font-size: var(--text-base); color: var(--acg-text-light); line-height: 1.7; margin: 0; font-family: var(--font-primary); }
.zigzag-desc * { font-family: inherit; }

/* Force Cairo on all product description content (wp_editor output) */
.zigzag-desc p, .zigzag-desc span, .zigzag-desc strong, .zigzag-desc em,
.zigzag-desc ul, .zigzag-desc ol, .zigzag-desc li, .zigzag-desc div,
.product-intro-desc p, .product-intro-desc span, .product-intro-desc strong, .product-intro-desc em,
.product-intro-desc ul, .product-intro-desc ol, .product-intro-desc li, .product-intro-desc div,
.tab-panel-desc {
  font-family: var(--font-primary) !important;
  line-height: 1.7 !important;
}
.zigzag-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--acg-red);
  margin-top: var(--space-2);
}
.zigzag-link:hover { color: var(--acg-navy); }
.zigzag-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--acg-bg-light); display: flex; align-self: stretch; }
.zigzag-media a { display: block; width: 100%; }
.zigzag-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center; display: block; transition: transform 0.5s ease; }
.zigzag-media:hover img { transform: scale(1.04); }
.zigzag-empty { text-align: center; color: var(--acg-text-muted); padding: var(--space-8); }

/* =========================================================
   Product Intro Items (no image, compact, appears first)
   ========================================================= */
.product-intro-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-5);
  /* border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg); */
  overflow: hidden;
  /* background: var(--acg-bg-light); */
}

.product-intro-item {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--acg-border);
  /* background: var(--acg-bg-light); */
}

.product-intro-item:last-child {
  border-bottom: none;
}

.product-intro-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--acg-heading);
  margin: 0 0 var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-intro-desc {
  font-size: var(--text-lg);
  color: var(--acg-text-light);
  line-height: 1.7;
  margin: 0;
  font-family: var(--font-primary);
}

.product-intro-desc * {
  font-family: inherit;
}

@media (max-width: 767px) {
  .zigzag-row,
  .zigzag-row.is-reverse { flex-direction: column; }
  .zigzag-row.has-image .zigzag-text,
  .zigzag-row.has-image .zigzag-media { flex: 1 1 100%; max-width: 100%; }
  .main-cat-title { font-size: var(--text-xl); }
}

/* RTL zigzag: row-reverse is direction-aware in the base rule and flips
   automatically; only the arrow glyph needs mirroring. */
[dir="rtl"] .zigzag-link i { transform: scaleX(-1); }

/* Dragging feedback */
.main-tabs-nav.is-dragging,
.sub-tabs-nav.is-dragging { cursor: grabbing; user-select: none; }

/* Category page specific */
.product-category-page .main-tabs-nav .product-tab { text-decoration: none; }
.product-category-page .sub-tabs-nav .sub-tab { text-decoration: none; }

/* =========================================================
   Hero Static - Map Blue Dark (replaces slider)
   ========================================================= */
.hero-static {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: var(--acg-navy);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Container-aligned variants — "Homepage > Hero & Clients Sections Layout"
   theme setting. Constrains these two sections to the .container bounds;
   breakpoints mirror layout.css so they shrink with the container. */
.hero-static--contained,
.our-clients--contained {
  width: calc(100% - 32px);
  max-width: 100%;
  margin-inline: auto;
  margin-block: var(--space-4);
  border-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .hero-static--contained,
  .our-clients--contained {
    max-width: 750px;
  }
}
@media (min-width: 992px) {
  .hero-static--contained,
  .our-clients--contained {
    max-width: 970px;
  }
}
@media (min-width: 1200px) {
  .hero-static--contained,
  .our-clients--contained {
    max-width: 1170px;
  }
}
.hero-static::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,48,0.35) 0%, rgba(8,8,48,0.72) 65%, rgba(8,8,48,0.85) 100%);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.06), transparent 50%),
              linear-gradient(90deg, rgba(224,34,34,0.06) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
  margin-bottom: var(--space-5);
}
.hero-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--acg-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
  text-wrap: balance;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.88);
  line-height: var(--leading-relaxed);
  max-width: 720px;
  margin: 0 auto var(--space-6);
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-8);
}
.hero-actions .btn {
  min-width: 160px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0 var(--space-6);
}
.hero-actions .btn-primary {
  background: var(--acg-red);
  border-color: var(--acg-red);
  color: var(--acg-white);
  box-shadow: 0 10px 24px rgba(224,34,34,0.32);
}
.hero-actions .btn-primary:hover {
  background: var(--acg-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(224,34,34,0.38);
}
.hero-actions .btn-outline-white {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.72);
  color: var(--acg-white);
  backdrop-filter: blur(6px);
}
.hero-actions .btn-outline-white:hover,
.hero-actions .btn-outline-white:focus {
  background: var(--acg-white);
  color: var(--acg-navy);
  border-color: var(--acg-white);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 520px;
  margin: 0 auto;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.hero-stat strong {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--acg-white);
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}
.hero-stat span {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

@media (max-width: 767px) {
  .hero-static { min-height: 460px; background-position: center 25%; }
  .hero-content { padding: var(--space-8) var(--space-4); }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: var(--text-base); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: var(--space-4); }
  .hero-stat strong { font-size: var(--text-2xl); }
}
@media (max-width: 400px) {
  .hero-static { min-height: 420px; }
  .hero-title { font-size: 24px; }
}
[dir="rtl"] .hero-content { text-align: center; }
[dir="rtl"] .hero-actions { direction: rtl; }
/* Mirror the asymmetric overlay accents so the red glow leads in Arabic too */
[dir="rtl"] .hero-overlay {
  background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.06), transparent 50%),
              linear-gradient(270deg, rgba(224,34,34,0.06) 0%, transparent 40%);
}



@media (prefers-reduced-motion: reduce) {
  .client-marquee-track {
    animation: none;
  }
  .masonry-item:hover img,
  .masonry-item:focus img,
  .recent-work-item:hover em img,
  .recent-work-item:focus-within em img,
  .category-card:hover img,
  .category-card:focus-within img {
    transform: none;
  }
  .product-tab-panel,
  .sub-tab-panel {
    transition: none;
  }
}

/* =========================================================
   Tab Redesign — Colored Tabs + Unified Panel
   ========================================================= */

/* Main tabs: full-width auto-fit, colored backgrounds */
.main-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

/* Continuous outer stroke wrapping the tab bar and the open panel */
.product-tabs {
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--acg-bg);
}

.product-tab {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 0;
  padding: var(--space-4) var(--space-3);
  background: var(--acg-bg-light);
  color: var(--acg-text-light);
  border-inline-end: 1px solid var(--acg-border);
  text-transform: none;
  letter-spacing: normal;
  font-size: var(--text-base);
  white-space: normal;
  text-align: center;
  line-height: var(--leading-snug);
}

.product-tab:last-child {
  border-inline-end: none;
}

.product-tab::after {
  display: none;
}

.product-tab:hover,
.product-tab:focus {
  background: var(--acg-navy-alpha-12, rgba(12, 12, 69, 0.08));
  color: var(--acg-navy);
}

/* Keyboard focus must be visible even on the active (navy) tab */
.product-tab:focus-visible,
.sub-tab:focus-visible {
  outline: 2px solid var(--acg-red);
  outline-offset: -2px;
}

.product-tab.active,
.product-tab[aria-selected="true"] {
  background: var(--acg-bg);
  color: var(--acg-navy);
  border: 0;
  border-inline-end: 1px solid var(--acg-border);
  box-shadow: inset 0 3px 0 var(--acg-red);
}

/* Visible hover feedback on the navy (inactive) main tabs */
.product-tab:not(.active):not([aria-selected="true"]):hover,
.product-tab:not(.active):not([aria-selected="true"]):focus {
  background: var(--acg-navy-light);
  color: var(--acg-white);
}

/* Subdued description on navy tabs; full-strength on the active (light) tab */
.product-tab:not(.active):not([aria-selected="true"]) .tab-desc {
  color: var(--acg-white-alpha-70);
}

/* Bordered container wrapping tab content */
.tab-panel-bordered {
  border: none;
  border-radius: 0;
  background: var(--acg-bg);
  padding: var(--space-6) var(--space-5);
  margin-bottom: 0;
}

/* Section title + description inside the tab panel */
.tab-panel-intro {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--acg-border);
}

.tab-panel-title {
  font-size: var(--text-2xl);
  color: var(--acg-heading);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.tab-panel-lede {
  font-size: var(--text-lg);
  color: var(--acg-text);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.tab-panel-desc {
  font-size: var(--text-sm);
  color: var(--acg-text-light);
  line-height: var(--leading-relaxed);
  max-width: 720px;
}

/* Sub-tabs: pill-style, colored active state */
.sub-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  /* background: var(--acg-bg-light); */
  /* border: 1px solid var(--acg-border); */
  /* border-radius: var(--radius-2xl); */
  padding: var(--space-2);
  margin-bottom: var(--space-5);
  width: fit-content;
}

.sub-tab {
  flex: 0 1 auto;
  border-radius: var(--radius-sm);
}

.sub-tab.active,
.sub-tab[aria-selected="true"] {
  background: var(--acg-navy);
  border-color: var(--acg-navy);
  color: var(--acg-white);
}

/* Hide legacy main-cat-header if still rendered elsewhere */
.main-cat-header {
  display: none;
}

/* Mobile: stack tabs vertically */
@media (max-width: 600px) {
  .main-tabs-nav {
    flex-direction: column;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .product-tab {
    border-inline-end: none;
    border-bottom: 1px solid var(--acg-border);
    text-align: start;
    align-items: stretch;
  }
  .product-tab .tab-name,
  .product-tab .tab-desc {
    text-align: start;
  }
  .product-tab:last-child {
    border-bottom: none;
  }
  .tab-panel-bordered {
    padding: var(--space-4) var(--space-3);
  }
  .tab-panel-title {
    font-size: var(--text-xl);
  }
  .sub-tabs-nav {
    width: 100%;
    border-radius: var(--radius-lg);
  }
}

/* =========================================================
   ACG Lightbox — image zoom modal
   ========================================================= */
.acg-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  box-sizing: border-box;
}

.acg-lightbox-overlay.open {
  display: flex;
}

.acg-lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.acg-lightbox-caption {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  max-width: 80vw;
}

.acg-lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--acg-white);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.acg-lightbox-close:hover,
.acg-lightbox-close:focus {
  background: rgba(255, 255, 255, 0.3);
}

.acg-lightbox-close:focus {
  outline: none;
}

.acg-lightbox-close:focus-visible {
  outline: 2px solid var(--acg-white);
  outline-offset: 2px;
}

/* Prevent body scroll when lightbox is open */
body.acg-lightbox-open {
  overflow: hidden;
}
