/* ── PAGES — Page-specific styles ───────────────────────────────────────── */

/* ── Hero floating badge ── */
.hero-floating-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: float-badge 3s ease-in-out infinite;
}

.floating-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.floating-badge-text {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Hero content grid ── */
.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - var(--navbar-height));
  padding: 80px 0;
}

/* ── Certifications bar label ── */
.brands-label {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ── Feature items ── */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.feature-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Blog post layout ── */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.blog-post-content h2 {
  font-size: 28px;
  margin: 40px 0 16px;
}

.blog-post-content h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.blog-post-content p {
  font-size: var(--font-size-md);
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.blog-post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.sidebar-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
}

/* ── Service detail layout ── */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Specs header ── */
.specs-header {
  margin-bottom: 20px;
}
.specs-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin-bottom: 10px;
}
.specs-accent-line {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ── Specs table ── */
@keyframes specRowIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-row {
  position: relative;
  border-bottom: 1px solid var(--color-border-light);
  animation: specRowIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transition: background 0.2s ease;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  transform: scaleY(0);
  transition: transform 0.22s ease;
  border-radius: 2px;
}

.spec-row:hover {
  background: rgba(211, 33, 44, 0.04);
}

.spec-row:hover::before {
  transform: scaleY(1);
}

.spec-label {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 42%;
  padding: 15px 16px 15px 14px;
  line-height: 1.5;
}

.spec-value {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  padding: 15px 0;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .spec-row { animation: none; opacity: 1; }
}

/* ── Contact page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Privacy policy ── */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 24px;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.policy-content h2:first-child {
  border-top: none;
  margin-top: 0;
}

.policy-content p {
  font-size: var(--font-size-base);
  line-height: 1.8;
  margin-bottom: 16px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.policy-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ── Map placeholder ── */
.map-placeholder {
  background: var(--color-bg-light);
  border-radius: var(--radius-xl);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-light);
}

.map-placeholder-text {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  text-align: center;
}

/* ══════════════════════════════════════════════════
   CONTACT — LOCATION CARD (expand-map)
══════════════════════════════════════════════════ */
.lc-wrap {
  perspective: 1000px;
  display: block;
  width: 100%;
}
.lc-card {
  position: relative;
  width: 100%;
  height: 160px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition:
    height 0.45s cubic-bezier(0.34,1.56,0.64,1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  will-change: transform, height;
}
.lc-card:hover {
  border-color: rgba(214,45,47,0.25);
  box-shadow: 0 8px 32px rgba(214,45,47,0.12);
}
.lc-card.expanded { height: 300px; }

/* Grid bg (collapsed) — subtle on light bg */
.lc-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  transition: opacity 0.3s ease;
}
.lc-card.expanded .lc-grid-bg { opacity: 0; pointer-events: none; }

/* Map overlay (expanded) — dark map takes over */
.lc-map-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #111822;
  opacity: 0;
  transition: opacity 0.35s ease 0.05s;
}
.lc-card.expanded .lc-map-bg { opacity: 1; }

/* Buildings */
.lc-b {
  position: absolute;
  border-radius: 2px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.09);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.lc-card.expanded .lc-b { opacity: 1; transform: scale(1); }
.lc-b1 { top:40%;left:7%; width:13%;height:18%; transition-delay:0.14s; }
.lc-b2 { top:13%;left:33%;width:12%;height:14%; transition-delay:0.2s;  }
.lc-b3 { top:67%;left:70%;width:17%;height:18%; transition-delay:0.25s; }
.lc-b4 { top:17%;right:8%;width:10%;height:23%; transition-delay:0.17s; }
.lc-b5 { top:53%;left:5%; width:8%; height:12%; transition-delay:0.22s; }

/* Pin */
.lc-pin-el {
  position: absolute;
  top:50%;left:50%;
  transform: translate(-50%,-58%) scale(0);
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(214,45,47,0.7));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.2s;
}
.lc-card.expanded .lc-pin-el { transform: translate(-50%,-58%) scale(1); }

/* Bottom fade (only active on expanded dark map) */
.lc-fade-overlay {
  position: absolute; bottom:0;left:0;right:0;height:55%;
  background: linear-gradient(to top, #111822 0%, transparent 100%);
  z-index: 2; opacity: 0;
  transition: opacity 0.35s ease 0.05s;
}
.lc-card.expanded .lc-fade-overlay { opacity: 0.7; }

/* Gradient sheen (subtle on light bg, invisible on expanded dark map) */
.lc-sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 50%, rgba(255,255,255,0.3) 100%);
  transition: opacity 0.35s ease;
}
.lc-card.expanded .lc-sheen { opacity: 0; }

/* Content */
.lc-content {
  position: relative; z-index: 4; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem 1.2rem;
}
.lc-top-row { display: flex; align-items: flex-start; justify-content: space-between; }
.lc-map-icon {
  color: var(--color-primary);
  filter: drop-shadow(0 0 3px rgba(214,45,47,0.25));
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.lc-card:hover .lc-map-icon { filter: drop-shadow(0 0 6px rgba(214,45,47,0.5)); }
.lc-card.expanded .lc-map-icon { opacity: 0; }
.lc-live-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: var(--radius-full);
  background: rgba(2,22,53,0.07);
  transition: background 0.2s;
}
.lc-card.expanded .lc-live-badge { background: rgba(255,255,255,0.07); }
.lc-card:hover .lc-live-badge { background: rgba(2,22,53,0.1); }
.lc-card.expanded:hover .lc-live-badge { background: rgba(255,255,255,0.1); }
.lc-dot { width: 6px; height: 6px; border-radius: 50%; background: #25D366; flex-shrink: 0; }
.lc-live-text {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}
.lc-card.expanded .lc-live-text { color: rgba(255,255,255,0.5); }
.lc-bottom-row { display: flex; flex-direction: column; gap: 3px; }
.lc-loc-name {
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-text-primary);
  transition: transform 0.25s ease, color 0.3s ease;
}
.lc-card.expanded .lc-loc-name { color: #fff; }
.lc-card:hover .lc-loc-name { transform: translateX(4px); }
.lc-coords {
  font-family: var(--font-body); font-size: 10px;
  color: rgba(255,255,255,0.45);
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.25s ease;
}
.lc-card.expanded .lc-coords { opacity: 1; max-height: 20px; }
.lc-underline {
  height: 1.5px; margin-top: 3px;
  background: linear-gradient(to right, var(--color-primary) 0%, rgba(214,45,47,0.25) 65%, transparent 100%);
  transform: scaleX(0.3); transform-origin: left;
  transition: transform 0.4s ease;
}
.lc-card:hover .lc-underline,
.lc-card.expanded .lc-underline { transform: scaleX(1); }

/* Click hint */
.lc-hint {
  font-family: var(--font-body); font-size: 11px; color: var(--color-text-muted);
  text-align: center; width: 240px; margin: 8px 0 0;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.lc-hint.show { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════
   CONTACT — FIND US SECTION (full-width map)
══════════════════════════════════════════════════ */
.find-us-section {
  background: var(--color-bg-dark);
  padding: 80px 0;
}
.find-us-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}
.find-us-text-col { display: flex; flex-direction: column; gap: 28px; }
.find-us-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.05;
  margin: 0;
}
.find-us-details { display: flex; flex-direction: column; gap: 18px; }
.find-us-detail-item { display: flex; align-items: flex-start; gap: 12px; }
.find-us-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(214,45,47,0.12); border: 1px solid rgba(214,45,47,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px; color: var(--color-primary);
}
.find-us-detail-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45); margin-bottom: 3px;
}
.find-us-detail-val {
  font-family: var(--font-body); font-size: var(--font-size-base);
  color: rgba(255,255,255,0.82); line-height: 1.5;
}
.find-us-directions-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-primary); text-decoration: none;
  border: 1.5px solid rgba(214,45,47,0.4); border-radius: var(--radius-xs);
  padding: 10px 20px; width: fit-content;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.find-us-directions-btn:hover {
  background: var(--color-primary); border-color: var(--color-primary);
  color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-primary);
}
.find-us-map-col { height: 100%; }
.find-us-map-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg); height: 420px;
}
.find-us-map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 900px) {
  .find-us-inner { grid-template-columns: 1fr; gap: 40px; }
  .find-us-map-embed { height: 300px; }
  .find-us-heading { font-size: var(--font-size-2xl); }
}
@media (max-width: 600px) {
  .lc-card.expanded { width: 270px; height: 230px; }
  .lc-hint { width: 240px; }
}

/* ── About team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Values section ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 40px 32px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.value-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.value-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: var(--font-weight-black);
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 16px;
  -webkit-text-stroke: 2px var(--color-primary);
}

/* ── Products catalog page ── */
.products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.catalog-category-heading {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-top: 40px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.catalog-category-heading:first-of-type {
  margin-top: 0;
}

.catalog-subcategory-heading {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* ── Video hero (services.html) — pinned cinematic intro, fades/scales away
   on scroll to reveal the catalog grid. The 4-product studio photo is the
   hero's full-bleed background; the abstract aurora/grid layers from
   .test-hero-bg are dimmed out under it so the photo reads as the scene
   rather than a competing decoration. ── */
.video-hero.test-hero {
  /* Full-viewport hero (matches the rest of the site's hero sections).
     The photo is much wider than the viewport (≈2.357:1), so object-fit:
     cover crops a bit off the left/right floor margin around the outer two
     units to fill edge-to-edge — the units themselves stay fully visible
     on standard desktop/laptop aspect ratios. */
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.video-hero-bg-blur {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(70px) brightness(0.55) saturate(1.15);
  transform: scale(1.15);
}

.video-hero-bg-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 17, 0.78) 0%, rgba(2, 8, 17, 0.28) 38%, rgba(2, 8, 17, 0.32) 62%, rgba(2, 8, 17, 0.88) 100%),
    linear-gradient(90deg, rgba(2, 8, 17, 0.55) 0%, rgba(2, 8, 17, 0.05) 30%, rgba(2, 8, 17, 0.05) 70%, rgba(2, 8, 17, 0.55) 100%);
}

.video-hero .test-hero-bg {
  opacity: 0.35;
}

.video-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.video-hero-heading {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-black);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  color: #ffffff;
  margin: 18px 0 14px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.video-hero-heading .text-highlight {
  color: var(--color-primary-light);
}

.video-hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(245, 247, 251, 0.85);
  max-width: 520px;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.video-hero-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
}

.video-hero-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.video-hero-spec strong {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: var(--font-weight-black);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.video-hero-spec span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 247, 251, 0.7);
}

.video-hero .video-hero-cert-badge {
  position: absolute;
  right: 5%;
  bottom: 96px;
  z-index: 2;
}

.video-hero-scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 247, 251, 0.56);
}

@media (max-width: 767px) {
  .video-hero.test-hero {
    height: auto;
    min-height: 0;
    flex-direction: column;
    padding: calc(var(--navbar-height) + 28px) 0 64px;
  }

  .video-hero-bg-img {
    object-fit: contain;
  }

  .video-hero-specs {
    margin-top: 20px;
  }

  .video-hero .video-hero-cert-badge {
    position: static;
    margin-top: 24px;
  }

  .video-hero-scroll-hint {
    display: none;
  }
}

@media (max-width: 600px) {
  .video-hero .video-hero-cert-badge {
    padding: 9px 13px;
    gap: 8px;
  }

  .video-hero .video-hero-cert-badge span {
    width: 24px;
    height: 24px;
  }

  .video-hero .video-hero-cert-badge strong {
    font-size: 9px;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   PRODUCT MOSAIC — GadgetZ-style category tiles (homepage)
══════════════════════════════════════════════════════════════════════ */
.product-mosaic {
  background: #f5f5f5;
  padding: 20px 24px 40px;
  position: relative;
  z-index: 4;
}

.product-mosaic-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  grid-template-rows: 220px 260px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.mosaic-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #f4f6f9 0%, #e6eaf0 100%);
  text-decoration: none;
  isolation: isolate;
}

/* Grid placement (DOM order: wide, small, small, feature) */
.mosaic-tile--wide    { grid-column: 1 / 3; grid-row: 1; }
.mosaic-tile--feature { grid-column: 3;     grid-row: 1 / 3; }
.mosaic-tile--small:nth-child(2) { grid-column: 1; grid-row: 2; }
.mosaic-tile--small:nth-child(3) { grid-column: 2; grid-row: 2; }

.mosaic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 24px 24px 64px;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(2, 22, 53, 0.88) 0%,
    rgba(2, 22, 53, 0.55) 20%,
    rgba(2, 22, 53, 0.08) 42%,
    transparent 58%
  );
}

.mosaic-content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 26px;
  width: 100%;
}

.mosaic-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-white);
}

.mosaic-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Hover reveal + image zoom (hover-capable pointers only) */
@media (hover: hover) {
  .mosaic-tile:hover .mosaic-subtitle {
    opacity: 1;
    transform: translateY(0);
  }
  .mosaic-tile:hover .mosaic-img {
    transform: scale(1.06);
  }
}

/* Touch / no-hover devices: subtitle always visible */
@media (hover: none) {
  .mosaic-subtitle {
    opacity: 1;
    transform: none;
  }
}

/* Keyboard focus */
.mosaic-tile:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
.mosaic-tile:focus-visible .mosaic-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* Feature tile gets a slightly larger title */
.mosaic-tile--feature .mosaic-title { font-size: 1.85rem; }

/* Left-side tiles: tighter padding so the product reads ~10% larger */
.mosaic-tile--wide .mosaic-img,
.mosaic-tile--small .mosaic-img {
  padding: 16px 18px 52px;
}

/* Tablet */
@media (max-width: 900px) {
  .product-mosaic-inner {
    grid-template-rows: 200px 220px;
    gap: 12px;
  }
  .mosaic-title { font-size: 1.35rem; }
  .mosaic-tile--feature .mosaic-title { font-size: 1.55rem; }
}

/* Mobile: single column, order Air Handlers → Packaged → Mini → AC */
@media (max-width: 767px) {
  .product-mosaic { padding: 12px 14px 28px; }
  .product-mosaic-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mosaic-tile {
    height: 220px;
    grid-column: auto;
    grid-row: auto;
  }
  .mosaic-img { padding: 18px 18px 54px; }
  .mosaic-tile--feature { order: 1; height: 280px; }
  .mosaic-tile--wide    { order: 2; }
  .mosaic-tile--small:nth-child(2) { order: 3; }
  .mosaic-tile--small:nth-child(3) { order: 4; }
  /* No hover on mobile — always show subtitle */
  .mosaic-subtitle { opacity: 1; transform: none; }
}

/* Reduced motion: no zoom / fade, subtitle shown statically */
@media (prefers-reduced-motion: reduce) {
  .mosaic-img { transition: none; }
  .mosaic-tile:hover .mosaic-img { transform: none; }
  .mosaic-subtitle {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
