/* ============================================================================
   products.css — Products dropdown + product listing/detail pages
   Loaded on every page (the dropdown lives in the shared navbar). Reuses the
   tokens, .container, .card, .btn and .placeholder from style.css.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. NAV DROPDOWN (Products mega-menu)
   ------------------------------------------------------------------------- */
.nav__item--dropdown {
  position: relative;
}

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
}
.nav__caret {
  font-size: 1.15rem;
  transition: transform var(--transition);
}
.nav__item--dropdown:hover .nav__caret,
.nav__item--dropdown:focus-within .nav__caret {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--elevation-8);
  padding: 0.5rem;
  display: grid;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
  z-index: 120;
}
/* Bridge the gap so hover doesn't drop between link and menu */
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-text);
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}
.nav__dropdown-link .material-icons-round {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--color-primary-100);
  color: var(--color-primary);
  font-size: 1.3rem;
  transition:
    background var(--transition),
    color var(--transition);
}
.nav__dropdown-link:hover {
  background: var(--color-primary-100);
  color: var(--color-primary-dark);
}
.nav__dropdown-link:hover .material-icons-round {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}

/* Mobile: inside the slide-in drawer, show the categories as a nested list */
@media (max-width: 720px) {
  /* keep the whole nav column inside the drawer */
  .nav {
    overflow: hidden;
    box-sizing: border-box;
  }
  .nav__menu {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    align-items: stretch;
    text-align: left;
  }
  .nav__item,
  .nav__item--dropdown {
    width: 100%;
  }

  /* the caret toggle row */
  .nav__link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav__dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    color: inherit;
    display: inline-flex;
    align-items: center;
  }

  /* submenu: collapsed by default, fully reset from the desktop hover styles */
  .nav__dropdown {
    position: static !important;
    transform: none !important; /* removes the desktop translateX(-50%) that pushed it left */
    left: auto !important;
    right: auto !important;
    inset: auto !important;
    min-width: 0;
    max-width: 100%;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0 0 0.5rem 0;
    box-sizing: border-box;
    display: none; /* hidden until opened */
  }
  .nav__dropdown::before {
    display: none;
  } /* desktop hover “bridge” pseudo-element */

  /* open state (toggled by tapping the caret) */
  .nav__item--dropdown.is-open .nav__dropdown {
    display: block;
  }
  .nav__item--dropdown.is-open .nav__caret {
    transform: rotate(180deg);
  }

  /* each category row: full width, wrap long labels, indent via padding */
  .nav__dropdown li {
    width: 100%;
  }
  .nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 1rem 0.6rem 2rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .nav__dropdown-link .material-icons-round {
    flex: 0 0 auto;
  }
  .nav__dropdown-link span:last-child {
    min-width: 0;
  }
}

/* ---------------------------------------------------------------------------
   2. PAGE HEADER (products / product pages)
   ------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(
      60% 80% at 85% 0%,
      rgba(156, 77, 204, 0.16),
      transparent 60%
    ),
    radial-gradient(
      50% 60% at 0% 100%,
      rgba(106, 27, 154, 0.12),
      transparent 60%
    );
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--color-primary);
  font-weight: 500;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .sep {
  opacity: 0.5;
}
.page-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin: 0.25rem 0 0.5rem;
}
.page-hero__lead {
  color: var(--color-text-muted);
  max-width: 60ch;
  font-size: 1.075rem;
}

/* ---------------------------------------------------------------------------
   3. CATEGORY GRID (products index)
   ------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}
.category-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}
.category-card__title {
  font-size: 1.25rem;
}
.category-card__desc {
  color: var(--color-text-muted);
  flex: 1;
}
.category-card__count {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
   4. PRODUCT GRID (category listing + related)
   ------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-emph);
}
.product-card:hover .product-card__media img {
  transform: scale(1.06);
}
.product-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.product-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.product-card__title {
  font-size: 1.2rem;
}
.product-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 0.4rem;
}
.product-card__link .material-icons-round {
  font-size: 1.1rem;
  transition: transform var(--transition);
}
.product-card:hover .product-card__link .material-icons-round {
  transform: translateX(4px);
}

/* Image placeholder (used when a product has no image set) */
.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   5. PRODUCT DETAIL
   ------------------------------------------------------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.product-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elevation-4);
  aspect-ratio: 4 / 3;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__cat {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.product-detail__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.4rem 0 1rem;
}
.product-detail__desc {
  color: var(--color-text-muted);
  font-size: 1.075rem;
  line-height: 1.7;
}
.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0;
}

/* Specs table */
.specs {
  margin-top: 1.5rem;
}
.specs__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.specs__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elevation-1);
}
.specs__table tr {
  border-bottom: 1px solid var(--color-border);
}
.specs__table tr:last-child {
  border-bottom: none;
}
.specs__table th,
.specs__table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
}
.specs__table th {
  width: 42%;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-alt);
}
.specs__table td {
  color: var(--color-text-muted);
}

/* Section wrapper for related */
.related {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.related__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

/* States */
.notice {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}
.notice .material-icons-round {
  font-size: 3rem;
  color: var(--color-primary-light);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------------
   6. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-detail__media {
    position: static;
  }
}

/* --- Catalog Toolbar Styles --- */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
}

.search-box__input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  outline: none;
}

.search-box__input:focus {
  border-color: #6a1b9a;
  box-shadow: 0 0 0 4px rgba(106, 27, 154, 0.15);
}

.search-box__clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #a0aec0;
  display: flex;
}

/* Category Filter Pills */
.toolbar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pill-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #4a5568;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-btn.active,
.pill-btn:hover {
  background: #6a1b9a;
  color: #ffffff;
  border-color: #6a1b9a;
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.25);
}

/* Product Cards & Grid Animations */
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  transition: all 0.3s ease;
}

.product-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
  animation: cardFadeIn 0.4s ease forwards;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
}

/* Entry Animation */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-state__icon {
  font-size: 48px;
  color: #a0aec0;
  margin-bottom: 1rem;
}

/* Filter Button Styling */
.filter-modal-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

.filter-count-badge {
  background: var(--color-primary, #6a1b9a);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Modal Overlay & Base */
.category-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.category-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.category-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

/* Modal Box */
.category-modal__content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
  overflow: hidden;
}

.category-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.category-modal__header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.category-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
}

.category-modal__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.category-modal__search input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.95rem;
}

.category-modal__quick-actions {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  background: #fff;
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-primary, #6a1b9a);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* Checkbox Grid Body */
.category-modal__body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  flex: 1;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.checkbox-item:hover {
  background: #f1f5f9;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, #6a1b9a);
  cursor: pointer;
}

.category-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* ==========================================================================
   RELATED PRODUCTS SECTION
   ========================================================================== */

.related-section {
  padding: 4rem 0 2rem;
  margin-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

.related__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #1e293b);
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

/* Container Grid for Related Product Cards */
#related .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Card Styling Consistency */
#related .product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

#related .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Card Image Aspect Ratio */
#related .product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  overflow: hidden;
}

#related .product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

#related .product-card:hover .product-card__img {
  transform: scale(1.05);
}

/* Card Content Body */
#related .product-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#related .product-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary, #6a1b9a);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

#related .product-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

#related .product-card__title a {
  color: inherit;
  text-decoration: none;
}

#related .product-card__title a:hover {
  color: var(--color-primary, #6a1b9a);
}

/* Responsive adjustments for mobile screens */
@media (max-width: 640px) {
  .related-section {
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
  }

  .related__title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  #related .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

/* ============================================================================
   OUR JOURNEY — expanding-card slider (namespaced .jr-*)
   ========================================================================== */
.journey__wrap {
  margin-top: 2.5rem;
}
.jr-slider {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 460px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--elevation-4);
}
.jr-track {
  position: absolute;
  inset: 0;
}
.jr-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(150px, 18vw, 210px);
  height: clamp(210px, 30vw, 300px);
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.jr-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 6, 24, 0.82),
    rgba(15, 6, 24, 0.35) 55%,
    transparent
  );
}
/* First two slides fill the stage; the rest preview on the right */
.jr-track .jr-item:nth-child(1),
.jr-track .jr-item:nth-child(2) {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
.jr-track .jr-item:nth-child(3) {
  left: 58%;
}
.jr-track .jr-item:nth-child(4) {
  left: calc(58% + clamp(160px, 19vw, 224px));
}
.jr-track .jr-item:nth-child(5) {
  left: calc(58% + 2 * clamp(160px, 19vw, 224px));
}
.jr-track .jr-item:nth-child(n + 6) {
  left: calc(58% + 3 * clamp(160px, 19vw, 224px));
  opacity: 0;
}

.jr-watermark {
  position: absolute;
  right: 6%;
  bottom: 6%;
  z-index: 1;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.jr-track .jr-item {
  overflow: hidden;
}
.jr-track .jr-item:nth-child(2) .jr-watermark {
  display: none;
}
.jr-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  left: clamp(1.5rem, 5vw, 4rem);
  max-width: min(80%, 500px);
  color: #fff;
  display: none;
}
.jr-track .jr-item:nth-child(2) .jr-content {
  display: block;
}
.jr-year {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(2.4rem, 6vw, 4rem);
  opacity: 0;
  animation: jrIn 0.8s ease forwards;
}
.jr-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  opacity: 0;
  animation: jrIn 0.8s ease 0.2s forwards;
}
.jr-des {
  margin-top: 0.6rem;
  max-width: 46ch;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  opacity: 0;
  animation: jrIn 0.8s ease 0.4s forwards;
}
@keyframes jrIn {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
.jr-nav {
  position: absolute;
  z-index: 5;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
}
.jr-nav button {
  width: 46px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.22);
  font-size: 1rem;
  backdrop-filter: blur(4px);
  transition:
    transform var(--transition),
    background var(--transition);
}
.jr-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}
.jr-nav button:active {
  transform: scale(1);
}

@media (max-width: 768px) {
  .jr-slider {
    height: 420px;
  }
  .jr-track .jr-item:nth-child(3) {
    left: 64%;
  }
}
@media (max-width: 560px) {
  .jr-slider {
    height: 380px;
  }
  .jr-track .jr-item:nth-child(n + 3) {
    opacity: 0;
  } /* hide side previews */
  .jr-content {
    max-width: 84%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jr-item {
    transition: none;
  }
  .jr-year,
  .jr-title,
  .jr-des {
    animation: none;
    opacity: 1;
  }
}

/* ============================================================================
   TESTIMONIALS — animated carousel on a 3D semicircle podium
   ========================================================================== */
.testimonials {
  text-align: center;
}
.tst__stage {
  position: relative;
  max-width: 680px;
  margin: 2.5rem auto 0;
  padding-top: 40px;
}

/* 3D semicircle "podium" behind the avatar */
.tst__arc {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(340px, 78%);
  aspect-ratio: 2 / 1;
  border-radius: 1000px 1000px 0 0;
  background: radial-gradient(
    120% 150% at 50% 0%,
    var(--color-primary-light) 0%,
    var(--color-primary) 42%,
    transparent 72%
  );
  opacity: 0.18;
  box-shadow: inset 0 10px 40px rgba(106, 27, 154, 0.25);
  z-index: 0;
}

/* .tst__viewport {
  position: relative;
  z-index: 1;
  min-height: 320px;
} */
/* Stable height so slides don't push the section around */
.tst__viewport {
  position: relative;
  min-height: 340px; /* was likely auto/less — pick a height that fits your longest normal quote */
}

.tst__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.55s var(--ease-emph),
    transform 0.55s var(--ease-emph);
  pointer-events: none;
}
.tst__slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Rounded profile avatar with a subtle 3D ring */
.tst__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  border: 4px solid var(--color-surface);
  box-shadow:
    0 10px 24px rgba(106, 27, 154, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.25rem;
}
.tst__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tst__initials {
  line-height: 1;
}

.tst__mark {
  color: var(--color-primary);
  opacity: 0.35;
  font-size: 2.4rem;
  line-height: 0;
  margin-bottom: 0.5rem;
}
/* .tst__quote {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.7;
  color: var(--color-primary-light);
  max-width: 56ch;
  margin: 0 auto 1.25rem;
  font-style: italic;
} */
/* Clamp very long feedback to a few lines with an ellipsis */
.tst__quote {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.7;
  color: var(--color-primary);
  max-width: 56ch;
  margin: 0 auto 1.25rem;
  font-style: italic;

  display: -webkit-box;
  -webkit-line-clamp: 5; /* max 5 lines; raise/lower to taste */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tst__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-on-primary);
}
.tst__role {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.1rem;
  color: var(--color-text-muted);
}

/* Controls */
.tst__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.tst__nav {
  /* width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--elevation-2);
  display: grid;
  place-items: center;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition); */
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  color: #ffffff;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.tst__nav:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--elevation-4);
}
.tst__dots {
  display: flex;
  gap: 0.5rem;
}
.tst__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: var(--color-border);
  transition:
    background var(--transition),
    transform var(--transition);
}
.tst__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .tst__viewport {
    min-height: 420px;
  }
  .tst__quote {
    -webkit-line-clamp: 7;
  }
  .tst__arc {
    width: 70%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tst__slide {
    transition: opacity 0.2s linear;
  }
}

/* ============================================================================
   OUR BRANCHES — real map (Leaflet + OpenStreetMap)
   ========================================================================== */
.br__wrap {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

/* Map container — Leaflet REQUIRES an explicit height */
.br__map {
  height: 440px;
  width: 100%;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--elevation-4, 0 12px 32px rgba(0, 0, 0, 0.18));
  border: 1px solid var(--color-border, #e7e0f2);
  z-index: 0; /* keep Leaflet panes below the navbar */
}
.leaflet-container {
  font: inherit;
  background: #aad3df;
}

/* Themed marker pin (divIcon) */
.br__marker {
  position: relative;
}
.br__marker .br__dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #fff,
    var(--color-primary-light, #9c4dcc) 45%,
    var(--color-primary, #6a1b9a) 100%
  );
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.br__marker .br__pulse {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary-light, #9c4dcc);
  animation: brPulse 2.2s ease-out infinite;
}
@keyframes brPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

/* Popup accent */
.leaflet-popup-content {
  margin: 0.7rem 0.9rem;
  line-height: 1.5;
}
.leaflet-popup-content strong {
  color: var(--color-primary, #6a1b9a);
  font-family: var(--font-display, inherit);
}

/* Offline fallback */
.br__map--fallback {
  display: grid;
  place-items: center;
  background: var(--color-surface-alt, #faf8fd);
}
.br__fallback {
  text-align: center;
  color: var(--color-text-muted, #6b6480);
}
.br__fallback .material-icons-round {
  font-size: 2.6rem;
  color: var(--color-primary-light, #9c4dcc);
  display: block;
  margin-bottom: 0.4rem;
}

/* Branch cards */
.br__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.br__card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  cursor: pointer;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e7e0f2);
  border-radius: var(--radius, 12px);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--elevation-1, 0 1px 3px rgba(0, 0, 0, 0.06));
  transition:
    transform var(--transition, 0.2s),
    box-shadow var(--transition, 0.2s),
    border-color var(--transition, 0.2s);
}
.br__card.is-active {
  transform: translateY(-4px);
  box-shadow: var(--elevation-4, 0 12px 28px rgba(106, 27, 154, 0.18));
  border-color: transparent;
}
.br__card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-primary-100, #f3e9fa);
  color: var(--color-primary, #6a1b9a);
}
.br__card-name {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}
.br__card-addr {
  color: var(--color-text-muted, #6b6480);
  font-size: 0.9rem;
  line-height: 1.5;
}
.br__card-phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  color: var(--color-primary, #6a1b9a);
  font-weight: 500;
  font-size: 0.9rem;
}
.br__card-phone .material-icons-round {
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .br__map {
    height: 340px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .br__marker .br__pulse {
    animation: none;
  }
}

/* ============================================================================
   COMPANY BLOG — animated grid with ribbon badges + filter pills
   ========================================================================== */
/* Filter pills */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2rem;
}
.blog-filters .pill {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.blog-filters .pill:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}
.blog-filters .pill.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(106, 27, 154, 0.25);
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* Card */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
}
.blog-card.blog-anim {
  animation: blogIn 0.5s var(--ease-emph) both;
  animation-delay: calc(var(--d, 0) * 60ms);
}
@keyframes blogIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}

.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease-emph);
}
.blog-card:hover .blog-card__media img {
  transform: scale(1.07);
}
.blog-card__media .media-placeholder {
  border-radius: 0;
  font-size: 0.95rem;
}

/* Folded corner ribbon badge (category) */
.blog-card__ribbon {
  position: absolute;
  top: 14px;
  left: -6px;
  z-index: 2;
  background: var(--ribbon, var(--color-primary));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.34rem 0.8rem 0.34rem 0.7rem;
  box-shadow: 0 6px 14px rgba(106, 27, 154, 0.35);
  border-radius: 3px 4px 4px 3px;
}
.blog-card__ribbon::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  border: 3px solid var(--color-primary-dark);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.blog-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}
.blog-card__dot {
  opacity: 0.5;
}
.blog-card__title {
  font-size: 1.2rem;
  line-height: 1.35;
}
.blog-card__title a {
  color: var(--color-text);
  transition: color var(--transition);
}
.blog-card__title a:hover {
  color: var(--color-primary);
}
.blog-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  color: var(--color-primary);
  font-weight: 600;
}
.blog-card__more .material-icons-round {
  font-size: 1.1rem;
  transition: transform var(--transition);
}
.blog-card:hover .blog-card__more .material-icons-round {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card.blog-anim {
    animation: none;
  }
}

/* ============================================================================
   SINGLE BLOG POST — professional article layout
   ========================================================================== */
.container--narrow {
  max-width: 820px;
}

/* Reading progress bar (sits just under the sticky navbar) */
.reading-progress {
  position: sticky;
  top: var(--header-h, 64px);
  left: 0;
  z-index: 40;
  height: 4px;
  background: transparent;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  transition: width 0.1s linear;
}

.page-hero--post {
  padding-bottom: 1rem;
}

/* Entrance */
.reveal-in {
  animation: postIn 0.6s var(--ease-emph) both;
}
@keyframes postIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Header */
.post__head {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}
.post__ribbon {
  display: inline-block;
  margin-bottom: 0.9rem;
  background: var(--ribbon, var(--color-primary));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(106, 27, 154, 0.28);
}
.post__title {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.post__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.post__meta .material-icons-round {
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* Cover image */
.post__cover {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elevation-4);
}
.post__cover-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.post__cover .media-placeholder {
  aspect-ratio: 16 / 8;
}

/* Article prose */
.post__body {
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--color-text);
}
.post__body > * + * {
  margin-top: 1.15rem;
}
.post__body h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
}
.post__body h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}
.post__body p {
  color: var(--color-text);
}
.post__body ul,
.post__body ol {
  padding-left: 1.4rem;
}
.post__body li + li {
  margin-top: 0.4rem;
}
.post__body a {
  color: var(--color-primary);
  text-decoration: underline;
}
.post__body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.post__body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-primary-dark);
}

/* Share */
.post__share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}
.post__share > span {
  color: var(--color-text-muted);
  font-weight: 600;
  margin-right: 0.2rem;
}
.post__share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.post__share-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}
.post__share-btn.is-copied {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

.post__back {
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .reading-progress {
    top: 56px;
  }
  .post__cover-img,
  .post__cover .media-placeholder {
    aspect-ratio: 4 / 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-in {
    animation: none;
  }
}

/* ============================================================================
   SINGLE SERVICE PAGE — hero, why-choose points, cert carousel, CTA
   ========================================================================== */
/* Reveal animation (service.js adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-emph),
    transform 0.6s var(--ease-emph);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-in {
  animation: svcIn 0.6s var(--ease-emph) both;
}
@keyframes svcIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* SECTION 1 — hero */
.svc-hero {
  text-align: center;
  padding: 1rem 0 2.5rem;
}
.svc-hero__ribbon {
  display: inline-block;
  margin-bottom: 1rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(106, 27, 154, 0.28);
}
.svc-hero__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0.5rem auto 1rem;
  border-radius: 20px;
  font-size: 2.2rem;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  box-shadow: 0 12px 26px rgba(106, 27, 154, 0.35);
}
.svc-hero__title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0 0 1rem;
  color: var(--color-on-primary);
}
.svc-hero__intro {
  color: var(--color-on-primary);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto 1.75rem;
}

/* Section blocks */
.svc-block {
  margin: -1.5rem 0;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
}
.svc-block--alt {
  background: var(--color-surface-alt);
  justify-items: center;
}
.svc-block .section__head {
  text-align: center;
  margin-bottom: 2rem;
}
/* .section__lead {
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
} */

/* SECTION 2 — points */
.svc-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.svc-point {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: left;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.svc-point:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
  border-color: transparent;
}
.svc-point__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-100);
  color: var(--color-primary);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.svc-point__title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.svc-point__text {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* SECTION 3 — certifications carousel */
/* SECTION 3 — certifications carousel */
.svc-certs__viewport {
  position: relative;
  overflow: hidden; /* Prevents overflow issues */
}

.svc-certs__track {
  display: flex;
  gap: 0; /* No gap between full-width slides */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth; /* Smooth scrolling for auto-slide */
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
}
.svc-certs__track::-webkit-scrollbar {
  display: none;
}

.svc-cert {
  scroll-snap-align: center;
  flex: 0 0 100%; /* Force exact 100% width of the container */
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.svc-cert__img {
  max-width: 100%;
  max-height: 420px; /* Slightly taller for full view */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

.svc-certs__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}
.svc-certs__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--elevation-2);
  display: grid;
  place-items: center;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}
.svc-certs__nav:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.svc-certs__dots {
  display: flex;
  gap: 0.5rem;
}
.svc-cert__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: var(--color-border);
  transition:
    background var(--transition),
    transform var(--transition);
}
.svc-cert__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .svc-cert {
    flex-basis: 100%;
  }
  .svc-cert__img {
    max-height: 280px;
  }
  .svc-points {
    grid-template-columns: 1fr; /* 1 column on mobile */
    justify-items: center;
  }
}

/* SECTION 4 — CTA */
.svc-cta {
  margin: 3.5rem 0 1rem;
}
.svc-cta__inner {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(
      80% 120% at 100% 0%,
      rgba(255, 255, 255, 0.14),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      var(--color-primary-dark),
      var(--color-primary) 60%,
      var(--color-primary-light)
    );
  box-shadow: var(--elevation-4);
}
.svc-cta__title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 0.6rem;
  color: #fff;
}
.svc-cta__text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.svc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.svc-cta__actions .btn--outlined {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.svc-cta__actions .btn--outlined:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Make homepage service cards feel clickable */
.feature--link {
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.feature--link:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}

@media (max-width: 640px) {
  .svc-block {
    margin-left: 0;
    margin-right: 0;
    padding: 2rem 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none;
  }
}

/* Image lightbox (enlarge on click) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 8, 30, 0.82);
  backdrop-filter: blur(3px);
  padding: 4vmin;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
  animation: lbFade 0.2s ease;
}
@keyframes lbFade {
  from {
    opacity: 0;
  }
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lbZoom 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lbZoom {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.svc-cert__img {
  cursor: zoom-in;
}

/* ============================================================================
   ABOUT US — premium content carousel
   ========================================================================== */
.about-carousel {
  max-width: 760px;
  margin: 2.5rem auto 0;
  text-align: center;
  position: relative;
}
.about-carousel:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 6px;
  border-radius: var(--radius-lg);
}

.about-viewport {
  position: relative;
  transition: height 0.45s var(--ease-emph);
}

.about-slide {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0 1rem;
  opacity: 0;
  transform: translateX(28px) scale(0.99);
  transition:
    opacity 0.55s var(--ease-emph),
    transform 0.55s var(--ease-emph);
  pointer-events: none;
  will-change: opacity, transform;
}
.about-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.about-slide__icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  box-shadow: 0 12px 26px rgba(106, 27, 154, 0.3);
}
.about-slide__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0;
}
.about-slide__body {
  color: var(--color-text-muted);
  font-size: 1.075rem;
  line-height: 1.8;
  max-width: 60ch;
  margin: 0;
}

/* Controls */
.about-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.about-nav {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  color: #ffffff;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.about-nav:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--elevation-4);
}
.about-nav:active {
  transform: translateY(0);
}

.about-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: var(--color-border);
  transition:
    background var(--transition),
    transform var(--transition),
    width var(--transition),
    border-radius var(--transition);
}
.about-dot.is-active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 6px;
}

/* Image slides: background + dark overlay */
.about-slide--img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem);
  justify-content: center;
  background-image:
    linear-gradient(180deg, rgba(20, 8, 30, 0.55), rgba(20, 8, 30, 0.78)),
    var(--bg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--elevation-4);
}
.about-slide--img .about-slide__title {
  color: #fff;
}
.about-slide--img .about-slide__body {
  color: rgba(255, 255, 255, 0.9);
}
.about-slide--img .about-slide__icon {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.about-slide__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .about-carousel {
    margin-top: 2rem;
  }
  .about-slide {
    padding: 0 0.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-viewport {
    transition: none;
  }
  .about-slide {
    transition: opacity 0.2s linear;
    transform: none;
  }
  .about-slide:not(.is-active) {
    transform: none;
  }
}

/* ============================================================================
   PRINCIPAL PARTNERSHIPS — infinite logo marquee (desktop + mobile)
   ========================================================================== */
.partners-grid {
  margin-top: 2.5rem;
}
.partners-grid.partners-marquee {
  overflow: hidden;
}

/* Track: a single flex row of logos that scrolls forever */
.partners-track {
  display: flex;
  width: max-content; /* grows to fit all logos */
  gap: 1.25rem;
  align-items: stretch;
  animation: partnersScroll 40s linear infinite; /* desktop speed */
  will-change: transform;
}
.partners-marquee:hover .partners-track,
.partners-marquee:active .partners-track {
  animation-play-state: paused;
}

.partners-track .partner {
  flex: 0 0 auto;
  width: 190px; /* logo width on desktop */
}

.partner {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-1);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.partner:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-4);
  border-color: transparent;
}
.partner img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition:
    filter var(--transition),
    opacity var(--transition);
}
.partner:hover img {
  filter: none;
  opacity: 1;
}
.partner__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  text-align: center;
  transition: color var(--transition);
}
.partner:hover .partner__name {
  color: var(--color-primary);
}

/* Mobile: smaller logos, a bit faster */
@media (max-width: 640px) {
  .partners-track {
    gap: 1rem;
    animation-duration: 22s;
  }
  .partners-track .partner {
    width: 150px;
    min-height: 88px;
    padding: 1rem;
  }
}

/* The animation itself */
@keyframes partnersScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Accessibility: stop motion if the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================================================
   QUOTE MODAL (product page)
   ========================================================================== */
.qmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
}
.qmodal.is-open {
  display: flex;
  animation: qmFade 0.2s ease;
}
@keyframes qmFade {
  from {
    opacity: 0;
  }
}
.qmodal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 30, 0.6);
  backdrop-filter: blur(3px);
}
.qmodal__box {
  position: relative;
  z-index: 1;
  width: min(92vw, 480px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-8);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  animation: qmZoom 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes qmZoom {
  from {
    transform: translateY(12px) scale(0.97);
    opacity: 0;
  }
}
.qmodal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}
.qmodal__close:hover {
  background: var(--color-primary-100);
  color: var(--color-primary);
}
.qmodal__title {
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}
.qmodal__sub {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}
.qmodal__form .field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.qmodal__form label {
  font-weight: 600;
  font-size: 0.9rem;
}
.qmodal__form input,
.qmodal__form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  width: 100%;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.qmodal__form input:focus,
.qmodal__form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-100);
}
.qmodal__form input[readonly] {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  cursor: default;
}
.qmodal__ok {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #2e7d32;
  font-weight: 600;
  margin: 0.75rem 0 0;
}
.qmodal__err {
  color: #c62828;
  font-weight: 500;
  margin: 0.75rem 0 0;
}

/* ============================================================================
   DISCOVER OUR PRODUCTS — left description + image stack cycle, fullscreen expand
   ========================================================================== */
.discover__grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.discover__intro .section__title {
  text-align: left;
}
.discover__intro .section__lead {
  margin-bottom: 1.5rem;
}

.discover__boxes {
}

/* Image stack cycle */
.discover__boxes--stack {
  display: flex;
  justify-content: center;
}
.discover__stack {
  position: relative;
  width: min(360px, 82vw);
  height: 460px;
  margin: 0 auto;
}
.discover__card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-primary-100);
  box-shadow: var(--elevation-4);
  transform-origin: center;
  transition:
    transform 0.6s var(--ease-emph),
    opacity 0.5s var(--ease-emph),
    box-shadow 0.3s;
  will-change: transform, opacity;
}
.discover__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.discover__card .media-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.discover__card.is-leaving {
  transform: translateY(-70px) scale(1.06) !important;
  opacity: 0 !important;
}
.discover__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.95rem 1.1rem;
  text-align: left;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(to top, rgba(15, 6, 24, 0.85), transparent);
}

/* Fullscreen expand view */
.dv {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(8, 3, 14, 0.9);
  backdrop-filter: blur(4px);
}
.dv.is-open {
  display: flex;
  animation: dvFade 0.25s ease;
}
@keyframes dvFade {
  from {
    opacity: 0;
  }
}
.dv__stage {
  position: relative;
  width: min(1000px, 92vw);
  max-height: 88vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: dvZoom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes dvZoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
}
.dv__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 40vh;
  background-size: cover;
  background-position: center;
}
.dv__media.media-placeholder {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.dv__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
}
.dv__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}
.dv__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform var(--transition);
}
.dv__close:hover {
  transform: scale(1.1);
}
.dv__close svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 760px) {
  .discover__grid {
    grid-template-columns: 1fr;
  }
  .discover__stack {
    height: 400px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dv.is-open,
  .dv__stage {
    animation: none;
  }
}
